From: Kevin Fenzi <kevin-acpi-+bl/7iUgRMUAvxtiuMwx3w@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: my acpid lid scipt
Date: Sat, 29 Mar 2003 11:20:45 -0700 [thread overview]
Message-ID: <20030329182046.2935AF7E5F@voldemort.scrye.com> (raw)
-----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
reply other threads:[~2003-03-29 18:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030329182046.2935AF7E5F@voldemort.scrye.com \
--to=kevin-acpi-+bl/7iugrmuavxtiumwx3w@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox