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?