PDA

View Full Version : [ubuntu] What do you do when the Ubuntu Freezes?



tomreid
June 29th, 2009, 06:19 AM
Hi

Been using Ubuntu for around a month now, really getting to like it. As a Sun Microsystems guy (maybe soon an Oracle guy) I was used to using open source software, so it was not too much of a switch for me.

One issue I've had today though was more reminiscent of the bad old days of Windows 98 is that some programmes seem to make the entire system freeze.

I think this is down to bugs in both programmes as it tends to happen each time I ask the programme to do the same thing, but I thought Ubuntu, being Linux based, shouldn't let a malfunctioning programme freeze or crash the whole system.

Four times today, all I was able to do was to hit the power button to re-boot. I was not able to make the system respond at all, so was not able to run Xkill to quit the malfunctioning programme.

I remember that Win 98 used to allow a malfunctioning programme to freeze or crash the whole OS, but I have been using MAC OSX for many years and can count on the fingures of one hand how often a malfunctioing programme caused the whole OS to fall over.

So my questions are - is this "freezing" behaviour in Ubuntu common? Or am I just unlucky? Are there any emergency keyboard shortcuts or other remedies I'm missing that will help me if the whole OS just seems to lock up?

I'm running Ubuntu 9.04 on a Macbook Pro 4.1.

cheers

john.nicholls
June 29th, 2009, 09:08 AM
There ar keyboard shortcuts using the SysRq key. Google for details.

t0p
June 29th, 2009, 09:17 AM
Ctrl+Alt+Delete is an old Linux standard.

Extreedoc
June 29th, 2009, 09:37 AM
Ctrl+Alt+Delete is an old Linux standard.

Or: Ctrl+Alt+Backspace if the problem derives from the GUI.

kuja
June 29th, 2009, 09:45 AM
alt + sysrq + r-e-i-s-u-b with a couple of seconds between each.

themusicalduck
June 29th, 2009, 09:57 AM
Ctrl+alt+backspace is good but has been disabled in 9.04. It's possible to re-enable it though if you look it up on google. Also ctrl+alt+f1 takes you to a command line where you can kill processes or whatever else.

The freezes are a bit odd though. I very rarely have any program that causes Ubuntu to freeze completely. Maybe it's worth trying 8.10 or 8.04 the long term support version which is supposed to be more stable?

3rdalbum
June 29th, 2009, 11:34 AM
Try removing proprietary graphics card drivers; they are often the culprit of freezes and video corruption.

tomreid
June 29th, 2009, 03:07 PM
Yes I thought of the propitiatory video card drivers being an issue, another question though - where can you find a list of video cards that have native Ubuntu / Linux drivers ?

Nvidia seems to be the manufacturer of most video cards I have to use, but they seem poorly supported in Ubuntu.

cheers

xavierp94
June 29th, 2009, 03:19 PM
Typing xkill in the terminal should kill all unresponsive programs from the system.

decoherence
June 29th, 2009, 03:26 PM
Yes I thought of the propitiatory video card drivers being an issue, another question though - where can you find a list of video cards that have native Ubuntu / Linux drivers ?

Nvidia seems to be the manufacturer of most video cards I have to use, but they seem poorly supported in Ubuntu.

cheers

There are open versions of the nvidia graphics drivers... I haven't used 'em in a while so I don't know if they're any good. The Nouveau projects currently seems the best bet to make nVidia drivers stop sucking.

In the mean time, try turning off the visual effects from System > Preferences > Appearance.

Are you doing something specific when it crashes? I find that Evolution will freeze up my system on occasion. Personally, I think it's pretty unforgivable that an application would render the entire GUI unusable. I mean, I would expect that on Win 9x or Mac OS 9 but Linux has modern things like protected memory and preemptive multitasking, so unless the actual driver cacks out.... and that is even more unforgivable, imho.

Anyway, thankfully not a common problem but happens more often than it should.

3rdalbum
June 29th, 2009, 03:29 PM
Yes I thought of the propitiatory video card drivers being an issue, another question though - where can you find a list of video cards that have native Ubuntu / Linux drivers ?

Anything Intel, except for the latest chipset, is out-of-the-box. All recent ATI cards have native Linux drivers, and almost all Nvidia cards have too.


Nvidia seems to be the manufacturer of most video cards I have to use, but they seem poorly supported in Ubuntu.

The opposite is true - they're very well supported with their proprietary driver. The open-source "nv" driver is not very good, but that's written by Nvidia engineers and is obfuscated (written in such a way as to conceal how it works).

Geordino
June 29th, 2009, 03:38 PM
System -> Preferences -> appearance -> Visual Effects
and select "None"

at some point my Ubuntu was freezing very often.. after I disabled visual effects it almost doesn't freeze at all

tomreid
July 5th, 2009, 07:20 PM
Hi

Thanks for all your help everyone.

It's interesting.

I can use Ubuntu in my home office for hours and it's fine, but when I use it upstairs in my living room it sometimes freezes like this.

I'm trying to work out the differences between how I use the system in my living room, verses home office and I tend to use the wifi in the living room and the macbook pro's track pad as opposed to having it connected to ethernet and using an external mouse in my home office.

Also, when I encounter this behaviour where the whole system locks up, and I try to run xkill, the error xkill gives me is "unable to grab cursor".

Does this give anyone any ideas about what this problem may be?

cheers