27
[Solved]PC froze, now what?
(discuss.tchncs.de)
Whether you're a seasoned pro or the noobiest of noobs, you've found the right place for Linux support and information. With a dedication to supporting free and open source software, this community aims to ensure Linux fits your needs and works for you. From troubleshooting to tutorials, practical tips, news and more, all aspects of Linux are warmly welcomed. Join a community of like-minded enthusiasts and professionals driving Linux's ongoing evolution.
Tried F1-6, no love. Only thing that does respond is the mouse movement... keyboard only responds to input reisub. I think if I am at keyboard and the screen does not lock, any windows open will respond to mouse hover but not clicks... I need a linux doctor lol. Maybe a second display for outputting kernel logs, that would be fun for dev work. Though I feel like ssh is the defacto way to accomplish that... Anything we can accomplish with one host and two displays, no network?
Prompted GPT
It sounds like you're encountering a kernel-level or X/Wayland-level freeze while developing. The fact that the keyboard is unresponsive except for
REISUB
suggests a deep hang in the graphical session or related system processes.Here’s a practical way to debug and diagnose this issue with two displays and one host, without needing a network:
Setup for Debugging on Two Displays
Enable Persistent Kernel Logs on Second Display:
Ctrl+Alt+F2
(or F3-F6, depending on availability).Mirror Logs or Virtual Console Across Displays:
tmux
orscreen
) to duplicate the kernel log view.tmux
in TTY1 and attach to it from TTY2: Then on the second TTY:Improve Debugging Workflow
Set Up Magic SysRq for More Control:
REISUB
, the Magic SysRq key is already enabled. You can use other commands to debug live:Alt + SysRq + F
can attempt to kill resource-hogging processes.Alt + SysRq + R
can re-enable raw keyboard input if the GUI is frozen.Enable Kernel Debugging Outputs:
debug
to your kernel boot parameters in GRUB:/etc/default/grub
:Use a Non-GUI Target:
Forcefully Isolate the Process:
:1
while keeping your primary desktop untouched.Tips to Prevent GUI Freezes During Development
ulimit
to restrict resource usage of your program: