File nut-powersave.patch of Package nut
--- 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.