Desktop Independent Power Manager

View on GitHub



powerkit is an lightweight desktop independent full featured power manager, originally created for Slackware for use with alternative desktop environments and window managers, like Fluxbox, Blackbox, FVWM, WindowMaker, Openbox, Lumina, Draco and others.

screenshot screenshot



powerkit is an user session daemon and should be started during the X11 startup session. If your desktop environment or window manager supports XDG auto start then powerkit should automatically start, if not you will need to add powerkit to your startup file (check the documentation included with your desktop environment or window manager).


Click on the powerkit system tray, or run the command powerkit --config (or use powerkit.desktop) to configure powerkit.

Screen saver

powerkit depends on XScreenSaver to handle the screen session, the default (XScreenSaver) settings may need to be adjusted. You can launch the (XScreenSaver) configuration GUI with the xscreensaver-demo command.

Recommended settings are:

Note that powerkit will start XScreenSaver during startup (unless org.freedesktop.ScreenSaver is disabled).

Back light

powerkit supports back light on Linux through /sys/class/backlight. The current brightness can be adjusted with the mouse wheel on the system tray icon or through the configuration GUI (bottom left slider).

Note! udev permissions are required to adjust the brightness, on Slackware an example rule file is included with the package (see /usr/doc/powerkit-VERSION/90-backlight.rules). You can also let powerkit add the rule during build with the CONFIG+=install_udev_rules option.

Hibernate (HybridSleep)

A swap partition (or file) is needed by the kernel to support hibernate/hybrid sleep. Edit the boot loader configuration and add the kernel option resume=<swap_partition/swap_file>, then save and restart.

Note! some distributions have hibernate disabled (for Ubuntu see com.ubuntu.enable-hibernate.pkla).



No, powerkit should work on any Linux/FreeBSD system (check requirements). However, powerkit is developed on/for Slackware and sees minimal testing on other systems (user feedback/bugs for other systems are welcome).

How does an application inhibit the screen saver?

The preferred way to inhibit the screen saver from an application is to use the org.freedesktop.ScreenSaver specification. Any application that uses org.freedesktop.ScreenSaver will work with powerkit. Note that powerkit also includes SimulateUserActivity for backwards compatibility.

Popular applications that uses this feature is Mozilla Firefox/Google Chrome (for audio/video), VideoLAN VLC and many more.

How does an application inhibit suspend actions?

The prefered way to inhibit suspend actions from an application is to use the org.freedesktop.PowerManagement specification. Any application that uses org.freedesktop.PowerManagement will work with powerkit.

Common use cases are audio playback, downloading and more.

Google Chrome/Chromium does not inhibit the screen saver!?

Chrome does not use org.freedesktop.ScreenSaver until it detects KDE/Xfce. Add the following to ~/.bashrc or the google-chrome launcher:



powerkit requires the following dependencies to work:

Build dependencies

Run-time dependencies


powerkit will use the existing icon theme from the running DE/WM, else check the GTK settings then fallback to Adwaita if no theme was found. So you should have (a proper version) of Adwaita installed or enable CONFIG+=bundle_icons when building powerkit.

You can override the icon theme in the ~/.config/powerkit/powerkit.conf file, see icon_theme=<theme_name>.


First make sure you have the required dependencies installed, then review the build options:

Build options

Build application

mkdir build && cd build
qmake .. && make

Then just run app/powerkit or app/powerkit --config, or install with:

sudo make install

Package application

qmake PREFIX=/usr
make INSTALL_ROOT=pkg_path install
├── etc
│   ├── dbus-1
│   │   └── system.d
│   │       └── org.freedesktop.powerkitd.conf
│   └── xdg
│       └── autostart
│           └── powerkit.desktop
└── usr
    ├── bin
    │   └── powerkit
    ├── sbin
    │   └── powerkitd
    └── share
        ├── applications
        │   └── powerkit.desktop
        ├── dbus-1
        │   └── system-services
        │       └── org.freedesktop.powerkitd.service
        ├── doc
        │   └── powerkit-VERSION
        │       ├── ChangeLog
        │       ├── LICENSE
        │       └── README.md
        └── man
            └── man1
                └── powerkit.1