You are not logged in.

#1 2007-05-16 12:00:01

pholie
Member
Registered: 2005-06-04
Posts: 234

µswsusp request

anyone tried µswsusp (also known as s2ram and s2disk)?

i found only this little howto on http://gentoo-wiki.com/HARDWARE_Asus_A6U#Suspend_to_RAM

Last edited by pholie (2007-05-16 12:02:38)

Offline

#2 2007-05-16 12:10:29

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: µswsusp request

There's "suspend" package in AUR, which is what you're looking for.

Offline

#3 2007-05-16 12:11:18

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: µswsusp request

and there should be some documentation in the kernel source under Documentation/. Just grab it from kernel.org.

James

Offline

#4 2007-06-03 18:00:39

atlas95
Member
Registered: 2007-02-11
Posts: 98

Re: µswsusp request

Hello,
Please could you make the change for have hal which use by default s2disk when we select hibernate in gnome?
s2disk only works by typing sudo s2disk at hand, in ubuntu there is a patch for use s2disk...

Please,please ... smile

Offline

#5 2007-06-03 21:16:43

tardo
Member
Registered: 2006-07-15
Posts: 526

Re: µswsusp request

link us to the patch

Offline

#6 2007-06-04 12:11:54

atlas95
Member
Registered: 2007-02-11
Posts: 98

Offline

#7 2007-06-06 12:14:56

atlas95
Member
Registered: 2007-02-11
Posts: 98

Re: µswsusp request

Up!
Could you adapt this ubuntu hal script for arch please smile

Offline

#8 2007-06-07 20:47:21

tardo
Member
Registered: 2006-07-15
Posts: 526

Re: µswsusp request

Add a comment to the page in AUR. If you can't wait, just download the script to /usr/lib/hal/scripts/ and replace /sbin/{s2disk,s2ram} with /usr/sbin/{s2disk,s2ram}

Last edited by tardo (2007-06-07 20:53:18)

Offline

#9 2007-06-07 22:30:00

atlas95
Member
Registered: 2007-02-11
Posts: 98

Re: µswsusp request

i will try tomorrow ! Thanks yet tardo wink

Offline

#10 2007-06-07 23:49:23

tardo
Member
Registered: 2006-07-15
Posts: 526

Re: µswsusp request

Actually... the file already exists on your system.

Offline

#11 2007-06-18 07:24:53

atlas95
Member
Registered: 2007-02-11
Posts: 98

Re: µswsusp request

Hello,
I have allready s2disk not working when i click hibernate or close my lid ... sad
The ubuntu dbus/acpi script seem not working with archlinux ...
Anybody can modify it please? Tardo ? big_smile

Offline

#12 2007-06-26 19:59:23

atlas95
Member
Registered: 2007-02-11
Posts: 98

Re: µswsusp request

Up!

Offline

#13 2007-07-08 21:03:40

atlas95
Member
Registered: 2007-02-11
Posts: 98

Re: µswsusp request

This allways doesn't work, i havn't find the solution, please could you rehelp me to find the solution?
µIn ubuntu this work allways http://blog.paulbetts.org/index.php/200 … -and-edgy/  but in archlinux sad

Offline

#14 2007-07-12 08:29:25

atlas95
Member
Registered: 2007-02-11
Posts: 98

Re: µswsusp request

Up!
Please please help me ! smile

Offline

#15 2007-07-13 15:00:30

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: µswsusp request

> diff -Naur /usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux hal-system-power-hibernate-linux
--- /usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux 2007-03-30 13:53:43.000000000 -0400
+++ hal-system-power-hibernate-linux    2007-07-13 10:52:47.000000000 -0400
@@ -39,12 +39,16 @@

 #Other distros just need to have *any* tools installed
 else
-       if [ -x "/usr/bin/powersave" ] ; then
-               $POWERSAVED_SUSPEND2DISK
+       if [ -x "/sbin/s2disk" ] ; then
+               # uswsusp tools installed
+               /sbin/s2disk
                RET=$?
        elif [ -x "/usr/sbin/pmi" ] ; then
                /usr/sbin/pmi action hibernate force
                RET=$?
+       elif [ -x "/usr/bin/powersave" ] ; then
+               $POWERSAVED_SUSPEND2DISK
+               RET=$?
        elif [ -x "/usr/sbin/pm-hibernate" ] ; then
                /usr/sbin/pm-hibernate
                RET=$?
@@ -52,10 +56,6 @@
                # Suspend2 tools installed
                /usr/sbin/hibernate --force
                RET=$?
-       elif [ -x "/sbin/s2disk" ] ; then
-               # uswsusp tools installed
-               /sbin/s2disk
-               RET=$?
        elif [ -x "/etc/acpi/hibernate.sh" ] ; then
                # acpi-support installed
                /etc/acpi/hibernate.sh force
@@ -66,8 +66,8 @@
                RET=$?
        else
                unsupported
-               fi
        fi
+fi

 #Refresh devices as a resume can do funny things
 for type in button battery ac_adapter
> diff -Naur /usr/lib/hal/scripts/linux/hal-system-power-suspend-linux hal-system-power-suspend-linux
--- /usr/lib/hal/scripts/linux/hal-system-power-suspend-linux   2007-03-30 13:53:43.000000000 -0400
+++ hal-system-power-suspend-linux      2007-07-13 10:52:44.000000000 -0400
@@ -80,19 +80,19 @@

 #Other distros just need to have *any* tools installed
 else
-       if [ -x "/usr/bin/powersave" ] ; then
-           $POWERSAVED_SUSPEND2RAM
-           RET=$?
+       if [ -x "/sbin/s2ram" ] ; then
+           /sbin/s2ram
+          RET=$?
        elif [ -x "/usr/sbin/pmi" ] ; then
            /usr/sbin/pmi action suspend force
            RET=$?
+       elif [ -x "/usr/bin/powersave" ] ; then
+           $POWERSAVED_SUSPEND2RAM
+           RET=$?
        elif [ -x "/usr/sbin/hibernate" ] ; then
            # Use hibernate configured for suspend-to-ram
            /usr/sbin/hibernate -F/etc/hibernate/ram.conf
            RET=$?
-       elif [ -x "/sbin/s2ram" ] ; then
-           /sbin/s2ram
-          RET=$?
        elif [ -x "/etc/acpi/sleep.sh" ] ; then
            # Use acpi-support for suspend to ram
            /etc/acpi/sleep.sh force

As you can see with those diff, the only difference in the files are the order in which the script is looking for the bin for suspending. The diff just put "/sbin/s2disk" and "/sbin/s2ram" as the first choice for HAL.

So just install uswsusp and adapt "hal-system-power-suspend-linux" and "hal-system-power-hibernate-linux" to the suspend method you want.

Offline

Board footer

Powered by FluxBB