View unanswered posts | View active topics It is currently Sun Dec 17, 2017 4:11 am



Reply to topic  [ 1 post ] 
How to get all mouse buttons working 
Author Message
Captain
Captain
User avatar

Joined: Thu Oct 30, 2008 6:32 pm
Posts: 1073
Reply with quote
Note: 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. If you got a better solution let us 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!


Sat Jan 22, 2011 5:26 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF.