-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Portrait screens in landscape orientation are seen as portrait with KMS #3203
Comments
You don't need a Steam Deck or similar device to test this. I just set my laptop's (Thinkpad T580 with Intel graphics) display to 90° rotation and moonlight displayed that as rotated instead of the right side up. |
It seems this issue hasn't had any activity in the past 90 days. If it's still something you'd like addressed, please let us know by leaving a comment. Otherwise, to help keep our backlog tidy, we'll be closing this issue in 10 days. Thanks! |
Still relevant. |
+1, I am having the same issue under Bazzite running on Legion Go. The Go's display (2560x1600) is wired in as portrait, and then flipped to the correct landscape orientation in software. In Sunshine logs, the screen is detected as "1600x2560", and the image is therefore streamed the wrong way. Strangely enough I saw "Panel orientation is unsupported, screen capture may not work correctly." in the log. Looking at the relevant code, shouldn't the 90° case be handled similarly to 270° rather than 180°? |
That relevant code you linked was added strictly to handle steam deck. It could probably be extended to support other environments. A PR would be welcomed. |
I did some minimal research on hyprland with kms, and well makes sense that it's the wayland output that is rotated, not the drm plane. The wl_output rotation can be found with the wl_geometry listener, but the data from the kms capture would still need to be rotated somehow based on that. I don't know what's the best way to do that. Maybe to wait for portal support... |
While ffmpeg supports the |
Is there an existing issue for this?
Is your issue described in the documentation?
Is your issue present in the latest beta/pre-release?
I'm too lazy to test
Describe the Bug
As reported in #2439 and supposedly fixed in #711, when running Sunshine on the Steam Deck Moonlight displays a rotated portrait screen. But in KDE Plasma 6 on Wayland (and I think KMS as well) the screen orientation is set to landscape.
Expected Behavior
Correctly rotated output.
Additional Context
I couldn't get the latest nightly to run with KMS at all. That's why I only have logs for the release version.
Moonlight logs:
Host Operating System
Linux
Operating System Version
OpenSUSE Tumbleweed
Architecture
64 bit
Sunshine commit or version
0.23.1
Package
Linux - rpm
GPU Type
AMD
GPU Model
AMD Radeon Graphics (RADV VANGOGH)
GPU Driver/Mesa Version
Mesa 24.0.8
Capture Method
KMX (Linux)
Config
Apps
No response
Relevant log output
The text was updated successfully, but these errors were encountered: