ydotool
ydotool copied to clipboard
Can't get mouse events to work inside VM
Hey,
I've installed the latest ydotools on my ubuntu 22.04 which runs inside a virtual machine on an Proxmox Virtual Environment. I've added the user to input group, created the udev rule and started the demon on login. The tool is running and I can handover key commands and type text with ydotool.
Unfortunately mousemove and click aren't working.
I've looked into the system log where I see that the input seems to be registered
Watching system buttons on /dev/input/event4 (ydotoold virtual device) input: ydotoold virtual device as /devices/virtual/input/input5
I'm controlling the Desktop via the built-in Ubuntu Screensharing feature using the VNC protocol option.
Is it possible to control mouse actions with ydotool inside my VM?
Most VMs emulates a USB touchscreen instead of a mouse in order to implement the seamless mouse switching. Do you have the guest tools enabled? It probably changed the system configuration a bit. At first, you can use the evtest
tool to test if ydotoold is sending input events correctly. If so, we can see what else could it be.