<?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>418433</bug_id>
          
          <creation_ts>2020-03-03 14:33:15 +0000</creation_ts>
          <short_desc>Widget always claims everything is blocking both sleep and screen locking, which can be inaccurate</short_desc>
          <delta_ts>2026-01-09 20:32:25 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>Power and Battery  widget</component>
          <version>5.21.4</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>usability</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Juan Simón">decedion</reporter>
          <assigned_to name="Kai Uwe Broulik">kde</assigned_to>
          <cc>bugseforuns</cc>
    
    <cc>jpetso</cc>
    
    <cc>kde</cc>
    
    <cc>kdebugs.81do7</cc>
    
    <cc>mjrixnertx+kde</cc>
    
    <cc>nate</cc>
    
    <cc>plasma-bugs-null</cc>
    
    <cc>robby.engelmann</cc>
    
    <cc>tneo</cc>
    
    <cc>trmdi</cc>
    
    <cc>vikts</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/powerdevil/-/commit/83f685b79cc31fb5aae03c16285da3f05907a47d</cf_commitlink>
          <cf_versionfixedin>6.6.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1914248</commentid>
    <comment_count>0</comment_count>
    <who name="Juan Simón">decedion</who>
    <bug_when>2020-03-03 14:33:15 +0000</bug_when>
    <thetext>When Elisa plays music doesn&apos;t allow the monitor to be turned off.
Elisa is a music player so I don&apos;t understand why it inhibits the energy saving settings I have configured.
I understand that it does not allow the equipment to be suspended or turned off but the monitor being turned off does not prevent the music from continuing to play.

Operating System: Arch Linux 
KDE Plasma Version: 5.18.2
KDE Frameworks Version: 5.67.0
Qt Version: 5.14.1
Kernel Version: 5.5.7-zen1-1-zen
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-7700 CPU @ 3.60GHz
Memory: 15,5 GiB</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1915034</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2020-03-08 02:29:51 +0000</bug_when>
    <thetext>Yeah, it&apos;s possible to inhibit system sleep but not display sleep/dimming. Elisa should do that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1973874</commentid>
    <comment_count>2</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2020-11-11 03:08:15 +0000</bug_when>
    <thetext>*** Bug 421522 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2029147</commentid>
    <comment_count>3</comment_count>
    <who name="Victoria">vikts</who>
    <bug_when>2021-05-01 08:37:50 +0000</bug_when>
    <thetext>In my opinion at the very least, an audio player should not be inhibiting screen locking.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2029154</commentid>
    <comment_count>4</comment_count>
    <who name="">trmdi</who>
    <bug_when>2021-05-01 09:43:14 +0000</bug_when>
    <thetext>&gt; When Elisa plays music doesn&apos;t allow the monitor to be turned off.

Hmm... I can&apos;t reproduce it. My laptop screen is still turned off while the music is playing, sleep is inhibited.

I am using the latest git version. Am I missing anything here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2029155</commentid>
    <comment_count>5</comment_count>
    <who name="Kai Uwe Broulik">kde</who>
    <bug_when>2021-05-01 10:11:35 +0000</bug_when>
    <thetext>Are you sure, or did you just read the label in battery monitor? It will always say &quot;screen locking&quot; because it doesn&apos;t know what inhibition an app exactly requested.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2029168</commentid>
    <comment_count>6</comment_count>
    <who name="Patrick Silva">bugseforuns</who>
    <bug_when>2021-05-01 11:27:58 +0000</bug_when>
    <thetext>I also can&apos;t reproduce on neon unstable.
The screen of my laptop is turned off during playback.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2029181</commentid>
    <comment_count>7</comment_count>
    <who name="Victoria">vikts</who>
    <bug_when>2021-05-01 12:40:36 +0000</bug_when>
    <thetext>Yes, it was based on the description from the battery monitor applet. Sorry.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2029193</commentid>
    <comment_count>8</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-05-01 13:51:46 +0000</bug_when>
    <thetext>Ah, we should make the text show the specific inhibitions rather than a generic message.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2341824</commentid>
    <comment_count>9</comment_count>
    <who name="Wyatt Childers">kdebugs.81do7</who>
    <bug_when>2024-07-31 18:20:57 +0000</bug_when>
    <thetext>*** Bug 487118 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2403033</commentid>
    <comment_count>10</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-02-26 20:20:43 +0000</bug_when>
    <thetext>*** Bug 500725 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2455122</commentid>
    <comment_count>11</comment_count>
    <who name="">mjrixnertx+kde</who>
    <bug_when>2025-09-17 22:55:29 +0000</bug_when>
    <thetext>*** Bug 509400 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2483344</commentid>
    <comment_count>12</comment_count>
    <who name="Jakob Petsovits">jpetso</who>
    <bug_when>2026-01-09 17:02:12 +0000</bug_when>
    <thetext>A relevant merge request has been created at https://invent.kde.org/plasma/powerdevil/-/merge_requests/598 (and is about to be merged)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2483393</commentid>
    <comment_count>13</comment_count>
    <who name="Jakob Petsovits">jpetso</who>
    <bug_when>2026-01-09 19:03:50 +0000</bug_when>
    <thetext>Git commit 83f685b79cc31fb5aae03c16285da3f05907a47d by Jakob Petsovits.
Committed on 09/01/2026 at 17:00.
Pushed by jpetso into branch &apos;master&apos;.

applets/batterymonitor: Redesign inhibition list again

Highlights at a glance:
* Phrasings distinguish between sleep and screen locking
* Remove some labels, so that the user focuses on what matters

Following commit f9c81566, the PowerDevil service provides enough
information to show whether an inhibition is blocking just sleep
or just screen locking, or both.

Introducing this distinction complicated label phrasings though,
so we also had to tweak the UI to remain straightforward enough.

As per Nate&apos;s suggested design, the indicator text at the top is
removed for simplicity. The &quot;Manually Block&quot; is once again a toggle,
now at the top of the inhibition section.

We also get rid of the heading &quot;N applications are currently
blocking sleep [and/or screen locking]&quot;, which used to appear
when multiple inhibitions were requested.

In order to tell whether sleep and/or screen locking are currently
inhibited, the user therefore has to look at all the remaining
individual list items. However, this is generally acceptable as more
than a small handful of inhibition list items are exceedingly rare.
(An accessible status description continues to summarize the section.)

In return, the section as a whole is tidier, generally with less
text to read, which makes it more likely that the user will actually
try to parse the remaining items.

M  +104  -167  applets/batterymonitor/InhibitionItem.qml
M  +1    -1    applets/batterymonitor/PopupDialog.qml
M  +1    -1    applets/batterymonitor/plugin/inhibitioncontrol.cpp
M  +2    -2    applets/batterymonitor/plugin/inhibitioncontrol.h

https://invent.kde.org/plasma/powerdevil/-/commit/83f685b79cc31fb5aae03c16285da3f05907a47d</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>