[ltp] How to handle Fn-F5 and other special keys with latest
kernels ?
Yves-Alexis Perez
linux-thinkpad@linux-thinkpad.org
Mon, 14 Sep 2009 16:03:36 +0200
Jochen Schulz a écrit :
> Frédéric Boiteux:
>> I've tried a 2.6.30 kernel on my X31 / Debian Lenny system, and found
>> that some function keys aren't working anymore.
>> [...]
>> What tool(s) are you using for that ? How do you intercept / handle
>> such special keys ?
>
> I am interested in a solution as well. With (IIRC) pre-2.6.31 kernels,
> Fn-F5 toggled bluetooth only, but now it switches off Bluetooth and wifi
> at the same time. I would love to have Bluetooth off by default and the
> ability to switch it on by pressing Fn-F5. IIRC that worked two or three
> kernel versions ago.
>
> I am running Debian unstable on an X200.
I use:
corsac@hidalgo: cat /etc/hal/fdi/policy/thinkpad-acpi.fdi
<match key="info.product" string="ThinkPad Extra Buttons">
<append key="input.keymap.data" type="strlist">0x04:bluetooth</append>
<!-- Fn+F5 bluetooth -->
<append key="input.keymap.data" type="strlist">0x05:wlan</append> <!--
Fn+F6 wifi -->
</match>
Didn't try on 2.6.31 but it does work on 2.6.30.
Cheers,
--
Yves-Alexis