Re: iwlwifi (4965) regression since 2.6.30

From: Henrique de Moraes Holschuh
Date: Thu Aug 06 2009 - 09:31:29 EST


On Tue, 04 Aug 2009, reinette chatre wrote:
> > My problem is, that since 2.6.31-rcX Fn+F5 toggles soft rfkill state. It
> > did not happen in 2.6.30 and earlier. In that case, Fn+F5 triggered an
> > acpi event (key press). Now, it triggers acpi eveny *and* touches soft
> > rfkill of WIFI. I like the previous behavior, i.e., don't touch
> > anything, just report acpi event.
>
> I do not know why your Lenovo T61 gets wifi software rfkill when you press
> Fn-F5 and mine does not. I am adding Henrique and hope he can tell us what
> is going on.

Well, if you really want to get to the bottom of the matter, I need:

1. .config from both of you

2. the output of "grep . /sys/bus/platform/devices/thinkpad_acpi/hotkey_*";

3. the keymap of the thinkpad-acpi input device. On Debian, "lsinput and
input-kbd" from package "input-utils" can be used to locate the correct
input device and dump its keymap. Other distros have similar input-device
utilities, I think.


I guess 2.6.31 has the new rfkill code, and this likely enabled rfkill-input
or something.

If you *really* want to make sure fn+f5 will never give you surprises, you
either:

1. switch bit 4 off from /sys/bus/platform/devices/thinkpad_acpi/hotkey_mask

or

2. program scancode 4 on the thinkpad-acpi input device to something that is
not KEY_WLAN, KEY_BLUETOOTH, etc.


ACPI events for fn+f5 will be generated *only* on the deprecated, outdated
/proc/acpi/event interface. hotkey_mask gets rid of those too.

--
"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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/