systemd/src
Zbigniew Jędrzejewski-Szmek 19adb8a320 systemd-sleep: add support for freeze and standby
A new config file /etc/systemd/sleep.conf is added.
It is parsed by systemd-sleep and logind. The strings written
to /sys/power/disk and /sys/power/state can be configured.
This allows people to use different modes of suspend on
systems with broken or special hardware.

Configuration is shared between systemd-sleep and logind
to enable logind to answer the question "can the system be
put to sleep" as correctly as possible without actually
invoking the action. If the user configured systemd-sleep
to only use 'freeze', but current kernel does not support it,
logind will properly report that the system cannot be put
to sleep.

https://bugs.freedesktop.org/show_bug.cgi?id=57793
https://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=7e73c5ae6e7991a6c01f6d096ff8afaef4458c36
http://lists.freedesktop.org/archives/systemd-devel/2013-February/009238.html

SYSTEM_CONFIG_FILE and USER_CONFIG_FILE defines were removed
since they were used in only a few places and with the
addition of /etc/systemd/sleep.conf it becomes easier to just
append the name of each file to the dir name.
2013-05-06 22:51:57 +02:00
..
ac-power unit: add ConditionACPower= 2012-12-31 21:24:26 +01:00
activate move _cleanup_ attribute in front of the type 2013-04-18 09:11:22 +02:00
analyze cgls: add --machine/-M 2013-05-01 10:15:25 -04:00
ask-password util: rename parse_usec() to parse_sec() sinds the default unit is seconds 2013-04-03 20:12:57 +02:00
binfmt fileio: in envfiles, do not skip lines following empty lines 2013-04-13 20:24:39 -04:00
boot bootctl: fix help text 2013-03-29 15:47:43 +01:00
bootchart bootchart: cleanup unused structs and globals 2013-05-02 09:40:52 -07:00
cgls cgls: add --machine/-M 2013-05-01 10:15:25 -04:00
cgroups-agent build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
cgtop cgtop: print absolute CPU times with format_timespan 2013-04-08 15:23:52 +02:00
core systemd-sleep: add support for freeze and standby 2013-05-06 22:51:57 +02:00
cryptsetup cryptsetup: downgrade world-writable warning again 2013-05-03 15:25:44 +02:00
delta pager: introduce "jump to end" option 2013-03-07 21:16:04 +01:00
detect-virt build-sys: drop all distribution specfic checks 2013-01-04 23:26:21 +01:00
efi-boot-generator Standarize on one spelling of symlink error message 2013-04-24 00:25:04 -04:00
fsck Do no isolate in case of emergency or severe problems 2013-04-01 23:43:48 -04:00
fstab-generator move _cleanup_ attribute in front of the type 2013-04-18 09:11:22 +02:00
getty-generator Standarize on one spelling of symlink error message 2013-04-24 00:25:04 -04:00
gudev licence: remove references to old FSF address 2012-12-17 11:41:31 +01:00
hostname Use initalization instead of explicit zeroing 2013-04-05 19:50:57 -04:00
initctl initctl: fix return from unitialized memory in error path 2013-03-21 22:39:23 -04:00
journal journal: as a µ-opt, use sizeof instead of strlen 2013-05-03 19:56:18 -04:00
kernel-install kernel-install: add default install scripts 2013-05-06 16:19:02 +02:00
libsystemd-bus Spelling fixes 2013-05-03 22:45:09 -04:00
libsystemd-daemon Include <fcntl.h> instead of <sys/fcntl.h> 2013-04-13 21:02:03 -04:00
libsystemd-id128 id128: when taking user input for a 128bit ID, validate syntax 2013-04-30 08:36:01 -03:00
libudev libudev: remove udev_monitor_new_from_socket() symbol 2013-04-16 02:15:45 +02:00
locale Add set_consume which always takes ownership 2013-04-24 00:25:04 -04:00
login systemd-sleep: add support for freeze and standby 2013-05-06 22:51:57 +02:00
machine-id-setup build-sys: drop all distribution specfic checks 2013-01-04 23:26:21 +01:00
modules-load move _cleanup_ attribute in front of the type 2013-04-18 09:11:22 +02:00
notify env: considerably beef up environment cleaning logic 2013-02-11 03:54:50 +01:00
nspawn nspawn: explain that we look for /etc/os-release in the container directory 2013-05-06 21:06:18 +02:00
nss-myhostname build-sys: add makefile stub link to nss-myhostname/ 2013-04-30 08:36:02 -03:00
python-systemd Spelling fixes 2013-05-03 22:45:09 -04:00
quotacheck quota: use QUOTACHECK path correctly as tested in configure.ac 2013-05-06 21:15:38 +02:00
random-seed random-seed: fix error message typo 2012-10-19 17:31:33 +02:00
rc-local-generator Standarize on one spelling of symlink error message 2013-04-24 00:25:04 -04:00
readahead readahead: fix format string issue 2013-04-25 21:50:48 -04:00
remount-fs Use initalization instead of explicit zeroing 2013-04-05 19:50:57 -04:00
reply-password Use initalization instead of explicit zeroing 2013-04-05 19:50:57 -04:00
shared systemd-sleep: add support for freeze and standby 2013-05-06 22:51:57 +02:00
shutdownd Add __attribute__((const, pure, format)) in various places 2013-05-02 22:52:09 -04:00
sleep systemd-sleep: add support for freeze and standby 2013-05-06 22:51:57 +02:00
stdio-bridge Use initalization instead of explicit zeroing 2013-04-05 19:50:57 -04:00
sysctl fileio: in envfiles, do not skip lines following empty lines 2013-04-13 20:24:39 -04:00
system-update-generator Standarize on one spelling of symlink error message 2013-04-24 00:25:04 -04:00
systemctl systemctl: use GREEDY_REALLOC in one more place 2013-05-03 19:56:54 -04:00
systemd cryptsetup: warn if /etc/crypttab is world-readable 2013-04-30 08:36:01 -03:00
test systemd-sleep: add support for freeze and standby 2013-05-06 22:51:57 +02:00
timedate move _cleanup_ attribute in front of the type 2013-04-18 09:11:22 +02:00
timestamp build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
tmpfiles Add set_consume which always takes ownership 2013-04-24 00:25:04 -04:00
tty-ask-password-agent conf-parser: restrict .include usage 2013-04-25 00:05:14 -03:00
udev keymap/findkeyboards: avoid throwaway attribute-walk 2013-05-03 22:45:13 -04:00
update-utmp Use initalization instead of explicit zeroing 2013-04-05 19:50:57 -04:00
vconsole move _cleanup_ attribute in front of the type 2013-04-18 09:11:22 +02:00
.gitignore move libsystemd-id128, libsystemd-daemon to subdir 2012-04-12 15:26:39 +02:00
Makefile relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00