Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 162325 - sys-apps/hal - hal-system-power-suspend tries dumb kernel before smart hibernate-ram script
Summary: sys-apps/hal - hal-system-power-suspend tries dumb kernel before smart hibern...
Status: RESOLVED DUPLICATE of bug 133743
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL: http://gentoo-wiki.com/HARDWARE_IBM_T...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-16 06:09 UTC by Jon Howell
Modified: 2007-01-16 07:42 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Howell 2007-01-16 06:09:39 UTC
hibernate-ram (part of hibernate-script) provides smart, configurable mechanisms for preparing for and recovering from sleep -- I particularly needed the module blacklist, but it's a pretty general bit of machinery.

hal-system-power-suspend knows about hibernate-ram, but it only tries it as a fallback after just about every other mechanism, including asking the kernel to sleep directly! (echo "mem" > /sys/power/state)

I moved the check for hibernate-ram up to the top of the if-cascade, and now the whole suspend chain (from gnome-power-manager, through hald, through hibernate-ram, to kernel sleep) does the right thing, including configurable module unloading during sleep.


Reproducible: Always

Steps to Reproduce:
1. Install a kernel with /sys/power state
2. Install hibernate-script, hald, and gnome-power-manager
3. Sleep the computer
Actual Results:  
hibernate-ram doesn't run, so no kernel modules get unloaded at suspend, or reloaded at resume.

Expected Results:  
hald should invoke hibernate-ram in preference to directly whanging the kernel.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-01-16 07:42:13 UTC

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