Making a Logitech MX-500 mouse work with x2vnc

Since I got a new FreeBSD box at work last week, I had to remember how to make my Logitech MX-500 mouse

Logitech MX500 Optical Mouse (930763-0403)

work with Windows over x2vnc. This time I decided to document it for later reference.

Prerequisites: Your FreeBSD box needs to be already setup to accept USB mice. My box came to me with this already there, but on my older box, I remember that I had to compile some USB kernel modules to get this to work.
This may be of interest in getting that to work:

16:08 marca@shifter:~/compat/src/server$ pg usb
USER     PID %CPU %MEM   VSZ  RSS  TT  STAT STARTED      TIME COMMAND
root     184  0.0  0.1   932  584  ??  Is   Thu05PM   0:00.21 /usr/sbin/usbd
root       6  0.0  0.0     0    0  ??  DL   Thu05PM   0:00.04  (usb2)
root       5  0.0  0.0     0    0  ??  DL   Thu05PM   0:00.01  (usb1)
root       4  0.0  0.0     0    0  ??  DL   Thu05PM   0:00.00  (usbtask)
root       3  0.0  0.0     0    0  ??  DL   Thu05PM   0:00.04  (usb0)

16:09 marca@shifter:~/compat/src/server$ pg mouse
USER     PID %CPU %MEM   VSZ  RSS  TT  STAT STARTED      TIME COMMAND
root    7667  0.0  0.1   924  520  ??  Ss   Fri11AM   0:10.24 /usr/sbin/moused
 -p /dev/ums0 -I /var/run/moused.ums0.pid

I am NOT running imwheel.

In order to map the two side buttons to back and forward, I added this to my .xinitrc:

/usr/X11R6/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5"

and my /etc/X11/XF86Config has:

Section "InputDevice"                                                                                                         
    Identifier  "Mouse1"                                                                                                      
    Driver      "mouse"                                                                                                       
    Option "Protocol"    "Auto"                                                                                               
    Option "Device"      "/dev/sysmouse"                                                                                      
    Option "Buttons"     "7"                                                                                                  
    Option "ZAxisMapping" "6 7"        

where the last two lines were the additions that made it work.

With this in place, I have:

  1. The side buttons do backward and forward in Windows.
  2. The scroll wheel works in Windows.

Now if I could just get:

  1. the Windows key to work in Windows
  2. ActiveWords to catch keypresses over VNC.

Leave a Reply

Your email address will not be published. Required fields are marked *