Saturday, August 16, 2008

HowTo: Logitech MX518 under FreeBSD

I have both a Logitech MX500 and a MX518. Being an Enemy Territory old timer I need to make full use of the MX518 mouse under FreeBSD, which means having the Back, Forward and the other weird button below the wheel working.

The bellow xorg.conf settings were tested under FreeBSD 7.0 and X.Org X Server 1.4.2.
  • % su
  • # vim /etc/X11/xorg.conf
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/sysmouse"
Option "Buttons" "10"
Option "ZAxisMapping" "4 5"
Option "ButtonMapping" "1 2 3 6 7 8 9 10 4 5"
Option "Emulate3Buttons" "false"
With these settings you're free to bind MOUSE4, MOUSE5 and KP_EQUALS to Enemy Territory.

The sensitivity buttons work as their intended purpose: change the sensitivity on-the-fly. It was possible under Windows XP to change their behavior and bind them to keyboard keys however I'm not aware of how to do this under a *NIX system.

As a bonus, you can now use the Back and Forward buttons under Opera.

No comments: