Tune Up Corner ET auf Linux

Login/Logout



How to get all mouse buttons working PDF Print E-mail
Written by Sonyfan   
Sunday, 24 January 2010 12:20

Info: This works for a Logitech MX5xx/Razor Copperhead & Microsoft IntelliMouse Explorer 3.0A mouse, and may or may not work for other similar 7-button mice. This might not be the best solution but it works perfect for me. If you got a better solution let me know!

Install imwheel

Code:
sudo aptitude install imwheel

Edit xorg.conf:

Code:
sudo gedit /etc/X11/xorg.conf

Replace/Add the mouse section with the following:

Code:
Section "InputDevice"
    Identifier "Configured Mouse"
    Driver "mouse"
    Option "CorePointer"
    Option "Device" "/dev/input/mice"
    Option "Protocol" "ExplorerPS/2"
    Option "Buttons" "7"
    Option "ButtonMapping" "1 2 3 6 7"
    Option "Emulate3Buttons" "false"
EndSection

For Ubunut 8.04 & 8.10 (german keyboard) add above the new mouse section:

Code:
Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbRules" "xorg"
    Option         "XkbModel" "pc105"
    Option         "XkbLayout" "de"
    Option         "XkbVariant" "nodeadkeys"
EndSection

For Ubunut 8.04 & 8.10 add to the end of the xcorg.conf:

Code:
Section "ServerFlags"
   Option      "AutoAddDevices" "false"
EndSection

Create .imwheelrc:

Code:
sudo gedit .imwheelrc

Paste in the following:

Code:
".*"
None, Up, Alt_L|Left
None, Down, Alt_L|Right

"(null)"
None, Up, Alt_L|Left
None, Down, Alt_L|Right

Make imwheel start with X by editing the startup file:

Code:
sudo gedit /etc/X11/imwheel/startup.conf

Find this line and change the 0 to a 1:

Code:
IMWHEEL_START=0

Add one final file"

Code:
sudo gedit /etc/X11/Xsession.d/63xmodmap

Paste in this code:

Code:
killall imwheel
xmodmap -e "pointer = 1 2 3 4 5 6 7"
BINARY=$(which imwheel)
$BINARY -k -p -b "6 7"

Make the file executable by all:

Code:
sudo chmod 777 /etc/X11/Xsession.d/63xmodmap

Restart X (CTRL + ALT + BACKSPACE), and you're done!

Last Updated on Sunday, 24 January 2010 12:21