[arch-general] Keycode kernel patch doesn't change keycodes anymore
Hi all, As I do not get replies to my forum post [1], I'll try asking this question here. Up until recently, I used to get the zoom slider on my Microsoft Natural Ergonomic Keyboard 4000 working by following the instructions in a Gentoo Wiki page [2]. In short, by applying a small patch [3] to my custom compiled (ZEN-)kernel the keycodes of the slider are changed to values below 255, enabling the X server to process those keycodes. Unfortunately, after a recent kernel update I get different keycodes, as if the patch isn't applied at all, although I can confirm that include/linux/input.h is still changed. My keycodes now read: $ showkey keycode 418 press keycode 418 release keycode 419 press keycode 419 release I flipped through latest kernel changes of 2.6.38.x [4] and 2.6.39.x [5] (that I currently use) but was not able to find a change that might have influenced the (translation of these) keycodes. Anyone here that has an idea what might cause this issue? Kind regards, Marcel [1] https://bbs.archlinux.org/viewtopic.php?id=125259 [2] http://en.gentoo-wiki.com/wiki/Microsoft_Natural_Ergonomic_Keyboard_4000 [3] http://en.gentoo-wiki.com/w/images/1/17/Kernel-2.6.34-msnek.patch [4] http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.38.y.git;a=shortl... [5] http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.39.y.git;a=shortl...
Hi Marcel, On Sat, Aug 27, 2011 at 5:54 PM, Marcel Korpel <marcel.lists@gmail.com> wrote:
As I do not get replies to my forum post [1], I'll try asking this question here.
Up until recently, I used to get the zoom slider on my Microsoft Natural Ergonomic Keyboard 4000 working by following the instructions in a Gentoo Wiki page [2]. In short, by applying a small patch [3] to my custom compiled (ZEN-)kernel the keycodes of the slider are changed to values below 255, enabling the X server to process those keycodes.
I suggest reporting the problem with your keyboard upstream so that they can fix it properly and your patches will no longer be necessary (otherwise they are bound to break again).
Unfortunately, after a recent kernel update I get different keycodes, as if the patch isn't applied at all, although I can confirm that include/linux/input.h is still changed. My keycodes now read:
$ showkey keycode 418 press keycode 418 release keycode 419 press keycode 419 release
I flipped through latest kernel changes of 2.6.38.x [4] and 2.6.39.x [5] (that I currently use) but was not able to find a change that might have influenced the (translation of these) keycodes.
What was the last working kernel, and what was the first broken one? Did you try cloning Linu's tree and doing git log <known good>...<known bad> -- include/linux/input.h -t
On Sat, Aug 27, 2011 at 6:29 PM, Tom Gundersen <teg@jklm.no> wrote:
Up until recently, I used to get the zoom slider on my Microsoft Natural Ergonomic Keyboard 4000 working by following the instructions in a Gentoo Wiki page [2]. In short, by applying a small patch [3] to my custom compiled (ZEN-)kernel the keycodes of the slider are changed to values below 255, enabling the X server to process those keycodes.
I suggest reporting the problem with your keyboard upstream so that they can fix it properly and your patches will no longer be necessary (otherwise they are bound to break again).
The problem actually is that X can't process keycodes above 255. It's a long-standing and hard-to-solve bug [1].
What was the last working kernel, and what was the first broken one? Did you try cloning Linu's tree and doing git log <known good>...<known bad> -- include/linux/input.h
No, because I don't remember when it went wrong (I thought I'd look at that later, without pinpointing the last change; I know, that was stupid). But I just found a patch for xf86-input-evdev [2], so I'll first give that a try. Nevertheless, I'll report this to LKML anyway. Thanks. Marcel [1] https://bugs.freedesktop.org/show_bug.cgi?id=11227 [2] http://www.mythtv.org/wiki/Remapping_remote_control_key_codes_greater_than_2...
participants (2)
-
Marcel Korpel
-
Tom Gundersen