After upgrading to Slackware 11.0 I discovered that my previously working Thumb buttons for my Intellimouse Optical were no longer working. The problem was due to changes in X-Windows.
Here is the solution to the problem.
This is the same as before and also works for Slackware 10.2. In "/etc/X11/xorg.conf
" put the following mouse definition.
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/mouse"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
The important things are the "Protocol
" and "ZAxisMapping
This is different in Slackware 11.0. Create or edit the file "/etc/xprofile
" so that it contains the following.
# Map buttons for Intellimouse
xmodmap -e "pointer = 1 2 3 8 9 4 5 6 7 10 11"
For older versions of Slackare you need a different order for the button numbers, and you don't define 11 buttons.
You can create a ".xprofile
" file in your home directory to accomplish the same thing. NOTE: It appears that BOTH files will be executed, so creating an empty ".xprofile
" in your home directory does not prevent "/etc/xprofile
" from correctly mapping the buttons. If you have an "xmodmap" in both places, the one in ".xprofile
" executes last, and has precedence.
Some documentation refers to other files such as ".xsession
" or "Xsession
". In my experience neither of those is executed for a KDE graphical logon.
If you would like to use imwheel
here is the command to load it.
# Mouse button macros
imwheel -k -b "4567"
Add the above command to ".xprofile
" in your home directory.
You also need a ".imwheelrc
" file in your home directory with any macros that you want.
, Up, Button4
, Down, Button5
, Left, Alt_L|Left
, Right, Alt_L|Right
# Pass through mouse events for everything else
The mouse wheel will generate "Up
" and "Down
" events, and the thumb buttons will generate "Left
" and "Right
The only simulated button clicks that I have been able to get to work with imwheel are "Button4
" for Wheel Up and "Button5
" for Wheel Down. The Thumb buttons apparently can't be simulated with macros. For example, you can't reverse the Thumb buttons with a macro, but you can map the Thumb buttons to keyboard macros that accomplish the same thing. Although you can't simulate Thumb buttons you can pass them through unchanged if you don't refer to them in a particular macro definition.
One thing that I found confusing at first is that "Left
" and "Right
" refer to the Thumb button clicks coming into imwheel, but refer to keyboard keys going out of imwheel.