Bug 477238

Summary: Display resolution and scaling settings not persistent
Product: [Applications] systemsettings Reporter: Rune <rune.fritzsche>
Component: kcm_kscreenAssignee: kscreen-bugs-null <kscreen-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: agurenko, fanzhuyifan, jr, mikael, nate, neon-bugs-null, plasma-bugs-null, sitter, stefan.hoffmeister, t.kowaliczekschmer, xaver.hugl, xll520yzl
Priority: NOR Keywords: qt6
Version First Reported In: master   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: journalctl --user-unit plasma-kwin_wayland --boot 0

Description Rune 2023-11-19 15:06:33 UTC
STEPS TO REPRODUCE
1. Boot Neon unstable in a VM
2. Set display resolution and scaling
3. Reboot

OBSERVED RESULT
The display resolution is reset to 800x600 after reboot. Scaling is reset to 100%.

EXPECTED RESULT
The settings should persist after a reboot.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Linux 6.2.0-36-generic
(available in About System)
KDE Plasma Version: 5.81.80
KDE Frameworks Version: 5.245.0
Qt Version: 6.6.0
Comment 1 fanzhuyifan 2023-11-20 01:08:50 UTC
Can confirm on latest KDE neon unstable (wayland).

The display scaling, resolution, and relative position of multiple displays do not survive a logout-relogin.
Comment 2 Nate Graham 2023-11-26 16:51:54 UTC
Cannot reproduce on bare metal. Is this just in a VM?
Comment 3 fanzhuyifan 2023-11-26 18:13:30 UTC
(In reply to Nate Graham from comment #2)
> Cannot reproduce on bare metal. Is this just in a VM?

I am seeing this issue on a bare metal running the latest neon unstable. Let me know if there is any information I should provide!
Comment 4 fanzhuyifan 2023-11-29 03:19:52 UTC
Would someone be able to point me to the relevant code so I could try fixing this?
Comment 5 Nate Graham 2023-11-29 18:02:37 UTC
On Wayland, this stuff lives in KWin now.
Comment 6 fanzhuyifan 2023-12-10 23:51:36 UTC
*** Bug 478345 has been marked as a duplicate of this bug. ***
Comment 7 Rune 2023-12-19 13:43:24 UTC
Just tested: setting an ICC color profile is not remembered either
Comment 8 Thomas Kowaliczek-Schmer 2024-01-21 17:43:26 UTC
I have this problem to on Arch Linux KDE 6 RC1
Comment 9 Zamundaaa 2024-01-22 13:40:01 UTC
Please attach the output of
> journactl --user-unit plasma-kwin_wayland --boot 0
after reproducing the issue.
Comment 10 Stefan Hoffmeister 2024-01-22 14:10:54 UTC
Sounds like https://invent.kde.org/plasma/kwin/-/merge_requests/4913 which was only recently merged.
Comment 11 Thomas Kowaliczek-Schmer 2024-01-22 17:08:21 UTC
Created attachment 165136 [details]
journalctl --user-unit plasma-kwin_wayland --boot 0
Comment 12 Zamundaaa 2024-01-23 00:01:45 UTC
Okay, yeah, should be fixed by that MR. EDID parsing is failing for your display, which should be fixed in a future libdisplay-info release. https://invent.kde.org/plasma/kwin/-/merge_requests/5020 should ensure the config stays the same after that release too