VMware 安裝 Ubuntu 後滑鼠中鍵(滾輪按鍵)無法運作,嚴重影響操作效率。經測試,修改 X11 設定檔中的輸入裝置協定與驅動即可解決。
sudo gedit /etc/X11/xorg.confSection "InputDevice" 區塊,修改 Protocol 選項:Option "Protocol" "ImPS/2"
原值通常為 "ps/2" 或 "auto"。若無此行則新增。
Option "Emulate3Buttons" "yes"
Driver "vmmouse" # 必須為 VMware 專用驅動,而非通用 "mouse"
InputDevice 區塊參考:Section "InputDevice"
Identifier "Configured Mouse"
Driver "vmmouse"
Option "Protocol" "ImPS/2"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "yes"
EndSection
Ctrl+Alt+Backspace 或重啟系統。ps/2 僅支援兩鍵。適用於 VMware Workstation / Fusion / Player 中運行的 Ubuntu、Debian、CentOS 等使用 Xorg 的發行版。Wayland 會話下請改用 libinput 設定或安裝 xserver-xorg-input-vmmouse 套件。