HARDWARE Logitech V200 Cordless Mouse

From Gentoo Linux Wiki

Jump to: navigation, search
This article is part of the Hardware series.
Laptops TV Tuner Cards Wireless Servers Storage Other Hardware Motherboards Related
Merge-arrows.gif It has been suggested that this article be Merged into one article with HOWTO Advanced Mouse    (Discuss)

Contents

[edit] Logitech V200 Cordless Notebook Mouse

[edit] 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.

[edit] 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

[edit] 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.

[edit] /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


[edit] /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
Personal tools