[ltp] there is even more to it! (Re: HOWTO - acpid and ibm-acpi on a T42p)

Fionn Behrens linux-thinkpad@linux-thinkpad.org
Wed, 15 Dec 2004 15:53:33 +0100


--=-eEYr2vRfeMkFGpisjNIA
Content-Type: multipart/mixed; boundary="=-5AaC83YUOrzgNAS6i2tW"


--=-5AaC83YUOrzgNAS6i2tW
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Am Dienstag, den 14.12.2004, 18:15 -0500 schrieb morpheus:
> Hi,
> After lots of trial and error, I managed to get ibm-acpi working with
> most of the Fn-Fx keys on my T42p.  Here is a simple HOWTO:
>=20
> First, compile and install ibm-acpi, which you can get from http://ibm-
> acpi.sourceforge.net/
>=20
> Click on README for installation details.
>=20
> Don't forget to do:
> # modprobe ibm_acpi
> to enable the module after installation.  Also, if you want it to
> automatically enable in Fedora all the time, edit /etc/rc.d/rc.local and
> add the line above to this file.

I suggest you add "experimental=3D1" to this.
That way you can play with all the lights on the thinkpad. You can even
use the Power-LED for something sensible, e.g. let it flash when new
mail has arrived.

Appended as an example is an S3 script that lets the sleep light BLINK
while going to sleep and while waking up. Nifty! ;-)

> For the T42p, the ibm-acpi /proc/acpi/ibm/video cannot be used to turn
> the LCD backlight on and off.  Fortunately there is a package called
> radeontool that can do this.  You can apt-get it or get an RPM from
> rpm.pbone.net.

Ha! It is way simpler than you think. Just use
=20
xset -display :0 dpms force standby

That way, the light goes back on as soon as you strike any key or use
the mouse. I prefer that, personally.

Appended as an example is an action script "blank.sh"

I have also appended a script that prevents accidential shutdowns when
pressing the power button by opening a requester, asking you what to do.
It also catches misled events when you wake up the system using the
power button (and certainly dont want to shut it down then). For this to
work you need the "gmessage" package installed.

Have fun!

Fionn

--=20
Software patents    -  not allowed in Europe | See whats going on:
Archiving Email     -  patented in Europe    | http://freepatents.org/
E-Shopping Baskets  -  patented in Europe    | Become active easily:
Cross-compiling     -  patented in Europe    | http://aktiv.ffii.org/eubsa/=
en

--=-5AaC83YUOrzgNAS6i2tW
Content-Disposition: attachment; filename=sleep.sh
Content-Type: application/x-shellscript; name=sleep.sh
Content-Transfer-Encoding: base64

IyEvYmluL3NoCiMgTmlmdHkgYmxpbmsnbidzbGVlcCBzY3JpcHQgYnkgRmlvbm4gOy0pCgojIGJs
aW5rIHRoZSBzbGVlcCBsZWQKZWNobyAiNyBibGluayIgPi9wcm9jL2FjcGkvaWJtL2xlZAoKIyBy
ZW1vdmUgbW9kdWxlcyB3aGljaCBkb250IGxpa2Ugc2xlZXAgKG5vIGxvbmdlciBuZWNlc3Nhcnkg
d2l0aCAyLjYuOSkKI3JtbW9kIGlwdzIxMDAKI3JtbW9kIGVoY2ktaGNkCiNzbGVlcCAwLjUKCiMg
c3dpdGNoIG9mZiB0aGUgYmF5IGxpZ2h0IChzYXZlcyBzb21lIG1BKQplY2hvICI0IG9mZiIgPi9w
cm9jL2FjcGkvaWJtL2xlZAoKIyBnb3QgdG8gc2xlZXAKZWNobyAzID4vcHJvYy9hY3BpL3NsZWVw
CgojIGJsaW5rIHRoZSBzbGVlcCBsZWQKZWNobyAiNyBibGluayIgPi9wcm9jL2FjcGkvaWJtL2xl
ZAojIHN3aXRjaCBvbiB0aGUgYmF5IGxpZ2h0CmVjaG8gIjQgb24iID4vcHJvYy9hY3BpL2libS9s
ZWQKc2xlZXAgMwoKIyBnZXQgd2xhbiBiYWNrIG9ubGluZQojbW9kcHJvYmUgaXB3MjEwMAoKIyB0
aGUgbXVsdGNvdW50IGdldHMgbG9zdCB3aGlsZSBzbGVlcGluZwpoZHBhcm0gLW0gMTYgL2Rldi9o
ZGEKCiMgc3dpdGNoIG9mZiB0aGUgc2xlZXAgbGVkCmVjaG8gIjcgb2ZmIiA+L3Byb2MvYWNwaS9p
Ym0vbGVkCg==


--=-5AaC83YUOrzgNAS6i2tW
Content-Disposition: attachment; filename=blank.sh
Content-Type: application/x-shellscript; name=blank.sh
Content-Transfer-Encoding: base64

IyEvYmluL2Jhc2gKCi91c3IvWDExUjYvYmluL3hzZXQgLWRpc3BsYXkgOjAgZHBtcyBmb3JjZSBz
dGFuZGJ5Cg==


--=-5AaC83YUOrzgNAS6i2tW
Content-Disposition: attachment; filename=powerbtn.sh
Content-Type: application/x-shellscript; name=powerbtn.sh
Content-Transfer-Encoding: base64

IyEvYmluL3NoCiMgL2V0Yy9hY3BpL3Bvd2VyYnRuLnNoCiMgSW5pdGlhdGVzIGEgc2h1dGRvd24g
d2hlbiB0aGUgcG93ZXIgcHV0dG9uIGhhcyBiZWVuCiMgcHJlc3NlZC4gKGltcHJvdmVkIDIwMDQg
YnkgRmlvbm4pCgppZiBwcyAtQWYgfCBncmVwIC1xICdba11kZXNrdG9wJyAmJiB0ZXN0IC1mIC91
c3IvYmluL2Rjb3AKdGhlbgogICAgZGNvcCAtLWFsbC11c2VycyBrc21zZXJ2ZXIga3Ntc2VydmVy
IGxvZ291dCAwIDIgMCAmJiBleGl0IDAKZWxpZiB0YWlsIC1uIDUgL3Zhci9sb2cvbWVzc2FnZXMg
fCBncmVwICdSZXN0YXJ0aW5nIHRhc2tzLi4uIGRvbmUnCnRoZW4KICAgIGVjaG8gIlJlc3VtaW5n
IGZyb20gc2xlZXAsIHNvIG5vdCBhY3RpbmcsIGV4aXRlZC4iCiAgICBleGl0IDAKZWxzZQogICAg
Z21lc3NhZ2UgLWRpc3BsYXkgOjAgLWJ1dHRvbnMgIlNodXRkb3duOjEsSGliZXJuYXRlOjIsU3Vz
cGVuZDozLENvbnRpbnVlOjAiIC1kZWZhdWx0IENvbnRpbnVlIC10aXRsZSAiUG93ZXJidXR0b24i
IC1iZyByZWQgLWZnIHllbGxvdyAtZm4gIkhlbHZldGljYSBib2xkIDExIiAtY2VudGVyIC10aW1l
b3V0IDE1ICJDaG9vc2UgYW4gT3B0aW9uIgogICAgY2FzZSAkPyBpbgogICAgMSkKICAgICAgZ21l
c3NhZ2UgLWRpc3BsYXkgOjAgLXRpbWVvdXQgNCAtYmcgcmVkIC1mZyB5ZWxsb3cgLWZuICJIZWx2
ZXRpY2EgYm9sZCAxMSIgIlN5c3RlbSBpcyBzaHV0dGluZyBkb3duLi4uIgogICAgICBnbm9tZS1z
ZXNzaW9uLXNhdmUgLS1raWxsCiAgICAgIHNsZWVwIDUKICAgICAgL3NiaW4vc2h1dGRvd24gLWgg
bm93ICJQb3dlciBidXR0b24gcHJlc3NlZCIKICAgICAgOzsKICAgIDIpCiAgICAgIGdtZXNzYWdl
IC1kaXNwbGF5IDowIC10aW1lb3V0IDQgLWJnIHJlZCAtZmcgeWVsbG93IC1mbiAiSGVsdmV0aWNh
IGJvbGQgMTEiICJIaWJlcm5hdGlvbiBhY3RpdmF0ZWQuLi4iCiAgICAgIDs7CiAgICAzKQogICAg
ICBnbWVzc2FnZSAtZGlzcGxheSA6MCAtdGltZW91dCAyIC1iZyByZWQgLWZnIHllbGxvdyAtZm4g
IkhlbHZldGljYSBib2xkIDExIiAiZ29pbmcgdG8gc2xlZXAuLi4iCiAgICAgIC9ldGMvYWNwaS9h
Y3Rpb25zL3NsZWVwLnNoCiAgICAgIDs7CiAgICBlc2FjCmZpCg==


--=-5AaC83YUOrzgNAS6i2tW--

--=-eEYr2vRfeMkFGpisjNIA
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Dies ist ein digital signierter Nachrichtenteil

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQBBwE/tjkvYSI4bFywRAq+qAKCMYxhwoqUE3WT/NgVbhXQf7MCGrgCfRq2h
9H/H2aqnI5I6Q8H8qZAChu0=
=q9uK
-----END PGP SIGNATURE-----

--=-eEYr2vRfeMkFGpisjNIA--