<?xml version="1.0" encoding="UTF-8"?>
<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>Random Wisdom &#187; udev</title>
	<atom:link href="http://scrolls.mafgani.net/tag/udev/feed/" rel="self" type="application/rss+xml" />
	<link>http://scrolls.mafgani.net</link>
	<description>An attempt at organizing my thoughts ...</description>
	<lastBuildDate>Sun, 13 Mar 2011 22:54:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Turn on 800DPI mode for the Logitech MX-510 Mouse</title>
		<link>http://scrolls.mafgani.net/2005/08/turn-on-800dpi-mode-for-the-logitech-mx-510-mouse/</link>
		<comments>http://scrolls.mafgani.net/2005/08/turn-on-800dpi-mode-for-the-logitech-mx-510-mouse/#comments</comments>
		<pubDate>Sat, 27 Aug 2005 12:09:00 +0000</pubDate>
		<dc:creator>Mostafa</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[How To ...]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[logitech]]></category>
		<category><![CDATA[mouse]]></category>
		<category><![CDATA[udev]]></category>

		<guid isPermaLink="false">http://scrolls.mafgani.net/?p=16</guid>
		<description><![CDATA[5 easy steps: 1. Get and install the Logitech Applet from here or directly from here 2. Install the poper udev rules: Create a file logitech-mice.rules under /etc/udev/rules.d/ with the following contents: [darkknight@darkworld rules.d]$ cat logitech-mice.rules BUS="usb", SYSFS{idVendor}="046d", SYSFS{idProduct}="c00e", PROGRAM="/usr/local/bin/logitech_applet -e -s 800" BUS="usb", SYSFS{idVendor}="046d", SYSFS{idProduct}="c00f", PROGRAM="/usr/local/bin/logitech_applet -e -s 800" BUS="usb", SYSFS{idVendor}="046d", SYSFS{idProduct}="c012", PROGRAM="/usr/local/bin/logitech_applet -e [...]]]></description>
			<content:encoded><![CDATA[<p>5 easy steps:</p>
<p>1. Get and install the Logitech Applet from <a href="http://freshmeat.net/projects/logitech_applet/">here</a> or directly from <a href="http://www.frogmouth.net/logitech_applet-0.4test1.tar.gz">here</a></p>
<p>2. Install the poper udev rules:<br />
Create a file <span style="font-weight: bold;">logitech-mice.rules</span> under <span style="font-weight: bold;">/etc/udev/rules.d/</span> with the following contents:</p>
<pre>
[darkknight@darkworld rules.d]$ cat logitech-mice.rules
BUS="usb", SYSFS{idVendor}="046d", SYSFS{idProduct}="c00e", PROGRAM="/usr/local/bin/logitech_applet -e -s 800"
BUS="usb", SYSFS{idVendor}="046d", SYSFS{idProduct}="c00f", PROGRAM="/usr/local/bin/logitech_applet -e -s 800"
BUS="usb", SYSFS{idVendor}="046d", SYSFS{idProduct}="c012", PROGRAM="/usr/local/bin/logitech_applet -e -s 800"
BUS="usb", SYSFS{idVendor}="046d", SYSFS{idProduct}="c024", PROGRAM="/usr/local/bin/logitech_applet -e -s 800"
BUS="usb", SYSFS{idVendor}="046d", SYSFS{idProduct}="c01b", PROGRAM="/usr/local/bin/logitech_applet -e -s 800"
BUS="usb", SYSFS{idVendor}="046d", SYSFS{idProduct}="c025", PROGRAM="/usr/local/bin/logitech_applet -e -s 800"
BUS="usb", SYSFS{idVendor}="046d", SYSFS{idProduct}="c01d", PROGRAM="/usr/local/bin/logitech_applet -e -s 800"
BUS="usb", SYSFS{idVendor}="046d", SYSFS{idProduct}="c031", PROGRAM="/usr/local/bin/logitech_applet -e -s 800"
</pre>
<p>Change the file permissions:</p>
<pre>
[darkknight@darkworld rules.d]$ sudo chown root.root logitech-mice.rules
[darkknight@darkworld rules.d]$ sudo chmod 644 logitech-mice.rules &&amp; ls -l
total 24
-rw-r--r--  1 root root  146 Apr 13 20:30 10-wacom.rules
-rw-r--r--  1 root root 7406 May 21 05:45 50-udev.rules
-rw-r--r--  1 root root  888 Sep  6 23:12 logitech-mice.rules
</pre>
<p>3. Modify <span style="font-weight: bold;">/etc/X11/xorg.conf</span> as follows to support the thumb buttons:</p>
<pre>
Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option      "Protocol" "ExplorerPS/2"
    Option      "Device" "/dev/input/mice"
    Option      "ZAxisMapping" "6 7"
    Option      "Buttons" "7"
    Option      "Emulate3Buttons" "no"
EndSection
</pre>
<p>4. Create a script <span style="font-weight: bold;">xmouse.sh</span> under <span style="font-weight: bold;">/etc/X11/xinit/xinitrc.d</span> with the following contents:</p>
<pre>
[darkknight@darkworld xinitrc.d]$ cat xmouse.sh
#!/bin/bash

/usr/X11R6/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5"
</pre>
<p>This ensures that the scrolling funtion is correctly assigned to the wheel and not to the thumb buttons.</p>
<p>Make sure that the file permissions are correct:</p>
<pre>
[darkknight@darkworld xinitrc.d]$ sudo chmod 755 xmouse.sh &&amp; ls -l
total 16
-rwxr-xr-x  1 root root 1579 Apr 11 13:43 xinput.sh
-rwxr-xr-x  1 root root   81 Sep  2 17:36 xmbind.sh
-rwxr-xr-x  1 root root   66 Sep  6 23:41 xmouse.sh
</pre>
<p>5. Reboot (Or simply unplug/re-plug mouse and restart X)</p>
<p>Happy surfing! Got the udev rules from the <a href="http://ubuntuforums.org/showthread.php?t=4357">Ubuntu Forum</a> (modified the PROGRAM line to use logitech_applet instead of lmctl).</p>
<p><strong>Edit [July 30, 2007]:</strong> It has been a while since the steps above were posted. The syntax of UDEV rules have changed much since then. The updated rule is (for my MX-510):</p>
<pre>
$ cat /etc/udev/rules.d/60-logitech-mouse.rules
SUBSYSTEMS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c01d", RUN+="/usr/local/bin/logitech_applet -e -s 800"
</pre>
<p>Device details necessary for writing UDEV rules can be discovered using (substitute <span style="font-size:85%;"><span style="font-family: courier new;">/dev/input/mouse1</span></span> with path to device of interest):</p>
<pre>
# udevinfo -a -p $(udevinfo -q path -n /dev/input/mouse1)
</pre>
<p><strong>Update [19th Nov. 2009]:</strong> On Fedora 12 (X.Org X Server 1.7.1), the configuration needed to get the thumb buttons working is:</p>
<pre>
Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "ExplorerPS/2"
        Option      "Device" "/dev/input/mice"
        Option      "Emulate3Buttons" "no"
        Option      "Buttons" "9"
        Option      "ZAxisMapping" "4 5"
EndSection
</pre>
<p>It seems that it is no longer necessary to remap the buttons using <strong>xmouse.sh</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://scrolls.mafgani.net/2005/08/turn-on-800dpi-mode-for-the-logitech-mx-510-mouse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

