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

            Bug ID: 516329
           Summary: Manual deletion of kwinoutputconfig.json via TTY is
                    overwritten by KWin during shutdown unless SDDM is
                    stopped
    Classification: Plasma
           Product: kwin
      Version First unspecified
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: wayland-generic
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

SUMMARY
I encountered an "Out of Range" black screen issue after setting an unsupported
resolution. I attempted to reset the configuration via TTY (Ctrl+Alt+F3) by
deleting ~/.config/kwinoutputconfig.json.
However, simply deleting the file and running reboot does not work. Upon
reboot, the file is recreated with the bad resolution settings, and the screen
remains black. It appears KWin/SDDM holds the bad config in memory and writes
it back to disk during the shutdown sequence, effectively overwriting the
user's manual fix.

STEPS TO REPRODUCE
1. Set an unsupported resolution (e.g., 1920x780 on a 1366x768 screen)
resulting in a black screen.
2. Switch to TTY (Ctrl+Alt+F3) and log in.
3. Delete the configuration: rm ~/.config/kwinoutputconfig.json.
4. Reboot the system: sudo reboot.



OBSERVED RESULT
Upon reboot, the "Out of Range" black screen persists. Investigation shows that
kwinoutputconfig.json was recreated during the shutdown process with the
previous invalid settings. It seems KWin flushes its current (broken)
configuration from memory to disk during the exit sequence, overwriting the
user's manual fix.
Workaround: The user must run sudo systemctl stop sddm BEFORE deleting the
file.

EXPECTED RESULT
When ~/.config/kwinoutputconfig.json is deleted via TTY, KWin should not
recreate it with the old (cached) settings during the shutdown process. It
should treat the next boot as a "first run" with default hardware detection.


Workaround found:
The user is forced to manually stop the display manager before deleting the
file:
1. sudo systemctl stop sddm
2. rm ~/.config/kwinoutputconfig.json
3. sudo reboot


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma:  Fedora 43 (Rawhide)
KDE Plasma Version: 6.5.0
KDE Frameworks Version: 6.22.0
Qt Version: Qt 6.8.1

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

Reply via email to