Enabling Side Buttons of Scrolls V470 in Gutsy

After resuming for long holidays, just realize that someone ask me through commenting of my previous posting asking about enabling side buttons in V470 that I was missed before. Thanks pershy for reminding me.

Actually, there are several ways to do it, but I will write just one of them:

  • Get information of your device by issuing
  • $ cat /proc/bus/input/devices
    inspect similar to these following lines:
    I: Bus=0005 Vendor=046d Product=b008 Version=0313
    N: Name="Bluetooth Laser Travel Mouse"
    P: Phys=[your device's physical id]
    S: Sysfs=/class/input/input[your input device sequence number]
    U: Uniq=[your device unique bluetooth address]
    H: Handlers=mouse2 event6
    B: EV=7
    B: KEY=ff0000 0 0 0 0
    B: REL=143

  • Edit your /etc/X11/xorg.conf to have:
  • Section "InputDevice"
    Identifier "V470"
    Driver "evdev"
    Option "Name" "Bluetooth Laser Travel Mouse"
    Option "Dev Phys" "[your device's physical id]"
    EndSection
    ...
    Section "ServerLayout"
    ...
    InputDevice "V470"
    ...
    EndSection

  • Restart your X (Ctrl+Alt+Backspace)
  • From xev we can get button code of left or right direction of scroll button, left is 11 and right is 12
  • Next step, I want to bind it to key of back and forward history in Firefox that is Alt+Left and Alt+Right button
  • Install xbindkeys
  • $ sudo apt-get install xbindkeys xvkbd

  • Create ~.xbindkeysrc and put this lines:
  • "/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[Left]""
    b:11
    "/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[Right]""
    b:12

  • Execute xbindkeys for current session, and add it to System->Preference->Sessions to load it on each logon

I hope this will help you…

Advertisements

3 Responses

  1. You need to have

    Option “SendCoreEvents” “true”

    In the V470 InputDevice section of the xorg.conf file or the mouse stops working altogether when the above instructions are followed.

    OS/Machine combo:

    Gutsy 7.10, Lenovo T60 Dual Core

  2. Hi,

    I tried this but it didn’t work for me.

    I start xev and press de side scroll keys but nothing happens. The other keys are recognized by the xev.

  3. Hi,
    i still cant use wheel buttons until i put

    Option “Device” “/dev/input/event6” in my xorg.conf file.
    I get this data from:

    cat /proc/bus/input/devices

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: