• Welcome to Peterborough Linux User Group (Canada) Forum.
 

When your Linux desktop freezes...

Started by Jason, January 26, 2017, 08:51:07 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jason

When your Linux desktop freezes and you can't get out other than by powering down the machine, here's another solution.

Ctrl + Alt + *

This kills the foreground process that is likely causing the problem. Your desktop might come back at this point likely with an error, but if not then:

Ctrl + Alt + F1 to bring up a virtual terminal.

Use htop or install htop via the console if you don't have it already. In Ubuntu-based distros, this is:

sudo apt-get install htop

Then run htop (just type htop).

You'll get a list of processes and you can play your game of whack the mole. The offending process is likely near the top but look for anything that is using a ridiculous amount of processor resources and that might help you. Unfortunately, this is more of an art than a science. Use the arrrow keys to select the process and then the function key to kill it (I think it was F9 but it shows you at the bottom). Then Ctrl + Alt + F6 (sometimes it's F10 instead) to get back your desktop. If you still can't click to open anything, Ctrl + Alt + F1 and rinse and repeat.

Background: Turns out compiz was the culprit on my desktop. Either it's still buggy or it's just buggy on my setup. I went in and turned it off. Interestingly, killing compiz caused the outer window bar (with minimize, max and close buttons) to disappear, the same behavior that MIKE was noticing at the last MUG. Perhaps it's compiz again.
* Zorin OS 17.1 Core and Windows 11 Pro on a Dell Precision 3630 Tower with an
i5-8600 3.1 GHz 6-core processor, dual 22" displays, 16 GB of RAM, 512 GB Nvme and a Geforce 1060 6 GB card
* Motorola Edge (2022) phone with Android 13

ssfc72

Mint 20.3 on a Dell 14" Inspiron notebook, HP Pavilion X360, 11" k120ca notebook (Linux Lubuntu), Dell 13" XPS notebook computer (MXLinux)
Cellphone Samsung A50, Koodo pre paid service

fox

Thanks for posting that, Jason. I was aware of those commands to get you out of a freeze, but they never worked when I had the freezes on my dual monitor setup (iMac + external). Fortunately, now that I have a 27" iMac (albeit a 2010 model), I don't need a second monitor anymore.
Ubuntu 24.10 on 2019 5k iMac
Ubuntu 24.04 on Dell XPS 13

bobf

Again...

"Veddy interesting!" <^8# Geez, you'd think these tools would've gotten past unstable, having been around for so long. I'm inclined to think it's more a statement on just how long we hold onto technology that developers quickly breeze beyond then deprecate - or just add something that destabilizes older wonky stuff?!?

Yeah... Technology... <phhhhtttt!>