[ltp] Re: Reason for blocking Fn + F5

Yves-Alexis Perez linux-thinkpad@linux-thinkpad.org
Thu, 06 Nov 2008 08:09:28 +0100


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

On mer, 2008-11-05 at 13:45 +0100, Marcus Better wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>=20
> Henrique de Moraes Holschuh wrote:
> >>   <append key=3D"input.keymap.data" type=3D"strlist">0x04:radio</appen=
d>
> >>=20
> >> Is that correct?
>=20
> > According to the use defined for KEY_RADIO, no, it is not.
>=20
> Replacing "radio" with "wlan" causes KEY_WLAN to be emitted, but has no e=
ffect on the state of the WLAN interface. What's missing? I have rfkill and=
 rfkill-input modules loaded, and CONFIG_IWLWIFI_RFKILL=3Dy. The kernel is =
mainline 2.6.27.
>=20
> Using "bluetooth" instead emits KEY_BLUETOOTH which toggles bluetooth as =
expected.
>=20
> Finally if I remove the fdi file altogether I still see KEY_RADIO. Where =
does that come from? AFAICT the thinkpad-acpi in 2.6.27 uses KEY_WLAN.

On 2.6.27-rc9+drm-next, when commenting that part on the fdi file I get
KEY_WLAN. This is with:

thinkpad_acpi: ThinkPad ACPI Extras v0.21
thinkpad_acpi: http://ibm-acpi.sf.net/
thinkpad_acpi: ThinkPad BIOS 7LETC1WW (2.21 ), EC 7KHT24WW-1.08
thinkpad_acpi: Lenovo ThinkPad T61, model 8897CTO


KEY_WLAN and KEY_BLUETOOTH doesn't work by themselves on this kernel,
but they seem to work correctly on 2.6.28-rc.

On 2.6.27 I use a script in /etc/acpi/actions which gets the acpi events
and echo something in:

RFKILL_BT=3D"/sys/devices/platform/thinkpad_acpi/rfkill/rfkill*/state"
RFKILL_WLAN=3D"/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/rfkill/rfk=
ill*/state"

On 2.6.28 I guess I'll be able to drop that and only use KEY_*. I
currently remap (using the fdi file) Fn+F5 to KEY_BLUETOOTH and Fn+F6 to
KEY_WLAN so I have both available. Not really the intended behavior with
thinkvantage but we don't have much choice currently (and as I don't
even have windows on this box I don't really need to be consistent)

Cheers,
--=20
Yves-Alexis

--=-hKlJ8S8qk6OFGbgCuU0V
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

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

iEYEABECAAYFAkkSmCMACgkQTUTAIMXAW67NaQCfR/PJAnGRQXNw+dZUiVHEfkAb
ZvUAoLPsd1/KEniVPrEdAcmTxFA04WCL
=q40I
-----END PGP SIGNATURE-----

--=-hKlJ8S8qk6OFGbgCuU0V--