虚拟机:VMware® Workstation 16 Pro
系统版本:Ubuntu1804
出现问题:在Ubuntu系统中,鼠标移动就会出现闪烁的情况,一停止就不再闪烁。
试过网上很多方法都不太理想,大概率是显卡驱动和VMWare的兼容性问题。

这个问题在官网上也有很多人提出来,地址如下:
https://communities.vmware.com/t5/VMware-Workstation-Pro/Mouse-flicker-in-guests/td-p/2817693

尝试了其中的一个方案,针对Ubuntu系统的用户,目前测试可用解决鼠标光标闪烁的问题。

创建了一个新的“/etc/X11/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: <i>: integer, <f>: float, <bool>: "True"/"False",
    ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
    ### <percent>: "<f>%"
    ### [arg]: arg optional
    Option "HWcursor" "off" # [<bool>]
    #Option "Xinerama" # [<bool>]
    #Option "StaticXinerama" # <str>
    #Option "GuiLayout" # <str>
    #Option "AddDefaultMode" # [<bool>]
    #Option "RenderAccel" # [<bool>]
    #Option "DRI" # [<bool>]
    #Option "DirectPresents" # [<bool>]
    #Option "HWPresents" # [<bool>]
    #Option "RenderCheck" # [<bool>]
    Identifier "Card0"
    Driver "vmware"
    BusID "PCI:0:15:0"
EndSection

在虚拟机中重新启动系统,鼠标不再闪烁,移动速度稍微变得缓慢,但是整体还能接收。

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐