0

My system recently hung up and nothing worked. Cursor, keys, Ctrl commands (like Esc, Alt+Delete), Alt+F4, everything hangs up.

Once, I saw my cousin slam some keys and a totally black screen opened, waiting for a command. It sort of opened from the top. It wasn't Type a Command box or the Terminal. Although he didn't open it when the computer hung, I guess that could still be opened?

Anyway, so what can be done besides a reboot?

BЈовић
  • 4,564
Abhimanyu
  • 1,393
  • 3
    What your cousin typed was proabably ctrl + alt + F1 (or F2 - F6). This is a real console and you can run terminal commands after you login. – To Do Oct 09 '14 at 07:35
  • Refer here :- http://askubuntu.com/questions/4408/what-should-i-do-when-ubuntu-freezes – Ashu_FalcoN Oct 09 '14 at 07:49

3 Answers3

2

There are few things you can do :

  • restart the window manager (see here how to do it). This will forcefully log you out
  • switch to command console and kill or restart the problematic program (ctrl+alt+F1 (or F2-F6)).
BЈовић
  • 4,564
2

IF Single Application Stop working the Use : xkill And Click X curser on un-Responding Application

If System Hangs use :- ALT+SysRq (print screen) + R E I S U B

Where :-

R: Switch to XLATE mode

E: Send Terminate signal to all processes except for init

I: Send Kill signal to all processes except for init

S: Sync all mounted file-systems

U: Remount file-systems as read-only

B: Reboot

If Not Any of These :- Enter CTRL+ALT+F1 login There,

install htop sudo apt-get install htop

run htop

find un-responding program

and type : f7 and then f10

or Enter the command : sudo service lightdm restart

Ashu_FalcoN
  • 2,118
1

It seems your 'gnome-session' got hung up.

Press the combination keys ctrl + alt + F1 (or F2 - F6). Then you get a console. Login with your credentials and you will get your command prompt, then type the command:

ps -x | grep gnome

Find the process id of 'gnome-session' from the output and kill the session using command:

kill -9 <process id> (eg: If your session process id is 2183 then kill -9 2183)

Then your gnome session will be logged out. You can re-login and continue without rebooting.

ATR
  • 403
  • 1
  • 5
  • 18