LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 03: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, 06:50 AM   #2
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 59
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, 07: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, 08: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 08:43 AM.
 
Old 07-30-2009, 03: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 03:44 PM.
 
Old 07-30-2009, 04: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, 07: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 09:24 PM.
 
Old 07-31-2009, 07: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, 09: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



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 03:12 AM
Ubuntu 7.10 systems hangs, no keyboard, can't shutdown red hat flyfisherman Ubuntu 11 01-07-2008 01:42 PM
SUSE 9.3 KDETV Hangs on exit and system can't shutdown 1kyle SUSE / openSUSE 2 08-29-2005 02:55 AM
system hangs on shutdown jbeiter Linux - Enterprise 5 03-12-2005 09:01 PM
net driver causes system hangs (keyboard hangs) yjchen Linux - Networking 0 10-21-2004 10:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:26 AM.

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
Open Source Consulting | Domain Registration