Bug 514729

Summary: Screen Locking happens when the AC is disconnected while having a external monitor via HDMI
Product: [Plasma] plasmashell Reporter: Fernando Marcelino Muniz <fernandommuniz>
Component: Screen lockingAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: kdedev
Priority: NOR    
Version First Reported In: 6.5.5   
Target Milestone: 1.0   
Platform: CachyOS   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: There's nothing that should be causing this issue.
Issue on Plasma 6.5.5

Description Fernando Marcelino Muniz 2026-01-17 11:10:56 UTC
Created attachment 188614 [details]
There's nothing that should be causing this issue.

STEPS TO REPRODUCE
1. Have a notebook with the lid closed (set to lock when the lid gets closed) with a external monitor via HDMI and.
2. Disconnect, then connect the AC cable.

OBSERVED RESULT
The session is locked.

EXPECTED RESULT
Nothing should happen whenever the AC cable is disconnected while using a external monitor.

SOFTWARE/OS VERSIONS
Operating System: CachyOS Linux 
KDE Plasma Version: 6.5.5
KDE Frameworks Version: 6.22.0
Qt Version: 6.10.1
Kernel Version: 6.18.5-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
Comment 1 Fernando Marcelino Muniz 2026-01-20 20:35:51 UTC
Created attachment 188726 [details]
Issue on Plasma 6.5.5
Comment 2 TraceyC 2026-01-20 20:43:00 UTC
I can reproduce this on Plasma built from git-master
journalctl correctly shows no lid events, when the lid has stayed closed while unplugged and replugging the AC cord

Powerdevil shows this, which proves it is switching power profiles as expected (AC - battery - AC). This was from the AC profile being activated.

Jan 20 14:37:18 tracey-solus-aura org_kde_powerdevil[11394]: Lid action was suppressed because an external monitor is present