如何使用微软7键鼠标IntelliMouse Explorer2.0 in Firefox & Nautilus

上网、浏览、聊天、下载等
回复
Neoion
帖子: 111
注册时间: 2005-12-02 7:23
送出感谢: 0
接收感谢: 0

如何使用微软7键鼠标IntelliMouse Explorer2.0 in Firefox & Nautilus

#1

帖子 Neoion » 2005-12-10 6:12

在http://ubuntuforums.org/showthread.php?t=44191&highlight=intellimouse

找到的,经过亲手测试,可以在Nautilius和Firefox里都正常运行;

希望对大家有帮助


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.

Backup first:

Code:

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak


sudo gedit /etc/X11/xorg.conf

Sample Mouse section from xorg.conf:
Code:

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:

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:

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:

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!

I love it when a plan comes together
上次由 Neoion 在 2005-12-10 7:32,总共编辑 1 次。
Neoion
帖子: 111
注册时间: 2005-12-02 7:23
送出感谢: 0
接收感谢: 0

#2

帖子 Neoion » 2005-12-10 7:27

首先安装imwheel服务:
sudo apt-get install imwheel
password:您的用户密码

编辑 /etc/X11/xorg.conf:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
sudo gedit /etc/X11/xorg.conf

找到Section "InputDevice"
Identifier "Configured Mouse"
.
.
.
EndSection
这一段;更改为:

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

存盘退出gedit

在用户根目录下创建名为.imwheelrc的文件:
gedit /home/username/.imwheelrc

粘贴下边的代码:

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

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


存盘退出

备份并编辑/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

找到这一行:
IMWHEEL_START=0
替换为:
IMWHEEL_START=1

最后建立63xmodmap文件:

sudo gedit /etc/X11/Xsession.d/63xmodmap
输入如下代码:
killall imwheel
xmodmap -e "pointer = 1 2 3 6 7 4 5"
BINARY=$(which imwheel)
$BINARY -k -p -b "67"

更改文件属性:

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

重新启动ubuntu
头像
oneleaf
论坛管理员
帖子: 10229
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04
送出感谢: 7 次
接收感谢: 103 次

#3

帖子 oneleaf » 2005-12-30 13:59

回复

回到 “因特网相关软件”