> 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:


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://dhaneshsivasamy07.gitbook.io/oscp-2022/misc/troubleshooting/mouse-flickering.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
