Bug 514135

Summary: Screen Locker is activated a couple of seconds after logging into a laptop with an external screen attached that had the lid closed since boot-up
Product: [Plasma] plasmashell Reporter: Fernando Marcelino Muniz <fernandommuniz>
Component: Screen lockingAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: normal CC: nate
Priority: NOR Keywords: usability
Version First Reported In: 6.5.4   
Target Milestone: 1.0   
Platform: CachyOS   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Issue on Plasma 6.5.4

Description Fernando Marcelino Muniz 2026-01-04 05:19:42 UTC
STEPS TO REPRODUCE
1. Set to Lock if the notebook lid is closed.
2. Boot and login into your account with an external keyboard with the lid closed.

OBSERVED RESULT
After a couple seconds, 6~7, the screen locks for no apparent reason.

EXPECTED RESULT
That shouldn't happen because I just logged.

SOFTWARE/OS VERSIONS
Operating System: CachyOS Linux 
KDE Plasma Version: 6.5.4
KDE Frameworks Version: 6.21.0
Qt Version: 6.10.1
Kernel Version: 6.18.3-2-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i5-11300H @ 3.10GHz
Memory: 9 GB of RAM (8.1 GB usable)
Graphics Processor 1: Intel® Iris® Xe Graphics
Graphics Processor 2: NVIDIA GeForce GTX 1650
Manufacturer: LENOVO
Product Name: 82MG
System Version: IdeaPad Gaming 3 15IHU6

ADDITIONAL INFORMATION
Perhaps the feature that locks when the lid is closed doesn't have an exception for when the lid was never open?
Comment 1 Nate Graham 2026-01-06 22:09:31 UTC
I presume the way you trigger this is with an external screen and a laptop that has the power button on the side so that you can power it on without unlocking the lid?
Comment 2 Fernando Marcelino Muniz 2026-01-07 04:12:19 UTC
(In reply to Nate Graham from comment #1)
> I presume the way you trigger this is with an external screen and a laptop
> that has the power button on the side so that you can power it on without
> unlocking the lid?

Yes, I'm using an external TV connected to my notebook via HDMI.
No, I turned on my notebook, then close the lid.
Comment 3 Nate Graham 2026-01-08 18:34:17 UTC
Thanks. Please write specific steps to reproduce that a person with such a setup can follow to reproduce the bug on their system.

(this goes for future bug reports, too :) )
Comment 4 Fernando Marcelino Muniz 2026-01-08 18:39:01 UTC
1- Connect a TV via HDMi, a mouse and keyboard.
2- Press turn on the notebook and close the lid.
3- Log into your account and wait up to 20 seconds.
Comment 5 Nate Graham 2026-01-08 18:42:13 UTC
After step 2, do you close the lid before the startup process has completed? As in, do you press the power button and then immediately close the lid?
Comment 6 Fernando Marcelino Muniz 2026-01-08 18:45:34 UTC
(In reply to Nate Graham from comment #5)
> After step 2, do you close the lid before the startup process has completed?
> As in, do you press the power button and then immediately close the lid?

All that is needed to reproduce it is to close the lid before you press Enter to enter the password.
Comment 7 Fernando Marcelino Muniz 2026-01-08 19:57:07 UTC
Created attachment 188330 [details]
Issue on Plasma 6.5.4