Awkward rfkill corner cases

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Matthew Garrett
Date: Tuesday, August 19, 2008 - 6:42 pm

On Tue, Aug 19, 2008 at 10:32:14PM -0300, Henrique de Moraes Holschuh wrote:


Excellent, glad I've got that right.

One completely unrelated question. In the following situation (relevant 
to Dells, not the Eee)

* The system has a key (not a switch) that in firmware disables the 
hardware (HARD_BLOCKED)
* That key generates an event through the keyboard controller, but not 
through any other obviously detectable means
* The radio control is also controllable through software (SOFT_BLOCKED)

Should pressing the key generate a KEY_WLAN event?

I note that rfkill-input will, if the device is in HARD_BLOCKED state, 
attempt to set it to UNBLOCKED. This sounds like generating the keycode 
is the wrong thing to do, since it'll cause rfkill-input to try to undo 
the change that's just been made. However, if the key isn't mapped 
there's no obvious way for any of the stack to determine that a change 
has been made and propagate that to userspace. What should we be doing 
here?

-- 
Matthew Garrett | mjg59@srcf.ucam.org
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/2] eeepc-laptop: Fix user after free, Matthew Garrett, (Mon Aug 4, 10:08 am)
[PATCH 2/2] eeepc-laptop: Use standard interfaces, Matthew Garrett, (Mon Aug 4, 10:15 am)
Re: [PATCH 2/2] eeepc-laptop: Use standard interfaces, Matthew Garrett, (Mon Aug 4, 10:36 am)
Re: [PATCH 2/2] eeepc-laptop: Use standard interfaces, Ivo van Doorn, (Mon Aug 4, 10:53 am)
Re: [PATCH 2/2] eeepc-laptop: Use standard interfaces, Henrique de Moraes H ..., (Mon Aug 4, 2:21 pm)
Re: [PATCH 2/2] eeepc-laptop: Use standard interfaces, Henrique de Moraes H ..., (Mon Aug 4, 2:29 pm)
[PATCH v2 1/2] eeepc-laptop: Fix user after free, Matthew Garrett, (Wed Aug 6, 2:23 am)
[PATCH v2 2/2] eeepc-laptop: Use standard interfaces, Matthew Garrett, (Wed Aug 6, 2:25 am)
Re: [PATCH v2 2/2] eeepc-laptop: Use standard interfaces, Andrew Morton, (Tue Aug 19, 2:58 am)
Re: [PATCH v2 2/2] eeepc-laptop: Use standard interfaces, Matthew Garrett, (Tue Aug 19, 4:13 am)
Re: [PATCH v2 2/2] eeepc-laptop: Use standard interfaces, Henrique de Moraes H ..., (Tue Aug 19, 4:09 pm)
Re: [PATCH v2 2/2] eeepc-laptop: Use standard interfaces, Matthew Garrett, (Tue Aug 19, 4:24 pm)
Re: [PATCH v2 2/2] eeepc-laptop: Use standard interfaces, Henrique de Moraes H ..., (Tue Aug 19, 6:18 pm)
Re: [PATCH v2 2/2] eeepc-laptop: Use standard interfaces, Matthew Garrett, (Tue Aug 19, 6:28 pm)
Re: [PATCH v2 2/2] eeepc-laptop: Use standard interfaces, Henrique de Moraes H ..., (Tue Aug 19, 6:32 pm)
Awkward rfkill corner cases, Matthew Garrett, (Tue Aug 19, 6:42 pm)
Re: Awkward rfkill corner cases, Henrique de Moraes H ..., (Tue Aug 19, 7:30 pm)