Bug 442954

Summary: Laptop going to sleep even when external monitor is plugged-in (Wayland only)
Product: [Plasma] Powerdevil Reporter: Arnaud <arnaud.vergnet>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: me, nate
Priority: NOR    
Version: 5.22.4   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Arnaud 2021-09-25 21:54:19 UTC
SUMMARY

When using the Wayland session, the laptop goes to sleep if the lid is closed even when an external monitor is plugged-in.

STEPS TO REPRODUCE
1. Start a Wayland session
2. Go to system settings -> Power management -> Energy saving and make sure "Even when an external monitor is is connected" is unchecked
3. Plug in an external monitor
4. Close the lid, the computer goes to sleep

OBSERVED RESULT

The computer goes to sleep when the lid is closed with an external monitor plugged in. 

EXPECTED RESULT

The laptop should not go to sleep unless the option is explicitly selected.

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Kernel Version: 5.14.7-2-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 2 × Intel® Celeron® CPU N3050 @ 1.60GHz
Memory: 1,8 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 400

ADDITIONAL INFORMATION

External monitor is plugged in via mini-HDMI and the feature works as expected on X11.
Comment 1 Nate Graham 2021-09-27 21:56:03 UTC

*** This bug has been marked as a duplicate of bug 438716 ***