分页: 1 / 2
ie4.0鼠标有办法驱动吗(基本解决)
发表于 : 2006-11-21 2:04
由 purewind
本来有5个键,纵横滚轮的,现在只能当个普通滚轮用了,而且滚轮速度没法调。不知道是不是歪打正着了,反正给大家看看参考
发表于 : 2006-11-21 20:47
由 eexpress
man xmodmap
或者网上找到某个现成的xmodmap配置文件,for ie4的。
发表于 : 2006-11-23 15:16
由 purewind
终于用上了拇指键,现在上网可以用他们俩个后退和前进了。可惜纵横滚轮还没搞好,继续试验中
说明如下:
首先安装imwheel
sudo apt-get imwheel
然后修改xorg.conf文件
sudo gedit /etc/X11/xorg.conf
找到
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "Buttons" "5"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
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"
Option "Emulate3Buttons" "true"
EndSection
就是说把按键数改成7个,滚轮使用67两个。(把上下滚动当成上下两个按键来处理,一般的滚轮鼠标都是5个按钮,左键、右键、中键和上下滚轮,ie4.0之类多了两个拇指键、两个左右滚轮,应该是9个按钮,我先设置7个用)
发表于 : 2006-11-23 15:39
由 purewind
这个部分不知道有没有实际作用,里面是针对各种软件环境的鼠标按键设定
编辑imwheel的设置文件imwheelrc
sudo gedit /etc/X11/imwheel/imwheelrc
找到下面这个部分
".*"
#, Up, Button4
#, Down, Button5
#, Left, Button6
#, Right, Button7
#, Thumb1, Button6
#, Thumb2, Button7
修改成
".*"
, Up, Button4
, Down, Button5
, Left, Button6
, Right, Button7
, Thumb1, Button6
, Thumb2, Button7
其实就是把#号都去掉。
发表于 : 2006-11-23 15:47
由 purewind
然后编辑imwheel的启动设定文件startup.conf
sudo gedit /etc/X11/imwheel/startup.conf
把
IMWHEEL_START=0
改成
IMWHEEL_START=1
让它随着x启动
接下来就是指定按键
imwheel -b 6745
重新运行imwheel
imwheel -k
现在应该可以在firefox中用拇指键来前进后退了。
不过每次都要重复这俩个命令,比较麻烦,试验了整天没进展
发表于 : 2006-11-24 9:37
由 purewind
又鼓捣了一会,发现没那么简单,上面的方法只是临时的。
xmodmap -pp
得到的信息是
There are 13 pointer buttons defined.
Physical Button
Button Code
1 1
2 2
3 3
4 6
5 7
6 4
7 5
8 8
9 9
10 10
11 11
12 12
13 13
发表于 : 2006-12-20 0:10
由 purewind
编辑
/etc/X11/Xsession.d/63xmodmap
在后面加上一行
imwheel
重启以后也能起作用了。
发表于 : 2006-12-28 18:18
由 purewind
6.06 should be:
".*"
, Up, Button6
, Down, Button7
, Left, Button4
, Right, Button5
, Thumb1, Button4
, Thumb2, Button5
发表于 : 2006-12-28 20:05
由 eexpress
不还是调用xmodmap。还搞这么复杂一个软件出来了。
发表于 : 2006-12-29 15:28
由 zergxx
为什么我xmodmap -pp出来的结果是
There are 9 pointer buttons defined.
Physical Button
Button Code
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
而用xev测试的时候1,2,3,4,5,8,9都可以,6,7(也就是左右滚轮)都没有反应呢?
发表于 : 2006-12-29 15:38
由 purewind
在xorg.conf里面把按钮数设为9,就能检测13个。有时候是11个。
我的拇指键一个键是两个,按下去是6松开是8,这个我还没搞明白
发表于 : 2006-12-29 15:52
由 zergxx
IE4应该9个键才是正确的啊,而xorg.conf里面buttons是5啊,这个怎么解释啊?
还有imwheel中对各个软件环境进行的键的设定好像没什么作用啊
发表于 : 2006-12-29 16:00
由 zergxx
我把buttons改成了9其他没动,如下
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "Buttons" "9"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection
重启,xmodmap -pp一下
There are 13 pointer buttons defined.
Physical Button
Button Code
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10 10
11 11
12 12
13 13
这到底是怎么回事呢?
发表于 : 2006-12-29 16:41
由 purewind
xev测过。
大拇指按下是6,抬起是8
小拇指按下是7,抬起是9
上滚4,下滚5
刚重装了,出现新问题,恶搞。现在快速滚动滚轮,向下就会变成7,看网页的时候经常变成随便后退前进,乱死了
发表于 : 2006-12-29 19:19
由 fli2000
sudo gedit /etc/X11/xorg.conf
将鼠标段改成如下部分,即可以在firefox下使用拇指键(前进和后退)了,但是在nautilus文件管理器中无效。
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "Emulate3Buttons" "false"
Option "Buttons" "7"
Option "ZAxisMapping" "4 5"
Option "ButtonMapping" "1 2 3 6 7"
Option "Resolution" "100"
EndSection