I have been attempting to get my USB Microsoft Wireless IntelliMouse Explorer to completely work in Firefox and Nautilus for years now. I followed all of the guides on this and other forums and nothing was able to get the back and forward buttons to work in both Firefox and Nautilus. The side buttons would work in Firefox but not in Nautilus...until 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.
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.
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
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:
And replace with:
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 "67"
The Wiki site recommended creating file 57xmodmap that would startup before imwheel but this only ever worked for me in Firefox. Never worked for me in Nautilus. This has to start AFTER imwheel for some reason.
6. Save this file and then change the permissions so that it can be executed:
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!
I love it when a plan comes together
最后由 Neoion 编辑于 2005-12-10 7:32，总共编辑了 1 次