安装VMware Tools后,它会产生一个莫名其妙的副作用,导致鼠标滚轮无法使用。
原因是VMware修改了 /etc/X11/xorg.conf 文件,此处还可看见一个 xorg.conf.BeforeVMwareToolsInstall 文件,也就是安装前的xorg.conf文件,打开两个文件比较一下,马上就可以发现区别,在原文件中有一行 Option "Protocol" "PS/2"在修改后文件为Option "Protocol" "Auto",那么别的不管,把它改回去。
然后保存,重启ubuntu,OK,滚轮可以用了。
修改后的文件:
#Section "InputDevice"
# Identifier "TouchPad"
# Driver "synaptics"
# Option "Device" "/dev/input/mice"
# Option "Protocol" "auto-dev"
# Option "LeftEdge" "1700"
# Option "RightEdge" "5300"
# Option "TopEdge" "1700"
# Option "BottomEdge" "4200"
# Option "FingerLow" "25"
# Option "FingerHigh" "30"
# Option "MaxTapTime" "180"
# Option "MaxTapMove" "220"
# Option "VertScrollDelta" "100"
# Option "MinSpeed" "0.09"
# Option "MaxSpeed" "0.18"
# Option "AccelFactor" "0.0015"
# Option "SHMConfig" "on"
# Option "AlwaysCore"
#EndSection
Section "ServerLayout"
# InputDevice "TouchPad"
Identifier "X configuration"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard"
InputDevice "Mouse"
InputDevice "XWorkAround"
EndSection
Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/X11/fonts/misc"
EndSection
Section "Module"
# Load "synaptics"
Load "dbe"
Load "freetype"
Load "extmod"
Load "record"
Load "v4l"
Load "type1"
Load "dri"
Load "glx"
EndSection
Section "InputDevice"
Identifier "Keyboard"
Driver "kbd"
Option "XkbLayout" "us"
Option "CoreKeyboard"
EndSection
Section "InputDevice"
Identifier "Mouse"
Driver "mouse"
Option "Protocol" "Auto"
Option "ZAxisMapping" "4 5"
Option "CorePointer"
Option "Device" "/dev/input/mice"
EndSection
Section "InputDevice"
Identifier "XWorkAround"
Driver "void"
EndSection
Section "Monitor"
#modeline0
Identifier "Unknown Monitor"
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 "Unknown Monitor"
DefaultDepth 24
SubSection "Display"
# VGA mode: better left untouched
Viewport 0 0
Depth 24
Modes "1024x768"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
Modes "1152x900"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
Modes "1152x900"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1152x900"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1152x900"
EndSubSection
EndSection
Section "DRI"
Mode 0666
EndSection
quqq 于 2008-11-11 01:50:41发表:
找了很久!谢谢!
jcmatio 于 2008-10-24 12:43:11发表:
献花