Dimitry,

On Thursday 03 May 2007 12:58:45 Dmitry Torokhov wrote:
> Already have them:
>
> #define KEY_BLUETOOTH           237
> #define KEY_WLAN                238

My bad.

> > Also, add keycodes for these
> > keys having a separate off state (This is true on some machines,
> > such as many Acer laptops).
>
> Not sure why this is needed.

On my laptop (this also affects other Acer's), the real problem is that there 
is no way to tell if the device is enabled or disabled[1], unless you're 
keeping track of this yourself (not always reliable). The only thing that 
always changes is the scancode for the button in question.

It would be nice to have a separate keycode to match to the different 
scancodes for on and off (then match these to the relevant calls), rather 
than say for instance, mapping both wireless scancodes to KEY_WLAN, then 
trying to keep track of the current state and then deciding on this whether 
to disable the device in question (and then potentially deciding wrong).

-Carlos

[1] The wireless/ bluetooth features on some Acer laptops are software 
enabled, by ACPI methods calling a Windows Management Instrumentation 
device - and to add insult to injury, the WMI interface provided doesn't give 
us any means to find out the current state of these features.
-- 
Uni: [EMAIL PROTECTED]
Home: [EMAIL PROTECTED]
GPG Key ID: 0x23EE722D

Reply via email to