On Tue, 27 May 2008 16:38:04 +0200, "Ivo van Doorn" <ivdoorn@gmail.com> said:
You don't have a SW_RFKILL_ALL switch :-) It is the same as my ThinkPad T43,
it does *NOT* have a SW_RFKILL_ALL switch, and it has a wireless config hotkey,
which is handled in firmware. The firmware can wire-kill the Intel WLAN card,
and it can also unplug(!) the internal Bluetooth device from the internal USB
bus.
You'd typically assign KEY_WLAN or something else to those keys, but NOT a
(fictitious) KEY_RFKILL_ALL.
So, my ThinkPad T43 would NEVER issue *_RFKILL_ALL events by default.
Works just like a ThinkPad before you set its hotkey mask to request the firmware
to hands-off the hotkeys, then.
Those keys definately are *NOT* to have *_RFKILL_ALL attached to them by default,
I agree.
Then you assume it is just a normal key. If the user wants to promote that
key to the Wireless EPO key, he changes the default assignment of KEY_WLAN to
KEY_RFKILL_ALL (although I didn't propose a KEY_RFKILL_ALL yet).
Correct.
This is *explicitly* documented by the patches. The broadcomm driver has to assume
it is a slave rfkill device, and NEVER report any input events. It has no knowledge
of which platform the broadcomm chip was installed into, after all. OTOH, it *will*
report the status change through the rfkill notify chain and also through the rfkill
uevents, and either a platform module for your laptop, or HAL (in userspace) can
trap those, and issue the relevant input events.
*IF* you get the events only through the broadcomm device, that is. If you get them
from ACPI as well, you probably want to let the ACPI driver issue the input events.
We document it *throughoutly*, and add a big fat warning about the misuse of
RFKILL_ALL. It should be enough. Will you consider ACKing a new version of
the patchset which documents better the *_RFKILL_ALL events?
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
--