https://bugs.kde.org/show_bug.cgi?id=523538

            Bug ID: 523538
           Summary: XWayland reports incorrect fullscreen resolutions when
                    using a mixed-DPI multi-monitor setup on Wayland with
                    NVIDIA.
    Classification: Plasma
           Product: kwin
      Version First 6.7.3
       Reported In:
          Platform: CachyOS
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: multi-screen
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

DESCRIPTION

When both displays are enabled and the internal display uses 125% scaling while
the external monitor uses 100% scaling, XWayland applications do not detect the
external monitor's native resolution.

Games such as Counter-Strike 2 and Red Dead Redemption 2 only offer resolutions
such as:

- 4300x1800 (reported as native)
- 3840x1600
- 3200x1800

The correct native resolution (3440x1440) is missing.

KScreen correctly reports the monitor as:

3440x1440 @ 99.98 Hz
Scale: 1

However, xrandr (running under XWayland) reports:

DP-1 connected primary 4300x1800

4300x1800 corresponds exactly to 3440x1440 multiplied by the 1.25 scaling
factor of the laptop display.


Steps to reproduce:

1. Start a Wayland Plasma session.
2. Connect an external monitor running at 3440x1440 with scaling set to 100%.
3. Leave the laptop display enabled with scaling set to 125%.
4. Launch an XWayland game (Counter-Strike 2 or Red Dead Redemption 2).
5. Open the game's video settings.

Expected result:

The game should detect the external monitor's native resolution of 3440x1440.

Actual result:

The game reports 4300x1800 as the native resolution and 3440x1440 is
unavailable.

Workarounds:

Either of the following immediately fixes the problem:

- Disable the internal laptop display.
- Change the laptop display scaling from 125% to 100%.

After doing either of these, XWayland immediately reports the correct 3440x1440
resolution and games detect it correctly.

System:
- KDE Plasma: 6.7.3
- KWin: 6.7.3
- XWayland: 24.1.13
- NVIDIA Driver: 610.43.03
- Distribution: CachyOS (Arch-based)
- Session: Wayland

Hardware:
GPU:
- NVIDIA GeForce GTX 1650 Ti

Displays:
1. Dell P3425WE
   - 3440x1440 @ 100 Hz
   - Scale: 100%

2. Laptop internal display
   - 1920x1080 @ 120 Hz
   - Scale: 125%

ADDITIONAL INFORMATION

KScreen reports:

External monitor:
- 3440x1440 @ 99.98 Hz
- Scale: 1

Internal display:
- 1920x1080 @ 120 Hz
- Scale: 1.25

No XWayland-related environment variables are set:

XWAYLAND_NO_GLAMOR=
KWIN_XWAYLAND_SCALE=
QT_SCALE_FACTOR=
GDK_SCALE=

This appears to be a regression, as the same setup previously worked correctly
on Wayland.

Outputs:
kscreen-doctor -o
❯ kscreen-doctor -o
Output: 1 DP-1 487cf032-a3e7-4fbd-bc8f-58d224abf14a
        enabled
        connected
        priority 1
        DisplayPort
        replication source:0
        Modes:  1:[email protected]!  2:[email protected]*  3:[email protected] 
4:[email protected]  5:[email protected]  6:[email protected]  7:[email protected] 
8:[email protected]  9:[email protected]  10:[email protected]  11:[email protected] 
12:[email protected]  13:[email protected]  14:[email protected]  15:[email protected] 
16:[email protected]  17:[email protected]  18:[email protected]  19:[email protected] 
20:[email protected]  21:[email protected]  22:[email protected]  23:[email protected] 
24:[email protected]  25:[email protected]  26:[email protected]
        Custom modes: None
        Geometry: 1536,0 3440x1440
        Scale: 1
        Rotation: 1
        Overscan: 0
        Vrr: incapable
        RgbRange: unknown
        HDR: incapable
        Wide Color Gamut: incapable
        ICC profile: none
        Color profile source: sRGB
        Color power preference: prefer efficiency and performance
        Brightness control: supported, set to 100% and dimming to 100%
        DDC/CI: allowed
        Color resolution: unknown
        Allow EDR: unsupported
        Sharpness control: unsupported
        Automatic brightness: unsupported
        Auto Rotate Policy: incapable
        Adaptive backlight modulation: unsupported
Output: 2 eDP-2 ab12a6bd-8bc6-4287-92d3-dbb700fca7ac
        enabled
        connected
        priority 2
        Panel
        replication source:0
        Modes:  27:[email protected]*!  28:[email protected]  29:[email protected]
 30:[email protected]  31:[email protected]  32:[email protected]  33:[email protected]
 34:[email protected]  35:[email protected]  36:[email protected]  37:[email protected] 
38:[email protected]  39:[email protected]  40:[email protected]  41:[email protected] 
42:[email protected]  43:[email protected]  44:[email protected]
        Custom modes: None
        Geometry: 0,0 1536x864
        Scale: 1.25
        Rotation: 1
        Overscan: 0
        Vrr: Never
        RgbRange: unknown
        HDR: incapable
        Wide Color Gamut: incapable
        ICC profile: none
        Color profile source: sRGB
        Color power preference: prefer efficiency and performance
        Brightness control: supported, set to 100% and dimming to 100%
        Color resolution: automatic (10), range: [8; 16] bits per color
        Allow EDR: never
        Sharpness control: unsupported
        Automatic brightness: unsupported
        Auto Rotate Policy: incapable
        Adaptive backlight modulation: supported, set to 0

xrandr
WARNING: running xrandr against an Xwayland server. See the xrandr man page for
details.
Screen 0: minimum 16 x 16, current 6220 x 1800, maximum 32767 x 32767
DP-1 connected primary 4300x1800+1920+0 (normal left inverted right x axis y
axis) 800mm x 335mm
   4300x1800     99.98*+
   2048x1536     99.91
   1920x1440     99.92
   1600x1200     99.89
   1440x1080     99.79
   1400x1050     99.91
   1280x1024     99.83
   1280x960      99.78
   1152x864      99.87
   1024x768      99.75
   800x600       99.66
   640x480       99.77
   320x240       99.32
   2560x1600     99.91
   1920x1200     99.90
   1680x1050     99.85
   1440x900      99.93
   1280x800      99.91
   1152x720      99.68
   960x600       99.64
   928x580       99.65
   800x500       99.49
   768x480       99.79
   720x480       99.31
   640x400       99.73
   320x200       98.84
   3200x1800     99.97
   2880x1620     99.93
   2560x1440     99.97
   2048x1152     99.88
   1920x1080     99.82
   1600x900      99.87
   1368x768      99.80
   1280x720      99.72
   1024x576      99.86
   864x486       99.84
   720x400       99.68
   640x350       99.12
eDP-2 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm
x 193mm
   1920x1080    120.17*+
   1440x1080    120.14
   1400x1050    120.13
   1280x1024    120.09
   1280x960     120.02
   1152x864     120.11
   1024x768     120.02
   800x600      119.85
   640x480      119.52
   320x240      119.73
   1680x1050    120.08
   1440x900     120.20
   1280x800     120.18
   1152x720     119.94
   960x600      120.04
   928x580      119.87
   800x500      119.91
   768x480      119.71
   720x480      119.65
   640x400      119.64
   320x200      117.55
   1600x900     120.18
   1368x768     119.99
   1280x720     120.04
   1024x576     120.15
   864x486      120.10
   720x400      119.54
   640x350      120.03


nvidia-smi
❯ nvidia-smi
Sun Jul 26 15:26:06 2026
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 610.43.03              KMD Version: 610.43.03     CUDA UMD
Version: 13.3     |
+-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile
Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util 
Compute M. |
|                                         |                        |           
   MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce GTX 1650 Ti     Off |   00000000:01:00.0  On |           
      N/A |
| N/A   40C    P8              5W /   50W |     459MiB /   4096MiB |      6%   
  Default |
|                                         |                        |           
      N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                   
          |
|  GPU   GI   CI              PID   Type   Process name                       
GPU Memory |
|        ID   ID                                                              
Usage      |
|=========================================================================================|
|    0   N/A  N/A            1255    C+G   /usr/bin/kwin_wayland               
     5MiB |
|    0   N/A  N/A           15159      G   ...share/Steam/ubuntu12_32/steam    
     3MiB |
|    0   N/A  N/A           15363      G   ./steamwebhelper                    
    45MiB |
|    0   N/A  N/A           15390      G   ...am/ubuntu12_64/steamwebhelper    
   289MiB |
+-----------------------------------------------------------------------------------------+

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to