If that doesn't work, press the Reset button on the computer case. When everything, keys and mouse and all, stop working:įirst try the Magic SysReq method outlined in Phoenix' answer. This should bring down the GUI, which will then attempt to respawn, bringing you back to the login screen. If you just want to try restarting the GUI, run sudo service lightdm restart. I'm not going to get into mouse troubleshooting here, as I haven't researched it. If the keyboard still works, press Alt+ F2 and run gnome-terminal (or, if these fail to launch, press Alt+ Ctrl+ F1 and login with your username and password). In some special cases the process is still listed by ps or top (as "zombie") - in this case, the program was killed, but the process table entry is kept, becuse it's needed later.) When the mouse stops working: (Killing a process by kill -9 allways works if you have the permission to kill. It does not even get the signal - it just stops to exist. Note that you should only use SIGKILL as a last resort, because the process will be terminated immediately by the kernel with no opportunity for cleanup. If all else fails, as a last resort send SIGKILL ( 9): kill -9. It sends the default signal SIGTERM ( 15). If not, find the name and process ID of its command, and tell the program to end as soon as possible with kill. If your program is running from a terminal, on the other hand, you can usually halt it with Ctrl+ C. Right clicking will cancel and return your mouse to normal. Hover over the offending window and left-click to kill it. Your mouse cursor will then turn into an X. If you can't close a window by normal means, you can hit Alt+ F2, type xkill, and press Enter. Sometimes this does not work as expected. That will generally result in a dialog box saying that the program is not responding (but you already knew that) and presenting you with the option to kill the program or to continue to wait for it to respond. When a program window stops responding, you can usually stop it by clicking the X-shaped close button at the top left of the window. More info on all the Alt+ SysReq functions here. And if you will continue, you can reach X Server restart. For me, it killed active browser tab, then all extensions. It will immediately work! You can test this by pressing Alt+ SysReq+ F. To do this: sudo nano /etc/sysctl.d/nfĪnd switch 176 to 244 then echo 244 | sudo tee /proc/sys/kernel/sysrq You can change it to 1 (all commands enabled) or 244 which is potentially less harmful. Ubuntu ships with sysrq default setting 176 (128+32+16), which allows to run only SUB part of REISUB combination. NOTE: You should explicitly enable these key combinations. If you want to kill all processes for one console, you can issue Alt+ SysReq+ K. Kernel will kill the mostly «expensive» process each time. If SysReq key works, you can kill processes one-by-one using Alt+ SysReq+ F. NOTE: There exists less radical way than rebooting the whole system.
0 Comments
Leave a Reply. |