> For the complete documentation index, see [llms.txt](https://dhaneshsivasamy07.gitbook.io/oscp-2022/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dhaneshsivasamy07.gitbook.io/oscp-2022/misc/troubleshooting/mouse-flickering.md).

# Mouse Flickering

**Problem:**

&#x20;I was using the VMWare workstation 16 Player ( Non-Commercial ). When using the workstation with Linux guests ( kali, parrot and Ubuntu ) I faced the mouse flickering issue.

When dragging the mouse, the mouse will lack the smoothness of the dragging and will be like instant transportation

**Solution** :thumbsup:

I was searching for a solution on the official forums and youtube, which included the processes of&#x20;

* Installing the vmware-guest addition tools
* Repairing the installation
* Enabling / Disabling the 3D acceleration
* Installation vmtools `sudo apt-get install open-vmtools open-vm-tools-desktop`
* Update the drivers

But unfortunately nothing provided the results&#x20;

Looking up on the reddit for the solution,&#x20;

Reddit Link: <https://www.reddit.com/r/vmware/comments/l3931b/mouse_pointer_flickering_running_linux_vm_with/>

User Pointed the link: <https://www.reddit.com/user/dfotisjr/>

Blog that provided solution: <https://redhalo.eu/mouse-flicker-in-kali-vm/>

### Script from the blog

* Create a file name **`/etc/X11/xorg.conf`**
* Add the following contents

```bash
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
```

* Reboot the linux instance, this solved the issue for me :smile:
