Not yet mentioned but might work in some cases - try CTRL+ALT+RIGHTARROW or LEFTARROW. This did switch workspaces, and doing so somehow unhitched whatever was blocking mouse and keyboard actions. I could then switch back to the first workspace, kill Chromium, which I had by then figured had crashed and was hogging all keyboard and mouse events. Now everything's back to normal, no reboot or loss of anything involved.
In my case, just minutes ago, everything was hung except the mouse moved the cursor, but the mouse did no more. The PrtScn made a popup saying I could drag a rectangle (but not) or hit ESC (works). Nothing else worked. Not even moving the cursor onto another window, when I have focus-follows-mouse, changes the window frame highlighting. But Ctrl+Alt+F3 did switch to a text term, Ctrl+Alt+F1 brought back the X windows session.
The culprit was Chromium. I was reading, switched tabs in one browser window, and upon clicking the tab everything froze but for the few things just described. Switching workspaces
R
one followed by theE
orI
to just kill all and not restart? – arsaKasra Jan 13 '14 at 20:28Print Screen
key instead ofSysRq
– flaviut Sep 23 '14 at 03:05Alt+SysRq+B
but it didn't work? should I press all the keys in the sequence? should I enable any options? I'm running Ubuntu 16.04, thanks for the help – user10089632 Feb 06 '18 at 14:14cat /proc/sys/kernel/sysrq
. A value of 0 means all are disabled and 1 means all are enabled and anything else means some are enabled. This should enable all SysRq functions:echo "1" | sudo tee /proc/sys/kernel/sysrq
– rashid Oct 28 '20 at 05:36