Search:  
Gentoo Wiki

Logitech_V200

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

Contents

Intro

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

Prior to the actions documented here, I researched http://forums.gentoo.org, 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 http://www.qbik.ch/usb/devices/showdev.php?id=3593 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.

Kernel

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>

USB_HID=m

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

USB_HIDINPUT=y

After compilation, I did

Code: ensure kernel module is in place
$modprobe usbhid
$lsmod
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
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.

/etc/X11/xorg.conf

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" 
EndSection

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


/etc/conf.d/usb

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

File: /etc/conf.d/usb
X11_USBMICE_HACK=true
Retrieved from "http://www.gentoo-wiki.info/Logitech_V200"

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