My system is working perfectly but it freezes during shutdown/reboot/suspend/hibernate: All windows and the menu bar disappear but the desktop wallpaper remains. It doesn't even show the shutdown screen (the one with the animated dots) where I could hit ESC and watch the shutdown console text. The system is brand-new and fully updated using Update Manager.
- How can I determine what is causing the freeze?
- Is there a log I can investigate?
- How can I fix this?
I see no obvious cause of the freeze. The only USB attachment is a mouse/keyboard; I don't have any external storage attached; and I don't have any programs running (the machine freezes even when doing shutdown right from the login screen).
What I've tried so far:
- Based on other questions (this, this, and this) that suggest some ACPI settings, I've tried
sudo shutdown -h now
to see whether the shutdown console text display offers any hints, but the system doesn't even get that far - it still freezes while the screen shown the desktop background image, without any toolbars. Onlysudo shutdown --force
works, but that's not a solution. - Editing the grub menu to add acpi=off to the kernel didn't help. I guess there's not much point in trying the other (lesser) ACPI suggestions?
- Adding noapic to the grub entry had no discernible effect. Adding nolapic instead did something (I had removed the quiet option) - the system managed to continue further with the shutdown, right until the line Checking for running unattended-upgrades: which were the last characters on the screen.
- I've also checked the system BIOS, especially regarding power options, but didn't see anything out of the ordinary. Switching the BIOS standby setting from S3 to S1 didn't help. The standby setting can't be disabled, and there are no other ACPI-related settings AFAIK.
- BIOS reset didn't help. Not surprised; hadn't changed anything.
- I tried going to a virtual console (CtrlAltF1) as suggested by djeikyb and from there did a shutdown -h now and it froze there too, after this console output. I didn't try killing processes one at a time because I'm still too newbie to figure out how to do that.
- Booting with kernel 2.6.35.22 rather than 2.6.35.25 didn't help.
- Disabling the Nvidia drivers didn't help.
- Booting from Live CD (USB stick in fact) didn't help; it freezes the same way.
- Booting from Live CD, with
acpi=off noapic nolapic
didn't help either. Neither did justnolapic
. So evidently this is not some custom setting in my install, but some sort of basic issue. - MemTest competed in 1 hour without errors.
This answer on Ubuntu Forums has the exact solution! (Why didn't I post there in parallel to here on AU? It would have saved a week of calendar time and several hours of computer time!)
For Ubuntu 11.10, you could try the
reboot=bios
option (or other options):Access the GRUB configuration file as explained here.
Edit the line
GRUB_CMDLINE_LINUX=""
so it says:and save the file.
Update GRUB to write the configuration:
Reboot your computer
(it may hang on the purple screen, but hopefully for the last time...)
It could be an ACPI problem. You can try to pass the kernel some parameters to disable some of ACPI functions. Note this will result in a loss of features (power management) or performance (lots of polling).
First a little explanation about how to add some kernel parameters, robbed miserably from Htorque:
linux
and add one of the following parameters after a space.You cant try the following options, one each time, they are ordered from more aggressive, likely to work to less aggressive but less functions disabled:
acpi=off
, this one should completely disable acpi. It's the most likely to work, but you will lose all your power management.pci=noacpi
, this will make the kernel to ignore acpi for pic scanning and irq assignment.acpi=noirq
, this will only disable irq assignment through acpi.irqpoll
, this will make the kernel poll for all unattended irq interruptions.noapic
, this will make the kernel ignore the APIC.I have fixed this by adding the following line to the file
/etc/default/halt
:I would:
In most of the cases this happens due to buggy graphics card. E.g In ubuntu 12.04, I had to install all updates (including the ones related to xorg). After that, I installed catalyst 12.10, which solved the problem. I suggest you remove (if installed) laptop-mode-tools (including its dependencies i.e ethtool, sdparm), because it also causes the shutdown to crash.
Strangely enough my problem was resolved when I removed the parameter "now". That is, I was using:
and it was getting stuck,
but when I used:
the problem was solved.
I don't understand why. The problem appeared only when I installed Ubuntu 13.10.
I still have 3 other stations with the same exact hardware but with an older version of Ubuntu 12.04 and I don't have this issue.
I also faced the same situation but could not get it solved through any of the above methods. Although there can be many causes to this problem but i solved this by disabling the USB 3.0 controller in BIOS menu.