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
- Edit your
/etc/X11/xorg.conf
to have: - 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
- Create
~.xbindkeysrc
and put this lines: - Execute
xbindkeys
for current session, and add it toSystem->Preference->Sessions
to load it on each logon
$ 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
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
$ sudo apt-get install xbindkeys xvkbd
"/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[Left]""
b:11
"/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[Right]""
b:12
I hope this will help you…
Filed under: *nix | Tagged: button, gutsy, linux, logitech, scroll, v470 | 3 Comments »