linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Handling special keys in platform drivers
@ 2012-01-09  6:24 Corentin Chary
  2012-01-09  7:09 ` joeyli
  2012-01-13 22:42 ` Matthew Garrett
  0 siblings, 2 replies; 5+ messages in thread
From: Corentin Chary @ 2012-01-09  6:24 UTC (permalink / raw)
  To: platform-driver-x86; +Cc: LKML, Matthew Garrett, linux-input

Hi,

Some of the platform drivers in platform/x86/ (and probably other) are
relaying keys to userspace and are also controlling the device
associated to these key. A simple example is screen brightness,
keyboard backlight or rfkill.

In this case the driver send a key to userspace, userspace has to
handle this key and control the right device.

Most of the time, this job is done by:
- ACPI scripts (legacy)
- DE (gnome-power-manager, kde's solid)

The real problem is that for keyboard backlight to work, it needs DE
cooperation, and only gnome as implemented that right now, and other
(except KDE) will probably neither have the resources to handle all
the possible keys correctly. And of course, who should handle the keys
when there is no DE running at all ?

So I was wondering if we could introduce an "auto" mode for this
drivers. For example, with this mode enabled, asus-wmi would filter
the keys and control keyboard backlight directly (and rfkill/screen
brightness ?).

What do you think about it ?

Thanks,

-- 
Corentin Chary
http://xf.iksaif.net

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

end of thread, other threads:[~2012-01-14  8:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-09  6:24 Handling special keys in platform drivers Corentin Chary
2012-01-09  7:09 ` joeyli
2012-01-09  7:34   ` Corentin Chary
2012-01-13 22:42 ` Matthew Garrett
2012-01-14  8:58   ` Corentin Chary

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).