Bug 483519

Summary: Closing Laptop lid got to standby even with external monitor, although in settings is defined differently.
Product: [Unmaintained] Powerdevil Reporter: v.mladenov
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: jpetso, me, natalie_clarius, nate
Priority: NOR Keywords: multiscreen
Version First Reported In: 6.0.2   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description v.mladenov 2024-03-14 07:14:05 UTC
SUMMARY
After upgrading to Fedora 40, the closing lid with external monitor was working, up to the moment I checked "Enable presentation mode" in the display applet. Which when checked can not be unchecked. This is another bug. After this (but not sure if it connected) closing the laptop LID started to go to sleep even with monitor attached. On the battery applet clearly states: "The laptop is configured not to sleep when closing the lid while external monitor is connected".  In plasma powerdevil logs: 
Mar 14 08:03:34 laptop-linux org_kde_powerdevil[2629]: org.kde.powerdevil: Lid action was suppressed because an external monitor is present
Mar 14 08:03:35 laptop-linux org_kde_powerdevil[2629]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash

but still laptop goes to sleep.

Config files:
~/.config/powerdevilrc
[BatteryManagement]
BatteryCriticalAction=1

~/.config/powermanagementprofilesrc
[Migration]
MigratedProfilesToPlasma6=powerdevilrc



STEPS TO REPRODUCE
1.  Attach external monitor
2.  Configure not to sleep while external monitor attached.
3.  Close lid

OBSERVED RESULT
Laptop goes to sleep

EXPECTED RESULT
Do nothing.

SOFTWARE/OS VERSIONS
Fedora: 40
Plasma: 6.0.2 
GPU: Intel
External monitor connected using USB 3 

Does something went wrong with the presentation mode switch? 
Something went wrong with the power devil configuration migration?
Comment 1 Natalie Clarius 2024-04-09 23:29:41 UTC
> up to the moment I checked "Enable presentation mode" in the display applet. Which when checked can not be unchecked

This is https://bugs.kde.org/show_bug.cgi?id=477355 which has been fixed in the most recent release.
Comment 2 Natalie Clarius 2024-04-09 23:30:12 UTC
The rest looks the same as https://bugs.kde.org/show_bug.cgi?id=485204.

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