https://bugs.kde.org/show_bug.cgi?id=424288
Bug ID: 424288 Summary: Unable to inhibit suspend in terminal Product: Powerdevil Version: 5.19.3 Platform: Other OS: Other Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: plasma-b...@kde.org Reporter: basjetim...@yahoo.com Target Milestone: --- SUMMARY Since the latest update, inhibition of suspend does not seem to be working by issuing dbus commands from the terminal. I have several scripts that look pretty much like this: ``` COOKIE=$(qdbus org.freedesktop.PowerManagement.Inhibit /org/freedesktop/PowerManagement/Inhibit Inhibit string:"Inhibit" string:"User requested") #perform some long running task, like encoding a video file qdbus org.freedesktop.PowerManagement.Inhibit /org/freedesktop/PowerManagement/Inhibit UnInhibit uint:$COOKIE ``` However, this is not working anymore and my computer suspends during the long running task. I also have some compiled programs that use the same idea, only by issuing the dbus command through qt's QtDBus-classes. I suspect qbittorrent uses this same method as it also fails to inhibit suspend while downloads are runing since last week. I understand it has to do with https://invent.kde.org/plasma/powerdevil/commit/d21102cc6c7a4db204a29f376ce5eb316ef57a6e Is there currently any way to send inhibition from the terminal as I was used to in my scripts? STEPS TO REPRODUCE Issue 'qdbus org.freedesktop.PowerManagement.Inhibit /org/freedesktop/PowerManagement/Inhibit Inhibit string:"Inhibit" string:"User requested"', get no error, get a cookie returned. OBSERVED RESULT Computer goes to sleep anyway... EXPECTED RESULT Suspend is inhibited until I uninhibit it again. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Up-to-date Arch KDE Plasma Version: 5.19.3 KDE Frameworks Version: 5.72.0 Qt Version: 5.15.0 -- You are receiving this mail because: You are watching all bug changes.