Bug 466885

Summary: Extend screen keeps secondary screen powered on and enabled even when lid closed
Product: [Plasma] KScreen Reporter: Andrea Ippolito <andrea.ippo>
Component: commonAssignee: kscreen-bugs-null <kscreen-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 5.27.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: kscreen-doctor

Description Andrea Ippolito 2023-03-05 12:52:51 UTC
Hi,  


STEPS TO REPRODUCE
1. here's my dual monitor setup:
laptop on the side of my desk, 24" in front of me. When I dock my laptop I very rarely rely on its screen because I don't multi-task that much.
2. Still, I have chosen the "Extend to left" option in the Display configuration widget for the rare occasions where I need some content here and some content there.
3. the bug arises when I close the laptop lid.

OBSERVED RESULT
Windows that were on the laptop screen stay there, and the even the backlight won't turn off (I can barely see it through the tiny opening between the palm rest and the lid itself. The screen is behaving 100% as if the lid was still wide open.

EXPECTED RESULT
Plasma should switch the laptop screen off. This would/should let it revert to a single-display configuration (external only), which is what the user expects. No orphan windows on a screen you cannot see the content of, plus no unnecessary battery drain due to keeping the light on.

I dunno if this is a Plasma or a kernel issue, but I'd happily provide additional info that may be needed for investigation.

Thanks a bunch in advance! :)

P.S. may I add that my setting for "When laptop lid is closed" is set to "Turn off screen" and the checkbox for "Even when an external monitor is connected" is UNchecked. I thought it could come from that, so I tried enabling it, but still the problem remains.

Plus TBH that checkbox IMO should NOT be there when the user selects "Turn off screen" as a lid close action, I think it's just confusing. Of course if you want your internal screen to turn off when closing the lid, you want it to turn off neither when there's no other screen connected (e.g. for power saving reasons while running some long-running task that doesn't need your attention, like an OS update), nor when there is (because what's the point of keeping it on when you can't interact with it?)


SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20230303
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.2.1-1-default (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i7-1165G7 @ 2.80GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics
Manufacturer: Dell Inc.
Product Name: XPS 13 9305
Comment 1 Nate Graham 2023-03-08 17:35:34 UTC
Hmm, cannot reproduce the issue with those exact settings. When I close the lid, the laptop's screen turns off as expected and its windows move to the external screen.

Can you attach the output of `kscreen-doctor -o` once you close the lid and the laptop display inappropriately remains on.
Comment 2 Andrea Ippolito 2023-03-10 13:11:45 UTC
Created attachment 157172 [details]
kscreen-doctor
Comment 3 Andrea Ippolito 2023-03-10 13:12:24 UTC
(In reply to andrea.ippo from comment #2)
> Created attachment 157172 [details]
> kscreen-doctor

Hey Nate, output provided in the attachment.
Run the command once before closing the lid, plus once more after closing it.

Thanks
Comment 4 Nate Graham 2023-03-10 16:09:43 UTC
The outputs are identical, interesting. So KScreen isn't disabling the laptop screen.

Does it work if you change the setting in powerdevil for what to do when the list is closed to "Sleep"?
Comment 5 Bug Janitor Service 2023-03-25 03:45:36 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 6 Bug Janitor Service 2023-04-09 03:45:39 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!