Microsoft Natural Ergonomic Keyboard 4000

Microsoft Natural Ergonomic Keyboard 4000 unter Ubuntu

Quelle1)

Driver: MSNEK4K included by Kernel >= 2.6.24


Quelle2)

runlevel 3:

Create a file $HOME/.Xmodmap if it doesn't exist. Put the following stuff in there.

runlevel 4:

Create a file $HOME/.xprofile if it doesn't exist. Put the following stuff in there.

Code:

! Microsoft Ergonomic Keyboard 4000
! Zoom should work like mouse wheel already
! Homepage, Search, E-Mail
keycode 130 = XF86HomePage
keycode 229 = XF86Search
keycode 120 = XF86Mail
! 1 - 5 special keys
keycode 247 = XF86Launch1
keycode 132 = XF86Launch2
keycode 170 = XF86Launch3
keycode 219 = XF86Launch4
keycode 249 = XF86Launch5
! Audio Mute, Volume Lower, Volume Raise, Play
keycode 160 = XF86AudioMute
keycode 174 = XF86AudioLowerVolume
keycode 176 = XF86AudioRaiseVolume
keycode 162 = XF86AudioPlay
! Calc
keycode 161 = XF86Calculator
! Favourites
keycode 93 = XF86Favorites
! Back/Forward
keycode 234 = XF86Back
keycode 233 = XF86Forward
! F1 - F12 second row without F-Caps-Key (right side of F12)
keycode 245 = osfHelp
keycode 135 = osfUndo
keycode 138 = osfRestore
keycode 137 = XF86New
keycode 191 = XF86Open
keycode 175 = XF86Close
keycode 228 = XF86Reply
keycode 142 = XF86MailForward
keycode 218 = XF86Send
keycode 184 = XF86Spell
keycode 213 = XF86Save
keycode 185 = XF86Launch6
! the three keys top left in number block
! the backspace key right has code 22 already and works like backspace
keycode 157 = XF86Launch7
keycode 246 = XF86Launch8
keycode 251 = XF86Launch9

Let's test it again. Fire up console and xev like you did before and look it the output of xev has changed. You should see the following now, if you type the „3“ special key at the top:

KeyPress event, serial 30, synthetic NO, window 0x2400001,
    root 0x156, subw 0x0, time 129615035, (279,39), root:(830,447),
    state 0x0, keycode 170 (keysym 0x1008ff43, XF86Launch3), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 30, synthetic NO, window 0x2400001,
    root 0x156, subw 0x0, time 129615155, (279,39), root:(830,447),
    state 0x0, keycode 170 (keysym 0x1008ff43, XF86Launch3), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

I have selected quite common names for the most keys. For some of them I found no equivalent and decided to call them XF86Launch1 - XF86Launch9. The Zoom handle works like mouse wheel with Li Yu's patch. In case you want to change the symbol names, take a look at /usr/share/X11/XKeysymDB.

Please notice that all F-keys have to possible symbols, which depends on the state of the F-Shift-key (it's right of the F12 key). I'm sure you have already seen the LED beneath your thumbs that indicates the key's state.

What now?

In most Window Managers and Desktop Environments you can assign short cuts to keys and/or key combinations. For example:

KDE: In KDE control center go to „Regional & Accessibility“ –> „Keyboard shortcuts“ Xfce4: Start Xfce menu –> „Settings“ –> „Keyboard Settings“ –> go to tab „Shortcuts“ IceWM: Edit the file ~/.icewm/keys Fluxbox: Edit the file ~/.fluxbox/keys

Gerald P. 2008/08/19 13:56 changed: to

keycode 247 = XF86Launch1
keycode 183 = XF86Launch1

Alternative .Xmodmap3)

keycode 130=XF86HomePage
keycode 122=XF86Search
keycode 236=XF86Mail
keycode 160=XF86AudioMute
keycode 174=XF86AudioLowerVolume
keycode 176=XF86AudioRaiseVolume
keycode 162=XF86AudioPlay
keycode 161=XF86Calculator
keycode 244=XF86Terminal
keycode 245=XF86Favorites
keycode 135=XF86Back
keycode 138=XF86Forward
keycode 137=XF86New
keycode 191=XF86Open
keycode 175=XF86Close
keycode 228=XF86Reply
keycode 142=XF86MailForward
keycode 218=XF86Send
keycode 241=XF86Spell
keycode 213=XF86Save
keycode 185=XF86Eject
keycode 242=XF86ZoomIn
keycode 243=XF86ZoomOut
keycode 234=XF86Back
keycode 233=XF86Forward
keycode 170=XF86Launch0
keycode 219=XF86Launch1
keycode 249=XF86Launch2
keycode 205=XF86Launch3
keycode 207=XF86Launch4
 
Nach oben
microsoft_natural_ergonomic_keyboard_4000.txt · Zuletzt geändert: 2024/02/29 13:36 von 127.0.0.1
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0
DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp   Dogecoin Donations Accepted Here    DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp  DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp