Telling the kernel that keys need soft release?
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?
Signature · 1 line
Matthew Garrett | [email protected]
Quoted 11 lines · Matthew Garrett
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
Quoted 1 line · Dmitry Torokhov
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.
Signature · 1 line
Matthew Garrett | [email protected]