LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 07-30-2009, 04:07 AM   #1
ggerri
LQ Newbie
 
Registered: Apr 2009
Location: Switzerland
Distribution: Ubuntu 10.04/9.10
Posts: 15

Rep: Reputation: 0
Cool system/keyboard hangs - how can I do a proper shutdown?


Hi there

Coming from Windows I usually just pressed the power button whenever the system was completely stuck and no interaction was possible.

Doing that on an Ubuntu system is not a good idea I've learned. So what do you do if your system should hang and the keyboard is locked?

I've heard about accessing with telnet but dont really get how this is done?

Please enlighten me :-)

Thanks
G
 
Old 07-30-2009, 07:50 AM   #2
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 50
Is it the keyboard or a system lock? The next time it locks press Ctrl+Alt+Backspace that will kill your xserver and put you back at the login screen.

You may want to check and see if you are having heat issues.
 
Old 07-30-2009, 08:37 AM   #3
dickgregory
Member
 
Registered: Oct 2002
Location: Houston
Distribution: Arch, PCLinuxOS, Mint
Posts: 257

Rep: Reputation: 34
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.
 
Old 07-30-2009, 09:24 AM   #4
ggerri
LQ Newbie
 
Registered: Apr 2009
Location: Switzerland
Distribution: Ubuntu 10.04/9.10
Posts: 15

Original Poster
Rep: Reputation: 0
Cool

Thanks a lot guys for the helpful answers.

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...

excited about the elephants ;-) big thanks for that... found this one I want to share here: http://en.wikipedia.org/wiki/Magic_SysRq_key , check out the section about Remote access

How would you use telenet in the console?

just

telnet ipyouwanttocennectto

?
Thanks G

Last edited by ggerri; 07-30-2009 at 09:43 AM.
 
Old 07-30-2009, 04:25 PM   #5
ggerri
LQ Newbie
 
Registered: Apr 2009
Location: Switzerland
Distribution: Ubuntu 10.04/9.10
Posts: 15

Original Poster
Rep: Reputation: 0
Exclamation

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

Last edited by ggerri; 07-30-2009 at 04:44 PM.
 
Old 07-30-2009, 05:33 PM   #6
ggerri
LQ Newbie
 
Registered: Apr 2009
Location: Switzerland
Distribution: Ubuntu 10.04/9.10
Posts: 15

Original Poster
Rep: Reputation: 0
Lightbulb solved

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):
  1. start compiz config settings manager (cssm)
  2. enable commands plugin (this stands between you and matacity keybindings ;-)
  3. close ccsm
  4. start gconf-editor
  5. got to apps->metacity->global_keybindings
  6. look for run_command_window_screenshot
  7. change the value from <Alt>Print to lets say <Shift>Print
  8. confirm with hitting enter key
  9. SysReq key should now be usable (or at least after reboot)

 
Old 07-30-2009, 08:50 PM   #7
jeromeNP7
Member
 
Registered: Jun 2009
Posts: 101

Rep: Reputation: 19
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.

Linux

Last edited by jeromeNP7; 09-04-2009 at 10:24 PM.
 
Old 07-31-2009, 08:45 AM   #8
dickgregory
Member
 
Registered: Oct 2002
Location: Houston
Distribution: Arch, PCLinuxOS, Mint
Posts: 257

Rep: Reputation: 34
Quote:
Originally Posted by ggerri View Post
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.
 
Old 07-31-2009, 10:22 AM   #9
ggerri
LQ Newbie
 
Registered: Apr 2009
Location: Switzerland
Distribution: Ubuntu 10.04/9.10
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks again guys :-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Opensuse 11.1 - System hangs - Keyboard hangs - Mouse works cvrprakash Linux - Desktop 1 04-07-2009 04:12 AM
Ubuntu 7.10 systems hangs, no keyboard, can't shutdown red hat flyfisherman Ubuntu 11 01-07-2008 02:42 PM
SUSE 9.3 KDETV Hangs on exit and system can't shutdown 1kyle SUSE / openSUSE 2 08-29-2005 03:55 AM
system hangs on shutdown jbeiter Linux - Enterprise 5 03-12-2005 10:01 PM
net driver causes system hangs (keyboard hangs) yjchen Linux - Networking 0 10-21-2004 11:12 PM


All times are GMT -5. The time now is 03:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration