Fedora8安裝VMware Tools後鼠標滾輪不能用的問題的解決方法

 在虛擬機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後鼠標滾輪就可以用了。

發佈了20 篇原創文章 · 獲贊 5 · 訪問量 6萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章