Skip to content

Commit 188f1e2 (pr #4795) causes the screen resolution to be wrong #4800

@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

I run sunshine-git. After upgrading a few minutes ago, I noticed that the resolution was wrong (huge black bars, weird square resolution). In the logs I noticed the following message:

Warning: Mismatch on expected Resolution compared to actual resolution: 1920x2880 vs 2880x1920

This was with commit d157bb1; I then tested the previous, commit 188f1e2, same issue. Commit 2b7af21 is the latest commit that does not have this issue (using it as we speak).

Expected Behavior

Correct resolution used.

Additional Context

No response

Host Operating System

Linux

Operating System Version

Arch Linux

Architecture

amd64/x86_64

Package

Linux - pkg.tar.zst

GPU Type

NVIDIA

GPU Model

4090

GPU Driver/Mesa Version

590.48.01

Capture Method

KMS (Linux)

Apps

Log output

Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.759]: Info: Found H.264 encoder: h264_nvenc [nvenc]
Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.759]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.759]: Info: Found AV1 encoder: av1_nvenc [nvenc]
Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.759]: Info: Executing [Desktop]
Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.809]: Info: New streaming session started [active sessions: 1]
Mar 01 20:41:27 TAURUS kernel: input: Touch passthrough as /devices/virtual/input/input56
Mar 01 20:41:27 TAURUS kernel: input: Pen passthrough as /devices/virtual/input/input57
Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.873]: Info: CLIENT CONNECTED
Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.875]: Info: /dev/dri/card0 -> nvidia-drm
Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.875]: Info: Found display [wayland-0]
Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.876]: Info: Found interface: wl_output(5) version 4
Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.876]: Info: Found interface: zxdg_output_manager_v1(6) version 3
Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.876]: Info: Found interface: zwp_linux_dmabuf_v1(25) version 5
Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.876]: Info: Resolution: 2880x1920
Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.876]: Info: Offset: 0x0
Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.876]: Info: Logical size: 1440x960
Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.876]: Info: Name: DP-2
Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.876]: Info: Found monitor: Dell Inc. 32"
Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.876]: Info: -------- Start of KMS monitor list --------
Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.876]: Warning: Mismatch on expected Resolution compared to actual resolution: 1920x2880 vs 2880x1920
Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.876]: Info: Monitor 0 is DP-2: Dell Inc. 32"
Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.876]: Info: --------- End of KMS monitor list ---------
Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.876]: Info: Screencasting with KMS
Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.876]: Info: /dev/dri/card0 -> nvidia-drm
Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.876]: Info: Found monitor for DRM screencasting
Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.876]: Info: Found connector ID [135]
Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.876]: Info: Found cursor plane [56]
Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.876]: Info: Creating encoder [av1_nvenc]
Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.876]: Info: Color coding: SDR (Rec. 601)
Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.876]: Info: Color depth: 8-bit
Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.876]: Info: Color range: MPEG
Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.907]: Info: Streaming bitrate is 30988000
Mar 01 20:41:27 TAURUS sunshine[32731]: [2026-03-01 20:41:27.926]: Info: Minimum FPS target set to ~30fps (33.3333ms)
Mar 01 20:41:28 TAURUS sunshine[32731]: [2026-03-01 20:41:28.320]: Info: Setting default sink to: [sink-sunshine-stereo]
Mar 01 20:41:28 TAURUS sunshine[32731]: [2026-03-01 20:41:28.322]: Info: Found default monitor by name: sink-sunshine-stereo.monitor
Mar 01 20:41:28 TAURUS sunshine[32731]: [2026-03-01 20:41:28.355]: Info: Opus initialized: 48 kHz, 2 channels, 512 kbps (total), LOWDELAY

Online logs

No response

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions