Thread (9 messages) 9 messages, 4 authors, 2013-11-26

Re: input question: ambient light sensor button

flat view

From: Jiri Kosina <hidden>
Date: 2013-11-13 10:47:25
Also in: lkml

On Sun, 15 Sep 2013, Pali Rohár wrote:
I do not know where to ask this question, but I think that kernel 
developers could help me.

I have notebook with one special button on keyboard which is 
designed for turning ambient light sensor on and off. By default 
pressing button do nothing (I can turn ambient light sensor on/off 
via sysfs platform wmi module). Button press is reported by 
kernel input device AT Translated Set 2 keyboard and reports it 
as button "touchpad off".

Of course "touchpad off" is incorrect and I'd like to ask which 
kernel key or button from /usr/include/linux/input.h should be 
mapped for my ambient light sensor button? Is there already some? 
And what is strategy for allocating KEY_* and BTN_* numbers?
This is maintained by Dmitry, so he's the one to answer this. I am adding 
him to CC.
I'd like to know this, so udev could have correct DMI keymap 
hooks and other userspace programs can understand ambient light 
sensor button correctly.
-- 
Jiri Kosina
SUSE Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help