You are not logged in.
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
There's "suspend" package in AUR, which is what you're looking for.
Offline
and there should be some documentation in the kernel source under Documentation/. Just grab it from kernel.org.
James
Offline
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 ...
Offline
link us to the patch
Offline
Offline
Up!
Could you adapt this ubuntu hal script for arch please
Offline
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
i will try tomorrow ! Thanks yet tardo
Offline
Actually... the file already exists on your system.
Offline
Hello,
I have allready s2disk not working when i click hibernate or close my lid ...
The ubuntu dbus/acpi script seem not working with archlinux ...
Anybody can modify it please? Tardo ?
Offline
Up!
Offline
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
Offline
Up!
Please please help me !
Offline
> 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