Bug 474508 - Almost completely black screen after waking up from screen energy saving
Summary: Almost completely black screen after waking up from screen energy saving
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: core (other bugs)
Version First Reported In: 5.27.7
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-13 23:02 UTC by nkwkelvin
Modified: 2023-11-25 03:45 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nkwkelvin 2023-09-13 23:02:25 UTC
After not touching the computer for a long time (10 mins in my config), the screen will turn off for energy saving. If I move my mouse or press any key on the keyboard after energy saving, the screen should fully come back but it does not. Instead, it is completely black except the cursor. Once I move the cursor to the upper left corner, it will show all windows as normal. However, if I click on one of the windows, the screen will go black again except the cursor.

A workaround is to switch to tty and then suspend the computer. After waking up from suspend, the screen will come back as normal.

STEPS TO REPRODUCE
1. Do not touch the computer for long enough to trigger screen energy saving
2. Touch the computer

OBSERVED RESULT
Completely black screen except cursor and the upper left corner thing

EXPECTED RESULT
Show everything as expected

SOFTWARE/OS VERSIONS
Linux: Arch Linux
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.10
Comment 1 tagwerk19 2023-09-14 07:27:31 UTC
Maybe worth looking at Bug 469975 / Bug 473835 

>   It seems related to Power Management and the "Suspend Session":
>
>        System Settings > Power Management > Energy Saving
>
>   has "Suspend Session" enabled with a 15 minute timeout.

Although these talk about Guest VMs under KVM and a 15 minute rather than 10 minute delay. A possibility though.....
Comment 2 nkwkelvin 2023-09-14 14:45:42 UTC
Looks like a different problem. The problem I am facing does not happen with suspend. It only happens with screen energy saving. In fact, I workaround the problem by intentionally suspending and waking up the computer.
Comment 3 Nate Graham 2023-09-14 19:32:35 UTC
If you right-click on the black background, what happens?

If you hit Alt+F2 to bring up KRunner, type "plasmashell" and hit enter, what happens?

If that doesn't do anything, does anything happen if instead you enter "plasmashell --replace"?
Comment 4 nkwkelvin 2023-09-14 22:53:28 UTC
(In reply to Nate Graham from comment #3)
> If you right-click on the black background, what happens?
> 
> If you hit Alt+F2 to bring up KRunner, type "plasmashell" and hit enter,
> what happens?
> 
> If that doesn't do anything, does anything happen if instead you enter
> "plasmashell --replace"?

I forgot to try right-click last time this issue happens. I will try next time.

I tried Alt+F2 but I can't see KRunner. But I still type plasmashell and plasmashell --replace and hit enter, but nothing happens.

I also tried going to a Konsole (by using the working upper left corner thing) and run plasmashell and plasmashell --replace, but still nothing happens.
Comment 5 Bug Janitor Service 2023-09-29 03:46:25 UTC Comment hidden (spam)
Comment 6 nkwkelvin 2023-10-02 00:30:51 UTC
(In reply to nkwkelvin from comment #4)
> (In reply to Nate Graham from comment #3)
> > If you right-click on the black background, what happens?
> > 
> > If you hit Alt+F2 to bring up KRunner, type "plasmashell" and hit enter,
> > what happens?
> > 
> > If that doesn't do anything, does anything happen if instead you enter
> > "plasmashell --replace"?
> 
> I forgot to try right-click last time this issue happens. I will try next
> time.
> 
> I tried Alt+F2 but I can't see KRunner. But I still type plasmashell and
> plasmashell --replace and hit enter, but nothing happens.
> 
> I also tried going to a Konsole (by using the working upper left corner
> thing) and run plasmashell and plasmashell --replace, but still nothing
> happens.

I tried right-click but nothing shows up.
Comment 7 Bug Janitor Service 2023-10-17 03:45:42 UTC Comment hidden (spam)
Comment 8 Nate Graham 2023-10-20 17:53:22 UTC
Thanks. Does this setup include multiple screens, or just one?
Comment 9 nkwkelvin 2023-10-21 21:48:43 UTC
(In reply to Nate Graham from comment #8)
> Thanks. Does this setup include multiple screens, or just one?

Just one.
Comment 10 Nate Graham 2023-10-23 18:31:21 UTC
Thanks. Are you using X11 or Wayland? Does the issue reproduce with both, or just one?
Comment 11 nkwkelvin 2023-10-25 18:35:21 UTC
(In reply to Nate Graham from comment #10)
> Thanks. Are you using X11 or Wayland? Does the issue reproduce with both, or
> just one?

Hi am using X11 but I have not tried on Wayland.

Also, this issue does not always happen. It seems that it only happens after the screen is put to energy saving for a long time (not sure exact number, maybe 15 mins). If it is only at energy saving for a short time (like a few minutes), this issue does not happen.
Comment 12 Nate Graham 2023-10-26 21:17:03 UTC
Thanks. Can you try Wayland?
Comment 13 Bug Janitor Service 2023-11-10 03:45:50 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 14 Bug Janitor Service 2023-11-25 03:45:52 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!