Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse not moving #2

Open
MMuArFF opened this issue Sep 23, 2022 · 1 comment
Open

Mouse not moving #2

MMuArFF opened this issue Sep 23, 2022 · 1 comment
Assignees

Comments

@MMuArFF
Copy link

MMuArFF commented Sep 23, 2022

Hi, this seems awesome.
On ubuntu 22.04 the mouse is not moving. The ArUco is recognized.
Thanks for your help

@nexayq
Copy link
Owner

nexayq commented Oct 13, 2024

I know this is an old issue but I'll add a comment for the future.

This is due to Wayland display server.
We are using pyautogui for mouse movement and it is not compatible with Wayland server, it only supports X11 server.
You can find more information here:
asweigart/pyautogui#111

In order to find which display server you are using you can check following variable in terminal:
$ echo $XDG_SESSION_TYPE
If it returns "x11" than mouse movement and dwell click will function.
If it returns "wayland" than mouse movement and dwell click will NOT function.

Unfortunately, starting from Ubuntu 22.04 Wayland is the default display server for Ubuntu OS.

If pyautogui adds update for wayland than it will be incorporated here as well.
Maybe some other package can be used for wayland maybe.

I added a note regarding Wayland in the README file.
Thanks for noticing this issue.

BTW I added scripts for installing development environment (python venv) for Ubuntu 20.04, 22.04 and 24.04

@nexayq nexayq self-assigned this Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants