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

Inverted mouse when rotating the screen in Raspberry Pi OS #2349

Closed
steveiliop56 opened this issue May 8, 2024 · 3 comments
Closed

Inverted mouse when rotating the screen in Raspberry Pi OS #2349

steveiliop56 opened this issue May 8, 2024 · 3 comments
Labels

Comments

@steveiliop56
Copy link

steveiliop56 commented May 8, 2024

Describe the bug
So I have a raspberry pi 5 with a small display connected to it (the hyperpixel 4) and I have rotated the screen to the right through the Screen Configuration utility. The problem is that when I try to access the desktop through wayvnc the mouse is inverted. In an issue in wayvnc the creator said its probably a wayfire bug any1/wayvnc#294 when I looked in this issue #1957 it closed saying it's a wlroots problem but this issues seems to have been fixed in wlroots. So where is the actual problem? Is there a temporary fix to this?

To Reproduce
Steps to reproduce the behavior:

  1. Rotate the screen on Raspberry Pi OS
  2. Try to access the desktop through wayvnc and you will see that the mouse is inverted

Expected behavior
The mouse shouldn't be inverted.

Screenshots or stacktrace
https://github.com/WayfireWM/wayfire/assets/106091011/168c2d20-5a7f-4e2d-95d9-842e9f65cd1a
(you can see a small dot moving that's my actual mouse)

Wayfire version
0.7.5

@ammen99
Copy link
Member

ammen99 commented May 8, 2024

I believe this is a duplicate of #1283. As a workaround, you can try mapping the virtual pointer devices to the output, that should fix the rotation, the config is the same as for ex. when binding a touchscreen device to an output: https://github.com/WayfireWM/wayfire/wiki/Configuration#input-device-specific-options

@ammen99 ammen99 closed this as not planned Won't fix, can't repro, duplicate, stale May 8, 2024
@steveiliop56
Copy link
Author

@ammen99 sorry for the late response but the workaround isn't working the mouse is still inverted.

@ammen99
Copy link
Member

ammen99 commented Jun 20, 2024

If you run Wayfire with the -d flag, does it print in the log (printed on stdout) that it has mapped the input device to the output successfully? Also it coudl be a wlroots bug, RPi uses an outdated wayfire/wlroots version so if you can I'd suggest trying to compile a newer version and see whether it doesn't work.

Also keep in mind that you need to map the virtual pointer (created by wayvnc on the target wayfire, not from where you're controlling it). See also #1283

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants