Bug 439315 - Power management inhibition cannot be disabled
Summary: Power management inhibition cannot be disabled
Status: RESOLVED DUPLICATE of bug 433675
Alias: None
Product: Powerdevil
Classification: Plasma
Component: general (show other bugs)
Version: 5.22.2
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-29 21:27 UTC by popov895
Modified: 2021-07-30 16:44 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description popov895 2021-06-29 21:27:59 UTC
SUMMARY

In the "Battery and Brightness" applet, after unchecking the "Inhibit automatic sleep and screen locking" checkbox, the power management inhibition remains active. Only restarting plasmashell resets all inhibitions.

I found, that after unchecking the above checkbox, PlasmaCore.DataSource for the "powermanagement" engine still contains the "plasmashell" inhibition (https://invent.kde.org/plasma/plasma-workspace/-/blob/master/applets/batterymonitor/package/contents/ui/logic.js#L77).

STEPS TO REPRODUCE

1. Open "System Settings"
2. Go to "Power Management" > "Energy Saving"
3. Check "Dim screen" checkbox and set delay to 1 minute
4. Open "Battery and Brightness" applet
5. Check the "Inhibit automatic sleep and screen locking" checkbox to enable power management inhibition and wait a few seconds (it takes a few seconds to turn it on)
6. Uncheck the above checkbox to disable power management inhibition
7. Wait 1 minute until the screen goes dim

OBSERVED RESULT

The screen doesn't dim.

EXPECTED RESULT

The screen dims.

SOFTWARE/OS VERSIONS

Operating System: openSUSE Tumbleweed 20210626
KDE Plasma Version: 5.22.1
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.2
Graphics Platform: X11
Comment 1 storagebin95 2021-07-06 23:07:54 UTC
I have the same problem with the battery and brightness widget on the panel. Once you uncheck the setting, you cannot re-enable automatic sleep and screen locking by simply re-checking the setting. You must also restart the plasma shell by logging out and logging back in.

Operating System: KDE neon 5.22
KDE Plasma Version: 5.22.2
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.3
Kernel Version: 5.8.0-59-generic (64-bit)
Graphics Platform: X11
Comment 2 storagebin95 2021-07-06 23:15:25 UTC
(In reply to storagebin95 from comment #1)
> I have the same problem with the battery and brightness widget on the panel.
> Once you check the setting, you cannot re-enable automatic sleep and
> screen locking by simply unchecking the setting. You must also restart the
> plasma shell by logging out and logging back in.
> 
> Operating System: KDE neon 5.22
> KDE Plasma Version: 5.22.2
> KDE Frameworks Version: 5.83.0
> Qt Version: 5.15.3
> Kernel Version: 5.8.0-59-generic (64-bit)
> Graphics Platform: X11
Comment 3 Nate Graham 2021-07-30 16:44:04 UTC

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