[PATCH V2 0/4] Add logind and sysfs power methods
Alberto Milone
alberto.milone at canonical.com
Fri Jul 18 11:02:22 UTC 2014
pm-utils is now deprecated and, as a result, we should rely on
either Logind (where available) or on sysfs.
The new code features autodetection (which defaults to Logind,
and falls back to sysfs) in addition to adding the --pm-method
parameter to allow users to specify one of the following methods:
logind, sysfs, pm-utils
Quirks are only available when using pm-utils but this shouldn't
be a blocker for the adoption of these additional methods.
I used the GLib Dbus bindings only to avoid using the C Dbus
bindings. While this adds a dependency on GLib, it's a small
price to pay.
Similar code should be written to handle S4, which I plan to do
as soon as we agree on the final details of the current patches
for S3. It would probably be a good idea for s3.c and s4.c to
share the same code.
The new functions in fwts_pipeio.c and fwts_stringextras.c come
from Logind's source code (whose LGPL 2.1 is compatible with
FWTS').
This also fixes LP: #1339588
Alberto Milone (2):
src/Makefile.am: depend on glib and gio
Add support for different power methods to suspend
Alberto Milone (4):
src/Makefile.am: depend on glib and gio
Add build dependency on libglib2.0-dev
debian/copyright: add copyright for the derivative work from systemd
Add support for different power methods to suspend
configure.ac | 2 +
debian/control | 2 +-
debian/copyright | 10 +
src/Makefile.am | 4 +-
src/acpi/s3/s3.c | 550 +++++++++++++++++++++++++++++++++---
src/lib/include/fwts_pipeio.h | 6 +
src/lib/include/fwts_stringextras.h | 1 +
src/lib/src/fwts_pipeio.c | 154 ++++++++++
src/lib/src/fwts_stringextras.c | 28 ++
9 files changed, 716 insertions(+), 41 deletions(-)
--
1.9.1
More information about the fwts-devel
mailing list