| APMD(8) | System Manager's Manual | APMD(8) | 
apmd —
| apmd | [ -adlqsv] [-fdevname] [-msockmode] [-osockowner:sockgroup] [-Ssockname] [-trate] | 
apmd daemon monitors the Advanced Power Management
  (APM) pseudo-device, acting on signaled events and upon user requests as sent
  by the apm(8) utility. The
  apmd daemon is only installed on supported platforms.
The apmd
    is largely deprecated. Modern systems supporting ACPI
    should rely on acpi(4),
    powerd(8), and the
    envsys(4) framework
  instead.
For suspend and standby request events delivered by the BIOS, or
    via apm(8),
    apmd runs the appropriate configuration program (if
    one exists), syncs the buffer cache to disk and initiates the requested
    mode. When resuming after suspend or standby, apmd
    runs the appropriate configuration utility (if one exists). For power status
    change events, apmd fetches the current status and
    reports it via syslog(3) with
    logging facility LOG_DAEMON.
apmd announces the transition to standby
    mode with a single high tone on the speaker (using the
    /dev/speaker device). Suspends are announced with
    two high tones.
apmd periodically polls the APM driver for
    the current power state. If the battery charge level changes substantially
    or the external power status changes, the new status is logged. The polling
    rate defaults to once per 10 minutes, but this may be altered by using the
    -t command-line flag.
apmd supports the following options:
-a-dLOG_LOCAL1 and
      stay in the foreground on the controlling terminal.-f
    devname-l-m
    sockmode-o
    sockowner:sockgroup-q-S
    socknameapmd).-s-t
    rate-vWhen a client requests a suspend or stand-by mode,
    apmd does not wait for positive confirmation that
    the requested mode has been entered before replying to the client; to do so
    would mean the client does not get a reply until the system resumes from its
    sleep state. Rather, apmd replies with the intended
    state to the client and then places the system in the requested mode after
    running the configuration script and flushing the buffer cache.
Actions can be configured for the five transitions:
    suspend, standby,
    resume, line or
    battery. The suspend and standby actions are run
    prior to apmd performing any other actions (such as
    disk syncs) and entering the new mode. The resume program is run after
    resuming from a stand-by or suspended state.
The line and battery actions are run after switching power sources to AC (line) or battery, respectively. The appropriate line or battery action is also run upon the startup of apmd based on the current power source.
apmd daemon appeared in NetBSD
  1.3.
| March 20, 2010 | NetBSD 10.1 |