<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  
  
  <channel>
    <title>chrisjrob: power</title>
    <link>https://chrisjrob.com</link>
    <atom:link href="https://chrisjrob.com/tag/power/feed/index.xml" rel="self" type="application/rss+xml" />
    <description>GNU Linux, Perl and FLOSS</description>
    <language>en-gb</language>
    <pubDate>Fri, 13 Feb 2026 17:22:31 +0000</pubDate>
    <lastBuildDate>Fri, 13 Feb 2026 17:22:31 +0000</lastBuildDate>
    
    <item>
      <title>KDE Power Management In Pekwm</title>
      <link>https://chrisjrob.com/2011/03/06/kde-power-management-in-pekwm/</link>
      <pubDate>Sun, 06 Mar 2011 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2011/03/06/kde-power-management-in-pekwm</guid>
      <description>
       <![CDATA[
         
         <p>After my laptop spontaneously switched off on <strong>two</strong> separate
occasions, because I had failed to switch on the mains socket, I decided
that something had to be done about the lack of power management in
<a href="http://www.pekwm.org/">pekwm</a>.</p>

<!--more-->

<p>Hunting the ‘net for anything to do with pekwm is a frustrating
business. You can’t help thinking that there are only a handful of us
that use it. I may post something about why I think pekwm is great, but
that is a topic for another day.</p>

<p>As my laptop’s primary desktop environment is KDE, I wanted to use the
KDE power management with pekwm, rather than install the Gnome Power
Manager, which would bring in a load of Gnome dependencies. If you
already have Gnome installed, then I suspect the Gnome Power Manager is
for you.</p>

<p>There seem to be three parts to this:</p>

<ol>
  <li>Getting the power management daemon to run</li>
  <li>Adding a power meter</li>
  <li>Adding the configuration tool to the menu</li>
</ol>

<p>Whilst these instructions are primarily for pekwm, I am sure that
openbox, fluxbox and other *box window managers could use them with a
little adjustment.</p>

<h2 id="power-management-daemon">Power Management Daemon</h2>

<p>In the <code class="language-plaintext highlighter-rouge">~/.pekwm/start</code> file, add the lines:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>kded4 &amp; qdbus org.kde.kded /kded loadModule powerdevil &amp;
</code></pre></div></div>

<p>If you do not want to restart pekwm to test, just run those two commands
live.</p>

<h2 id="battery-meter">Battery Meter</h2>

<p>Update: Since writing this post <a href="/2011/03/07/pekwm-with-tint2-panel/">I have discovered tint2</a> 
which includes a simple battery monitor.</p>

<p>What I really want is a battery level meter that will sit happily in
<a href="http://icculus.org/openbox/2/docker/">Docker</a>, but I failed in this
quest. If you have any suggestions, please do let me know and I will
update this post. In the meantime I have installed xbattbar, which gives
a full thin width line at the bottom of your screen.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo apt-get install xbattbar
</code></pre></div></div>

<p>In the <code class="language-plaintext highlighter-rouge">~/.pekwm/start</code> file, add the line:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>xbattbar &amp;
</code></pre></div></div>

<h2 id="power-management-configuration">Power Management Configuration</h2>

<p>It is quite possible that you will wish to configure your power
management from within pekwm. To do this, add the following to your
<code class="language-plaintext highlighter-rouge">~/.pekwm/menu</code> file:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Entry = "Configure Powerdevil" { Actions = "Exec kcmshell4 powerdevilconfig &amp; " }
</code></pre></div></div>

<p>And that appears to be a working solution for me, I hope it works for
you too!</p>


       ]]>
      </description>
    </item>
    
  </channel> 
</rss>
