<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>PowerDevil on RESEARCHUT</title><link>https://researchut.com/tags/powerdevil/</link><description>Recent content in PowerDevil on RESEARCHUT</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>rrs@researchut.com (Ritesh Raj Sarraf)</managingEditor><webMaster>rrs@researchut.com (Ritesh Raj Sarraf)</webMaster><lastBuildDate>Tue, 28 Oct 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://researchut.com/tags/powerdevil/index.xml" rel="self" type="application/rss+xml"/><item><title>KDE PowerDevil Systemd Inhibit</title><link>https://researchut.com/blog/KDE_PowerDevil_systemd_inhibitors/</link><pubDate>Tue, 28 Oct 2025 00:00:00 +0000</pubDate><author>rrs@researchut.com (Ritesh Raj Sarraf)</author><guid>https://researchut.com/blog/KDE_PowerDevil_systemd_inhibitors/</guid><description>&lt;p>With KDE 6.5.0, PowerDevil has &lt;del>broken&lt;/del> forced its own set of
suspend/hibernate inhibitors onto logind. And to my knowledge, there&amp;rsquo;s no way to disable them.&lt;/p>
&lt;!-- raw HTML omitted -->
&lt;!-- raw HTML omitted -->
&lt;link rel="stylesheet" href="https://researchut.com/css/hugo-easy-gallery.css" />
&lt;div class="box" >
&lt;figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject">
&lt;div class="img">
&lt;img itemprop="thumbnail" src="https://researchut.com/images/powerdevil-logind-inhibitors.jpeg" alt="KDE PowerDevil Settings Window"/>
&lt;/div>
&lt;a href="https://researchut.com/images/powerdevil-logind-inhibitors.jpeg" itemprop="contentUrl">&lt;/a>
&lt;/figure>
&lt;/div>
&lt;p>As a user, I&amp;rsquo;d prefer to set lid action as &lt;code>Do nothing&lt;/code> and really
expect KDE/PowerDevil to do nothing in that regard.
But with KDE 6.5.0 PowerDevil forces those inhibitors whatsoever.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>❯ systemd-inhibit --list
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>WHO UID USER PID COMM WHAT WHY &amp;gt;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>ModemManager &lt;span style="color:#ae81ff">0&lt;/span> root &lt;span style="color:#ae81ff">3541&lt;/span> ModemManager sleep ModemManager needs to reset devices &amp;gt;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>NetworkManager &lt;span style="color:#ae81ff">0&lt;/span> root &lt;span style="color:#ae81ff">3453&lt;/span> NetworkManager sleep NetworkManager needs to turn off networks &amp;gt;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>UPower &lt;span style="color:#ae81ff">0&lt;/span> root &lt;span style="color:#ae81ff">4342&lt;/span> upowerd sleep Pause device polling &amp;gt;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>PowerDevil &lt;span style="color:#ae81ff">1000&lt;/span> rrs &lt;span style="color:#ae81ff">82735&lt;/span> org_kde_powerde handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch KDE handles power events &amp;gt;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Screen Locker &lt;span style="color:#ae81ff">1000&lt;/span> rrs &lt;span style="color:#ae81ff">4844&lt;/span> kwin_wayland sleep Ensuring that the screen gets locked before going to sleep &amp;gt;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#ae81ff">5&lt;/span> inhibitors listed.
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>This essentially prohibits logind to act on the lid actions. And instead forces the user to depend on nothing else and other than PowerDevil. This assumes the wishful thought that PowerDevil is Solid.&lt;/p>
&lt;p>I&amp;rsquo;d love to continue using my suspend workflow via systemd&amp;rsquo;s
&lt;code>suspend-then-hibernate&lt;/code> target as it has been working reliably for years. And
it also allows me to customize the behavior as I see fit.&lt;/p>
&lt;p>Of course, I do have the option to trigger &lt;code>systemd suspend-then-hibernate&lt;/code> manually, every time, before closing the lid. But
computers and automation has spoilt things.&lt;/p>
&lt;p>The quick workaround/fix is to delegate it to ACPI, on platforms that
support it. Thankfully all of x86 to my knowledge.&lt;/p>
&lt;p>So, in ACPI actions I&amp;rsquo;ve a new config set to:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>❯ cat /etc/acpi/actions/lm_lid.sh
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#! /bin/sh&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>grep close /proc/acpi/button/lid/LID/state &lt;span style="color:#f92672">&amp;amp;&amp;amp;&lt;/span> systemctl suspend-then-hibernate
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>And with that I can be back to reliably (and carelessly)
&lt;code>suspend-then-hibernate&lt;/code> my laptop.&lt;/p></description></item></channel></rss>