Hold and Volume Notify keys

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Newer Acer laptops have a touch-sensitive media panel thing which
produces keyboard events. There's a Hold key so it looks like I need a
KEY_HOLD. However, the key on this laptop acts as a hardware toggle
switch and produces two different keyboard scancodes: one when the hold
is engaged, and one when it is disengaged. It is useful for userspace to
distinguish between the two to properly interact with the volume
controls in particular. I'm not sure if adding a KEY_HOLDON and a
KEY_HOLDOFF is the right thing to do, though.

The volume slider on the media panel normally produces the usual
volume-up/down , but when it is configured in non-legacy mode (where
software can interact with it and control it) it instead produces a
single "volume event notification" key when anything changes. Looks like
I also need a key event for that (KEY_VOLUMENOTIFY? I'm open to any
suggestions).

Also, what numbers should I pick for the new KEY_ events? Is there an
established convention or do I just pick some unused region within the
KEY_* area?


-- 
Hector Martin (hector@xxxxxxxxxxxxxx)
Public Key: http://www.marcansoft.com/marcan.asc

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux