May 122012
 

Mac OS X

There’s a good blog post by David Röthlisberger on the Microsoft NEK 4000 on Mac OS X.

To remap the zoom slider to scroll I replaced the com.microsoft.keyboard.pref (from Microsoft’s Mac OS X driver) with the one found in Scott Bezek’s blog post Remapping Zoom on the Microsoft Natural Keyboard 4000 – Mac OS X (referenced in Q#403324 on SuperUser.com):

cd ~/Library/Preferences
mv com.microsoft.keyboard.pref com.microsoft.keyboard.pref.bak
wget http://scottbezek.com/com.microsoft.keyboard.pref
open /Library/PreferencePanes/Microsoft\ Keyboard.prefPane
# works.

Linux

Making the Zoom Slider Work on Ubuntu 12.04

Here are the instructions to make the zoom slider work on 12.04:

### getting prerequisits
sudo apt-get install xbindkeys xautomation
### creating our custom keymap:
sudo tee /lib/udev/keymaps/microsoft-ergonomic-keyboard << EOF
0xC022D 0xC1 # Zoom In
0xC022E 0xC2 # Zoom Out
EOF
### chaning the udev rules
# replace the default keymap with our new one:
sudo sed -i \
  's/0xc022d zoomin 0xc022e zoomout/microsoft-ergonomic-keyboard/' \
  /lib/udev/rules.d/95-keymap.rules
### defining the behaviour when using the zoom slider:
cat > ~/.xbindkeysrc << EOF
## Use the slider to scroll up and down
## http://ubuntuforums.org/showpost.php?p=11336640&postcount=178
"xdotool click 4"   # Scroll Up
c:201
"xdotool click 5"   # Scroll Down
c:202
## Alternatively use it to Zoom in and out
## http://ubuntuforums.org/showpost.php?p=11479681&postcount=182
#"xte 'keydown Control_L' 'mouseclick 4' 'keyup Control_L'"
#c:201 + Release
#"xte 'keydown Control_L' 'mouseclick 5' 'keyup Control_L'"
#c:202 + Release
EOF
# unplug the keyboard, plug it in again and run
xbindkeys
# now you should be able to scroll using the zoom slider.

More Links for Linux:

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)

Related Posts:

  • No Related Posts

  2 Responses to “Microsoft Natural Ergonomic Keyboard 4000 with Mac OS X and Linux”

  1. Hey… thanks for tutorial. It is really helpful, but there are little mistake. Line: sudo apt-get install xbindkeys xautomation should be: sudo apt-get install xbindkeys xautomation xdotool

    PS: Sorry for my bad english.

    VA:F [1.9.22_1171]
    Rating: +1 (from 1 vote)
  2. Hi, The tutorial worked for the first time. But after I reboot the system, it is giving some weird “problem” scrolling down/zoom- works just fine, but when I scroll up/zoom+, it doesnt work. Instead, I get another icon saying that the mouse input is disabled (but that is not the case either,,, i,e, just the notification appears after I release the zoom+

    Has anyone else encountered this? Could you help me debug this issue? Thanks Akshay

    VA:F [1.9.22_1171]
    Rating: +1 (from 1 vote)

 Leave a Reply

(required)

(required)


+ 3 = five

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>