Bug 466434

Summary: Monitor frequently fails to go to sleep and corruption occurs after it attempts to or is shut off.
Product: [Plasma] KScreen Reporter: C Schell <kdebugs>
Component: commonAssignee: kscreen-bugs-null <kscreen-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.27.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: journalctl output when the bug occurs

Description C Schell 2023-02-25 22:20:31 UTC
Created attachment 156733 [details]
journalctl output when the bug occurs

SUMMARY

On 5.27.0 I had the kded5 crashes after the monitor went to sleep or was manually powered off.

After upgrade to 5.27.1 while that no longer happens, now there is another problem with random behavior after the monitor attempts to go to sleep or is powered off.  On my normal account when typically the monitor should go to sleep instead the monitor wakes back up but most of my desktop icons are missing, sometimes terminal output is messed up, etc.

For the general problem though I'll discuss what happens with a brand new account with entirely default configuration.

STEPS TO REPRODUCE
1.   Create a new account
2.   Let the screen timeout.  (Either the default 10 minutes or do "xset dpms 5 6 7" to speed things up
3.   At first everything is fine.  Monitor goes to sleep.
4.   Open a konsole and run "sudo journalctl -f"
5.   Let the monitor try to go to sleep again, it won't.  (Usually, sometimes I've had to move back to the konsole that I ran xset in, or do something to start the bug.)

OBSERVED RESULT
The monitor will not go to sleep and instead just before it should the desktop will wake back up.  There may be corruption of open apps and the Desktop.

The journalctl fills with lines from kscreen like in the attachment.  This journalctl output does not occur when the monitor goes to sleep and wakes back up correctly.

EXPECTED RESULT
The monitor should go to sleep.  When the session is resumed the desktop and all applications should be as they were before the monitor went to sleep.   The logs should not fill with information about the screen after every sleep/wake cycle.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Opensuse Tumbleweed
KDE Plasma Version: 5.27.1
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Comment 1 C Schell 2023-03-01 06:19:40 UTC
This seems to be a hardware (firmware) issue.  It only happens with one monitor and only when connected via HDMI.