<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/rss-style.xsl" type="text/xsl"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	     xmlns:dc="http://purl.org/dc/elements/1.1/"
	   xmlns:atom="http://www.w3.org/2005/Atom"
	     xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	  xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>
<channel>
	<title>Changing the Microsoft 4000&#8217;s Zoom Keys in Ubuntu &#8211; Terence Eden’s Blog</title>
	<atom:link href="https://shkspr.mobi/blog/2011/12/changing-the-microsoft-4000s-zoom-keys-in-ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>https://shkspr.mobi/blog</link>
	<description>Regular nonsense about tech and its effects 🙃</description>
	<lastBuildDate>Tue, 31 Dec 2019 09:49:31 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://shkspr.mobi/blog/wp-content/uploads/2023/07/cropped-avatar-32x32.jpeg</url>
	<title>Changing the Microsoft 4000&#8217;s Zoom Keys in Ubuntu &#8211; Terence Eden’s Blog</title>
	<link>https://shkspr.mobi/blog</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title><![CDATA[Changing the Microsoft 4000's Zoom Keys in Ubuntu]]></title>
		<link>https://shkspr.mobi/blog/2011/12/changing-the-microsoft-4000s-zoom-keys-in-ubuntu/</link>
					<comments>https://shkspr.mobi/blog/2011/12/changing-the-microsoft-4000s-zoom-keys-in-ubuntu/#comments</comments>
				<dc:creator><![CDATA[@edent]]></dc:creator>
		<pubDate>Wed, 28 Dec 2011 12:30:15 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://shkspr.mobi/blog/?p=5091</guid>

					<description><![CDATA[I&#039;m in love with my keyboard! The Microsoft Natural Ergonomic Keyboard 4000 is a dream to type on. Large, well spaced keys, split keyboard, and a whole host of extra media buttons.  There&#039;s only one tiny problem.  Two of the buttons don&#039;t work in Linux - specifically, the keyboard scroll buttons.  This is a long standing bug in Linux, but luckily it is fairly easy to fix.  Using Florian Diesch&#039;s…]]></description>
										<content:encoded><![CDATA[<p>I'm in love with my keyboard! The <a href="http://www.amazon.co.uk/gp/product/B000B9RYG8/ref=as_li_ss_tl?ie=UTF8&amp;tag=shkspr-21&amp;linkCode=as2&amp;camp=1634&amp;creative=19450&amp;creativeASIN=B000B9RYG8">Microsoft Natural Ergonomic Keyboard 4000</a> is a dream to type on. Large, well spaced keys, split keyboard, and a whole host of extra media buttons.
<a href="http://www.amazon.co.uk/gp/product/B000B9RYG8/ref=as_li_ss_tl?ie=UTF8&amp;tag=shkspr-21&amp;linkCode=as2&amp;camp=1634&amp;creative=19450&amp;creativeASIN=B000B9RYG8"><img src="https://shkspr.mobi/blog/wp-content/uploads/2011/12/4126YPCP4DL.jpg" alt="Microsoft 4000 Keyboard" title="Microsoft 4000 Keyboard" width="500" height="309" class="aligncenter size-full wp-image-5098"></a>
There's only one tiny problem.  Two of the buttons don't work in Linux - specifically, the keyboard scroll buttons.  This is a <a href="https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/313514">long standing bug in Linux</a>, but luckily it is fairly easy to fix.</p>

<p>Using <a href="http://askubuntu.com/questions/69804/how-do-i-change-the-keymap-of-a-single-device-logitech-presenter">Florian Diesch's tutorial at Ask Ubuntu</a>, I've come up with this simple guide to get your keyboard working.
<span id="more-5091"></span></p>

<p><ins datetime="2014-11-13T11:21:28+00:00">Update For 14.04:</ins> Don't follow this guide, please use <a href="https://askubuntu.com/questions/471802/make-the-zoom-slider-of-microsoft-natural-ergonomic-keyboard-4000-and-7000-scrol/473823#473823">this guide on AskUbuntu</a>.</p>

<ol>
    <li>Open a terminal.  Sorry, this is all going to be command prompt based!</li>
    <li>Install the program evtest<pre>sudo apt-get install evtest</pre></li>
    <li>You will need to find which input "event" corresponds to your keyboard. Run the following command
<pre>sudo evtest /dev/input/event5</pre>
When you press the scroll key on your keyboard, you should see an output like
<pre>Event: time 1325072953.278713, type 4 (Misc), code 4 (ScanCode), value c022e
Event: time 1325072953.278729, type 1 (Key), code 109 (PageDown), value 1
Event: time 1325072953.278752, -------------- Report Sync ------------
</pre>
If you don't, cancel (using CTRL+C) and try another event number. Start at event0 and work your way up.</li>
    <li>Let's see what the keys are currently mapped to.  Type the command
<pre>sudo /lib/udev/keymap -i input/event5</pre>
(or whatever "event" number you need).  You should see an output like
<pre>scan code: 0xC022D   key code: zoomin
scan code: 0xC022E   key code: zoomout</pre></li>
    <li>We need to create a file which contains the new keymapping.  To do this, type
<pre>sudo nano /lib/udev/keymaps/microsoft-4000</pre></li>
    <li>Insert the following two lines into the file
<pre>0xC022D pageup
0xC022E pagedown</pre>
If you would rather scroll line-by-line, you can use
<pre>0xC022D up
0xC022E down</pre>
Save the file by pressing CTRL+X.</li>
    <li>Now, let's implement the remapped keys.  Type
<pre>sudo /lib/udev/keymap input/event5 /lib/udev/keymaps/microsoft-4000</pre></li>
    <li>Your scroll buttons should now be working!  If not... errr... try again?</li>
    <li>Assuming it is working, we need to make this permanent so that we don't have to type in a command every time we reboot.  To open the keymapping file, type
<pre>sudo nano /lib/udev/rules.d/95-keymap.rules</pre></li>
    <li>Scroll through the file until you see
<pre>#
# The following are external USB keyboards
#

LABEL="keyboard_usbcheck"
</pre>
Past in the following line
<pre>ENV{ID_VENDOR_ID}=="045e", ENV{ID_MODEL_ID}=="00db", RUN+="keymap $name microsoft-4000"</pre>
The line needs to be <strong>above</strong>
<pre>GOTO="keyboard_end"</pre>
Save the file (CTRL+X).</li>
    <li>Reboot.</li>
</ol>

<p>Hey presto! Your keys will now obey your commands.</p>
<img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=5091&HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager">]]></content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2011/12/changing-the-microsoft-4000s-zoom-keys-in-ubuntu/feed/</wfw:commentRss>
			<slash:comments>17</slash:comments>
		
		
			</item>
	</channel>
</rss>
