nut/nut-powersave.patch
Stanislav Brabec 8bc42be341 Accepting request 228899 from home:sbrabec:branches:hardware
- Replace powersave support by systemd (bnc#871406).

- explicitly require udev to fix buildenvironment issues 

- Replace pm-utils support by systemd (FATE#316824).

OBS-URL: https://build.opensuse.org/request/show/228899
OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=45
2014-04-03 14:56:12 +00:00

45 lines
1.3 KiB
Diff

--- conf/upsmon.conf.sample
+++ conf/upsmon.conf.sample
@@ -130,6 +130,8 @@
# Example:
# NOTIFYCMD /usr/local/ups/bin/notifyme
+NOTIFYCMD /usr/lib/powersave/powersave-notify
+
# --------------------------------------------------------------------------
# POLLFREQ <n>
#
@@ -247,11 +249,11 @@
NOTIFYFLAG ONLINE SYSLOG
NOTIFYFLAG COMMOK SYSLOG
NOTIFYFLAG SHUTDOWN SYSLOG
-NOTIFYFLAG ONBATT SYSLOG+WALL
-NOTIFYFLAG LOWBATT SYSLOG+WALL
-NOTIFYFLAG FSD SYSLOG+WALL
-NOTIFYFLAG NOCOMM SYSLOG+WALL
-NOTIFYFLAG COMMBAD SYSLOG+WALL
+NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC
+NOTIFYFLAG LOWBATT SYSLOG+WALL+EXEC
+NOTIFYFLAG FSD SYSLOG+WALL+EXEC
+NOTIFYFLAG NOCOMM SYSLOG+WALL+EXEC
+NOTIFYFLAG COMMBAD SYSLOG+WALL+EXEC
# --------------------------------------------------------------------------
# RBWARNTIME - replace battery warning time in seconds
--- README.SUSE
+++ README.SUSE
@@ -127,11 +127,11 @@
you should:
- Verify, that suspend to disk works correctly with your desktop:
- sudo systemctl hibernate
+ powersave -U
(You can lose your unsaved data, if your computer does not support
suspend.)
- Change SHUTDOWNCMD in /etc/ups/upsmon.conf to:
-SHUTDOWNCMD "/usr/bin/systemctl hibernate"
+SHUTDOWNCMD "/usr/bin/powersave -U"
- Verify, that your UPS provides reasonable grace period to complete
suspend in all situations.