Re: [ACPI-sppt] Problems with S3 and S4 Suspend on Compaq nx9005 Notebook
Sebastian Henschel <[email protected]>
| Newsgroups | gmane.linux.acpi.support |
|---|---|
| Message-ID | <[email protected]> |
hello stephan.. * Stephan Zaubzer <[email protected]> [2003-08-04 09:10 +0200]: > I tried suspend with the 2.4.21 kernel and acpi patch, but echo 3 > > /proc/acpi/sleep did nothing. Also with 0,1,2,4,5 nothing at all happened. I > compiled 2.6.0-test2 Kernel, on which echo 3 > /proc/acpi/sleep worked. When there are no S3 and S4 within kernel 2.4.x + acpi. you can have S4 if you additionally apply the swsusp-patch from http://swsusp.sf.net. > pressing the powerbutton, the laptop powered up, but only about half a > second after pressing the powerbutton it switched of completely! After > pressing powerbutton again, the laptop booted as usual... same problem here when using S1. powerbutton is the only button to wake up the machine. unfortunately, also an event is sent to acpid after pressing it. so, the acpid-routine on-powerbutton-press is called which issues "init 0". i got around it by creating a lock-file when going to sleep and which is checked and gets deleted when waking up. see my attached /etc/acpi/default.sh for an idea how to set it up. hth, sebastian -- ::: sebastian henschel ::: kodeaffe ::: lynx -source http://www.kodeaffe.de/shensche.pub | gpg --import
default.sh
(application/x-sh, 1.1 KB)
#!/bin/sh
# Default acpi script that takes an entry for all actions
set $*
SCRIPTS=/etc/acpi
# Take care about the way events are reported
ev_type=`echo "$1" | cut -d/ -f1`
if [ "$ev_type" = "$1" ]; then
event="$2";
else
event=`echo "$1" | cut -d/ -f2`
fi
case "$ev_type" in
button)
case "$event" in
power)
if [ -e /var/lock/sleep ]; then
${SCRIPTS}/wakeup $*
else
/sbin/init 0
fi
;;
lid)
# lid does not work after wakeup anymore :(
# ${SCRIPTS}/sleep $*
;;
*)
logger "acpid default: event $event is not defined"
;;
esac
;;
battery)
case "$event" in
BAT1)
${SCRIPTS}/ac_adapter $*
;;
*)
logger "acpid default: event $event is not defined"
;;
esac
;;
*)
logger "acpid default: ACPI type $1 / event $2 is not defined"
;;
esac
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/LilSreHfL3pi+bQRAiVoAJ9h+sX8cUwBVghLiH5irOIcDSoJDACfRCAb BnGQCstmLC9s1hCwADqmekc= =kC1D -----END PGP SIGNATURE-----