Gentoo Wiki


Merge-arrows.gifIt has been suggested that this article be Merged into one article with X11 Mouse    (Discuss)



Great little piece of hardware. No one will be fired for purchasing.

Prior to the actions documented here, I researched, and found links calling for evdev, an X11 protocol.

I staggered my way through a modular X11 upgrade. (Note to self: do more research next time).

Then I found which is the basis for the work shown here. Thus, this advice isn't tested on a monolithic X11 base that lacks evdev, and may no worky-worky. Feedback sought.


You need to have USB Human Interface Devices compiled for your kernel. Become root, get yourself to menuconfig.

Linux Kernel Configuration: USB Human Interface Devices
Device Drivers -->
  USB Support -->
    <M> USB Human Interface Device (full HID) support

I picked <M>


Note: HID input layer support also became enabled for built-in compilation thus,


After compilation, I did

Code: ensure kernel module is in place
$modprobe usbhid
Module                  Size  Used by
usbhid                 27076  0
usbcore               114148  8 usbhid,visor,usbserial,ohci_hcd,uhci_hcd,usb_storage,ehci_hcd
$echo usbhid >> /etc/modules.autoload.d/kernel-2.6
$cat /etc/modules.autoload.d/kernel-2.6 | grep usbhid

udev rule

This was a challenge. I added the "Troubleshooting Guidance" section to UDEV as a result. This rule has been updated for 081-r1, which upgrade managed to screw me up. *Sigh*

File: /etc/udev/rules.d/10-udev.rules
KERNEL="mouse*", BUS="usb", SYSFS{product}=="USB Receiver", SYSFS{manufacturer}=="Logitech", MODE="0644", GROUP="plugdev", OWNER="<your login goes here>", NAME="input/mouse2"

No warranty on that. Feed back improvements to author.


File: /etc/X11/xorg.conf
Section "InputDevice" 
        Driver     "mouse" 
        Identifier "Mouse2" 
        Option     "Device"       "/dev/input/mouse2" 
        Option     "Protocol"     "ImPS/2" 
       #Option     "Resolution"   "integer" 
        Option     "ZAxisMapping" "4 5" 
        Option     "Buttons"      "5" 

#Oh, and don't neglect:
Section "ServerLayout"
    InputDevice "Mouse2" "CorePointer"


X only recognize the usb mouse when attached to the computer by changing following line.

File: /etc/conf.d/usb
Retrieved from ""

Last modified: Mon, 15 Sep 2008 04:12:00 +0000 Hits: 8,700