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

WayVNC Mouse movement inverted on Raspberry Pi 5 with Touchscreen rotated 90 degrees. #294

Closed
videoman opened this issue Feb 23, 2024 · 10 comments
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@videoman
Copy link

  • Version:
    $ wayvnc -V
    wayvnc: v0.8-rc0-4c70b8c (pios)
    neatvnc: 0.7.2
    aml: 0.3.0

dpkg -l of wayvnc package.
ii wayvnc 0.8.0-rc0-2 arm64 VNC server for wlroots-based Wayland compositors

/boot/firmware/cmdline.txt
console=serial0,115200 console=tty1 root=PARTUUID=81e5547f-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles video=HDMI-A-1:1280x400@60234,rotate=90

~/.config/wayfire.ini
[output:HDMI-A-1]
mode = 400x1280@60234
position = 0,0
transform = 90

To reproduce, install the latest Raspberry Pi OS on a pi5, and connect a touch screen display. Then configure the rotation in cmdline.txt and wayfarer.ini. I believe that this is a wayvnc issue. All local USB and bluetooth mouse movements work as expected on the console/screen. Touch screen also registers correctly. It's just the WayVNC session that has reversed X and Y mappings. Before I upgrade the wayvnc service, upon connect it would show the orientation off by 90 degrees before it would do a screen refresh. Once the screen refreshed, it would then show the correct orientation. After wayvnc upgrade to 0.8.0-rc0-2 upon connection it would now show the right screen orientation, however it still had reversed X and Y mouse movements. If I do not rotate the screen, the VNC session works just fine. So something in wayvnc does not know how to map the mouse movements when the display is rotated.

I was hoping to find documentation in wayvnc on the config file to reverse the mouse movements, but did not see anything in the config documentation for that.

To fix this, I switched back to X11 server and vncserver (RealVNC) using the raspi-config tool under advanced options. Then all the mouse movements match up.

@videoman videoman added the bug Something isn't working label Feb 23, 2024
@any1
Copy link
Owner

any1 commented Feb 23, 2024

It works fine on sway, so I think it's a wayfire bug.

@LongDirtyAnimAlf
Copy link

I can confirm this bugger !

@steveiliop56
Copy link

@any1 any fix?

@any1
Copy link
Owner

any1 commented Mar 12, 2024

I haven't had the time to look into this, and it's not very high on my list of priorities.

@steveiliop56
Copy link

@any1 I found some more info about the issue. It seems it's not a way fire bug but an issue with wlroots. There is this issue describing the changes here: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3760 Do you think it contains a fix?

@any1
Copy link
Owner

any1 commented Apr 19, 2024

@any1 I found some more info about the issue. It seems it's not a way fire bug but an issue with wlroots. There is this issue describing the changes here: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3760 Do you think it contains a fix?

I don't see any references to inverted mouse in that issue.

@steveiliop56
Copy link

Yes I know it might have a different name or something. I couldn't understand the changes that's why I asked here.

@steveiliop56
Copy link

Is there any temporary fix for that? Can I tweak the config somehow to fix the cursor?

@any1
Copy link
Owner

any1 commented May 8, 2024

Ahh, it's because wayfire doesn't map the seat to the output: WayfireWM/wayfire#1283

@any1 any1 closed this as not planned Won't fix, can't repro, duplicate, stale May 8, 2024
@any1 any1 added the invalid This doesn't seem right label May 8, 2024
@j-broome
Copy link

j-broome commented Jul 6, 2024

Found this thread after experiencing the same issue with VNC and I don't see a way to solve it. The mouse orientation is incorrect when using VNC - did anyone manage to solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

5 participants