当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 3 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 如何使用微软7键鼠标IntelliMouse Explorer2.0 in Firefox & Nautilus
帖子发表于 : 2005-12-10 6:12 

注册: 2005-12-02 7:23
帖子: 111
送出感谢: 0 次
接收感谢: 0 次
在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


_________________
初识ubuntu,刻苦钻研中!
http://spaces.msn.com/members/neoion/
http://neoion.blogspot.com/


最后由 Neoion 编辑于 2005-12-10 7:32,总共编辑了 1 次

页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2005-12-10 7:27 

注册: 2005-12-02 7:23
帖子: 111
送出感谢: 0 次
接收感谢: 0 次
首先安装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


_________________
初识ubuntu,刻苦钻研中!
http://spaces.msn.com/members/neoion/
http://neoion.blogspot.com/


页首
 用户资料  
 
3 楼 
 文章标题 :
帖子发表于 : 2005-12-30 13:59 
论坛管理员

注册: 2005-03-27 0:06
帖子: 10116
系统: Ubuntu 12.04
送出感谢: 7
接收感谢: 128
http://www.ubuntu.org.cn/support/docume ... /base_view


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 3 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译