Add ConsoleKit2 as a power backend

Review Request #124388 - Created July 19, 2015 and submitted

Information
Eric Koegel
powerdevil
master
Reviewers
plasma, solid

Internally, it uses the login1 interface with ConsoleKit2 since they share identical DBUS calls. It also changes the setupSystemdInhibition to setupSeatManagerInhibition so that the login1 and ConsoleKit2 inhibit calls to minimize code duplication.

This patch doesn't modify the build system to keep it small. A future patch can be added to use ConsoleKit2 on BSD systems as well.

ConsoleKit2's suspend/hibernate/inhibit DBUS API is documented at: http://consolekit2.github.io/ConsoleKit2/#Manager

Built powerdevil with patch and pkla files on a Gentoo system with OpenRC. Before patch there was no suspend option, after there was and clicking it resulted in the system properly suspending.

Issues

  • 0
  • 3
  • 0
  • 3
Description From Last Updated
David Edmundson
Martin Flöser
Eric Koegel
David Edmundson
Kai Uwe Broulik
Eric Koegel
David Edmundson
Eric Koegel
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 10f2be4f0a2b482008937b1e378e914a637d83be by David Edmundson on behalf of Eric Koegel to branch master.
Loading...