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
*** Bug 423174 has been marked as a duplicate of this bug. ***
*** Bug 312425 has been marked as a duplicate of this bug. ***
*** Bug 427990 has been marked as a duplicate of this bug. ***
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.
Darn, sorry. Feel free to un-dupe and move/rename/etc according for any bugs I mis-triaged.
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.
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.
(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?
*** Bug 499957 has been marked as a duplicate of this bug. ***
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.
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
#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).
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.