# Ubuntu 8.04 Crashes Upon Shutdown

My laptop used to hang intermittently during shutdown when using Ubuntu Linux 7.10. Now the problem has become worse after the upgrade to 8.04 - it’s almost always reproducible on my Dell 700m - my screen just turns black at shutdown. Everything freezes, even on the hardware level: when the low-level ‘Caps Lock’ and ‘Number Lock’ LEDs don’t even respond to keypresses, it’s almost guaranteed that the hardware is locked up.

It is a critical problem, and something that has caught me by surprise. Initially, I assumed that the problem is some minor buggy code in Xserver that’s causing a race condition resulting in the hangups, something I assumed will be fixed with the upgrade. It turns out that I was wrong - the upgrade has actually made it worse!

It’s unacceptable that I have to hard reset my laptop every single time I shutdown. Often when it goes back up again, the ext3 journaling system indicates that I had orphaned inodes to be cleaned up, or in other words, uncompleted data writes to harddisk suggesting possible data corruption.

While looking for a solution, I was surprised that the problem seems to be quite widespread; there are plenty of bug submissions (like this, this or this) that has been lingering around for Intel’s 8xx/9xx series of graphics cards already.

It seems that the current 'xserver-xorg-video-intel' package is relatively new and for some reason does not initialize the graphics card properly. The current fix that works for me is to make some modifications to Xorg.conf, presumably to either force it to initialize itself properly or avoid using the garbaged area:

Section "Device"
Identifier    "Intel Corporation 82852/855GM Integrated Graphics Device"
Driver        "intel"
BusID         "PCI:0:2:0"
Option        "ForceEnablePipeA"        "true"
EndSection


I’m still annoyed by the fact that Ubuntu has decided to ship and use 'xserver-xorg-video-intel' instead of 'xserver-xorg-video-i810' (which was directly contributed by Intel, methinks) that is more stable, and may have avoided the problem in the first place.