Hello. On Thu, Mar 24, 2005 at 07:41:35PM +0100, Lukas Ruf wrote: > thanks for your answer! No problem. > > Using kernel 2.6.11, i've got no Problem to Suspend with: > > echo -n mem > /sys/power/state > > > > how can you bind this to 'Fn-F4' or lid-close-events? You only need acpid. stefan@fairlight:/etc/acpi/events$ cat lidbtn # We need to react on "button lid.*" and "button/lid.*" because # of kernel changes. event=button[ /]lid action=/etc/acpi/actions/sleep.sh stefan@fairlight:/etc/acpi/actions$ cat sleep.sh #!/bin/sh sync /sbin/hwclock --systohc if lsmod | grep '^ath_pci' >/dev/null ; then /sbin/modprobe -r -s ath_pci fi if lsmod | grep '^e1000' >/dev/null ; then /sbin/modprobe -r -s e1000 fi if lsmod | grep '^uhci_hcd' >/dev/null ; then /sbin/modprobe -r -s uhci_ucd fi if lsmod | grep '^ehci_hcd' >/dev/null ; then /sbin/modprobe -r -s ehci_hcd fi echo -n mem > /sys/power/state /sbin/hwclock --hctosys if !(lsmod | grep '^ehci_hcd') >/dev/null ; then /sbin/modprobe -s ehci_hcd fi if !(lsmod | grep '^uhci_hcd') >/dev/null ; then /sbin/modprobe -s uhci_ucd fi if !(lsmod | grep '^e1000') >/dev/null ; then /sbin/modprobe -s e1000 fi if !(lsmod | grep '^ath_pci') >/dev/null ; then /sbin/modprobe -s ath_pci fi /etc/init.d/networking restart I'm not sure if Fn-F4 has an acpi event. With ibm-acpi all Fn F[1-12] keys give an event. :) > Yeah, this one applied plus software-suspend 2 on any 2.6 kernel (so > far) crashed either only the kernel or even the complete > root-partition (January 2005) when trying to hibernate. Hence, I do > not use it anymore.... 2.6.10 and later, it is part of the kernel. I never used the software-suspend 2 patch. I would give it a try again, the features are very nice. ;) Stefan Schmidt
Attachment:
signature.asc
Description: Digital signature