summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/apmd.conf8
-rw-r--r--usr.sbin/apmd/apmd.810
2 files changed, 13 insertions, 5 deletions
diff --git a/etc/apmd.conf b/etc/apmd.conf
index 6726730..be4a6c3 100644
--- a/etc/apmd.conf
+++ b/etc/apmd.conf
@@ -13,8 +13,12 @@ apm_event USERSUSPENDREQ {
exec "apm -z";
}
-apm_event NORMRESUME, STANDBYRESUME {
- exec "/etc/rc.resume apm resume";
+apm_event NORMRESUME {
+ exec "/etc/rc.resume apm suspend";
+}
+
+apm_event STANDBYRESUME {
+ exec "/etc/rc.resume apm standby";
}
# resume event configuration for serial mouse users by
diff --git a/usr.sbin/apmd/apmd.8 b/usr.sbin/apmd/apmd.8
index 70ff1b9..10cc6fd 100644
--- a/usr.sbin/apmd/apmd.8
+++ b/usr.sbin/apmd/apmd.8
@@ -252,7 +252,7 @@ STANDBY state instead.
Sample configuration commands include:
.Bd -literal
apm_event SUSPENDREQ {
- exec "/etc/rc.suspend";
+ exec "/etc/rc.suspend apm suspend";
}
apm_event USERSUSPENDREQ {
@@ -261,8 +261,12 @@ apm_event USERSUSPENDREQ {
exec "apm -z";
}
-apm_event NORMRESUME, STANDBYRESUME {
- exec "/etc/rc.resume";
+apm_event NORMRESUME {
+ exec "/etc/rc.resume apm suspend";
+}
+
+apm_event STANDBYRESUME {
+ exec "/etc/rc.resume apm standby";
}
# resume event configuration for serial mouse users by
OpenPOWER on IntegriCloud