You are on page 1of 1

Search on Unix & Linux… Log in Sign up

Anybody can ask a question


Unix & Linux Stack Exchange is a question and
answer site for users of Linux, FreeBSD and
other Un*x-like operating systems. It only takes
a minute to sign up. Anybody can answer

Sign up to join this community The best answers are voted up and
rise to the top

SPONSORED BY

Home What to do when a Linux desktop freezes? Ask Question

PUBLIC Asked 9 years, 7 months ago Active 1 year, 1 month ago Viewed 496k times

Questions
I'm a Windows guy, dual booted recently, and now I'm using Linux Mint 12
Tags The Overflow Blog

Users 162 When a Windows desktop freezes I refresh , or if I am using a program I use alt + F4 to
Extracting text from any file is harder than
exit the program or I can use ctrl + alt + delete and this command will allow me to fix the it looks. Extracting formatting...
Unanswered Windows desktop by seeing what program is not responding and so on.
Podcast 381: Building image search, but
for any object IRL
FIND A JOB Mint freezes fewer times than my XP, but when it does, I don't know what to do, I just shut
123
Jobs down the pc and restart it.
Featured on Meta

Companies So is there a command to fix Linux when it freezes?


Updates to Privacy Policy (September
2021)
TEAMS
linux desktop freeze
CM escalations - How we got the queue
Stack Overflow for back down to zero
Teams – Collaborate Share Improve this question edited Apr 25 '17 at 13:34 asked Feb 16 '12 at 9:43 AWS will soon be sponsoring Unix &
and share knowledge
with a private group. Follow Mateusz Piotrowski Lynob Linux
4,133 5 28 59 3,684 12 38 70

Add a comment

9 Answers Active Oldest Votes

Create a free Team


If all else fails, you Raise The Elephant.  Essentially, there are special Magic SysRq key
Optiver
What is Teams? sequences ( Alt + SysRq + ? ) that the Linux kernel handles specially. Amsterdam, Netherlands
133
If your Linux box freezes and simply won't yield to any other key-commands, you should
definitely try one particular key sequence before a hard reboot.
Financial Private 1-5k people
Technology
The key sequence is popularly remembered with the mnemonic:

Recommended linux jobs


Raising Elephants Is So Utterly Boring
Software Engineer - Infrastructure
€140k - €180k
Alt + SysRq + R switch keyboard to 'raw' mode
Relocation Visa sponsor

Alt + SysRq + E send SIGTERM (termination) signal to all processes except mother linux python
init
Alt + SysRq + I send SIGKILL signal to all processes, a little more aggressive Principal Software Engineer
€150k - €220k
Alt + SysRq + S sync all filesystems to prevent data loss Relocation Visa sponsor

linux c++
Alt + SysRq + U remount filesystems as read-only

Alt + SysRq + B forcefully reboot


View all 4 job openings!
Share Improve this answer edited Feb 21 '16 at 7:59 answered Mar 10 '12 at 5:52
Follow G-Man Says 'Reinstate kwarrick
Monica' 2,874 1 13 10
Linked
19k 24 55 104

3 How do I identify why my login hangs for 20


12 This does, of course, require that Magic SysRq support is compiled in. – Alexios Mar 14 '12 at 13:58 seconds at startup?

5 Problem: some modern keyboards do not have a SysRq key... (the one I'm typing from right now 3 How to regain control of my computer?
doesn't, for instance - although it does have "print screen", "scroll lock" and "pause/break") – Dalker
Feb 26 '14 at 10:28 0 How to recover a failed KDE4 desktop
without deleting the entire ~/.kde4
19 @Dalker I just had success with using the Print Screen key instead of SysRq – user60561 directory?
Sep 23 '14 at 3:05

9 How much time should be allowed for between running each of these commands? – Highly Irregular
Related
Nov 18 '14 at 21:19
3 What happened to my desktop?
37 Reboot Even If System Utterly Broken – angrydust Feb 28 '16 at 21:49
3 Linux mint freezes on second account login
Show 6 more comments - unable to handle kernel NULL pointer
dereference at (null)

1 UI freezes when I open many tabs in


You can try Ctrl + Alt + * to kill the front process (Screen locking programs on Xorg 1.11) browser
or Ctrl + Alt + F1 to open a terminal, launch a command like ps , top , or htop to see
What to do when the desktop freezes?
125 running processes and launch kill on not responding process. 7

1 Linux Mint OS always freezes when laptop


Note: if not installed, install htop with sudo apt-get install htop . is not charging

Also, once done in your Ctrl + Alt + F1 virtual console, return to the desktop with Ctrl + 2 Linux desktop freezes after sleep
Alt + F7 .
1 Linux desktop freezes regularly with audio
skipping
Share Improve this answer edited Nov 7 '16 at 20:58 answered Feb 16 '12 at 9:54
Follow Gabriel Staples Mathieu Hot Network Questions
823 12 12 2,527 1 18 24
Why don't more people move to safe seats to run
for office in the US?
7 For a windows guy and a beginner in Linux, I would recommend installing htop instead of top as
Why do atomic charges balance?
it is easier to operate. – Palec Sep 2 '14 at 14:01
What has God not "desired" in Hebrews 10:8?
2 Wasn't the kill foreground process under pointer key combination Ctrl + Alt + Esc, or did that
change? (And why do my key buttons not show correct formatting?) – Franki Nov 27 '14 at 5:44 How to write a range of /16 IPs in a single
expression?
3 Which asterisk should in use for Ctrl+Alt+*? The one on the numeric keypad or in the alpha block? In
Do Warforged have disadvantage on the Con save
the latter case, what would I press on non-US keyboards? – user149408 Jan 29 '15 at 10:11 against the Shatter spell?

1 Only the asterisk on numeric keypad should work, @user149408. The linked thread in oss-sec mailing Will there be collision between universes?
list suggest that. – Palec Jan 30 '17 at 16:04
How would flying into Frankfurt a.M. Airport be
problematic for the Tu-154?
1 My console opens with Ctrl+Alt+F3 not F1 . I'm using fedora workstation 28 – Accountant ‫ م‬Jul 5 '18 at
20:41 Can the spell Find Traps find traps in legal
documents?
Show 5 more comments Could I use colors to distinguish variables in a
paper?

In Scrabble, does a blank tile on the double/triple


In most distros pressing Ctrl + Alt + Backspace kills the X11 (graphic) interface and restarts
word square count?
it. Unfortunately some recent, supposedly "user friendly" distros deactivated this very useful
Can you challenge constutionality "en passant" as
41 shortcut for some unfathomable reason. I don't know if Mint is so "user friendly" but you have part of a different legal procedure?
nothing to lose trying it :) Rock arches on the moon?

Can I charge my new iPhone with iMac


Share Improve this answer Follow answered Mar 9 '12 at 21:52
wazoox Should I even ask my physics instructor for a letter
of recommendation for my common app if I
1,181 10 14
committed academic dishonesty in his course?

Why are planes required to cruise at round flight


6 Make sure this is enabled in Mint by searching for 'Startup Applications' in the menu, and then making levels only above 18000 ft of altitude?
sure 'Ctrl Alt Backspace' is checked. – Jeshurun Apr 12 '13 at 10:58
What are martial classes?
1 AFAIRK,the newer fancy xorg evdev input drivers disable the 'zapping' by default. However, there is a
What is the rationale for distinguishing between
way to reenable them on startup in /etc/xorg.conf or /etc/xorg.conf.d/XX-somefile or set it in a per-user proper and improper fractions?
xorg startup script (maybe put setxkbmap -option "terminate:ctrl_alt_bksp" into
Increment The Time
~/.xinitrc) by adding the line Option "XKbOptions" "terminate:ctrl_alt_bksp" into a
corresponding Section "InputClass" , or by setting another switch in your OS that relays to do Apache .htaccess rewrite rules to NGINX
that. – Franki Nov 27 '14 at 5:57 converted rules not effective

Who robbed the store?


1 It is still on by default in OpenSUSE Tumbleweed. – Geoffrey Dec 3 '16 at 10:52
What is the difference between a causal system
1 In Fedora [install,] open gnome-tweaks and check 'key sequence to kill Xserver' in the and a memoryful system?
mouse/keyboard section – Dmitry Koroliov Jul 15 '19 at 14:35
What would be the most effective role to place
1 Run dpkg-reconfigure keyboard-configuration to enable it (in the last step) in Ubuntu. 150-300 modern soldiers in during the Civil War?

– Zheng Qu Jul 22 at 8:48 Chicken out followed by an infinitive

Light switch on concrete wall


Show 1 more comment

Question feed
Besides what was already mentioned, I also use those tricks:

13 If by any chance the unresponsive program was started in a terminal, I would try a Ctrl
+ D or Ctrl + C . If nothing happens I'd try a Ctrl + Z followed by a ruthless kill .

If I knew the responsible program, I would open a terminal and use killall . (E.g.,
killall firefox )

Alternatively, under Gnome, I would launch run command and invoke xkill , which
allows you to kill a program by simply clicking on a window it owns.

Finally, just in case my keyboard melts, I have a System Monitor applet (also under
Gnome) which will pop up the gnome-system-monitor when clicked. From there, I can
kill any process I own using only my mouse.

Share Improve this answer edited Sep 2 '14 at 19:18 answered Jun 19 '12 at 15:24
Follow Ramesh deviantkarot
35.4k 41 132 207 498 4 7

Add a comment

Adding one more possible solution to the mix, and (apart from the accepted answer) one of
the least destructive of the answers so far.
10
If you cannot:

Use keyboard/mouse to A) Run the Ctrl + Alt + * option above, B) Navigate to a utility
that can be used to terminate the offending program, C) Launch a terminal to initiate a
pkill <process name> (or similar, as detailed above)

-OR-

Switch to another virtual console ( Ctrl + Alt +any one of F1-6 ), to initiate a pkill
<process name> (or similar, as detailed above)

... then assuming MagicSysRq support is compiled into the kernel (From
http://en.wikipedia.org/wiki/Magic_keys), on a QWERTY keyboard (alternatives for the below
f are provided in the aforementioned article), one can try:

+ SysRq (Note caveats on http://en.wikipedia.org/wiki/Magic_keys#Commands)+ f to


Alt
"Call oom_kill, which kills a process to alleviate an O ut  O f  M emory condition", which (at
least for me) often kills the program that is causing the issue, as it is the largest RAM
consuming process running at the time.

Share Improve this answer edited Apr 13 '17 at 12:37 answered Dec 30 '13 at 5:24
Follow Community Bot user66001
1 1,986 2 16 25

Add a comment

On laptops you might need to press Ctrl Fn F1 to open terminal, what I do is type
reboot now to restart from terminal.
7
To go back to the GUI from terminal on my laptop (HP G56) I have to Ctrl Fn F8

(apparently it could also be Ctrl Fn F7 ) and you should be back to graphical interface.

Also check http://community.linuxmint.com/tutorial/view/244

Stopping & Starting

shutdown -h now – Shutdown the system now and do not reboot

halt – Stop all processes - same as above

shutdown -r 5 – Shutdown the system in 5 minutes and reboot

shutdown -r now – Shutdown the system now and reboot

reboot – Stop all processes and then reboot - same as above

startx – Start the X system

Share Improve this answer edited Sep 2 '12 at 23:31 answered Sep 2 '12 at 11:03
Follow jasonwryan Seb
65.2k 30 175 215 71 1 1

Add a comment

Another suggestion if you are using Gnome3 (I think the default Mint installation uses
something similar), you can use CTRL + F2 then press R and hit return. I use this often
6 and it works. It basically restarts the GUI. Even if you don't see anything on the screen (e.g.,
it is frozen) you should do that and it will restart the GUI.

Share Improve this answer edited Jun 19 '12 at 17:57 answered Feb 16 '12 at 18:31
Follow bahamat Hanan N.
33.8k 3 64 100 5,291 4 25 30

ctrl f2 does not work anymore :( dunno why –  Lynob Feb 16 '12 at 20:10

maybe isn't works in the Mint GUI, since the default Mint GUI isn't exactly Gnome, but on Gnome 3 it
works for sure. – Hanan N. Feb 16 '12 at 20:51

3 Instead of Ctrl+F2, press Alt+F2. Then it works fine. – user16437 Mar 9 '12 at 16:43

1 This changed in GNOME3. Pressing Alt+F2 will open a run box where you can type the command r .
This is restarting gnome-shell, which in GNOME 3.x has had many memory leaks which lead to it
becoming slower and slower over time. Performing this restart released much of this RAM. – slm ♦
Mar 8 '14 at 6:39

Add a comment

On my laptop when it completely freezes (unresponsive mouse or keyboard) on mint 17.3,


I'm able to do control + alt + fn + f7, then control + alt + fn+ f2. This gets to the shell, then I
3 login with my username and password. To go back to the desktop I do chvt 8 this gets me
back to my current desktop. To find out the active tty's type w then chvt to the current one.

That way you can resume your work without rebooting or losing anything.

Share Improve this answer edited Mar 26 '17 at 8:30 answered Mar 26 '17 at 8:08
Follow answerSeeker
1,719 3 12 14

Add a comment

Not yet mentioned but might work in some cases - try CTRL + ALT + RIGHTARROW or
LEFTARROW . This did switch workspaces, and doing so somehow unhitched whatever was
2 blocking mouse and keyboard actions. I could then switch back to the first workspace, kill
Chromium, which I had by then figured had crashed and was hogging all keyboard and
mouse events. Now everything's back to normal, no reboot or loss of anything involved.

In my case, just minutes ago, everything was hung except the mouse moved the cursor, but
the mouse did no more. The PrtScn made a popup saying I could drag a rectangle (but not)
or hit ESC (works). Nothing else worked. Not even moving the cursor onto another window,
when I have focus-follows-mouse, changes the window frame highlighting. But Ctrl + Alt +
F3 did switch to a text term, Ctrl + Alt + F1 brought back the X windows session.

The culprit was Chromium. I was reading, switched tabs in one browser window, and upon
clicking the tab everything froze but for the few things just described. Switching workspaces

Share Improve this answer edited Aug 19 '20 at 21:29 answered Aug 19 '20 at 21:22
Follow DarenW
2,903 5 16 20

Add a comment

Highly active question. Earn 10 reputation (not counting the association bonus) in order to answer this
question. The reputation requirement helps protect this question from spam and non-answer activity.

Not the answer you're looking for? Browse other questions tagged linux desktop freeze

or ask your own question.

UNIX & LINUX COMPANY STACK EXCHANGE Blog Facebook Twitter LinkedIn Instagram
NETWORK
Tour Stack Overflow
Technology
Help For Teams
Life / Arts
Chat Advertise With Us
Culture / Recreation
Contact Hire a Developer
Science
Feedback Developer Jobs
Other
Mobile About
Disable Responsiveness Press
Legal
Privacy Policy
Terms of Service
Cookie Settings
site design / logo © 2021 Stack Exchange Inc; user contributions
Cookie Policy licensed under cc by-sa. rev 2021.10.4.40368

Linux is a registered trademark of Linus Torvalds. UNIX is a registered trademark of The Open Group.
This site is not affiliated with Linus Torvalds or The Open Group in any way.

You might also like