Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 158178 - hal-system-power-suspend (changing scripts order)
Summary: hal-system-power-suspend (changing scripts order)
Status: RESOLVED DUPLICATE of bug 133743
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-14 16:56 UTC by Silas Francisco
Modified: 2006-12-14 17:26 UTC (History)
0 users

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 Silas Francisco 2006-12-14 16:56:50 UTC
Maybe I'm wrong but, in /usr/share/hal/scripts/hal-system-power-suspend I would put:

        elif [ -x "/usr/sbin/hibernate-ram" ] ; then
           /usr/sbin/hibernate-ram
           RET=$?
        elif [ -w "/sys/power/state" ] ; then
            # Use the raw kernel sysfs interface
            echo "mem" > /sys/power/state
            RET=$?

instead of:

        elif [ -w "/sys/power/state" ] ; then
            # Use the raw kernel sysfs interface
            echo "mem" > /sys/power/state
            RET=$?
        elif [ -x "/usr/sbin/hibernate-ram" ] ; then
           /usr/sbin/hibernate-ram
           RET=$?

Because if you have a hibernate-ram script, maybe you would like to use it by default in gnome power manager.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-12-14 17:26:38 UTC

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