linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* rfkill-input understanding help
@ 2007-12-11  3:33 Carlos Corbacho
  2007-12-30 18:59 ` Ivo van Doorn
  0 siblings, 1 reply; 12+ messages in thread
From: Carlos Corbacho @ 2007-12-11  3:33 UTC (permalink / raw)
  To: linux-input; +Cc: Dmitry Torokhov, ivdoorn

Dmitry, Ivo,

I'm trying to get my head around the input part of rfkill, and failing 
miserably here.

Background:

acer-wmi (in development) controls the rfkill switches for wireless and 
bluetooth on many Acer laptops.

There are two buttons which control these, one for wireless, and one for 
bluetooth. However, the wireless and bluetooth buttons on the laptop are just 
keys - they generate KEY_WLAN and KEY_BLUETOOTH, but don't toggle the 
wireless and bluetooth themselves (this is down to acer-wmi).

I'd like to set it up so that KEY_WLAN will toggle the wireless, and 
KEY_BLUETOOTH toggles bluetooth.

I've been reading through rfkill.txt and linux/rfkill.h and the various 
discussions about rfkill and quite frankly, I'm no-where near understanding 
what it is I need to do for this particular use case.

What I've done so far:

Registered two rfkill devices - one for wireless, one for bluetooth.

Problem:

The sysfs interface works just fine - but nothing is being toggled when I 
press the wireless or bluetooth buttons (which are just generating KEY_WLAN 
and KEY_BLUETOOTH).

>From my limited understanding, rfkill_input (which is enabled in my kernel) 
_should_ just be handling these keycodes (since userspace has not claimed 
these rfkill devices), and then calling the necessary toggle function - but 
AFAICT, this is not happening.

Have I misunderstood this, am I missing something, or is this particular use 
case supposed to be handled by userspace instead (i.e. a userspace tool is 
supposed to handle the keypress, then toggle the rfkill device via sysfs)?

-Carlos
-- 
E-Mail: carlos@strangeworlds.co.uk
Web: strangeworlds.co.uk
GPG Key ID: 0x23EE722D

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-04-14 18:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-11  3:33 rfkill-input understanding help Carlos Corbacho
2007-12-30 18:59 ` Ivo van Doorn
2007-12-31  1:00   ` Carlos Corbacho
2008-01-02 19:10     ` Ivo van Doorn
2008-01-11  3:23       ` Carlos Corbacho
2008-01-11 19:08         ` Ivo van Doorn
2008-01-11 20:34           ` Dmitry Torokhov
2008-01-12  0:32             ` Carlos Corbacho
2008-01-22  0:55               ` Carlos Corbacho
2008-04-12 17:21                 ` Carlos Corbacho
2008-04-13 11:23                   ` Carlos Corbacho
2008-04-14 18:12                     ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).