[ltp] Re: Re: How to handle Fn-F5 and other special keys with latest kernels ?

Frédéric Boiteux linux-thinkpad@linux-thinkpad.org
Wed, 16 Sep 2009 16:27:00 +0200


Le Wed, 16 Sep 2009 07:57:54 -0400,
Robert Tomsick <robert@tomsick.net> a écrit :

> I did something similar by catching the relevant ACPI events and
> writing a handler script which handles everything.  (I never could
> get rfkill working reliably, so this was the next best option.)
> 
> For me (ThinkPad X61s), the ACPI events I had to handle were:
> 
> ibm/hotkey HKEY 00000080 00001005
> 	generated when I pressed Fn-F5
> ibm/hotkey HKEY 00000080 00007000
> 	generated when I flipped the killswitch on the case.

FYI, on latest kernels, the Fn-F5 no more generates an ACPI event, only
an input key event, brought by HAL. So the question is : how to get
this HAL / input key event to possibly call a dedicated script, at the
system level.

  with regards,
	Fred.