Bug 505496 - KWin/Wayland ignores "video=" kernel argument, fails to create custom resolution that works in X11
Summary: KWin/Wayland ignores "video=" kernel argument, fails to create custom resolut...
Status: RESOLVED DUPLICATE of bug 456697
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-12 01:56 UTC by victor.loucao
Modified: 2025-06-27 21:06 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
This is the EDID I made and tried to make run. (128 bytes, application/octet-stream)
2025-06-12 01:56 UTC, victor.loucao
Details
drm_modetest_output (10.64 KB, text/plain)
2025-06-12 22:15 UTC, victor.loucao
Details

Note You need to log in before you can comment on or make changes to this bug.
Description victor.loucao 2025-06-12 01:56:29 UTC
Created attachment 182207 [details]
This is the EDID I made and tried to make run.

I am trying to use a secondary monitor at its native resolution and refresh rate (1360x768 @ 75Hz), which works perfectly on Windows. On my current system, I cannot get this mode to work in the Plasma Wayland session, but I have proven that it works correctly in a Plasma X11 session.

System Information:

    OS: Bazzite (Fedora-based immutable OS)
    Desktop Environment: KDE Plasma
    Windowing System: Wayland
    GPU: AMD (amdgpu driver)
    Monitor Connection: DP-2

Steps to Reproduce in Wayland (What Fails):

    Set the kernel argument video=DP-2:1360x768eD@75 using rpm-ostree kargs.
    Reboot into a Plasma Wayland session.
    Check available modes via System Settings or kscreen-doctor -o.

Actual Results (in Wayland):
The 1360x768 @ 75Hz mode is not created. kscreen-doctor only shows a 60Hz mode available:

Output: 1 DP-2
   Modes:  1:1360x768@60*!  2:1280x720@60  3:1024x768@75 ...

The video= kernel argument is completely ignored by the Wayland session. Attempts to use a custom EDID file via drm.edid_firmware also failed.

Expected Results:
The 1360x768@75Hz mode should be created and available for selection.

Additional Information (Proof it Works in X11):
This is NOT a hardware or driver limitation. If I log into a Plasma (X11) session on the same machine, I can successfully create and apply the mode with xrandr:
Bash

# 1. Create the mode
xrandr --newmode "1360x768_75" 109.00 1360 1440 1584 1808 768 771 781 805 -hsync +vsync

# 2. Add the mode to the output
xrandr --addmode DP-2 "1360x768_75"

# 3. Apply the mode
xrandr --output DP-2 --mode "1360x768_75"

This procedure works perfectly, and the monitor runs at 75Hz as expected in X11. This strongly suggests the issue is with how KWin handles or validates modes in the Wayland session.
Comment 1 Zamundaaa 2025-06-12 13:56:34 UTC
Please attach the output of drm_info with the kernel argument set. It does not sound like it's actually applied on the kernel side. KWin never ignores the kernel's mode list.
Comment 2 victor.loucao 2025-06-12 22:15:04 UTC
Created attachment 182240 [details]
drm_modetest_output
Comment 3 victor.loucao 2025-06-12 22:15:57 UTC
Hello! Thank you for your fast reply and I'm sorry I took this long to send, I didn't know how to generate this file and ran into some trouble, but I think this is it, if you need anything else, please let me know!
Comment 4 Bug Janitor Service 2025-06-27 03:48:01 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 5 victor.loucao 2025-06-27 17:32:40 UTC
I didn't know I had to change the status to REPORTED, I did now.
Comment 6 Zamundaaa 2025-06-27 21:06:47 UTC
Modetest isn't drm_info, but it does have a list of modes, which doesn't show your 75Hz mode as available.
> #0 1360x768 60.02 1360 1424 1536 1792 768 771 777 795 85500 flags: phsync, pvsync; type: preferred, driver

I assume something went wrong with applying the option, you can ask for help with that in your distribution's support channels.

*** This bug has been marked as a duplicate of bug 456697 ***