Bug 478959

Summary: "Outputs could not be saved due to error." error message seen when trying to modify settings right after waking from sleep
Product: [Applications] systemsettings Reporter: mashkal2000 <mashkal2000>
Component: kcm_kscreenAssignee: kscreen-bugs-null <kscreen-bugs-null>
Status: REPORTED ---    
Severity: normal CC: nate, plasma-bugs-null
Priority: NOR Keywords: multiscreen
Version First Reported In: 5.27.10   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=473219
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: could not be saved due to error
configuration after waking

Description mashkal2000@gmail.com 2023-12-24 06:36:29 UTC
Created attachment 164415 [details]
could not be saved due to error

SUMMARY
Can't update screen configuration after resuming from sleep

STEPS TO REPRODUCE
1. Save screen configuration
2. put computer to sleep
3. resume from sleep
4. modify screen configuration
5. Apply

OBSERVED RESULT
"Outputs could not be saved due to error."

EXPECTED RESULT
configuration is applied.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.27
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.113.0
Qt Version: 5.15.11
Kernel Version: 6.2.0-39-generic (64-bit)
Graphics Platform: X11
Processors: 20 × 13th Gen Intel® Core™ i5-13600K
Memory: 31.1 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2
Manufacturer: ASRock
Product Name: Z690M-ITX/ax

ADDITIONAL INFORMATION
This bug might be a result of https://bugs.kde.org/show_bug.cgi?id=473219. The same behaviour manifests on the screen configuration after waking from sleep. i.e. the selected primary display in the settings does not match the actual primary display that the DE uses (at least to draw the taskbar panel). Changing the primary display and then changing it back was the reason I went into the settings to change the primary display in the first place.
Comment 1 mashkal2000@gmail.com 2023-12-24 06:37:59 UTC
Created attachment 164416 [details]
configuration after waking

The configuration displayed by the settings after waking makes no sense. The *actual* configuration the DE is using is what I configured before putting the computer to sleep, and is similar to the other screenshot.
Comment 2 Nate Graham 2024-02-16 18:18:38 UTC
Thanks for the bug report. Sorry it took us a while to get to it. Does it happen on Wayland too, or only X11?
Comment 3 mashkal2000@gmail.com 2024-02-17 23:34:51 UTC
(In reply to Nate Graham from comment #2)
> Thanks for the bug report. Sorry it took us a while to get to it. Does it
> happen on Wayland too, or only X11?

On wayland this seems to freeze the computer entirely, requiring a hard restart.