Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 158178

Summary: hal-system-power-suspend (changing scripts order)
Product: Gentoo Linux Reporter: Silas Francisco <silas>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED DUPLICATE    
Severity: trivial    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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 ***