<?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>455134</bug_id>
          
          <creation_ts>2022-06-10 15:04:19 +0000</creation_ts>
          <short_desc>[applets/batterymonitor] Sleep and locking continue to be blocked even after an app is closed</short_desc>
          <delta_ts>2022-06-16 12:57:49 +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.24.5</version>
          <rep_platform>openSUSE</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DOWNSTREAM</resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=423745</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>je2</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>je2</cc>
    
    <cc>kde</cc>
    
    <cc>me</cc>
    
    <cc>nate</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>2130376</commentid>
    <comment_count>0</comment_count>
    <who name="">je2</who>
    <bug_when>2022-06-10 15:04:19 +0000</bug_when>
    <thetext>SUMMARY

After closing an application, there is still a message in batterymonitor that sleep and locking are blocked but the app name is missing and there is no way to clear it.

Image: https://invent.kde.org/plasma/plasma-workspace/uploads/3530c1737b00dae70d21ca16f8c48b50/image.png

So far this has happened to me twice in a row after ending a Zoom session and closing the app.  Only rebooting clears the message and wakelock.
I&apos;m happy to try to troubleshoot if you can point me in the right direction.  Thanks.

STEPS TO REPRODUCE
1. Launch and use Zoom, a message indicating it is preventing sleep is displayed
2. Close Zoom

OBSERVED RESULT
The message &quot;is currently blocking sleep and screen locking (webcam in use)&quot; is still displayed, but no application name is shown and it can&apos;t be cleared.

EXPECTED RESULT
The message should disappear and sleep should return to normal.

SOFTWARE/OS VERSIONS

Operating System: openSUSE Tumbleweed 20220605
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.2
Kernel Version: 5.18.1-1-default (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-6300U CPU @ 2.40GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 520</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2131045</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-06-14 14:48:59 +0000</bug_when>
    <thetext>Notice how the reason is still there (&quot;Webcam in use&quot;) but the app name at the beginning of the sentence is blank.

This means that Zoom didn&apos;t properly release the webcam when it quit. This is an app bug, and you&apos;ll need to report it to the Zoom developers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2131755</commentid>
    <comment_count>2</comment_count>
    <who name="">je2</who>
    <bug_when>2022-06-16 09:19:43 +0000</bug_when>
    <thetext>(In reply to Nate Graham from comment #1)
&gt; Notice how the reason is still there (&quot;Webcam in use&quot;) but the app name at
&gt; the beginning of the sentence is blank.
&gt; 
&gt; This means that Zoom didn&apos;t properly release the webcam when it quit. This
&gt; is an app bug, and you&apos;ll need to report it to the Zoom developers.

That does not surprise me at all... but thanks for confirming.  I will raise it with them.

In the meantime, how does Plasma get this information and is there any way to clear it without a reboot?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2131805</commentid>
    <comment_count>3</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-06-16 12:57:49 +0000</bug_when>
    <thetext>Not yet I&apos;m afraid. See Bug 423745.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>