public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Telling the kernel that keys need soft release?
@ 2006-04-25 20:25 Matthew Garrett
  2006-04-25 20:33 ` Dmitry Torokhov
  0 siblings, 1 reply; 3+ messages in thread
From: Matthew Garrett @ 2006-04-25 20:25 UTC (permalink / raw)
  To: linux-kernel; +Cc: dtor_core

Dell laptops have hotkeys on the top of the keyboard for "hibernate", 
"cd eject", "battery status" and so on. These can be mapped to 
appropriate keycodes, and life is good except for the fact that they 
never produce a key release event. The kernel appears to have code to 
deal with this for the hangul key, but it's hardcoded rather than 
generic.

Is there any way for userspace to tell the event layer that a certain 
keycode should have soft-release? If not, would a patch for this be 
accepted?

-- 
Matthew Garrett | mjg59@srcf.ucam.org

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

* Re: Telling the kernel that keys need soft release?
  2006-04-25 20:25 Telling the kernel that keys need soft release? Matthew Garrett
@ 2006-04-25 20:33 ` Dmitry Torokhov
  2006-04-25 20:37   ` Matthew Garrett
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Torokhov @ 2006-04-25 20:33 UTC (permalink / raw)
  To: Matthew Garrett; +Cc: linux-kernel

On 4/25/06, Matthew Garrett <mjg59@srcf.ucam.org> wrote:
> Dell laptops have hotkeys on the top of the keyboard for "hibernate",
> "cd eject", "battery status" and so on. These can be mapped to
> appropriate keycodes, and life is good except for the fact that they
> never produce a key release event. The kernel appears to have code to
> deal with this for the hangul key, but it's hardcoded rather than
> generic.
>
> Is there any way for userspace to tell the event layer that a certain
> keycode should have soft-release? If not, would a patch for this be
> accepted?
>

Yes, with a proper DMI entry to activate it would be very welcome.

--
Dmitry

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

* Re: Telling the kernel that keys need soft release?
  2006-04-25 20:33 ` Dmitry Torokhov
@ 2006-04-25 20:37   ` Matthew Garrett
  0 siblings, 0 replies; 3+ messages in thread
From: Matthew Garrett @ 2006-04-25 20:37 UTC (permalink / raw)
  To: dtor_core; +Cc: linux-kernel

On Tue, Apr 25, 2006 at 04:33:57PM -0400, Dmitry Torokhov wrote:

> Yes, with a proper DMI entry to activate it would be very welcome.

I was thinking more along the lines of extending the setkeycodes support 
to allow a flag to specify it from userspace, though I guess adding some 
kernel defaults wouldn't hurt.

-- 
Matthew Garrett | mjg59@srcf.ucam.org

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

end of thread, other threads:[~2006-04-25 20:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-25 20:25 Telling the kernel that keys need soft release? Matthew Garrett
2006-04-25 20:33 ` Dmitry Torokhov
2006-04-25 20:37   ` Matthew Garrett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox