Ubuntu 11.04 64 bit hangs at shutdown: Difference between revisions
From WickyWiki
No edit summary |
|||
| Line 4: | Line 4: | ||
Ubuntu 11.04 64 bit | Ubuntu 11.04 64 bit | ||
Ubuntu 12.04 64 bit | Ubuntu 12.04 64 bit | ||
== Modify grub configuration to show log messages == | |||
== | |||
Modify grub configuration to show log messages | |||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
| Line 55: | Line 31: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Unmount TrueCrypt volumes at reboot and shutdown == | |||
About run levels: | |||
* http://www.debian-administration.org/articles/212 | |||
<syntaxhighlight lang=bash> | |||
sudo gedit /etc/init.d/umounttruecrypt.sh | |||
</syntaxhighlight> | |||
<blockquote> | |||
<syntaxhighlight lang=bash> | |||
#!/bin/sh | |||
if [ -f /usr/bin/truecrypt] ; then | |||
log_daemon_msg "Stopping TrueCrypt" "truecrypt" | |||
/usr/bin/truecrypt -d | |||
log_end_msg 0 | |||
else | |||
log_failure_msg "TrueCrypt not found" | |||
fi | |||
exit 0 | |||
</syntaxhighlight> | |||
</blockquote> | |||
<syntaxhighlight lang=bash> | |||
#make executable: | |||
sudo chmod +x /etc/init.d/umounttruecrypt.sh | |||
#execute at reboot: | |||
sudo ln -s /etc/init.d/umounttruecrypt.sh /etc/rc0.d/K99umounttruecrypt.sh | |||
#execute at shutdown: | |||
sudo ln -s /etc/init.d/umounttruecrypt.sh /etc/rc6.d/K99umounttruecrypt.sh | |||
</syntaxhighlight> | |||
= Archive = | |||
== ACPI off (failed) == | == ACPI off (failed) == | ||
| Line 66: | Line 77: | ||
</blockquote> | </blockquote> | ||
== | == shutdown umount script (failed) == | ||
Add the pre-stop script to /etc/init/dbus.conf before 'exec' | Add the pre-stop script to /etc/init/dbus.conf before 'exec' | ||
| Line 92: | Line 103: | ||
sudo dpkg -i fglrx*.deb | sudo dpkg -i fglrx*.deb | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Notes == | |||
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 proprietary video driver), it does not timeout, it keeps hanging indefinitely | |||
* seems to be happening more often when a truecrypt partition is mounted | |||
** https://wiki.archlinux.org/index.php/TrueCrypt#Safely_unmount_and_unmap_volumes_.28on_shutdown.29 | |||
Suggestions and reports: | |||
* (20120619) http://forum.ubuntu-nl.org/installatie/pc-sluit-meestal-niet-af-!/ | |||
* (20121107) http://forums.linuxmint.com/viewtopic.php?f=90&t=101548&p=577156&hilit=mint+black+screen | |||
* http://www.brighthub.com/computing/linux/articles/39504.aspx | |||
** ACPI (Advanced Configuration and Power Interface) | |||
* https://bugs.launchpad.net/ubuntu/+source/samba/+bug/211631 | |||
* https://bugs.launchpad.net/ubuntu/+source/linux/+bug/577897 (expired) | |||
** seems ACPI related, "with the latest kernel (2.6.34-999-generic #201005121008), it works" | |||
* https://bugs.launchpad.net/ubuntu/+bug/613897 | |||
** "I finally managed to fix the problem by removing the acpi=off from my grub kernel options... I had a look at '/etc/init.d/halt' script, I noticed that in case of shutdown, it called the /etc/init.d/ups-monitor which was not installed..." | |||
* https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/126140 (2007) | |||
** "created an init.d script to run at shutdown. All the script does is remove the snd_hda_intel module at shutdown (rmmod snd-hda-intel) and things work smoothly. See this thread for more detail: http://ubuntuforums.org/showthread.php?t=500268 " | |||
Revision as of 22:04, 6 December 2012
Ubuntu 11.04 64 bit
Ubuntu 12.04 64 bit
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
Unmount TrueCrypt volumes at reboot and shutdown
About run levels:
sudo gedit /etc/init.d/umounttruecrypt.sh
#!/bin/sh if [ -f /usr/bin/truecrypt] ; then log_daemon_msg "Stopping TrueCrypt" "truecrypt" /usr/bin/truecrypt -d log_end_msg 0 else log_failure_msg "TrueCrypt not found" fi exit 0
#make executable: sudo chmod +x /etc/init.d/umounttruecrypt.sh #execute at reboot: sudo ln -s /etc/init.d/umounttruecrypt.sh /etc/rc0.d/K99umounttruecrypt.sh #execute at shutdown: sudo ln -s /etc/init.d/umounttruecrypt.sh /etc/rc6.d/K99umounttruecrypt.sh
Archive
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"
shutdown umount 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
Notes
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 proprietary 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:
- (20120619) http://forum.ubuntu-nl.org/installatie/pc-sluit-meestal-niet-af-!/
- (20121107) http://forums.linuxmint.com/viewtopic.php?f=90&t=101548&p=577156&hilit=mint+black+screen
- http://www.brighthub.com/computing/linux/articles/39504.aspx
- ACPI (Advanced Configuration and Power Interface)
- https://bugs.launchpad.net/ubuntu/+source/samba/+bug/211631
- https://bugs.launchpad.net/ubuntu/+source/linux/+bug/577897 (expired)
- seems ACPI related, "with the latest kernel (2.6.34-999-generic #201005121008), it works"
- https://bugs.launchpad.net/ubuntu/+bug/613897
- "I finally managed to fix the problem by removing the acpi=off from my grub kernel options... I had a look at '/etc/init.d/halt' script, I noticed that in case of shutdown, it called the /etc/init.d/ups-monitor which was not installed..."
- https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/126140 (2007)
- "created an init.d script to run at shutdown. All the script does is remove the snd_hda_intel module at shutdown (rmmod snd-hda-intel) and things work smoothly. See this thread for more detail: http://ubuntuforums.org/showthread.php?t=500268 "