在虚拟机VM中安装完Fedora8后,提示安装VMware Tools,在根据提示安装完VMware Tools后结果原来可以用的鼠标滚轮不会动了,不管怎样在什么程序下鼠标滚轮都不能用。
后来经过查找终于发现是VMware Tools修改了 /etc/X11/xorg.conf 文件,在终端中输入 sudo gedit /etc/X11/xorg.conf,以root权限打开文件可以看到文件如下:
# Xorg configuration created by system-config-display
Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "VMMouse" "CorePointer"
#InputDevice "XWorkAround"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us+inet"
EndSection
Section "InputDevice"
Identifier "VMMouse"
Driver "vmmouse"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "yes"
EndSection
#Section "InputDevice"
#Identifier "XWorkAround"
#Driver "void"
#EndSection
Section "Monitor"
Identifier "vmware"
VendorName "VMware, Inc"
HorizSync 1.0 - 10000.0
VertRefresh 1.0 - 10000.0
EndSection
Section "Device"
Identifier "VMware SVGA"
Driver "vmware"
EndSection
Section "Screen"
# Don't specify DefaultColorDepth unless you know what you're
# doing. It will override the driver's preferences which can
# cause the X server not to run if the host doesn't support the
# depth.
Identifier "Screen0"
Device "VMware SVGA"
Monitor "vmware"
DefaultDepth 16
SubSection "Display"
# VGA mode: better left untouched
Viewport 0 0
Depth 4
Modes "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
Modes "1024x768"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
Modes "1024x768"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
Modes "800x600" "720x400" "640x480" "640x400" "640x350"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768"
EndSubSection
EndSection
注意看上面文件中的红色部份,原来前面没有#符号,就是因为VMWare Tools多此一举加了这个XWorkAround驱动导致鼠标滚轮不能使用。现在可以在前面加上#符号让系统不去执行该行代码,或者干脆删除这四行,然后保存退出,接着再注销后重新启动XWindow后鼠标滚轮就可以用了。


fouryu 于 2008-05-16 08:39:42发表:
哈哈,谢谢!还好我这人连评论一起看,要不然也要和timebormb一样啦。
timebomb 于 2008-04-28 08:41:39发表:
哈哈,谢谢了,我的滚轮已经可以动了,嘻嘻,谢谢你的帮助,但是可否说明一下问题为什么可以这样解决,我会做,但是我不明白为什么,为什么他就是多余的呢,这个文件又是什么用处呢,可否告知小弟?:0wl;l1
stillriver 于 2008-04-25 21:41:16发表:
呵呵,受教了,以后碰到这个问题就好办了
mmonkey 于 2008-04-25 20:29:44发表:
Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "VMMouse" "CorePointer"
#InputDevice "XWorkAround"
EndSection
没有标清楚。注释掉滚轮就好用了。
timebomb 于 2008-04-24 11:36:51发表:
为什么我的修改以后重启发现不能进入图形界面了呢?我看是不是修改的不对啊,可是我是完全按照你的方法加了四个#的!看来是有待改进,最后害得我用vi改回来的!气死我了