summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoriwasaki <iwasaki@FreeBSD.org>1999-09-11 16:00:28 +0000
committeriwasaki <iwasaki@FreeBSD.org>1999-09-11 16:00:28 +0000
commit181aba8e3a9f7f32ea9d61a5faca2a09013b794e (patch)
tree6564b092f84569a0d06575752a9f3ebe6e829c9a
parente5e68f25b064c8552722308b525ad98c2dbdc5f6 (diff)
downloadFreeBSD-src-181aba8e3a9f7f32ea9d61a5faca2a09013b794e.zip
FreeBSD-src-181aba8e3a9f7f32ea9d61a5faca2a09013b794e.tar.gz
Handle CAPABILITIESCHANGE event.
Document USERSTANDBYREQ and CAPABILITIESCHANGE events to apmd manpage.
-rw-r--r--sys/i386/apm/apm.c3
-rw-r--r--sys/i386/bios/apm.c3
-rw-r--r--usr.sbin/apmd/apmd.82
3 files changed, 8 insertions, 0 deletions
diff --git a/sys/i386/apm/apm.c b/sys/i386/apm/apm.c
index e552689..85d8eed 100644
--- a/sys/i386/apm/apm.c
+++ b/sys/i386/apm/apm.c
@@ -994,6 +994,9 @@ apm_processevent(void)
apm_record_event(sc, apm_event);
inittodr(0); /* adjust time to RTC */
break;
+ OPMEV_DEBUGMESSAGE(PMEV_CAPABILITIESCHANGE);
+ apm_record_event(sc, apm_event);
+ break;
case PMEV_NOEVENT:
break;
default:
diff --git a/sys/i386/bios/apm.c b/sys/i386/bios/apm.c
index e552689..85d8eed 100644
--- a/sys/i386/bios/apm.c
+++ b/sys/i386/bios/apm.c
@@ -994,6 +994,9 @@ apm_processevent(void)
apm_record_event(sc, apm_event);
inittodr(0); /* adjust time to RTC */
break;
+ OPMEV_DEBUGMESSAGE(PMEV_CAPABILITIESCHANGE);
+ apm_record_event(sc, apm_event);
+ break;
case PMEV_NOEVENT:
break;
default:
diff --git a/usr.sbin/apmd/apmd.8 b/usr.sbin/apmd/apmd.8
index 37e80ab..0704c58 100644
--- a/usr.sbin/apmd/apmd.8
+++ b/usr.sbin/apmd/apmd.8
@@ -171,6 +171,7 @@ is running:
.Pp
.Bl -tag -hang -width USERSUSPENDREQ -compact -offset indent
.It STANDBYREQ
+.It USERSTANDBYREQ
.It SUSPENDREQ
should include sync in the command list,
.It USERSUSPENDREQ
@@ -189,6 +190,7 @@ after kernel handling:
.It STANDBYRESUME
.It POWERSTATECHANGE
.It UPDATETIME
+.It CAPABILITIESCHANGE
.El
.Pp
Other events will not be sent to
OpenPOWER on IntegriCloud