Logitech G9 Laser Mouse

From juliano.info

Jump to: navigation, search
Logitech G9 Laser Mouse

I just got my hands on a new mouse, a Logitech G9 Laser Mouse. For sure, this is one of the best pieces of hardware I've seen in the last ten years, really worth its cost.

As usual, just plugging it on Linux and it is promptly recognized and enabled. The mouse appears to the system as a keyboard+mouse composite USB device. Probably the keyboard part is used for the macros and other functions (zoom in/out, etc) you may program in it.

But the mouse part is a little non-standard, and not all the buttons were generating the correct events. Xorg's default "mouse" driver had the horizontal scroll messed. Some Google searches showed that more people had problems with this mouse on Xorg and different, diverging configurations suggested:

I tried the "evdev" driver, it really did a better job getting all the buttons recognized, but unfortunately none of the suggestions correctly mapped the buttons to the correct events, so that I could tilt the wheel to scroll horizontally.

The solution I found was a mix of Xorg's "evdrv" and an entry to ~/.Xmodmap:


Section "InputDevice"
    Identifier     "Mouse1"
    Driver         "evdev"
    Option         "Name" "Logitech G9 Laser Mouse"
    Option         "Vendor" "0x046D"
    Option         "Product" "0xC048"
    Option         "Protocol" "auto"
    Option         "Phys" "usb-0000:00:1d.0-2/input0"
    Option         "WHEELRelativeAxisButtons" "4 5"
    Option         "HWHEELRelativeAxisButtons" "6 7"
    Option         "Emulate3Buttons" "no"


pointer = 1 2 3 4 5 11 12 8 9 10 6 7