Fedora8安装VMware Tools后鼠标滚轮不能用的问题的解决方法

super 撰写  

在虚拟机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 “640×480″
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 8
Modes “1024×768″
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 15
Modes “1024×768″
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 16
Modes “800×600″ “720×400″ “640×480″ “640×400″ “640×350″
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 24
Modes “1024×768″
EndSubSection
EndSection

注意看上面文件中的红色部份,原来前面没有#符号,就是因为VMWare
Tools多此一举加了这个XWorkAround驱动导致鼠标滚轮不能使用。现在可以在前面加上#符号让系统不去执行该行代码,或者干脆删除这四行,然
后保存退出,接着再注销后重新启动XWindow后鼠标滚轮就可以用了。


发表评论

Your email is never shared. 标记为 * 的为必填项目

*
*