Replies: 1 comment 2 replies
-
When you're sharing a physical rotated display, you want to see that display in the VNC client as you see it on your desk. That's why wayvnc reverses the rotation of the framebuffer. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Goal
Rotate the display so I can use the screen of the device my VNC client is running on in landscape mode, rather than the default portrait mode I am currently stuck with.
Problem
My display shows as rotated on the main output, the virtual machine (VM) window. On the VNC client it does not show as rotated. However, it does seem to send the rotated resolution, as one VNC client (VNSee) reports the resolution as the transformed version; i.e. in swaywm the display's resolution is 1872x1404, and the display has a 90 degree rotation, VNSee reports the resolution as 1404x1872 (numbers flipped as a 90 degree rotation should do).
So while the resolution is "rotated", the windows and other things on screen are not. They still show as "right-side up", as if there was no rotation.
I've checked wayvnc's FAQ and manual. I searched the manual (and read through as it is short and sweet) for "rotate", "rotat", "transform", but could not find anything. I did similar searches on the GitHub issues and discussions and couldn't find any solutions.
My Setup
Host hardware: M1 ARM MacBook Air
VM software: UTM for MacOS, which is a GUI wrapper around QEMU
VM guest OS: Fedora 35 aarch64
(default name of display created by
swaymsg create_output
isHEADLESS-1
, assuming name not already taken)wayvnc --output=HEADLESS-1 --max-fps=10 10.11.99.2 5900
Further Details
I have the VM forwarding it's port 5900 to an open port on my host OS.
My ultimate goal is to get this to work on VNSee, but I also tried another VNC client to make sure it was not an issue with VNSee (I am not sure it is an issue with wayvnc, or an issue at all, it may be something I am doing or have not done). I tried TigerVNC both on the host OS and from within the VM guest. On the host OS it was clearly not rotated. In the guest it was a bit more confusing as I was the screen was rotated by 90 degrees :), but since the VNC client window was not rotated by another 90 degrees than the rest of the screen I believe it was also not rotated there.
Beta Was this translation helpful? Give feedback.
All reactions