I have been attempting to get my USB Microsoft Wireless IntelliMouse Explorer to completely work in Firefox and Nautilus for years now. Here's how I did it (with the help of numerous forum posts which I have lost the links to now). Hopefully this will help someone else out.
1. Install imwheel from Synaptic
Make sure Universe is enabled to find this package. (See HOWTO: apt-get)
2. Edit /etc/X11/xorg.conf
Change protocol to ExplorerPS/2, define number of buttons as 7, and reorder ZAxisMapping, by making your xorg.conf file like the one below.
Backup first:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
sudo gedit /etc/X11/xorg.conf
Sample Mouse section from xorg.conf:
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
EndSection
Your mouse section may be slightly different I am not sure.
3. Create file .imwheelrc in /home/username
gedit /home/username/.imwheelrc
Paste in this code:
".*"
None, Up, Alt_L|Left
None, Down, Alt_L|Right
"(null)"
None, Up, Alt_L|Left
None, Down, Alt_L|Right
4. Backup and edit existing file /etc/X11/imwheel/startup.conf
sudo cp /etc/X11/imwheel/startup.conf /etc/X11/imwheel/startup.conf.bak
sudo gedit /etc/X11/imwheel/startup.conf
Find this line:
IMWHEEL_START=0
...and replace with:
IMWHEEL_START=1
5. This is the final piece in the puzzle:
sudo gedit /etc/X11/Xsession.d/63xmodmap
and paste in this code:
killall imwheel
xmodmap -e "pointer = 1 2 3 6 7 4 5"
BINARY=$(which imwheel)
$BINARY -k -p -b "6 7"
6. Save this file and then change the permissions so that it can be executed:
Code:
sudo chmod 777 /etc/X11/Xsession.d/63xmodmap
7.Restart x server with Control+Alt+Backspace, re-login to X, and the mouse buttons and wheel should be working in Firefox and Nautilus!