Bug 357456 - While using "When laptop lid closed: Lock screen" setting, screen is not also turned off, which wastes power
Summary: While using "When laptop lid closed: Lock screen" setting, screen is not also...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Power management & brightness (other bugs)
Version First Reported In: 6.2.4
Platform: openSUSE Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Development Mailing List
URL:
Keywords:
: 312425 423174 499957 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-01-03 04:13 UTC by rlk
Modified: 2026-01-06 18:14 UTC (History)
13 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 rlk 2016-01-03 04:13:45 UTC
The energy saving settings offers various options for what to do when the laptop lid is closed (nothing, suspend, hibernate, shut down, blank, lock).  Unfortunately, it offers no option to both lock the screen and blank it.  Therefore, if I want to lock the screen when I close the lid, it leaves the screen powered up even though that's completely useless.  The only way to both lock and blank the screen when closing the lid is to set it to blank and manually lock the screen prior to closing it.

Solutions would include always blanking the laptop screen when closing the lid (on the grounds that the laptop screen is of no use when the lid is closed -- the blanking wouldn't be performed on an external monitor) or offering an additional option.

IIRC I reported this against KDE4 but it was closed will not fix (against KDE4) when KDE5 was released.

Reproducible: Always

Steps to Reproduce:
N/A -- this is an RFE.

Actual Results:  
N/A

Expected Results:  
N/A
Comment 1 Nate Graham 2020-06-19 21:25:05 UTC
*** Bug 423174 has been marked as a duplicate of this bug. ***
Comment 2 Nate Graham 2020-09-29 03:39:54 UTC
*** Bug 312425 has been marked as a duplicate of this bug. ***
Comment 3 Nate Graham 2020-10-21 03:05:10 UTC
*** Bug 427990 has been marked as a duplicate of this bug. ***
Comment 4 rlk 2020-10-21 12:33:50 UTC
Bug 427990 is not the same request as this.  That one is asking for a way to turn off the screen on the fly; this request is about behavior when a laptop lid is closed.

Bug 312425 is partly a bug, and partly a request for something unrelated to this (focus policy when unlocking the screen).

Bug 423174 is related, but not specifically about laptop lid behavior.  It's more closely related than the others, but isn't really the same, either, although the solution could be the same.  However, I might not want to tie screen blanking to screen locking in general; my request here is related solely to laptop lid behavior.
Comment 5 Nate Graham 2020-10-21 21:03:29 UTC
Darn, sorry. Feel free to un-dupe and move/rename/etc according for any bugs I mis-triaged.
Comment 6 gudvinr+kde 2022-05-08 02:22:52 UTC
It is sad that you still need to write scripts to make a workarounds for that.

And even then it doesn't work as it should. For example, if you set idle time for too long and someone touches keyboard or mouse you'll end up with lit up screen that just burns pixels.
For that to actually work there should be significantly lower delay to power off screen when it is still locked.

That looks like small thing but it pisses me off on a daily basis.
Comment 7 Natalie Clarius 2023-11-06 03:22:03 UTC
Not the exact same thing you're requesting but FWIW, in Plasma 6.0 you'll be able configure the screen to automatically turn off after a certain time when the screen is locked.
Comment 8 Mike H 2024-11-07 17:49:39 UTC
(In reply to Natalie Clarius from comment #7)
> Not the exact same thing you're requesting but FWIW, in Plasma 6.0 you'll be
> able configure the screen to automatically turn off after a certain time
> when the screen is locked.

Can this effectively be 0 or 1 seconds?
Comment 9 Marcelo Lacerda 2026-01-03 23:38:15 UTC
*** Bug 499957 has been marked as a duplicate of this bug. ***
Comment 10 Marcelo Lacerda 2026-01-03 23:45:14 UTC
Sayantan Santra's comment:

SUMMARY
My laptop's screen does not turn off when the lid is closed. I've set it up to lock screen when lid is closed via the Power Management config. It used to also turn off the screen before the 6.3.0 update, but it not longer works now. Additionally, when I'm connected to an external monitor via a dock, the screen switches to laptop screen when the lid is closed. It returns to the external screen when lid is opened again.

STEPS TO REPRODUCE
1. Close lid of laptop.
2. Can see some light leaking if I squint.
3. Opening lid confirms that the screen was always on.

OBSERVED RESULT
Screen stays on when lid is closed.

EXPECTED RESULT
Screen should turn off.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION
My laptop is an AMD Framework 13, and I'm connecting to an LG monitor via an UGREEN dock. I can fix it by using the attached acpi script, but I think it should just work by itself.
Comment 11 Marcelo Lacerda 2026-01-03 23:46:27 UTC
Four other users have confirmed the issue.
Vlad Zahorodnii believes the issue might be related to this commit:

https://invent.kde.org/plasma/powerdevil/-/commit/030ca5683a290dd902f4a8c259d76d24cc0587d1
Comment 12 rlk 2026-01-04 00:09:20 UTC
#11 appears to be a different issue from this.  That commit appears to be related to a laptop waking up of its own volition when the laptop screen is closed.  In this case, I do not want the laptop to suspend when I close the lid; I want it to lock and blank the screen without suspending it (so I can continue to access the laptop via ssh, vpn, etc).
Comment 13 Tommaso Fonda 2026-01-06 18:14:49 UTC
Hi, I can confirm this issue. Let me know if I can help debug it in any way. Upon closer observation it seems to me that the screen is indeed turned off for a moment when closing the lid (which is what is supposed to happen if the "on lid closed" option is set to "turn off screen" - this one works) before coming back on, so it is as though the "lock the screen" action is then waking it up accidentally.