* my acpid lid scipt
@ 2003-03-29 18:20 Kevin Fenzi
0 siblings, 0 replies; only message in thread
From: Kevin Fenzi @ 2003-03-29 18:20 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thought some people might be interested in this...
My lid script for acpid. When you close the lid it turns off the lcd
backlight, locks xscreensaver and throttles it (so it doesn't run a
bunch of cpu intensive savers no one will see).
On opening the lid it turns the backlight back on and untrottles
xscreensaver so you can get the cpu intensive ones.
- --cut--
#!/bin/sh -e
# /etc/acpi/lid-button
#
# radeontool is avail at: http://fdd.com/software/radeon/
#
if [ `cat /proc/acpi/button/lid/C11D/state | awk '{print $2}'` == "open" ]; then
# turn backlight back on
/usr/local/sbin/radeontool light on
/usr/X11R6/bin/xscreensaver-command -unthrottle
elif [ `cat /proc/acpi/button/lid/C11D/state | awk '{print $2}'` == "closed" ]; then
# turn off the backlight
/usr/local/sbin/radeontool light off
# lock the screen
/usr/X11R6/bin/xscreensaver-command -throttle
/usr/X11R6/bin/xscreensaver-command -lock
fi
- --cut--
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
iD8DBQE+heP93imCezTjY0ERAuXuAJ4tIPKNP7qt8tK5PNuZqSqCDdG3gACgnJTN
z7mMvJhmmPet2C0lKJHOLOU=
=vkn3
-----END PGP SIGNATURE-----
-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-03-29 18:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-29 18:20 my acpid lid scipt Kevin Fenzi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox