https://bugs.kde.org/show_bug.cgi?id=433675

            Bug ID: 433675
           Summary: Battery applet will inhibit screen locking after being
                    toggled on and off a few times.
           Product: lattedock
           Version: git (master)
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: application
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

SUMMARY
After a while of desktop use, I usually end up checking and unchecking the
allow automatic sleep and screen locking check box in the battery applet for
various reasons. Upon doing this a few times say (3 - 4) cycles of turning it
on and off. I then get a message saying an application is preventing sleep and
screenlocking: the battery applet has enabled system-wide inhibition. At this
point my laptop won't sleep regardless as to whether or not the checkbox is
checked or not. This is with the default plasma battery applet and not some
third party one. I decided to also try putting a secondary battery applet on
the desktop itself and attempting to recreate the issue, and then again with a
plasma panel. However when the applet is on the plasma desktop or a plasma
panel. I can toggle this checkbox as many times as I like without it getting
stuck and inhibiting sleep.

STEPS TO REPRODUCE
1. Add battery applet or system tray to a latte panel
2. click on battery applet
3. Toggle on and off the automatic sleep and screenlocking by checking and
unchecking the checkbox. 
4. Do this at least 4 times.

OBSERVED RESULT
Automatic sleep and screenlocking is permanently inhibited by the battery
applet itself inside of lattedock until I restart lattedock.

EXPECTED RESULT
The battery applet should not be able to inhibit the screen on its own unless
unchecked. Otherwise there is no way for the system to automatically sleep.

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS
KDE Plasma Version: 5.21.1
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Kernel Version: 5.11.1-arch1-1
OS Type: 64-bit
Graphics Platform: X11
Processors: 4 × Intel® Core™ i7-7500U CPU @ 2.70GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 620

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to