[SOLVED] system/keyboard hangs - how can I do a proper shutdown?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You are correct that you should only force power off if all other recovery attempts fail.
My first action is to press ctrl-alt-f1. That may get you to a virtual terminal with a cli logon prompt. Log on as root and try to find and kill the offending process. Use ps -A to find the pid if you know the name of the program. Or you can use top to find a process that is dominating the cpu etc.
My next action is to do the ctrl-alt-backspace. If that works, you should get to the login screen.
If ctrl-alt-f1 doesn't get to a virtual terminal, and ctrl-alt-backspace doesn't work, there is a trick called "skinny elephants". Google "skinny elephants" or "raising skinny elephants". You will get several hits that are relevant. Make a cheatsheet of the instructions you get. Keep the cheatsheet handy because you will not be able to google if your system is locked.
If the skinny elephants don't work, you have no choice but to force the system down.
The problem is that mouse and keyboard is locked. happend to me when trying to run a game (cant remember the name, some ego shooooter). dont know if it was only the keyboard, but I guess it had problems with the graphic. did a powerbuttonrestart and my gnome was all messed up after. luckily reinstall is piece of cake with ubuntu ;-) still annyoing though...
dickgregory, home and tried to pet the elephant here ;-) Unfortunately Ubuntu 9.04 mapped 'take a screenshot for me' on the SysRq/PrintScreen Key so instead of raising an elephant, the gnome-screenshot pops up. How to solve this? How could I change the key bindings for taking a screenshot?
Tried to remove gnome-screenshot and gnome-screenshot --window in the config editor, apps->metacity->keybinding_commands but changes seem not to work (also after rebooting).
Ok was able to solve the issue. Here what I had to so not to get gnome-screenshot when hitting the SysRq key (assuming you also have compiz installed):
start compiz config settings manager (cssm)
enable commands plugin (this stands between you and matacity keybindings ;-)
close ccsm
start gconf-editor
got to apps->metacity->global_keybindings
look for run_command_window_screenshot
change the value from <Alt>Print to lets say <Shift>Print
confirm with hitting enter key
SysReq key should now be usable (or at least after reboot)
Playing games with Linux is usually not a good idea. Stay with Windows for that kind of stuff. Most games are made with Windows in mind, that's why they work better over there.
dickgregory, home and tried to pet the elephant here ;-) Unfortunately Ubuntu 9.04 mapped 'take a screenshot for me' on the SysRq/PrintScreen Key so instead of raising an elephant, the gnome-screenshot pops up. How to solve this? How could I change the key bindings for taking a screenshot?
Tried to remove gnome-screenshot and gnome-screenshot --window in the config editor, apps->metacity->keybinding_commands but changes seem not to work (also after rebooting).
thanks from here
G
That's why I just pointed you to google instead of trying to explain it all myself. There are a number of things that could affect the availability of the elephants, and I didn't want to guess at what would happen in your case. I'm glad you got it working, as indicated in your next post.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.