linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* input question: ambient light sensor button
@ 2013-09-15 13:53 Pali Rohár
  2013-11-13 10:47 ` Jiri Kosina
  0 siblings, 1 reply; 9+ messages in thread
From: Pali Rohár @ 2013-09-15 13:53 UTC (permalink / raw)
  To: linux-kernel, linux-input

[-- Attachment #1: Type: Text/Plain, Size: 923 bytes --]

Hello,

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?

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.

-- 
Pali Rohár
pali.rohar@gmail.com

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

end of thread, other threads:[~2013-11-26 19:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-15 13:53 input question: ambient light sensor button Pali Rohár
2013-11-13 10:47 ` Jiri Kosina
2013-11-13 16:28   ` Dmitry Torokhov
2013-11-14 12:02     ` Pali Rohár
2013-11-19 21:27       ` Dmitry Torokhov
2013-11-20 14:50         ` Pali Rohár
2013-11-20 15:59           ` Benjamin Tissoires
2013-11-22 11:13             ` Pali Rohár
2013-11-26 19:19               ` 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).