Ubuntu 11.04 64 bit hangs at shutdown

From WickyWiki

Ubuntu 11.04 64 bit

Ubuntu 12.04 64 bit same behaviour


Problem (unsolved)

At shutdown or restart the computer may or may not hang.

  • doing a shutdown from the desktop will logout instead most of the times (9 out of 10) and show the login screen
  • shutting down does not complete, sometimes a trace shows up that mentions FGLRX (ATI Video driver), it does not timeout, it keeps hanging indefinitely
  • seems to be happening more often when a truecrypt partition is mounted

Suggestions and reports:

Suggestions

Modify grub configuration to show log messages

sudo gedit /etc/default/grub

Change:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to:

GRUB_CMDLINE_LINUX_DEFAULT=""
sudo update-grub


ACPI off (failed)

Modify grub configuration as above to turn off ACPI (Advanced Configuration and Power Interface) at boot.

GRUB_CMDLINE_LINUX_DEFAULT="acpi=off"

Pre-stop script (failed)

Add the pre-stop script to /etc/init/dbus.conf before 'exec'

sudo gedit /etc/init/dbus.conf
pre-stop script
   trap "TERM signal" TERM
   /bin/umount -a -t cifs -f -l
   trap - TERM
end script

Update ATI driver (failed)

For ATI Radeon HD 5700 Series, go to www.ati.com to download latest.

sudo sh ./ati-driver-installer-11-6-x86.x86_64.run --buildpkg Ubuntu/natty
sudo dpkg -i fglrx*.deb