救命!SUSE10中罗技鼠标的问题!高人请进!
前些天硬盘挂了,刚刚弄好,手上又刚下到suse1.0Professional,所以装上了,其它一切正常,但就是我的罗技lx7鼠标无法使用滚轮!鼠标上的“后退”键变成了上滚,但滚轮直接无法使用!左右键和中间键正常,“前进”键无效、滚轮无效!这个鼠标在RHEL AS4、Mandriva、ubuntu5.10下一切正常,(前进、后退键不能用俺可以接受)
几位爷救我!!
硬件:
AMD 2500+(@2.2GHz),
Abit NF7-S(nforce2),
1G DDR Ram,
Geforce4 MX400,
Maxtor 80G PATA(Suse=20G),
Maxtor 80G SATA(Windows&Program) 贴你的xorg.conf里鼠标的那一部分 # /.../
# SaX generated X11 config file
# Created on: 2006-03-20T19:32:48+0800.
#
# Version: 7.1
# Contact: Marcus Schaefer <[email protected]>, 2002
#
# Automatically generated by (7.1)
# PLEASE DO NOT EDIT THIS FILE!
#
Section "Files"
FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/local"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/URW"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo"
FontPath "/usr/X11R6/lib/X11/fonts/PEX"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/latin7/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/baekmuk:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/japanese:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/kwintv"
FontPath "/usr/X11R6/lib/X11/fonts/truetype"
FontPath "/usr/X11R6/lib/X11/fonts/uni:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/CID"
FontPath "/usr/X11R6/lib/X11/fonts/ucs/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/ucs/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/ucs/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/misc/sgi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/xtest"
FontPath "/opt/kde3/share/fonts"
InputDevices "/dev/ttyS0"
InputDevices "/dev/ttyS1"
InputDevices "/dev/ttyS2"
InputDevices "/dev/ttyS3"
InputDevices "/dev/ttyS4"
InputDevices "/dev/ttyS5"
InputDevices "/dev/ttyS6"
InputDevices "/dev/ttyS7"
InputDevices "/dev/ttyS8"
InputDevices "/dev/psaux"
InputDevices "/dev/logibm"
InputDevices "/dev/sunmouse"
InputDevices "/dev/atibm"
InputDevices "/dev/amigamouse"
InputDevices "/dev/atarimouse"
InputDevices "/dev/inportbm"
InputDevices "/dev/gpmdata"
InputDevices "/dev/mouse"
InputDevices "/dev/usbmouse"
InputDevices "/dev/adbmouse"
InputDevices "/dev/input/mice"
InputDevices "/dev/input/event0"
InputDevices "/dev/pointer0"
InputDevices "/dev/pointer1"
InputDevices "/dev/pointer2"
InputDevices "/dev/pointer3"
EndSection
Section "ServerFlags"
Option "AllowMouseOpenFail"
EndSection
Section "Module"
Load "glx"
Load "type1"
Load "extmod"
Load "dbe"
Load "freetype"
Load "v4l"
EndSection
Section "InputDevice"
Driver "kbd"
Identifier "Keyboard"
Option "Protocol" "Standard"
Option "XkbLayout" "us"
Option "XkbModel" "pc104"
Option "XkbRules" "xfree86"
EndSection
Section "InputDevice"
Driver "mouse"
Identifier "Mouse"
Option "Buttons" "8"
Option "Device" "/dev/input/mice"
Option "InputFashion" "Mouse"
Option "Name" "Logitech;MediaPlay"
Option "Protocol" "explorerps/2"
Option "Vendor" "Sysp"
Option "ZAxisMapping" "7 8"
EndSection
Section "InputDevice"
Driver "mouse"
Identifier "Mouse"
Option "Buttons" "5"
Option "Device" "/dev/input/mice"
Option "Name" "ImPS/2 Generic Wheel Mouse"
Option "Protocol" "explorerps/2"
Option "Vendor" "Sysp"
Option "ZAxisMapping" "4 5"
EndSection
Section "Monitor"
DisplaySize386 290
HorizSync 28-110
Identifier "Monitor"
ModelName "CTX DFX9100"
Option "DPMS"
VendorName "CTX"
VertRefresh50-160
UseModes "Modes"
EndSection
Section "Modes"
Identifier "Modes"
Modeline "1280x1024" 186.80 1280 1376 1520 1760 1024 1025 1028 1083
Modeline "1280x960" 194.26 1280 1376 1520 1760 960 961 964 1022
Modeline "1280x960" 175.24 1280 1376 1520 1760 960 961 964 1016
Modeline "1280x960" 155.01 1280 1376 1512 1744 960 961 964 1010
Modeline "1280x960" 135.32 1280 1368 1504 1728 960 961 964 1004
Modeline "1280x960" 116.18 1280 1360 1496 1712 960 961 964 998
Modeline "1280x960" 97.68 1280 1352 1488 1696 960 961 964 993
Modeline "1280x800" 194.19 1280 1376 1520 1760 800 801 804 862
Modeline "1280x800" 177.98 1280 1376 1520 1760 800 801 804 857
Modeline "1280x800" 160.48 1280 1376 1512 1744 800 801 804 852
Modeline "1280x800" 144.76 1280 1376 1512 1744 800 801 804 847
Modeline "1280x800" 128.04 1280 1368 1504 1728 800 801 804 842
Modeline "1280x800" 111.77 1280 1360 1496 1712 800 801 804 837
Modeline "1280x800" 95.95 1280 1352 1488 1696 800 801 804 832
Modeline "1280x800" 80.58 1280 1344 1480 1680 800 801 804 827
Modeline "1152x864" 172.89 1152 1240 1368 1584 864 865 868 925
Modeline "1152x864" 157.39 1152 1240 1368 1584 864 865 868 920
Modeline "1152x864" 140.45 1152 1232 1360 1568 864 865 868 914
Modeline "1152x864" 125.43 1152 1232 1360 1568 864 865 868 909
Modeline "1152x864" 109.43 1152 1224 1352 1552 864 865 868 904
Modeline "1152x864" 93.90 1152 1224 1344 1536 864 865 868 899
Modeline "1152x864" 78.82 1152 1216 1336 1520 864 865 868 894
Modeline "1280x768" 186.31 1280 1376 1520 1760 768 769 772 827
Modeline "1280x768" 169.16 1280 1376 1512 1744 768 769 772 822
Modeline "1280x768" 154.07 1280 1376 1512 1744 768 769 772 818
Modeline "1280x768" 137.68 1280 1368 1504 1728 768 769 772 813
Modeline "1280x768" 122.87 1280 1368 1504 1728 768 769 772 808
Modeline "1280x768" 107.23 1280 1360 1496 1712 768 769 772 803
Modeline "1280x768" 92.15 1280 1352 1488 1696 768 769 772 799
Modeline "1280x768" 77.37 1280 1344 1480 1680 768 769 772 794
Modeline "1024x768" 149.05 1024 1104 1216 1408 768 769 772 827
Modeline "1024x768" 136.57 1024 1104 1216 1408 768 769 772 822
Modeline "1024x768" 122.97 1024 1096 1208 1392 768 769 772 818
Modeline "1024x768" 110.91 1024 1096 1208 1392 768 769 772 813
Modeline "1024x768" 97.84 1024 1088 1200 1376 768 769 772 808
Modeline "1024x768" 86.18 1024 1088 1200 1376 768 769 772 803
Modeline "1024x768" 73.89 1024 1080 1192 1360 768 769 772 799
Modeline "1024x768" 61.89 1024 1080 1184 1344 768 769 772 794
Modeline "800x600" 97.59 800 856 944 1088 600 601 604 650
Modeline "800x600" 90.10 800 856 944 1088 600 601 604 647
Modeline "800x600" 82.55 800 856 944 1088 600 601 604 643
Modeline "800x600" 73.98 800 848 936 1072 600 601 604 639
Modeline "800x600" 66.71 800 848 936 1072 600 601 604 635
Modeline "800x600" 58.73 800 840 928 1056 600 601 604 632
Modeline "800x600" 51.73 800 840 928 1056 600 601 604 628
Modeline "800x600" 44.13 800 840 920 1040 600 601 604 624
Modeline "800x600" 36.88 800 832 912 1024 600 601 604 621
Modeline "768x576" 89.56 768 824 904 1040 576 577 580 624
Modeline "768x576" 82.67 768 824 904 1040 576 577 580 621
Modeline "768x576" 75.72 768 824 904 1040 576 577 580 617
Modeline "768x576" 67.79 768 816 896 1024 576 577 580 613
Modeline "768x576" 61.21 768 816 896 1024 576 577 580 610
Modeline "768x576" 53.75 768 808 888 1008 576 577 580 606
Modeline "768x576" 47.41 768 808 888 1008 576 577 580 603
Modeline "768x576" 40.41 768 800 880 992 576 577 580 599
Modeline "768x576" 33.74 768 792 872 976 576 577 580 596
Modeline "640x480" 62.12 640 680 752 864 480 481 484 521
Modeline "640x480" 57.18 640 680 752 864 480 481 484 517
Modeline "640x480" 51.43 640 680 744 848 480 481 484 514
Modeline "640x480" 46.80 640 680 744 848 480 481 484 511
Modeline "640x480" 42.22 640 680 744 848 480 481 484 508
Modeline "640x480" 36.97 640 672 736 832 480 481 484 505
Modeline "640x480" 32.64 640 672 736 832 480 481 484 503
Modeline "640x480" 27.74 640 664 728 816 480 481 484 500
Modeline "640x480" 23.06 640 656 720 800 480 481 484 497
EndSection
Section "Screen"
DefaultDepth 24
SubSection "Display"
Depth 15
Modes "1280x1024" "1280x960" "1280x800" "1152x864" "1280x768" "1024x768" "800x600" "768x576" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1280x960" "1280x800" "1152x864" "1280x768" "1024x768" "800x600" "768x576" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1280x960" "1280x800" "1152x864" "1280x768" "1024x768" "800x600" "768x576" "640x480"
EndSubSection
SubSection "Display"
Depth 32
Modes "1280x1024" "1280x960" "1280x800" "1152x864" "1280x768" "1024x768" "800x600" "768x576" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x1024" "1280x960" "1280x800" "1152x864" "1280x768" "1024x768" "800x600" "768x576" "640x480"
EndSubSection
Device "Device"
Identifier "Screen"
Monitor "Monitor"
EndSection
Section "Device"
BoardName "GeForce4 MX 440"
BusID "2:0:0"
Driver "nvidia"
Identifier "Device"
#Option "NvAGP" "2"
#Option "NvAGP" "0"
#Option "NvAGP" "3"
#Option "NvAGP" "1"
Screen 0
VendorName "NVidia"
EndSection
Section "ServerLayout"
Identifier "Layout"
InputDevice"Keyboard" "CoreKeyboard"
InputDevice"Mouse" "CorePointer"
Option "Clone" "off"
Option "Xinerama" "off"
Screen "Screen"
EndSection
Section "DRI"
Group "video"
Mode 0660
EndSection
Section "Extensions"
EndSection 奇怪的是,为什么认出来两个鼠标? Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
我的mouse的部分,和你用的protocol不一样。 请问高人应如何解决呢?谢谢! 你尝试把那个Option "Protocol" "修改成ImPS/2"
看看。如果不行再说。 Section "ServerLayout"
Identifier "Layout"
InputDevice "Keyboard" "CoreKeyboard"
InputDevice "Mouse" "CorePointer"
Option "Clone" "off"
Option "Xinerama" "off"
Screen "Screen"
EndSection
试一下这样改
这样改,你的鼠标就应该相当于一个滚轮鼠标 来源:
http://www.discuz.net/viewthread.php?tid=193617
linux中如何使用微软鼠标的第4、5键
虽说使用linux的人大都对微软没什么好感,但不能否认微软确实也出了不少好东西呀,比如微软鼠标(IE系列) icon_smile.gif IE 2.0和以上版本都有5个按钮,除了正常的左中右外,两侧还各有一个,在windows中可用来支持浏览器的前进/后退功能很是方便。其实在linux中稍加配置也能完成同样的功能,为什么不呢?
(一)先解释一下linux中对鼠标按钮和滚轮的处理。
在linux中,滚轮被当作两个按钮来处理,向上滚是一个,向下滚是另一个。所以以IE2.0为例,一共有7个按钮:左中右三个,两侧各一个,加上滚轮两个。
(二)修改X配置
首先我们考虑你的机器只有一个鼠标的情况,因为我的实验是在IBM笔记本上进行的,微软鼠标是我的第二个鼠标(别忘了,笔记本自己还有一个呢),这种多于一个的情况有些复杂,稍后再叙述。
需要修改的配置文件 /etc/X11/XF86Config,或者 /etc/X11/XF86Config-4,如果两个都有就改第二个。
找到关于鼠标的一段,一般是下面这样的。
代码:
Section InputDevice
Identifier Mouse0
Driver mouse
Option Device /dev/mouse
Option Protocol IMPS/2
Option Emulate3Buttons no
Option ZAxisMapping 4 5
Option Buttons 5
EndSection
其中 Identifier 和 Device字段各人的机器会不一样,我们也不用管它。我们需要修改的是其他字段,修改后的配置如下:
代码:
Section InputDevice
Identifier Mouse0
Driver mouse
Option Device /dev/mouse
Option Protocol ExplorerPS/2
Option Emulate3Buttons no
Option ZAxisMapping 6 7
Option Buttons 7
EndSection
说明:
Option Device 字段说明鼠标的类型,这里改成微软鼠标的类型,如果是其它型号的鼠标,比如逻技,只要型号代码填写正确也应可行。至于普通的5键鼠标,用IMPS/2行不行,我没试过;
Option Buttons 字段说明鼠标的按钮个数,计算方法前面说过了;
Option ZAxisMapping 字段说明将滚轮映射成哪两个按键,这里也是比较有意的地方,无论你的鼠标有几个按钮,正常的情况应该是 4 5。可是X只能认识最后的两个按钮为鼠标,所以必须改成6 7,而造成的后果就是:左右两侧的按钮成了滚轮,滚轮成了两侧的按钮,不过不要害怕,下面自有办法解决icon_smile.gif
(三)重新启动X
配置修改好了,重新启动X,看看我们的成果。在命令行下输入 xev 进行测试。
把鼠标移到那个小窗口中,分别按鼠标的各个按钮和上下滚动滚轮,窗口中应该出现button 1,button 2, ... button 7的字样。(注意:按下去时没有,必须释放才有,这是鼠标的工作原理,呵呵)
如果你能看到button 1 ... button 7,恭喜即将大功告成了。
现在我们还要解决滚轮和两侧按钮倒置的问题。在命令行中输入
代码:
xmodmap -e pointer = 1 2 3 6 7 4 5
将倒置的按钮顺序重新“正”过来!至此所有的设置完成,找个支持4、5键的流览器来看看,比如 Firefox 。
怎么样,在linux下面,你也能方便的“前进”,“后退”了吧。
下面再谈谈其它的问题。
(一)由于每次启动X后都需要手工执行xmodmap -e pointer = 1 2 3 6 7 4 5,怎么才能自动执行呢?
这个本不属于本文讨论的范围,可考虑到使用的方便还是,我还是来写一点吧。
由于这个命令必须在每次启动X后执行,将它写在.bashrc等文件中是没有用的。有的系统.xinitrc或者.xsession也不行。似乎问题很复杂,不同的linux发型版本和桌面系统都不一样。
我以RedHat为例来说一下。
如果你使用Gnome,这么做:在自己的目录下建一个可执行脚本,比如叫mouse.sh
代码:
#!/usr/bin/bash
xmodmap -e pointer = 1 2 3 6 7 4 5
保存后别忘了chmod +x mouse.sh
进入gnome,在设置-〉其它设置 中找到session,把mouse.sh加到启动程序中即可。
如果你使用KDE,在自己的目录下建一个.kdestart文件,同样写上
代码:
#!/usr/bin/bash
xmodmap -e pointer = 1 2 3 6 7 4 5
即可。
(二)如何在多于一个鼠标的系统上(比如IBM笔记本)正确配置呢?
配置其实是一样的,可问题在于xmodmap似乎只支持CorePointer,即第一个鼠标,这样默认的配置,你的微软鼠标滚轮是左右两侧键,“正”不过来了。
我的解决办法是人工的禁止笔记本上自带的那个鼠标,(不知道将USB鼠标设置成CorePointer行不行,我没试过,嘿嘿)。
转自:linux
相关关键字: LINUX 鼠标 Logitech MX510在xorg.conf中改成
Option "ZAxisMapping" "7"
正常使用所有按键 如何支持我的罗技G1鼠标?
页:
[1]