diff options
author | iwasaki <iwasaki@FreeBSD.org> | 1999-09-11 16:00:28 +0000 |
---|---|---|
committer | iwasaki <iwasaki@FreeBSD.org> | 1999-09-11 16:00:28 +0000 |
commit | 181aba8e3a9f7f32ea9d61a5faca2a09013b794e (patch) | |
tree | 6564b092f84569a0d06575752a9f3ebe6e829c9a | |
parent | e5e68f25b064c8552722308b525ad98c2dbdc5f6 (diff) | |
download | FreeBSD-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.c | 3 | ||||
-rw-r--r-- | sys/i386/bios/apm.c | 3 | ||||
-rw-r--r-- | usr.sbin/apmd/apmd.8 | 2 |
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 |