
It sounds much more complex than using my patch. But maybe your way will be more compatible with Nek4K driver included in kernel in the future, don't sure.trantorvega wrote:Comments are welcome.

I'll update my patch as soon as Gentoo devs will release/make stable hardened-sources 2.6.19+ (right now I still use 2.6.16 because some of my 'too modern' hardware work correctly only with 2.6.16 and then 2.6.19 (both 2.6.17 and 2.6.18 has buggy driver for my JMicron IDE controller while 2.6.16 is working mostly ok with "all-generic-ide irqpoll" kernel params).JohnerH wrote:I've been trying to go through the patches on the WIKI but they don't seem to work with the latest 2.6.20 versions of the kernel, is anyone still looking at getting this keyboard working?
Afraid not...powerman wrote:I'll update my patch as soon as Gentoo devs will release/make stable hardened-sources 2.6.19+ (right now I still use 2.6.16 because some of my 'too modern' hardware work correctly only with 2.6.16 and then 2.6.19 (both 2.6.17 and 2.6.18 has buggy driver for my JMicron IDE controller while 2.6.16 is working mostly ok with "all-generic-ide irqpoll" kernel params).JohnerH wrote:I've been trying to go through the patches on the WIKI but they don't seem to work with the latest 2.6.20 versions of the kernel, is anyone still looking at getting this keyboard working?
BTW, is this keyboard still doesn't supported by Linux 2.6.20 without any patches?!
Code: Select all
File: ~.Xmodmap
add Mod4 = Super_L
keycode 94 = less greater brokenbar
keycode 108 = ISO_Level3_Shift
keycode 135 = Mode_switch
So what does this do exactly?Richy wrote:Hey,
I found a Solution for myself:
I get the brokenbar by pressing the "menu" key and the usual..Code: Select all
File: ~.Xmodmap add Mod4 = Super_L keycode 94 = less greater brokenbar keycode 108 = ISO_Level3_Shift keycode 135 = Mode_switch
Richy
For some reason it's not letting me patch.....I'm on linux-2.6.21-gentoo-sources...
Code: Select all
keycode NUMBER = KEYSYMNAME ...[...]
The first keysym is used when
no modifier key is pressed in conjunction with this key, the
second with Shift, the third when the Mode_switch key is used
with this key and the fourth when both the Mode_switch and
Shift keys are used
Good idea, but I forget about it. Anyway, removing F-Lock portion of code from patch should be straightforward - just remove block of code under comment "Convert FLock's F-keys to normal F-keys".trantorvega wrote:I have only a suggestion: I believe you should put the F-Lock portion of your patch into a separate patch, considering that the F-lock keys removal is not by far, something that everyone might desire (I don't, for instance) along with the recognition of the additional keys.
I'll add a link to your patch in the immediate future.
Code: Select all
File: .Xmodmap
add Mod4 = Super_L
keycode 94 = less greater bar
keycode 105 = Control_R
keycode 104 = KP_Enter
keycode 106 = KP_Divide
keycode 108 = ISO_Level3_Shift
keycode 110 = Home
keycode 111 = Up
keycode 112 = Prior
keycode 113 = Left
keycode 114 = Right
keycode 115 = End
keycode 116 = Down
keycode 117 = Next
keycode 118 = Insert
keycode 119 = Delete
keycode 133 = Super_L
keycode 135 = Mode_switch
Code: Select all
(**) Microsoft Natural® Ergonomic Keyboard 4000: always reports core events
(**) Microsoft Natural® Ergonomic Keyboard 4000: Device: "/dev/input/event5"
(II) Microsoft Natural® Ergonomic Keyboard 4000: Found 1 mouse buttons
(II) Microsoft Natural® Ergonomic Keyboard 4000: Found scroll wheel(s)
(II) Microsoft Natural® Ergonomic Keyboard 4000: Found keys
(II) Microsoft Natural® Ergonomic Keyboard 4000: Configuring as keyboard
(II) Microsoft Natural® Ergonomic Keyboard 4000: Adding scrollwheel support
(**) Microsoft Natural® Ergonomic Keyboard 4000: YAxisMapping: buttons 4 and 5
(**) Microsoft Natural® Ergonomic Keyboard 4000: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) XINPUT: Adding extended input device "Microsoft Natural® Ergonomic Keyboard 4000" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "gb"
(EE) Microsoft Natural® Ergonomic Keyboard 4000: failed to initialize for relative axes.
(II) config/hal: Adding input device Microsoft Natural® Ergonomic Keyboard 4000
(**) Microsoft Natural® Ergonomic Keyboard 4000: always reports core events
(**) Microsoft Natural® Ergonomic Keyboard 4000: Device: "/dev/input/event4"
(II) Microsoft Natural® Ergonomic Keyboard 4000: Found keys
(II) Microsoft Natural® Ergonomic Keyboard 4000: Configuring as keyboardCode: Select all
(WW) Microsoft Natural® Ergonomic Keyboard 4000: unable to handle keycode 432
(WW) Microsoft Natural® Ergonomic Keyboard 4000: unable to handle keycode 419
(WW) Microsoft Natural® Ergonomic Keyboard 4000: unable to handle keycode 418Did you look here:Ant_P wrote:Hmm... looks like the kernel side of things already works fine. The zoom slider is reporting keycodes 418/419 according to showkey, X doesn't like them...Looks like something that can be fixed easily enough with setkeycodesCode: Select all
(WW) Microsoft Natural® Ergonomic Keyboard 4000: unable to handle keycode 432 (WW) Microsoft Natural® Ergonomic Keyboard 4000: unable to handle keycode 419 (WW) Microsoft Natural® Ergonomic Keyboard 4000: unable to handle keycode 418

Code: Select all
denis@den-desktop ~ $ cat /home/denis/.Xmodmap
keycode 218 = F12
denis@den-desktop ~ $ xmodmap ~/.Xmodmap
Code: Select all
den-desktop denis # LANG=C showkey -s
kb mode was RAW
[ if you are trying this under X, it might not work
since the X server is also reading /dev/console ]
press any key (program terminates 10s after last keypress)...
0x9c
^[[24~^[[24~0xe0 0x39
0xe0 0xb9
^[[24~0xe0 0xb9
^[[24~0xe0 0x39
0xe0 0xb9
^[[24~0xe0 0x39
0xe0 0xb9
0x3a
^Ccaught signal 2, cleaning up...
Code: Select all
den-desktop denis # LANG=C setkeycodes e039 88
BUGS
The keycodes of X have nothing to do with those of Linux. Unusual keys can be made visible under Linux, but not under X.
Only way to be sure is to launch xev and see what is the output of the keypress F12. If tilda doesn't work when (unlocked) F12 is pressed but xev shows that F12 is being sent, then it is a problem with tilda.MageSlayer wrote:To practice I tried to map unlocked F12 using xmodmap like following:Ok, now it seems like unlocked F12 behaves as locked F12. But...Code: Select all
denis@den-desktop ~ $ cat /home/denis/.Xmodmap keycode 218 = F12 denis@den-desktop ~ $ xmodmap ~/.Xmodmap
Some apps see unlocked F12 normally, some don't.
e.g. Opera see F12 ok, tilda - does not.
Ok, I thought it's time to something more low-level. Like setkeycodes.