[ltp] Re: IBM ThinkPad R51 1830-BRG - experiences?

Peter Frühberger linux-thinkpad@linux-thinkpad.org
Wed, 09 Jun 2004 21:23:18 +0200


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Piotr Gawrysiak wrote:
| Put a script in /etc/acpi/events

a script could look like this:
/etc/acpi/events/sleep:
#Script Begin
event=button/sleep
action=/etc/acpi/suspend.sh
#End

/etc/acpi/suspend.sh:
#Begin
#!/bin/bash
echo 3 > /proc/acpi/sleep
#End

don`t forget to
chmod +x suspend.sh

perhaps you have to unload some modules in order to get it working
flawlessly

If you want to use another event, you can stop acpid for testing your
events and do a "cat /proc/acpi/events"
No close your lid, press your sleep button etc. und look what events you
are receiving.
This is only working when you are booting with enabled acpi, of course.

ciao
Peter



- --
Key-ID: 0x1A995A9B
Fingerprint: 4606 DA19 EC2E 9A0B 0157  C81B DA07 CF63 1A99 5A9B
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAx2Ol2gfPYxqZWpsRAvZzAJ9TS0kj3cZt5O59naYsmFXy1ToOBACg4iin
ep+HG01xHMjWVVvAS/8ClfU=
=CxBL
-----END PGP SIGNATURE-----