butterfly X online marketing

Welcome on the pages of butterfly X, my online marketing service. I'm Jean-Christoph von Oertzen, an online-marketer from Raubling, Germany.
On this site, you can follow my activities on the web, on twitter, del.icio.us, ...

If you want to know more about me, check my profile here.

I'm happy about any feedback, so please contact me.

tweet, tweet,..

Jean-Christoph von Oertzen

Jean-Christoph von Oertzen
Breitensteinweg 3
83064 Raubling
Tel: +49 (0)8035 / 955 45 65
jean@butterflyx.com
Skype: jeanvonoertzen

follow me on twitter:
http://www.twitter.com/butterflyx

stay tuned

subscribe to the butterfly X VIP mailing list! Specials and highlights exclusivly for you.

How to enable the extra buttons for a Logitech mouse on Ubuntu

I recently bought a VX Nano mouse from Logitech for my notebook, which runs Ubuntu 9.04 "Jaunty Jackalope". This nice laser-mouse has two extra buttons on the side and a tilt wheel, which can be used e.g. to scroll horizontally.

The mouse was recognized immediatly but the extra buttons didn't work, so I had to configure them myself.

Here is how I did it:

First I got the vendor and product id by typing

$ cat /proc/bus/input/devices  

 

which gave me:

I: Bus=0003 Vendor=046d Product=c526 Version=0111
N: Name="Logitech USB Receiver"
P: Phys=usb-0000:00:1d.0-1/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.0/input/input15
U: Uniq=    
H: Handlers=mouse2 event9 
B: EV=17
B: KEY=ffff0000 0 0 0 0 0 0 0 0
B: REL=143
B: MSC=10

 
so my vendor-id is 0x46d and the product-id ist 0xc526

Then I used

$ xev | grep button

 
to get the numbers the mouse buttons have. For me it was 6 and 7 for the tilt wheel and 8 and 9 for the forward-backward-buttons.

Finaly I added the file

20-x11-logitech.fdi

 
in the folder

/etc/hal/fdi/policy

 
with the content:

<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
  <device>
    <match key="info.capabilities" contains="input.mouse">
    <merge key="input.x11_driver" type="string">evdev</merge>
    <!-- Logitech tweaks -->
    <match key="@input.originating_device:usb.vendor_id" int="0x46d">
      <match key="@input.originating_device:usb.product_id" int="0xc526">
          <merge key="input.x11_options.HWHEELRelativeAxisButtons" type="integer">6 7</merge>
          <merge key="input.x11_options.ZAxisMapping" type="integer">9 8</merge>
      </match>
    </match>
    </match>
  </device>
</deviceinfo>

  

After a restart of HAL with

$ sudo /etc/init.d/hal restart  

 
the mouse buttons and the tilt wheel work perfectly. ^^

Links I used:

I posted at butterflyx.com

October 7 2009, 10:20pm | Comments »