Hits: 8,197
Home >> Hardware >> Logitech G7 Mouse

Logitech G7 USB Mouse (evdev)

May 8th, 2006 logitech G7 Mouse

The Logitech G7 USB Mouse is one of the latest toys for high-end mouse users such as gamers and graphic artists. It has supports a huge resolution of 2000dpi using a percision laser. It also runs at 4x speed over typical cordless using a 2.4 GHz wireless transmitter. Two buttons below the scroll wheel allow you to fine-tune your resolution. And finally it includes two rechargable batteries so you will never run out of juice. Typical street prices is around $99.

Configure the Kernel

The first step is to make sure that Event interface is enabled for the kernel. This can be found in 2.6.x kernels under Device Drivers/Input device support/Event interface. (CONFIG_INPUT_EVDEV)

xorg.conf (evdev)

While you can run this as another driver such as PS/2 or ExplorerPS/2, I went with evdev for the best support. This is a copy of my Xorg-X11 config.

Section "InputDevice"
        Identifier      "Logitech G7"
        Driver          "evdev"
        Option          "Protocol"      "evdev"
        Option          "Dev Name"      "Logitech USB Reciever"
        Option          "Dev Phys"      "usb-0000:00:1d.0-2.4/input0"
        Option          "Device"        "/dev/input/event3"
        Option          "Buttons"       "8"
        Option          "ZAxisMapping"  "4 5 7 8"
        Option          "Emulate3Buttons" "no"
EndSection

Xorg-X11 also has to have support for evdev built into it. I use Gentoo Linux so it was just a config setting before it was emerged. For modular Xorg-X11 use this in /etc/make.conf

INPUT_DEVICES="evdev keyboard mouse"

Finding the mouse

While the above is for my setup, it will most likely not work for others. You will need to find the correct settings for your mouse.

$ cat /proc/bus/input/devices
I: Bus=0003 Vendor=046d Product=c51a Version=4100
N: Name="Logitech USB Receiver"
P: Phys=usb-0000:00:1d.0-2.4/input0
S: Sysfs=/class/input/input3
H: Handlers=mouse1 event3
B: EV=7
B: KEY=ffff0000 0 0 0 0 0 0 0 0
B: REL=143

As you can see, the Vendor ID is 046d and the Product ID is c51a. This is important if you have more then one logitech device on your system. The two values that are then used are Phys and Sysfs. You will need to set Dev Phys and Device in your xorg.conf.