[ltp] HOWTO - acpid and ibm-acpi on a T42p

Lenz Grimmer linux-thinkpad@linux-thinkpad.org
Wed, 22 Dec 2004 17:26:50 +0100 (CET)


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

Hi,

On Wed, 15 Dec 2004, morpheus wrote:

> > If you want to enable the Fn-Keys, make sure to also pass 
> > "hotkey=enable" to the ibm_acpi module (either as an option to 
> > modprobe or by adding it to /etc/modprobe.conf
>
> Yes, you are right...the ibm_acpi README is a bit vague on this, but if
> you want access to specific hotkeys, you can do:
> echo enable > /proc/acpi/ibm/hotkey
> echo 0xffff > /proc/acpi/ibm/hotkey
> after modprobe ibm_acpi
> 
> (where ffff is a bitmask for the keys as described in the README)

I think it's simpler to put it in modprobe.conf, so it's automatically 
enabled once the module is loaded:

  options ibm_acpi experimental=1 hotkey=enable,0xffff

I placed this into /etc/modprobe.conf.local on my SUSE 9.2 system.

> Cool, I didn't know that you could get status by not specifying any
> options.

Yes, I was not aware of it either for quite some time :)

> My method has the disadvantage that if the light comes back on by 
> itself, the file isn't deleted so you must press Fn-F3 twice next time 
> to turn it off again.  The disadvantage of your method is if radeontool 
> doesn't return the proper value (i.e. always returns "on" even when it's 
> "off") you can never get it to come back.  Have you found the radeontool 
> light status value to always be accurate?  The "appears to be" is kind 
> of scary...

So far it has never failed on me.

Bye,
	LenZ
- -- 
- ------------------------------------------------------------------
 Lenz Grimmer <lenz@grimmer.com>                             -o)
 [ICQ: 160767607 | Jabber: LenZGr@jabber.org]                /\\
 http://www.lenzg.org/                                       V_V
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/

iD8DBQFByaBLSVDhKrJykfIRAjFxAJ9m212z46QVSKnIdhmU08OSRSPs0wCdHFcA
Tl0jwgNq3qjcL9IbQ2rUeIg=
=m44x
-----END PGP SIGNATURE-----