My old latitude x300 does not resume after a good hibernation !!!
After a period of debugging I can conclude that the reason (which I was not able to heal) is that the swap image of the hibernation was not found from its flag so I decided to use pm-hibernate passing resume=/dev/xxx as a kernel flag:
- add resume=/dev/xxx in your grub menu as a kernel option where xxx is the device where you have your swap partition that you can find as follows:
cat /proc/swapsFilename Type Size Used Priority/dev/sda5 partition 1959888 0 -1
usually this solve the problem, if not it's a bigger one ;) but anyway I have a workaround as usual quick and dirty one:
- install hibernate package: sudo apt-get install hibernate
- modify as follows the hal file corresponding to the hibernation : /usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux
from:# We only support pm-toolsif [ -x /usr/sbin/pm-hibernate ] ; then/usr/sbin/pm-hibernate $QUIRKSRET=$?elseunsupportedfi
to:
# We only support hibernate since pm-tools not resumingif [ -x /usr/sbin/hibernate ] ; then/usr/sbin/hibernate --forceRET=$?elif [ -x /usr/sbin/pm-hibernate ] ; then/usr/sbin/pm-hibernate $QUIRKSRET=$?elseunsupportedfi
- stop and start hal : sudo service hal stop ; sudo service hal start
If you want to understand everything better take a big breath and start reading the references:
on DEBUG hibernation: http://www.mjmwired.net/kernel/Documentation/power/basic-pm-debugging.txt#178
on SUSPEND: https://wiki.ubuntu.com/UnderstandingSuspend
on HIBERNATE instead of pm-hibernate: https://wiki.archlinux.org/index.php/Suspending_to_Disk_with_hibernate-script#Hibernate_tricks_with_the_hibernate.script
No comments:
Post a Comment