原文地址:VMware cursor disappears when moving - solution - Infosec Cafe 最近用 VMware Workstation 16 安装 Ubuntu20.04 时发现鼠标移动的时候,光标会消失,停止的时候又出现了。在网上看了一些解决方案都是需要调整 Windows 宿主机的鼠标拖影配置。这确实有效,但是我发现宿主机选择文字时光标又会消失了,这实在影响宿主机的操作体验。在国外找了找帖子发现了一个比较好的解决方案。
该帖子说可能是 vmware tools 没有装好,但是没试过重装,因为后面他提了一种解决方案:创建一个 xorg 配置文件即可。
cd /etc/X11
sudo touch xorg.conf
配置文件的内容如下:
Section "ServerLayout"
Identifier "X.org Configured"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Device"
### Available Driver options are:-
### Values: : integer, : float, : "True"/"False",
### : "String", : " Hz/kHz/MHz",
### : "%"
### [arg]: arg optional
Option "HWcursor" "off" # []
#Option "Xinerama" # []
#Option "StaticXinerama" #
#Option "GuiLayout" #
#Option "AddDefaultMode" # []
#Option "RenderAccel" # []
#Option "DRI" # []
#Option "DirectPresents" # []
#Option "HWPresents" # []
#Option "RenderCheck" # []
Identifier "Card0"
Driver "vmware"
BusID "PCI:0:15:0"
EndSection
保存后重启虚拟机即可,重启后你就会发现鼠标不会消失了。