Auto-hibernate due to inactivity results in a resumed session with hanged gnome-power-manager preventing the system from entering hibernate again
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-power-manager (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gnome-power-manager
1) Ubuntu 8.10 (Intrepid)
2) 2.24.0-0ubuntu8.1
3) I expected the system to resume from hibernate properly without outputting error messages or hanging gnome-power-
4) I am able to manually hibernate the system from the GNOME menu and resume without issue. However, if the system hibernates automatically after a period of inactivity, when the system is resumed I see the below error message. In addition, it appears that gnome-power-manager has hanged because selecting hibernate from the GNOME menu does nothing. In addition, when I attempt to shut down I am warned that gnome-power-manager is not responding. Killing gnome-power-manager and restarting it restores hibernate functionality.
Error Message: http://
WORKAROUND:
This issue doesn't arise if the system uses uswsusp rather than the kernel's method of hibernation. So, the fix is to force gnome-power- management to use s2disk rather than the kernel method. This is fairly simple to do:
Download the attached script "hal-system- power-hibernate -linux"
sudo apt-get install uswsusp
sudo s2disk ##Test to see if s2disk works. CAUTION: make sure data is saved for this test!
sudo mv /usr/lib/ hal/scripts/ linux/hal- system- power-hibernate -linux /usr/lib/ hal/scripts/ linux/hal- system- power-hibernate -linux. backup hal/scripts/ linux/ hal/scripts/ linux/*
sudo cp hal-system-* /usr/lib/
sudo chmod 755 /usr/lib/
Now, gnome-power-manager should use s2disk to hibernate fixing my reported issue.
Note: I found these instructions from http:// blog.paulbetts. org/index. php/2007/ 02/11/fixing- software- suspend- hibernate- with-uswsusp- in-ubuntu- feisty- and-edgy/ #comment- 17671. The only change I made was to modify the script to reflect the location of the s2disk binary in Ubuntu 8.10.