Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152829 - hal-0.5.7-r3 suspend script doesn't call hibernate-ram
Summary: hal-0.5.7-r3 suspend script doesn't call hibernate-ram
Status: RESOLVED DUPLICATE of bug 133743
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-25 17:40 UTC by Jose Marino
Modified: 2006-10-26 00:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to fix suspend script (suspend.patch,697 bytes, patch)
2006-10-25 17:41 UTC, Jose Marino
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jose Marino 2006-10-25 17:40:01 UTC
I'm running suspend2-sources-2.6.16-r8 with hibernate-script-1.93-r6
Hibernation and suspend to ram work fine by running 'hibernate' and 'hibernate-ram' from the command line.

However, when trying to use gnome-power-manager-2.14.3 I run into problems. Hibernation works fine but with suspend to ram the laptop can't come back up from suspend.

I found out that g-p-m uses hal to do the suspend and hibernation. The suspend operation is performed by the script: /usr/share/hal/scripts/hal-system-power-suspend
The script checks for /sys/power/state before /usr/sbin/hibernate-ram and so it attemps to use the raw kernel sysfs interface to suspend.
I have an ATI card which makes this not work. The only way my laptop can suspend is by calling the hibernate-ram script.

The hibernate script works fine because the script /usr/share/hal/scripts/hal-system-power-hibernate checks for /usr/sbin/hibernate before checking for /sys/power/state.

I think it makes sense to check for the suspend2 scripts before attempting to use the raw kernel interface. I don't quite understand why this is so in the hibernate script but not in the suspend one.
Comment 1 Jose Marino 2006-10-25 17:41:52 UTC
Created attachment 100499 [details, diff]
patch to fix suspend script
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-10-26 00:24:16 UTC

*** This bug has been marked as a duplicate of 133743 ***