Skip to content

After added support for logical screen size with zxdg_output_v1, double-scaled screen in Moonlight #4599

@rubin55

Description

@rubin55

Is there an existing issue for this?

  • I have searched the existing issues

Is your issue described in the documentation?

  • I have read the documentation

Is your issue present in the latest beta/pre-release?

This issue is present in the latest pre-release

Describe the Bug

After upgrading to latest git main/master, specifically including c313851 which was part of pr #4594, I have a double-scaled screen, of which I only see the upper-left quarter.

Client:

  • Arch Linux, Wayland, Gnome, 200% scaling, Moonlight git

Server:

  • Arch Linux, Wayland, Gnome, 200% scaling, Sunshine git

Expected Behavior

Before this pr/commit, i.e., b0bf510, scaling works normally/as expected, I can see the entire display.

Additional Context

No response

Host Operating System

Linux

Operating System Version

Arch Linux

Architecture

amd64/x86_64

Sunshine commit or version

c313851

Package

Linux - AUR (Third Party)

GPU Type

NVIDIA

GPU Model

4090

GPU Driver/Mesa Version

590.48.01

Capture Method

KMS (Linux)

Config

N/A

Apps

N/A

Relevant log output

[rubin@TAURUS others]$ cat ~/.config/sunshine/sunshine.log
[2026-01-18 22:07:59.078]: Info: Sunshine version: 2026.117.142916.r0.gb0bf510 commit:
[2026-01-18 22:07:59.078]: Info: Package Publisher: AUR
[2026-01-18 22:07:59.078]: Info: Publisher Website: https://aur.archlinux.org/packages/sunshine-git
[2026-01-18 22:07:59.078]: Info: Get support: https://aur.archlinux.org/packages/sunshine-git
[2026-01-18 22:07:59.078]: Info: config: 'channels' = 2
[2026-01-18 22:07:59.078]: Info: config: 'fps' = [30,60]
[2026-01-18 22:07:59.078]: Info: config: 'nvenc_preset' = 7
[2026-01-18 22:07:59.078]: Info: config: 'min_log_level' = info
[2026-01-18 22:07:59.078]: Info: config: 'origin_web_ui_allowed' = pc
[2026-01-18 22:07:59.078]: Info: config: 'resolutions' = [
    1280x720,
    1920x1080,
    1920x1200,
    2256x1504,
    2880x1920,
    3840x2160,
    7680x4320
]
[2026-01-18 22:07:59.144]: Error: Failed to create session:
[2026-01-18 22:07:59.144]: Info: Found display [wayland-0]
[2026-01-18 22:07:59.144]: Info: Found interface: wl_output(5) version 4
[2026-01-18 22:07:59.144]: Info: Found interface: zxdg_output_manager_v1(6) version 3
[2026-01-18 22:07:59.144]: Info: Found interface: zwp_linux_dmabuf_v1(25) version 5
[2026-01-18 22:07:59.144]: Warning: Missing Wayland wire for wlr-export-dmabuf
[2026-01-18 22:07:59.144]: Info: /dev/dri/card0 -> nvidia-drm
[2026-01-18 22:07:59.144]: Info: Found display [wayland-0]
[2026-01-18 22:07:59.144]: Info: Found display [wayland-0]
[2026-01-18 22:07:59.144]: Info: Found interface: wl_output(5) version 4
[2026-01-18 22:07:59.144]: Info: Found interface: zxdg_output_manager_v1(6) version 3
[2026-01-18 22:07:59.144]: Info: Found interface: zwp_linux_dmabuf_v1(25) version 5
[2026-01-18 22:07:59.144]: Info: Resolution: 2880x1920
[2026-01-18 22:07:59.144]: Info: Offset: 0x0
[2026-01-18 22:07:59.144]: Info: Logical size: 1440x960
[2026-01-18 22:07:59.144]: Info: Name: DP-2
[2026-01-18 22:07:59.144]: Info: Found monitor: Dell Inc. 32"
[2026-01-18 22:07:59.144]: Info: -------- Start of KMS monitor list --------
[2026-01-18 22:07:59.144]: Info: Monitor 0 is DP-2: Dell Inc. 32"
[2026-01-18 22:07:59.144]: Info: --------- End of KMS monitor list ---------
[2026-01-18 22:07:59.267]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2026-01-18 22:07:59.267]: Info: Trying encoder [nvenc]
[2026-01-18 22:07:59.267]: Info: Screencasting with KMS
[2026-01-18 22:07:59.267]: Info: /dev/dri/card0 -> nvidia-drm
[2026-01-18 22:07:59.267]: Info: Found monitor for DRM screencasting
[2026-01-18 22:07:59.267]: Info: Found connector ID [135]
[2026-01-18 22:07:59.267]: Info: Found cursor plane [56]
[2026-01-18 22:07:59.267]: Info: Creating encoder [h264_nvenc]
[2026-01-18 22:07:59.267]: Info: Color coding: SDR (Rec. 601)
[2026-01-18 22:07:59.267]: Info: Color depth: 8-bit
[2026-01-18 22:07:59.267]: Info: Color range: JPEG
[2026-01-18 22:07:59.373]: Info: Streaming bitrate is 1000000
[2026-01-18 22:07:59.446]: Info: Creating encoder [hevc_nvenc]
[2026-01-18 22:07:59.446]: Info: Color coding: SDR (Rec. 601)
[2026-01-18 22:07:59.446]: Info: Color depth: 8-bit
[2026-01-18 22:07:59.446]: Info: Color range: JPEG
[2026-01-18 22:07:59.447]: Info: Streaming bitrate is 1000000
[2026-01-18 22:07:59.474]: Info: Creating encoder [av1_nvenc]
[2026-01-18 22:07:59.474]: Info: Color coding: SDR (Rec. 601)
[2026-01-18 22:07:59.474]: Info: Color depth: 8-bit
[2026-01-18 22:07:59.474]: Info: Color range: JPEG
[2026-01-18 22:07:59.475]: Info: Streaming bitrate is 1000000
[2026-01-18 22:07:59.504]: Info: Screencasting with KMS
[2026-01-18 22:07:59.504]: Info: /dev/dri/card0 -> nvidia-drm
[2026-01-18 22:07:59.504]: Info: Found monitor for DRM screencasting
[2026-01-18 22:07:59.504]: Info: Found connector ID [135]
[2026-01-18 22:07:59.504]: Info: Found cursor plane [56]
[2026-01-18 22:07:59.504]: Info: Creating encoder [hevc_nvenc]
[2026-01-18 22:07:59.504]: Info: Color coding: SDR (Rec. 709)
[2026-01-18 22:07:59.504]: Info: Color depth: 10-bit
[2026-01-18 22:07:59.504]: Info: Color range: JPEG
[2026-01-18 22:07:59.505]: Info: Streaming bitrate is 1000000
[2026-01-18 22:07:59.534]: Info: Creating encoder [av1_nvenc]
[2026-01-18 22:07:59.534]: Info: Color coding: SDR (Rec. 709)
[2026-01-18 22:07:59.534]: Info: Color depth: 10-bit
[2026-01-18 22:07:59.534]: Info: Color range: JPEG
[2026-01-18 22:07:59.536]: Info: Streaming bitrate is 1000000
[2026-01-18 22:07:59.566]: Info:
[2026-01-18 22:07:59.566]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2026-01-18 22:07:59.566]: Info:
[2026-01-18 22:07:59.566]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2026-01-18 22:07:59.566]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2026-01-18 22:07:59.566]: Info: Found AV1 encoder: av1_nvenc [nvenc]
[2026-01-18 22:07:59.566]: Info: Starting system tray
[2026-01-18 22:07:59.568]: Info: Adding avahi service TAURUS
[2026-01-18 22:07:59.569]: Info: Configuration UI available at [https://localhost:47990]
[2026-01-18 22:07:59.585]: Info: System tray created
[2026-01-18 22:07:59.585]: Info: Starting main loop
[2026-01-18 22:08:00.490]: Info: Avahi service TAURUS successfully established.
[2026-01-18 22:08:19.574]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2026-01-18 22:08:19.574]: Info: Trying encoder [nvenc]
[2026-01-18 22:08:19.574]: Info: Screencasting with KMS
[2026-01-18 22:08:19.574]: Info: /dev/dri/card0 -> nvidia-drm
[2026-01-18 22:08:19.575]: Info: Found monitor for DRM screencasting
[2026-01-18 22:08:19.575]: Info: Found connector ID [135]
[2026-01-18 22:08:19.575]: Info: Found cursor plane [56]
[2026-01-18 22:08:19.575]: Info: Creating encoder [h264_nvenc]
[2026-01-18 22:08:19.575]: Info: Color coding: SDR (Rec. 601)
[2026-01-18 22:08:19.575]: Info: Color depth: 8-bit
[2026-01-18 22:08:19.575]: Info: Color range: JPEG
[2026-01-18 22:08:19.598]: Info: Streaming bitrate is 1000000
[2026-01-18 22:08:19.634]: Info: Creating encoder [hevc_nvenc]
[2026-01-18 22:08:19.634]: Info: Color coding: SDR (Rec. 601)
[2026-01-18 22:08:19.634]: Info: Color depth: 8-bit
[2026-01-18 22:08:19.634]: Info: Color range: JPEG
[2026-01-18 22:08:19.635]: Info: Streaming bitrate is 1000000
[2026-01-18 22:08:19.664]: Info: Creating encoder [av1_nvenc]
[2026-01-18 22:08:19.664]: Info: Color coding: SDR (Rec. 601)
[2026-01-18 22:08:19.664]: Info: Color depth: 8-bit
[2026-01-18 22:08:19.664]: Info: Color range: JPEG
[2026-01-18 22:08:19.666]: Info: Streaming bitrate is 1000000
[2026-01-18 22:08:19.696]: Info: Screencasting with KMS
[2026-01-18 22:08:19.696]: Info: /dev/dri/card0 -> nvidia-drm
[2026-01-18 22:08:19.696]: Info: Found monitor for DRM screencasting
[2026-01-18 22:08:19.696]: Info: Found connector ID [135]
[2026-01-18 22:08:19.696]: Info: Found cursor plane [56]
[2026-01-18 22:08:19.696]: Info: Creating encoder [hevc_nvenc]
[2026-01-18 22:08:19.696]: Info: Color coding: SDR (Rec. 709)
[2026-01-18 22:08:19.696]: Info: Color depth: 10-bit
[2026-01-18 22:08:19.696]: Info: Color range: JPEG
[2026-01-18 22:08:19.697]: Info: Streaming bitrate is 1000000
[2026-01-18 22:08:19.727]: Info: Creating encoder [av1_nvenc]
[2026-01-18 22:08:19.727]: Info: Color coding: SDR (Rec. 709)
[2026-01-18 22:08:19.727]: Info: Color depth: 10-bit
[2026-01-18 22:08:19.727]: Info: Color range: JPEG
[2026-01-18 22:08:19.729]: Info: Streaming bitrate is 1000000
[2026-01-18 22:08:19.760]: Info:
[2026-01-18 22:08:19.760]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2026-01-18 22:08:19.760]: Info:
[2026-01-18 22:08:19.760]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2026-01-18 22:08:19.760]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2026-01-18 22:08:19.760]: Info: Found AV1 encoder: av1_nvenc [nvenc]
[2026-01-18 22:08:19.760]: Info: Executing [Desktop]
[2026-01-18 22:08:19.881]: Info: New streaming session started [active sessions: 1]
[2026-01-18 22:08:19.912]: Info: CLIENT CONNECTED
[2026-01-18 22:08:19.913]: Info: /dev/dri/card0 -> nvidia-drm
[2026-01-18 22:08:19.913]: Info: Found display [wayland-0]
[2026-01-18 22:08:19.913]: Info: Found interface: wl_output(5) version 4
[2026-01-18 22:08:19.913]: Info: Found interface: zxdg_output_manager_v1(6) version 3
[2026-01-18 22:08:19.913]: Info: Found interface: zwp_linux_dmabuf_v1(25) version 5
[2026-01-18 22:08:19.913]: Info: Resolution: 2880x1920
[2026-01-18 22:08:19.913]: Info: Offset: 0x0
[2026-01-18 22:08:19.913]: Info: Logical size: 1440x960
[2026-01-18 22:08:19.913]: Info: Name: DP-2
[2026-01-18 22:08:19.913]: Info: Found monitor: Dell Inc. 32"
[2026-01-18 22:08:19.913]: Info: -------- Start of KMS monitor list --------
[2026-01-18 22:08:19.913]: Info: Monitor 0 is DP-2: Dell Inc. 32"
[2026-01-18 22:08:19.914]: Info: --------- End of KMS monitor list ---------
[2026-01-18 22:08:19.914]: Info: Screencasting with KMS
[2026-01-18 22:08:19.914]: Info: /dev/dri/card0 -> nvidia-drm
[2026-01-18 22:08:19.914]: Info: Found monitor for DRM screencasting
[2026-01-18 22:08:19.914]: Info: Found connector ID [135]
[2026-01-18 22:08:19.914]: Info: Found cursor plane [56]
[2026-01-18 22:08:19.914]: Info: Creating encoder [av1_nvenc]
[2026-01-18 22:08:19.914]: Info: Color coding: SDR (Rec. 601)
[2026-01-18 22:08:19.914]: Info: Color depth: 8-bit
[2026-01-18 22:08:19.914]: Info: Color range: MPEG
[2026-01-18 22:08:19.942]: Info: Streaming bitrate is 30988000
[2026-01-18 22:08:19.961]: Info: Minimum FPS target set to ~30fps (33.3333ms)
[2026-01-18 22:08:20.372]: Info: Setting default sink to: [sink-sunshine-stereo]
[2026-01-18 22:08:20.373]: Info: Found default monitor by name: sink-sunshine-stereo.monitor
[2026-01-18 22:08:20.386]: Info: Opus initialized: 48 kHz, 2 channels, 512 kbps (total), LOWDELAY

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions