<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>439315</bug_id>
          
          <creation_ts>2021-06-29 21:27:59 +0000</creation_ts>
          <short_desc>Power management inhibition cannot be disabled</short_desc>
          <delta_ts>2021-07-30 16:44:04 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>Powerdevil</product>
          <component>general</component>
          <version>5.22.2</version>
          <rep_platform>Neon</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>433675</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="popov895">popov895</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>nate</cc>
    
    <cc>popov895</cc>
    
    <cc>storagebin95</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2044306</commentid>
    <comment_count>0</comment_count>
    <who name="popov895">popov895</who>
    <bug_when>2021-06-29 21:27:59 +0000</bug_when>
    <thetext>SUMMARY

In the &quot;Battery and Brightness&quot; applet, after unchecking the &quot;Inhibit automatic sleep and screen locking&quot; 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 &quot;powermanagement&quot; engine still contains the &quot;plasmashell&quot; inhibition (https://invent.kde.org/plasma/plasma-workspace/-/blob/master/applets/batterymonitor/package/contents/ui/logic.js#L77).

STEPS TO REPRODUCE

1. Open &quot;System Settings&quot;
2. Go to &quot;Power Management&quot; &gt; &quot;Energy Saving&quot;
3. Check &quot;Dim screen&quot; checkbox and set delay to 1 minute
4. Open &quot;Battery and Brightness&quot; applet
5. Check the &quot;Inhibit automatic sleep and screen locking&quot; 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&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2045547</commentid>
    <comment_count>1</comment_count>
    <who name="">storagebin95</who>
    <bug_when>2021-07-06 23:07:54 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2045551</commentid>
    <comment_count>2</comment_count>
    <who name="">storagebin95</who>
    <bug_when>2021-07-06 23:15:25 +0000</bug_when>
    <thetext>(In reply to storagebin95 from comment #1)
&gt; I have the same problem with the battery and brightness widget on the panel.
&gt; Once you check the setting, you cannot re-enable automatic sleep and
&gt; screen locking by simply unchecking the setting. You must also restart the
&gt; plasma shell by logging out and logging back in.
&gt; 
&gt; Operating System: KDE neon 5.22
&gt; KDE Plasma Version: 5.22.2
&gt; KDE Frameworks Version: 5.83.0
&gt; Qt Version: 5.15.3
&gt; Kernel Version: 5.8.0-59-generic (64-bit)
&gt; Graphics Platform: X11</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2049910</commentid>
    <comment_count>3</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-07-30 16:44:04 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 433675 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>