systemd: add support for hibernate and suspend.

devs/devilhorns/e_wayland
Cedric Bail 10 years ago
parent cd28bc8145
commit 4e35b0369e
  1. 1
      ChangeLog
  2. 1
      NEWS
  3. 25
      configure.ac
  4. 6
      data/units/e18.service

@ -1,6 +1,7 @@
2013-03-28 Cedric Bail
* added support for systemd user session.
* added support for systemd hibernate and suspend.
2013-03-11 Mike Blumenkrantz

@ -46,6 +46,7 @@ Additions:
* added option for preventing all keyboard layout changes
* added option for remembering filemanager windows globally
* Added support for systemd user session
* Added support for systemd hibernate and suspend
Changes:
Modules:

@ -905,16 +905,21 @@ case "$host_os" in
AC_SUBST(HIBERNATE)
;;
*)
AC_PATH_PROGS([SUSPEND], [sleep.sh pm-suspend],[/etc/acpi/sleep.sh], [/etc/acpi:/sbin:/usr/sbin:$PATH])
if test "$SUSPEND" = "/etc/acpi/sleep.sh" ; then
SUSPEND="/etc/acpi/sleep.sh force"
AC_MSG_NOTICE([use suspend method: $SUSPEND])
fi
AC_PATH_PROGS([HIBERNATE], [hibernate.sh pm-hibernate],[/etc/acpi/hibernate.sh], [/etc/acpi:/sbin:/usr/sbin:$PATH])
if test "$HIBERNATE" = "/etc/acpi/hibernate.sh" ; then
HIBERNATE="/etc/acpi/hibernate.sh force"
AC_MSG_NOTICE([use hibernate method: $HIBERNATE])
if test "x{have_systemd_user_session}" = "xyes"; then
SUSPEND="/usr/bin/systemctl suspend"
HIBERNATE="/usr/bin/systemctl hibernate"
else
AC_PATH_PROGS([SUSPEND], [sleep.sh pm-suspend],[/etc/acpi/sleep.sh], [/etc/acpi:/sbin:/usr/sbin:$PATH])
if test "$SUSPEND" = "/etc/acpi/sleep.sh" ; then
SUSPEND="/etc/acpi/sleep.sh force"
AC_MSG_NOTICE([use suspend method: $SUSPEND])
fi
AC_PATH_PROGS([HIBERNATE], [hibernate.sh pm-hibernate],[/etc/acpi/hibernate.sh], [/etc/acpi:/sbin:/usr/sbin:$PATH])
if test "$HIBERNATE" = "/etc/acpi/hibernate.sh" ; then
HIBERNATE="/etc/acpi/hibernate.sh force"
AC_MSG_NOTICE([use hibernate method: $HIBERNATE])
fi
fi
;;
esac

@ -1,5 +1,5 @@
[Unit]
Description=Enlightenment 17 service
Description=Enlightenment 18 service
Before=end.target
After=xorg.target
Requires=xorg.target
@ -19,8 +19,8 @@ RestartSec=2
StartLimitInterval=30
StartLimitBurst=7
KillMode=process
WatchdogSec=1
TimeoutSec=1
WatchdogSec=10
TimeoutSec=5
NotifyAccess=all
[Install]

Loading…
Cancel
Save