2 .\" Created: Wed Jan 10 15:07:25 1996 by faith@acm.org
3 .\" Revised: Fri Dec 26 20:34:52 1997 by faith@acm.org
4 .\" Revised: Wed Jun 2 18:47:02 1999 by db@post.harvard.edu
5 .\" Copyright 1996, 1997 Rickard E. Faith (faith@acm.org)
6 .\" Copyright 1999 David Brownell (db@post.harvard.edu)
8 .\" Permission is granted to make and distribute verbatim copies of this
9 .\" manual provided the copyright notice and this permission notice are
10 .\" preserved on all copies.
12 .\" Permission is granted to copy and distribute modified versions of this
13 .\" manual under the conditions for verbatim copying, provided that the
14 .\" entire resulting derived work is distributed under the terms of a
15 .\" permission notice identical to this one
17 .\" Since the Linux kernel and libraries are constantly changing, this
18 .\" manual page may be incorrect or out-of-date. The author(s) assume no
19 .\" responsibility for errors or omissions, or for damages resulting from
20 .\" the use of the information contained herein. The author(s) may not
21 .\" have taken the same level of care in the production of this manual,
22 .\" which is licensed free of charge, as they might when working
25 .\" Formatted or processed versions of this manual, if unaccompanied by
26 .\" the source, must acknowledge the copyright and authors of this work.
28 .\" Japanese Version Copyright (c) 2000 HAYAKAWA Hitoshi & NAKANO Takeo
29 .\" all rights reserved.
30 .\" Translated Mon 29 May 2000 by HAYAKAWA Hitoshi <cz8cb01@linux.or.jp>
31 .\" and NAKANO Takeo <nakano@apm.seikei.ac.jp>
33 .TH APMD 8 "10 Jun 1999" "" "Linux Programmer's Manual"
35 .\"O apmd \- Advanced Power Management (APM) daemon
37 apmd \- Advanced Power Management (APM) ¥Ç¡¼¥â¥ó
41 .BI "[ \-c " check_seconds " ]
42 .BI "[ \-P " proxy_cmd " ]"
43 .BI "[ \-p " percent_to_log " ]"
45 .BI "[ \-w " warn_percent " ]
47 .I "[deprecated options]"
51 .\"O is an APM monitoring daemon, and works in conjunction with the
52 .\"O APM BIOS driver in the OS kernel. It can execute a command (normally a shell
53 .\"O script) when certain events are reported by the driver, and will log, via
55 .\"O certain changes in system power status. When the available battery power becomes
56 .\"O very low, it can alert all users on the system using several methods.
58 ¤Ï APM ¤ò´Æ»ë¤¹¤ë¥Ç¡¼¥â¥ó¤Ç¡¢OS ¤Î¥«¡¼¥Í¥ë¤Î
59 APM BIOS ¥É¥é¥¤¥Ð¡¼¤òÍøÍѤ·¤ÆÆ°ºî¤¹¤ë¡£
61 ¤Ï¥É¥é¥¤¥Ð¡¼¤«¤é¥¤¥Ù¥ó¥È¤ÎȯÀ¸¤¬ÄÌÃΤµ¤ì¤¿»þ¤Ë¥³¥Þ¥ó¥É
62 (Ä̾ï¤Ï¥·¥§¥ë¥¹¥¯¥ê¥×¥È) ¤ò¼Â¹Ô¤¹¤ë¤³¤È¤¬¤Ç¤¡¢
63 ¤Þ¤¿¥·¥¹¥Æ¥à¤ÎÅÅÎϾõÂÖ¤¬ÊѲ½ (AC ÅŸ»¶¡µë¤Î¥ª¥ó¡¦¥ª¥Õ¤Ê¤É) ¤·¤¿¤È¤¤Ë
65 ¤ò»È¤Ã¤Æ¥í¥°¤ò»Ä¤¹¤³¤È¤¬¤Ç¤¤ë¡£
66 ÅÅÃӤλÄÎ̤¬¤ï¤º¤«¤Ë¤Ê¤Ã¤¿»þ¤Ë¤Ï¡¢
67 ¥·¥¹¥Æ¥à¤ÎÁ´¥æ¡¼¥¶¡¼¤Ë¤¤¤í¤¤¤í¤ÊÊýË¡¤Ç·Ù¹ð¤òÄÌÃΤ¹¤ë¤³¤È¤â¤Ç¤¤ë¡£
69 .\"O When the kernel APM driver notifies the daemon of
70 .\"O a pending suspend or standby request,
72 .\"O will invoke the approprate command,
75 .\"O data to the disk,
76 .\"O sleep briefly to help ensure all the data actually gets to the disk,
77 .\"O and then tell the APM driver to continue its operation.
78 .\"O However, for "critical" suspends (indicating an emergency shutdown)
79 .\"O only the last step (telling the driver to continue) is performed.
80 ¥«¡¼¥Í¥ë¤Î APM ¥É¥é¥¤¥Ð¡¼¤«¤é
81 ¥µ¥¹¥Ú¥ó¥É¤ä¥¹¥¿¥ó¥Ð¥¤¤ò¹Ô¤¤¤¿¤¤»Ý¤ÎÍ×µá¤ò¼õ¤±¼è¤ë¤È¡¢
83 ¤ÏŬÀڤʥ³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¡¢
84 ¤½¤Î¥¤¥Ù¥ó¥È¤ò¥í¥°¤Ë½ñ¤¡¢
88 Á´¤Æ¤Î¥Ç¡¼¥¿¤¬¥Ç¥£¥¹¥¯¤Ë¼ÂºÝ¤Ë½ñ¤¤³¤Þ¤ì¤ë¤è¤¦¤Ë¾¯¤·¤Î´Ö¥¹¥ê¡¼¥×¤·¡¢
89 ¤½¤Î¸å APM ¥É¥é¥¤¥Ð¡¼¤Ë½èÍý¤ò³¹Ô¤¹¤ë¤è¤¦¤ËÄÌÃΤ¹¤ë¡£
90 ¤·¤«¤·¡Ö¥¯¥ê¥Æ¥£¥«¥ë¡×¤Ê¥µ¥¹¥Ú¥ó¥É (¶ÛµÞ¥·¥ã¥Ã¥È¥À¥¦¥ó) ¤Î¾ì¹ç¤Ë¤Ï¡¢
91 ÅÓÃæ¤ÎÃʳ¬¤ò¤¹¤Ù¤ÆÈô¤Ð¤·¤Æ¥É¥é¥¤¥Ð¡¼¤Ë½èÍý¤Î³¹ÔÄÌÃΤòÁ÷¤ë¡£
93 .\"O Most uses of this daemon will use the
95 .\"O command to support power conservation activities. This command is
96 .\"O searched for by default in
97 .\"O .I /etc/apmd_proxy
98 .\"O and is invoked with one or two arguments:
99 ¤³¤Î¥Ç¡¼¥â¥ó¤Î¼ç¤ÊÍøÍÑË¡¤Ï
101 ¥³¥Þ¥ó¥É¤ò»ÈÍѤ·¤ÆÅÅÎϤÎÀáÌó¤ò¤¹¤ë¤³¤È¤Ç¤¢¤ë¡£
102 ¤³¤Î¥³¥Þ¥ó¥É¤Î¥Ç¥Õ¥©¥ë¥È¤Î¸¡º÷¾ì½ê¤Ï
104 ¤Ç¤¢¤ê¡¢µ¯Æ°¤ÎºÝ¤Ë¤Ï 1 ¸Ä¤Þ¤¿¤Ï 2 ¸Ä¤Î°ú¿ô¤¬ÉÕ¤±¤é¤ì¤ë¡£
107 .\"O Invoked when the daemon starts. Normally sets system-wide power policy, such as
108 .\"O IDE hard drive standby times, to account for whether battery power is in use.
109 ¥Ç¡¼¥â¥ó¤Îµ¯Æ°»þ¤Ë¸Æ¤Ó¤À¤µ¤ì¤ë¡£Ä̾¥·¥¹¥Æ¥àÁ´ÂΤÎÅÅÎÏ´ÉÍýÀßÄê¤ò¹Ô¤¦¡£
110 Î㤨¤ÐÅÅÃÓ»ÈÍÑ»þ/Èó»ÈÍÑ»þ¤Î IDE ¥Ï¡¼¥É¥Ç¥£¥¹¥¯¤Î¥¹¥¿¥ó¥Ð¥¤»þ´Ö¤Ê¤É¤Ç¤¢¤ë¡£
113 .\"O Invoked when the daemon stops. Normally undoes any policy settings done when the
115 ¥Ç¡¼¥â¥ó¤ÎÄä»ß»þ¤Ë¸Æ¤Ó¤À¤µ¤ì¤ë¡£
116 Ä̾ï¤Ï¥Ç¡¼¥â¥ó¤Î³«»Ï»þ¤ËÀßÄꤵ¤ì¤¿ÅŸ»¤ÎÀßÄê¤ò¸µ¤ËÌ᤹¡£
118 .B suspend "[ system | user ]"
119 .\".B suspend "[ system | user | critical ]"
120 .\"O Invoked when the APM driver reports that system suspension has been initiated.
121 .\"O The second parameter indicates whether the BIOS or a user action (such as closing
122 .\"O a laptop) initiated suspension.
123 ¥·¥¹¥Æ¥à¤Î¥µ¥¹¥Ú¥ó¥É³«»Ï¤ò APM ¥É¥é¥¤¥Ð¡¼¤¬ÄÌÃΤ·¤¿»þ¤Ë¸Æ¤Ó¤À¤µ¤ì¤ë¡£
124 ÆóÈÖÌܤΰú¿ô¤Ï¡¢¥µ¥¹¥Ú¥ó¥É¤Î³«»Ï¤¬ BIOS ¤Ë¤è¤ë¤â¤Î¤«¡¢
125 ¥æ¡¼¥¶¡¼¤Î¥¢¥¯¥·¥ç¥ó (¥é¥Ã¥×¥È¥Ã¥×¤òÊĤ¸¤¿»þ¤Ê¤É) ¤Ë¤è¤ë¤â¤Î¤«¤ò¼¨¤¹¡£
127 .\"O A "critical" suspend is initiated by the BIOS when an emergency shutdown needs
128 .\"O to happen. Applications and device drivers are not be notified since there
129 .\"O isn't enough time to safely do anything about the shutdown.
130 ¡Ö¥¯¥ê¥Æ¥£¥«¥ë¡×¤Ê¥µ¥¹¥Ú¥ó¥É¤Ï¡¢¶ÛµÞ¥·¥ã¥Ã¥È¥À¥¦¥ó¤ÎɬÍפ¬¤¢¤ë»þ¤Ë
131 BIOS ¤«¤é¤ÎÄÌÃΤˤè¤Ã¤Æ¼Â¹Ô¤µ¤ì¤ë¡£
132 ¥·¥ã¥Ã¥È¥À¥¦¥ó¤Ë¤Ä¤¤¤Æ°ÂÁ´¤ËÄÌÃΤ¹¤ë;͵¤Ï¤Ê¤¤¤Î¤Ç¡¢
133 ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ä¥Ç¥Ð¥¤¥¹¥É¥é¥¤¥Ð¡¼¤Ë¤ÏÄÌÃΤµ¤ì¤Ê¤¤¡£
136 .\"O The BIOS "suspend" mode aggressively conserves power, and normally involves
137 .\"O shutting off power to all devices except the CPU core and memory, which is kept
138 .\"O in a very low power mode. Most laptops can stay suspended, using battery power
139 .\"O alone, for several days. ("Hibernation" is a kind of super-suspend, where all
140 .\"O that state is written to disk and the machine uses even less power bcause it
141 .\"O can turn off that CPU core, using no battery power at all. At this writing,
142 .\"O Linux does not support hibernation.)
143 .\"O PCMCIA devices should be manually suspended using
144 .\"O .BR cardctl (8),
145 .\"O and some modular drivers may need to be unloaded.
146 BIOS ¤Î¡Ö¥µ¥¹¥Ú¥ó¥É¡×¥â¡¼¥É¤ÏÀѶËŪ¤ËÅÅÎϤòÀáÌ󤹤롣
147 Ä̾ï¤Ï CPU ¤Î¥³¥¢Éôʬ¤È¥á¥â¥ê¤ò½ü¤¤¤ÆÁ´¤Æ¤Î¥Ç¥Ð¥¤¥¹¤ÎÅŸ»¤ò¥«¥Ã¥È¤·¡¢
148 ¤³¤ì¤é¤âĶÄãÅÅÎϥ⡼¥É (very low power mode) ¤Ë¤¹¤ë¡£
149 ¿¤¯¤Î¥é¥Ã¥×¥È¥Ã¥×¤Ç¤Ï¡¢
150 ÅÅÃÓ¤À¤±¤Ç¿ôÆü´Ö¥µ¥¹¥Ú¥ó¥É¤·Â³¤±¤ë¤³¤È¤¬¤Ç¤¤ë¡£
151 (¡Ö¥Ï¥¤¥Ð¥Í¡¼¥·¥ç¥ó¡×¤Ï¤µ¤é¤Ê¤ë¥µ¥¹¥Ú¥ó¥É¤È¸À¤¨¤ë¡£
152 ¤³¤ì¤ÏÁ´¤Æ¤Î¾õÂÖ¤¬¥Ç¥£¥¹¥¯¤Ë½ñ¤¤À¤µ¤ì¤ë¤Î¤Ç
153 CPU ¤Î¥³¥¢¤ÎÅŸ»¶¡µë¤â¥«¥Ã¥È¤¹¤ë¤³¤È¤¬¤Ç¤¡¢
154 ÅÅÃÓ¤«¤éÅŸ»¶¡µë¤ò¤¹¤ëɬÍפ¬¤Þ¤Ã¤¿¤¯¤Ê¤¯¤Ê¤ë¡£
155 ¸½Ãʳ¬¤Ç¤Ï Linux ¤Ï¥Ï¥¤¥Ð¥Í¡¼¥·¥ç¥ó¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤¤¡£)
158 ¤ò»È¤Ã¤Æ¼êÆ°¤Ç¥µ¥¹¥Ú¥ó¥É¤¹¤Ù¤¤Ç¤¢¤ë¡£
159 ¤Þ¤¿¤¤¤¯¤Ä¤«¤Î¥É¥é¥¤¥Ð¡¼¥â¥¸¥å¡¼¥ë¤â¥¢¥ó¥í¡¼¥É¤·¤Æ¤ª¤¯É¬Íפ¬¤¢¤ë¤«¤â¤·¤ì¤Ê¤¤¡£
161 .B standby "[ system | user ]"
162 .\"O Invoked when the APM driver reports that system standby has been initiated.
163 .\"O The second parameter indicates whether the BIOS or a user action (such as
167 ¥·¥¹¥Æ¥à¤Î¥¹¥¿¥ó¥Ð¥¤³«»Ï¤ò APM ¥É¥é¥¤¥Ð¡¼¤¬ÄÌÃΤ·¤¿»þ¤Ë¸Æ¤Ó¤À¤µ¤ì¤ë¡£
168 ÆóÈÖÌܤΰú¿ô¤Ï¥¹¥¿¥ó¥Ð¥¤¤Î³«»Ï¤¬ BIOS ¤Ë¤è¤ë¤â¤Î¤«
171 ¤Î¼Â¹Ô¤Ê¤É) ¤Ë¤è¤ë¤â¤Î¤«¤ò¼¨¤·¤Æ¤¤¤ë¡£
173 .\"O The BIOS "standby" mode slightly conserves power, and leaves the
174 .\"O machine able to respond almost immediately to user activity.
175 .\"O Most laptops can't stay in standby mode for even a day, if they must
176 .\"O rely on battery power. Normally, nothing needs to be done beyond
177 .\"O what the BIOS itself will do.
178 BIOS ¤Î¡Ö¥¹¥¿¥ó¥Ð¥¤¡×¥â¡¼¥É¤Ï¿¾¯ÅÅÎϤÎÀáÌó¤ò¤¹¤ë¡£
179 ¥Þ¥·¥ó¤Ï¥æ¡¼¥¶¡¼¤ÎÁàºî¤Ë¤Û¤È¤ó¤É¨»þ¤ËÈ¿±þ¤Ç¤¤ë¾õÂÖ¤ËÊݤ¿¤ì¤ë¡£
180 ¿¤¯¤Î¥é¥Ã¥×¥È¥Ã¥×¤Ç¤Ï¥¹¥¿¥ó¥Ð¥¤¥â¡¼¥É¤Î¤Þ¤Þ¤À¤È
181 ÅÅÃÓ¤À¤±¤Ç¤Ï°ìÆü¤â¤â¤¿¤Ê¤¤¡£
182 Ä̾ï¤Ï¡¢ BIOS ¤¬¤¹¤ë¤³¤È°Ê³°¤Ë¤Ï²¿¤â¤·¤Ê¤¯¤Æ¤è¤¤¡£
184 .B resume "[ suspend | standby | critical ]"
185 .\"O Invoked when the APM driver reports that system has resumed normal operation.
186 .\"O The second parameter indicates what sort of mode it was in before, either
187 .\"O the "suspend" mode (possibly a "critical" suspend) or else "standby" mode.
188 ¥·¥¹¥Æ¥à¤ÎÄ̾索¥Ú¥ì¡¼¥·¥ç¥ó¤Ø¤Î¥ì¥¸¥å¡¼¥à¤ò
189 APM ¥É¥é¥¤¥Ð¡¼¤¬ÄÌÃΤ·¤¿»þ¤Ë¸Æ¤Ó¤À¤µ¤ì¤ë¡£
190 ÆóÈÖÌܤΰú¿ô¤Ï¡¢°ÊÁ°¤Î¾õÂÖ¤¬
191 ¡Ö¥µ¥¹¥Ú¥ó¥É¡×¥â¡¼¥É(¡Ö¥¯¥ê¥Æ¥£¥«¥ë¡×¤Ê¥µ¥¹¥Ú¥ó¥É¤Î²ÄǽÀ¤â¤¢¤ë) ¤À¤Ã¤¿¤«
192 ¡Ö¥¹¥¿¥ó¥Ð¥¤¡×¥â¡¼¥É¤À¤Ã¤¿¤«¤ò¼¨¤·¤Æ¤¤¤ë¡£
194 .\"O The system clock must be updated to match the hardware clock; this will
195 .\"O normally have been handled by the kernel's APM driver.
196 .\"O PCMCIA devices may need to be manually resumed from standby using
197 .\"O .BR cardctl (8),
198 .\"O and some modular drivers may need to be reloaded or otherwise reinitialized.
199 .\"O In the case of a critical suspend, system state may not have been completely
200 .\"O saved due to an emergency shutdown; applications and and drivers may be in
201 .\"O a confused state.
202 ¥·¥¹¥Æ¥à¥¯¥í¥Ã¥¯¤ò¥Ï¡¼¥É¥¦¥§¥¢¥¯¥í¥Ã¥¯¤Ë°ìÃפ¹¤ë¤è¤¦¤Ë¹¹¿·¤¹¤ëɬÍפ¬¤¢¤ë¡£
203 ¤³¤ì¤ÏÄ̾參¡¼¥Í¥ë¤Î APM ¥É¥é¥¤¥Ð¡¼¤Ë¤è¤Ã¤Æ½èÍý¤µ¤ì¤ë¡£
206 ¤ò»ÈÍѤ·¤Æ¼êÆ°¤Ç¥ì¥¸¥å¡¼¥à¤¹¤ëɬÍפ¬¤¢¤ë¤«¤â¤·¤ì¤Ê¤¤¡£
207 ¤Þ¤¿ºÆ¥í¡¼¥É¤äºÆ½é´ü²½¤¬É¬Íפˤʤë¥É¥é¥¤¥Ð¡¼¥â¥¸¥å¡¼¥ë¤â¸ºß¤¹¤ë¡£
208 ¥¯¥ê¥Æ¥£¥«¥ë¤Ê¥µ¥¹¥Ú¥ó¥É¤Î»þ¤Ë¤Ï¶ÛµÞ¥·¥ã¥Ã¥È¥À¥¦¥ó¤Ë¤è¤ê¡¢
209 ¥·¥¹¥Æ¥à¤Î¾õÂÖ¤¬´°Á´¤Ë¤ÏÊݸ¤µ¤ì¤Æ¤¤¤Ê¤¤¤³¤È¤â¤¢¤ë¤¿¤á¡¢
210 ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ä¥É¥é¥¤¥Ð¡¼¤Î¾õÂÖ¤¬¤ª¤«¤·¤¯¤Ê¤ë¤«¤â¤·¤ì¤Ê¤¤¡£
213 .\"O This presents a subset of the APM driver "power change" events, specifically
214 .\"O those where AC power was added or removed.
215 .\"O This will often modify the system wide power policy; for example, so that IDE
216 .\"O hard drives aggressively enter standby mode when only battery power is available.
217 APM ¥É¥é¥¤¥Ð¡¼¤Î¡ÖÅŸ»¾õÂÖ¤ÎÊѲ½¡×¥¤¥Ù¥ó¥È¤Î¤¦¤Á¤Î´ö¤Ä¤«¤ËÂбþ¤¹¤ë
218 (ÆÃ¤Ë AC ÅŸ»¤ÎÁÞÈ´¤Ê¤É)¡£
219 ¤³¤ì¤¬µ¯¤¤ë¤È¥·¥¹¥Æ¥àÁ´ÂΤÎÅÅÎÏ´ÉÍýÀßÄê¤òÊѹ¹¤¹¤ë¾ì¹ç¤¬Â¿¤¤¡£
220 Î㤨¤ÐÅÅÃÓ¤·¤«»È¤¨¤Ê¤¤¾ì¹ç¤Ë IDE HDD ¤ò
221 ÀѶËŪ¤Ë¥¹¥¿¥ó¥Ð¥¤¥â¡¼¥É¤ËÆþ¤ì¤ë¤è¤¦¤Ë¤¹¤ë¤Ê¤É¡£
225 .\"O The system clock must be updated to match the hardware clock; this will
226 .\"O normally have been handled by the kernel's APM driver.
227 ¥·¥¹¥Æ¥à¥¯¥í¥Ã¥¯¤ò¥Ï¡¼¥É¥¦¥§¥¢¥¯¥í¥Ã¥¯¤ËÊ»¤»¤Æ¹¹¿·¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
228 ¤³¤ì¤ÏÉáÄ̤ϥ«¡¼¥Í¥ë¤Î APM ¥É¥é¥¤¥Ð¡¼¤Ë¤è¤Ã¤Æ½èÍý¤µ¤ì¤ë¡£
232 .\"O The APM driver has reported that the BIOS thinks the strength of one (or more)
233 .\"O batteries is "low"; at least ten minutes of should power remain.
234 ¾¯¤Ê¤¯¤È¤â°ì¤Ä¤Î (¤¢¤ë¤¤¤ÏÊ£¿ô¤Î) ÅÅÃӤλÄÎ̤¬ "low" ¤Ç¤¢¤ë¡¢
235 ¤È¤¤¤¦ BIOS ¤ÎȽÃǤ¬ APM ¥É¥é¥¤¥Ð¡¼¤«¤éÄÌÃΤµ¤ì¤¿¡£
236 ¤¿¤À¤·¡¢¾¯¤Ê¤¯¤È¤â 10 ʬ¤Ö¤ó¤ÎÅÅÎϤϻĤäƤ¤¤ë¡£
239 .\"O Some change in the power management capabilities of the system was reported.
240 .\"O It may have been caused by operation of some setup utility, or by the arrival
241 .\"O or removal of some devices.
242 ¥·¥¹¥Æ¥à¤ÎÅÅÎÏ´ÉÍýÀßÄ굡ǽ¤Î¤É¤ì¤«¤¬Êѹ¹¤µ¤ì¤¿»Ý¤¬Êó¹ð¤µ¤ì¤¿¡£
243 ²¿¤é¤«¤Î¥»¥Ã¥È¥¢¥Ã¥×¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤ÎÁàºî¤ä¥Ç¥Ð¥¤¥¹¤ÎÄɲᦼè¤ê³°¤·
246 .\"O This daemon issues a number of different log messages, most of which should
247 .\"O be self explanatory. The messages emitted for battery status need some
248 .\"O explanation, however.
249 .\"O The information logged contains 4 fields after a "Battery" or "Charge" label:
250 ¤³¤Î¥Ç¡¼¥â¥ó¤Ï¤¤¤í¤¤¤í¤Ê¥í¥°¥á¥Ã¥»¡¼¥¸¤òȯ¹Ô¤¹¤ë¡£
251 ¤Û¤È¤ó¤É¤Ï¸«¤ì¤Ð¤ï¤«¤ë¤À¤í¤¦¤¬¡¢
252 ÅÅÃӤξõÂ֤˴ؤ¹¤ë¥á¥Ã¥»¡¼¥¸¤Ë¤Ï¾¯¡¹ÀâÌÀ¤¬É¬Íפ«¤â¤·¤ì¤Ê¤¤¡£
253 ¥í¥°¤Î "Battery" ¤Þ¤¿¤Ï "Charge" ¥á¥Ã¥»¡¼¥¸¤Ë¤Ï¡¢
254 ³¤¤¤Æ 4 ¤Ä¤Î¥Õ¥£¡¼¥ë¥É¤¬µ½Ò¤µ¤ì¤ë¡£
256 .\"O 1) Rate of discharge (percent/minute). Negative rates indicate charging.
257 1) ¾ÃÈñ¥ì¡¼¥È (¥Ñ¡¼¥»¥ó¥È/ʬ)¡£Éé¤Î¾ì¹ç¤Ï½¼ÅŤò¼¨¤¹¡£
259 .\"O 2) Time since total charge or total discharge (hh:mm:ss). This value is
260 .\"O only useful if it reflects the time since a 100% or 0% state has been
261 .\"O reached. Otherwise, this time is in parentheses, and reflects the time
262 .\"O since the last "important"
264 .\"O status change such as starting the daemon, changing from AC power to battery
265 .\"O power, and so on.
266 2) ´°Á´½¼ÅÅ¡¦´°Á´¾ÃÈñ¾õÂÖ¤«¤é¤Î·Ð²á»þ´Ö (hh:mm:ss)¡£
267 ¤³¤ÎÃÍ¤Ï 100% ¤Þ¤¿¤Ï 0% ¤Ë¤Ê¤Ã¤¿¾õÂÖ¤«¤é¤Î·Ð²á»þ´Ö¤ò
268 È¿±Ç¤·¤Æ¤¤¤ë¾ì¹ç¤Ë¤Î¤ß°ÕÌ£¤¬¤¢¤ë¡£
269 ¤½¤ì°Ê³°¤Î¾ì¹ç¤Ë¤Ï»þ´Ö¤Ï³ç¸Ì¤Ç³ç¤é¤ì¡¢
272 ¤Î¡Ö½ÅÍפʡ׾õÂÖÊѲ½ (¥Ç¡¼¥â¥ó¤Îµ¯Æ°¡¢AC ÅŸ»¤«¤éÅÅÃÓ¶îÆ°¤Ø¤Î°Ü¹Ô¤Ê¤É)
273 ¤¬µ¯¤¤Æ¤«¤é¤Î·Ð²á»þ´Ö¤òɽ¤¹¡£
275 .\"O 3) Estimate of time left until total discharge (or total charge), assuming
276 .\"O use similar to that since the last resume ( or since AC was connected).
277 .\"O This time is calculated by
280 3) ´°Á´¤ËÅÅÃÓ¤ò¾ÃÈñ¤·¤Æ¤·¤Þ¤¦¤Þ¤Ç (¤¢¤ë¤¤¤Ï´°Á´¤Ë½¼ÅŤµ¤ì¤ë¤Þ¤Ç) ¤Îͽ¬»þ´Ö¡£
281 ºÇ¸å¤Ë¥ì¥¸¥å¡¼¥à¾õÂÖ¤«¤éÉüµ¢¤·¤Æ°Ê¹ß (¤¢¤ë¤¤¤Ï AC ÅŸ»¤¬Àܳ¤µ¤ì¤Æ°Ü¹Ô) ¤È
282 Ʊ¤¸¤è¤¦¤ÊÍøÍѾõÂÖ¤¬Â³¤¯¤È²¾Äꤷ¤Æ¤¤¤ë¡£
287 .\"O 4) Parenthetically, the percent and length of remaining battery life, as
288 .\"O estimated by the APM BIOS (which is often a conservative estimate from an
289 .\"O intelligent battery itself). This particular information is provided with
290 .\"O most messages from this daemon.
291 4) ³ç¸Ì¤Ë¶´¤Þ¤ì¤¿¡¢½¼ÅÅΨ¤ÈÅÅÃӤμ÷Ì¿¡£
292 ¤³¤ì¤Ï APM BIOS ¤Îͽ¬ÃͤǤ¢¤ë (¥¤¥ó¥Æ¥ê¥¸¥§¥ó¥È¤ÊÅÅÃÓ¼«¿È¤«¤é¤Î¡¢
293 ¤ä¤ä¹µ¤¨¤á¤Ê¸«ÀѤê¤Ç¤¢¤ë¤³¤È¤¬Â¿¤¤)¡£
294 ¤³¤Î¾ðÊó¤Ï¡¢¤³¤Î¥Ç¡¼¥â¥ó¤«¤é¤Î¥á¥Ã¥»¡¼¥¸¤Î¤Û¤È¤ó¤É¤ËÄɲ䵤ì¤ë¡£
296 .\"O This daemon supports APM BIOS 1.2 events, though it does not support some
297 .\"O of the advanced features such as multiple batteries. Also,
298 .\"O there is no interaction yet with ACPI support as found in newer PC hardware.
299 ¤³¤Î¥Ç¡¼¥â¥ó¤Ï APM BIOS 1.2 ¥¤¥Ù¥ó¥È¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¡£
300 ¤·¤«¤·Ê£¿ô¤ÎÅÅÃӤμè¤ê°·¤¤¤Ê¤É¡¢¤è¤ê¹âÅ٤ʵ¡Ç½¤Ï¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤¤¡£
301 ¤Þ¤¿ºÇ¶á¤Î PC ¥Ï¡¼¥É¥¦¥§¥¢¤Ë¤¢¤ë ACPI ¥µ¥Ý¡¼¥È¤È¤ÎÏ¢·È¤Ï¡¢¤Þ¤À¤Ç¤¤Ê¤¤¡£
305 .BR "\-c " seconds, " \--check " seconds
306 .\"O Controls how many seconds to block on the \fI/dev/apm_bios\fR device. Normally
307 .\"O the daemon blocks until the APM driver reports an event; this number may be
308 .\"O changed to cause battery charge or discharge rates to be checked more often.
310 ¥Ç¥Ð¥¤¥¹¤ò²¿Éô֥֥í¥Ã¥¯¤¹¤ë¤«¤òÀ©¸æ¤¹¤ë¡£
311 Ä̾ï¥Ç¡¼¥â¥ó¤Ï APM ¥É¥é¥¤¥Ð¡¼¤¬¥¤¥Ù¥ó¥È¤òÊó¹ð¤¹¤ë¤Þ¤Ç¥Ö¥í¥Ã¥¯¤¹¤ë¡£
312 ¤³¤Î¿ô»ú¤òÊѤ¨¤ë¤È¡¢ÅÅÃӤν¼ÅÅ®ÅÙ¡¦¾ÃÈñ®ÅÙ¤ò¤è¤êÉÑÈˤ˥Á¥§¥Ã¥¯¤Ç¤¤ë¡£
314 .BR "\-P " proxy_cmd, " \-\-apmd_proxy " proxy_cmd
315 .\"O Identifies the command to invoke when certain APM driver events are reported.
316 .\"O See above for information about the arguments to this script.
317 APM ¥É¥é¥¤¥Ð¡¼¤Î¥¤¥Ù¥ó¥È¤¬Êó¹ð¤µ¤ì¤¿¤È¤¤Ëµ¯Æ°¤¹¤ë¥³¥Þ¥ó¥É¤ò»ØÄꤹ¤ë¡£
318 ¤³¤Î¥¹¥¯¥ê¥×¥È¤ËÉղ䵤ì¤ë°ú¿ô¤Ë´Ø¤¹¤ë¾ðÊó¤Ï¾å½Ò¤ÎÀâÌÀ¤ò¸«¤è¡£
320 .BR "\-p " percent_change, " \--percentage " percent_change
321 .\"O Every time the percentage of available power changes (discharge or recharge) by
322 .\"O .IR percent_change ,
323 .\"O log information. The default is 5. Use values greater than 100 to disable
325 (¾ÃÈñ¤ä½¼ÅŤˤè¤Ã¤Æ) ÍøÍѲÄǽ¤ÊÅÅÃÓ»ÄÎ̤¬
327 ¤Å¤ÄÊѤï¤ë¤´¤È¤Ë¡¢¾ðÊó¤ò¥í¥°¤ËÁ÷¤ë¡£
328 ¥Ç¥Õ¥©¥ë¥È¤Ï 5¡£¤³¤Îµ¡Ç½¤ò̵¸ú¤Ë¤·¤¿¤¤¾ì¹ç¤Ï 100 ¤è¤êÂ礤¤Ãͤò»ØÄꤹ¤ë¡£
331 .\"O Print the daemon's version and exit.
332 ¥Ç¡¼¥â¥ó¤Î¥Ð¡¼¥¸¥ç¥ó¤òɽ¼¨¤·¤Æ½ªÎ»¤¹¤ë¡£
335 .\"O Enables verbose mode, where each event reported by the APM driver is logged.
336 ¾ÜºÙ½ÐÎϥ⡼¥É¤ò͸ú¤Ë¤¹¤ë¡£
337 APM ¥É¥é¥¤¥Ð¡¼¤«¤éÊó¹ð¤µ¤ì¤ëÁ´¤Æ¤Î¥¤¥Ù¥ó¥È¤¬¥í¥°¤ËÁ÷¤é¤ì¤ë¡£
340 .\"O In addition to logging low battery status (as determined either by
341 .\"O the \fB-w\fR level or by the APM BIOS) using
345 .\"O to alert all users. This is most useful if
347 .\"O is not set up to write ALERT messages to all users. If both methods are
348 .\"O used, more warnings will be made during the critical time period.
351 ¥ª¥×¥·¥ç¥ó¤ä APM BIOS ¤Ë¤è¤Ã¤ÆÄê¤á¤é¤ì¤¿)
354 ¤òÍѤ¤¤Æ¥í¥°¤ò¤È¤ë¤À¤±¤Ç¤Ê¤¯¡¢
356 ¤òÍѤ¤¤ÆÁ´¤Æ¤Î¥æ¡¼¥¶¡¼¤Ë·Ù¹ð¤òȯ¤¹¤ë¡£
359 ¤ÎÀßÄê¤Ç¡¢ ALERT ¥á¥Ã¥»¡¼¥¸¤¬¥æ¡¼¥¶¤ËÁ÷¤é¤ì¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ë
361 ξÊý¤¬ÍѤ¤¤é¤ì¤ë¤È¡¢´í¸±¤Ê¾õÂ֤ˤʤ俤Ȥ¤Ë¤è¤ê¤¿¤¯¤µ¤ó¤Î·Ù¹ð¤¬È¯¤»¤é¤ì¤ë¡£
363 .BR "\-w " warn_percent, " \--warn " warn_percent
364 .\"O When the battery is not being charged and the percentage of available power
366 .\"O .IR warn_percent ,
367 .\"O log a warning at ALERT level to
373 .\"O flag was given, the daemon will also use
375 .\"O to alert all users of impending doom. Give the warning each time the
376 .\"O percentage changes. The default is 10. Use negative values to disable
378 ÅÅÃÓ¤¬½¼ÅžõÂ֤ˤʤ¯¡¢¤«¤Ä»ÄÎ̤¬
380 °Ê²¼¤Ë¤Ê¤Ã¤¿¤È¤¤Ë ALERT ¥ì¥Ù¥ë¤Î·Ù¹ð¤ò
386 ¥Õ¥é¥°¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤ë¤È¡¢¥Ç¡¼¥â¥ó¤Ï
388 ¤â»È¤Ã¤Æ¥æ¡¼¥¶¡¼¤Ë¤¤¤Þ¤½¤³¤Ë¤¢¤ë´íµ¡¤ò·Ù¹ð¤¹¤ë¡£
389 ·Ù¹ð¤Ï¥Ñ¡¼¥»¥ó¥Æ¡¼¥¸¤¬ÊѤï¤ë¤´¤È¤Ëȯ¤»¤é¤ì¤ë¡£¥Ç¥Õ¥©¥ë¥È¤Ï 10¡£
390 ¤³¤Îµ¡Ç½¤ò̵¸ú¤Ë¤¹¤ë¤Ë¤ÏÉé¤ÎÃͤò»ØÄꤹ¤ë¡£
393 .\"O Disables the warnings identified by the
397 .\"O options. (The APM BIOS on many machines will provide an audible warning
398 .\"O when power is about to be used up, so those extra warnings may not be needed.)
402 ¥ª¥×¥·¥ç¥ó¤«¤éÀ¸¤¸¤ë·Ù¹ð¥á¥Ã¥»¡¼¥¸¤ò½Ð¤µ¤Ê¤¯¤¹¤ë¡£
403 (¿¤¯¤Î¥Þ¥·¥ó¤Ç¤Ï¡¢ APM BIOS ¤ÏÅÅÎϤò»È¤¤Àڤꤽ¤¦¤Ë¤Ê¤ë¤È
404 ·Ù¹ð²»¤òȯ¤¹¤ë¤Î¤Ç¡¢¤½¤ì°Ê¾å¤Î·Ù¹ð¤ÏɬÍפʤ¤¡£)
407 .\"O Prints a usage message and exits.
408 ÍøÍÑË¡¤òɽ¼¨¤·¤Æ½ªÎ»¤¹¤ë¡£
410 .\"O New software should only use the
412 .\"O script, rather than the following now-deprecated options (most of which
413 .\"O have never appeared in a production release).
414 .\"O If they are provided, they take precedence over any proxy command
415 .\"O invocation for each event.
416 ¤³¤ì¤«¤é½ñ¤¯¥½¥Õ¥È¤Ï¡¢
418 ¥¹¥¯¥ê¥×¥È¤À¤±¤ò»È¤¦¤è¤¦¤Ë¤¹¤Ù¤¤Ç¤¢¤ë¡£
419 °Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤Ïº£¸å¤Ï»È¤¦¤Ù¤¤Ç¤Ê¤¤
420 (¤³¤ì¤é¤Î¤Û¤È¤ó¤É¤ÏÀµ¼°¥ê¥ê¡¼¥¹¤Ë¤Ï¸ºß¤·¤Ê¤¤)¡£
421 »ØÄꤵ¤ì¤ë¤È¡¢³Æ¥¤¥Ù¥ó¥È¤«¤éµ¯Æ°¤µ¤ì¤ë¤É¤Î proxy ¥³¥Þ¥ó¥É¤è¤ê¤âÍ¥À褵¤ì¤ë¡£
423 .BR "\-a " ac_online_cmd, " \-\-ac_online " ac_online_cmd
424 .\"O Provides a command to be run when AC power becomes available, though not
425 .\"O when the daemon first starts.
426 AC ÅŸ»¤¬ÍøÍѤǤ¤ë¤è¤¦¤Ë¤Ê¤Ã¤¿¤È¤ (¤¿¤À¤·¥Ç¡¼¥â¥ó¤¬ºÇ½é¤Ëµ¯Æ°¤µ¤ì¤¿¤È¤¤Ï½ü¤¯)
427 ¤Ë¼Â¹Ô¤¹¤Ù¤¥³¥Þ¥ó¥É¤ò»ØÄꤹ¤ë¡£
429 .BR "\-b " ac_offline_cmd, " \-\-ac_offline " ac_offline_cmd
430 .\"O Provides a command to be run when the machine is operating on
431 .\"O battery power, though not when the daemon first starts.
432 ¥Þ¥·¥ó¤¬ÅÅÃÓ¶îÆ°¤Ë¤Ê¤Ã¤¿¤È¤ (¤¿¤À¤·¥Ç¡¼¥â¥ó¤¬ºÇ½é¤Ëµ¯Æ°¤µ¤ì¤¿¤È¤¤Ï½ü¤¯)
433 ¤Ë¼Â¹Ô¤¹¤Ù¤¥³¥Þ¥ó¥É¤ò»ØÄꤹ¤ë¡£
435 .BR "\-l " low_battery_cmd, " \-\-low_battery " low_battery_cmd
436 .\"O Provides a command to be run when the APM BIOS judges that
437 .\"O battery power is "low".
438 ÅÅÃӤλÄÎ̤¬ "low" ¤Ç¤¢¤ë¤È
439 APM BIOS ¤¬È½ÃǤ·¤¿¾ì¹ç¤Ë¼Â¹Ô¤¹¤Ù¤¥³¥Þ¥ó¥É¤ò»ØÄꤹ¤ë¡£
441 .BR "\-s " pre_suspend_cmd, " \-\-pre_suspend " pre_suspend_cmd
442 .\"O Provides a command to be run before suspending through the driver.
443 ¥É¥é¥¤¥Ð·Ðͳ¤Ç¥µ¥¹¥Ú¥ó¥É¤¹¤ëÁ°¤Ë¼Â¹Ô¤¹¤Ù¤¥³¥Þ¥ó¥É¤ò»ØÄꤹ¤ë¡£
445 .BR "\-r " post_resume_cmd, " \-\-post_resume " post_resume_cmd
446 .\"O Provides a command to be run after resuming through the driver.
447 ¥É¥é¥¤¥Ð·Ðͳ¤ÇÉüµ¢¤·¤¿¸å¤Ë¼Â¹Ô¤¹¤Ù¤¥³¥Þ¥ó¥É¤ò»ØÄꤹ¤ë¡£
450 .\"O (This option is now completely ignored.)
451 .\"O The BIOS clock is set to UTC (GMT), so the daemon should pass the -u option to the
455 .\"O program when coming out of suspend or resume mode, or when responding
456 .\"O to the BIOS update time event.
457 (¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¸½ºß¤Ï´°Á´¤Ë̵»ë¤µ¤ì¤ë¡£)
458 BIOS ¥¯¥í¥Ã¥¯¤¬ UTC (GMT) ¤Ë¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¡£
459 ¤·¤¿¤¬¤Ã¤Æ¥µ¥¹¥Ú¥ó¥É¥â¡¼¥É¤ä¥ì¥¸¥å¡¼¥à¥â¡¼¥É¤«¤éÉüµ¢¤·¤¿¤ê
460 BIOS ¤Î update time ¥¤¥Ù¥ó¥È¤ÎºÝ¤Ë¤Ï¡¢¥Ç¡¼¥â¥ó¤Ï
464 ¥×¥í¥°¥é¥à¤Ë -u ¥ª¥×¥·¥ç¥ó¤òÅϤµ¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
467 .\"O The first status report printed after a power change may be
468 .\"O inaccurate because the power change occured at a fractional percentage that
469 .\"O was rounded to a full percentage. For example, say you are discharging the
470 .\"O machine and have 50.9% power, which is reported as 50%. When you start to
471 .\"O charge the machine, it will only have 0.1% left before the percentage flips
472 .\"O to 51%, and the charge rate will be dramatically over-estimated.
473 ÅÅÎϾõÂÖ¤¬ÊѤï¤Ã¤¿¤¢¤È¡¢ºÇ½é¤Ë½Ð¤µ¤ì¤ëÊó¹ð¤ÏÉÔÀµ³Î¤«¤â¤·¤ì¤Ê¤¤¡£
474 ¤Ê¤¼¤Ê¤é 1% °Ê²¼¤ÎÊѲ½¤Ï 1% ¤Ë´Ý¤á¤é¤ì¤ë¤«¤é¤Ç¤¢¤ë¡£Î㤨¤Ð¡¢
475 ¤¢¤ëÄøÅÙ¥Þ¥·¥ó¤ò»È¤Ã¤Æ 50.9% ¤ÎÅÅÃÓ¤¬»Ä¤Ã¤Æ¤¤¤ë¤È¤¹¤ë¤È¡¢
476 ¤³¤ì¤Ï 50% ¤ÈÊó¹ð¤µ¤ì¤ë¡£
477 ¥Þ¥·¥ó¤Î½¼ÅŤ¬»Ï¤Þ¤ë¤È¡¢»ÄÎ̤¬ 51% ¤Ë¤Ê¤ë¤Þ¤Ç¤ÎÊѲ½¤Ï 0.1% ¤À¤±¤Ç¤¢¤ë¡£
478 ¤·¤¿¤¬¤Ã¤Æ½¼ÅÅ®Å٤ϷàŪ¤ËÂ礤ÊÃͤˤʤäƤ·¤Þ¤¦¡£
480 .\"O There needs to be a more general hook to let other applications participate
481 .\"O in system power management decisions and policies.
482 ¾¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ë¡¢¥·¥¹¥Æ¥à¤ÎÅŸ»´ÉÍýÊý¿Ë·èÄê¤Ë»²²è¤µ¤»¤ë¤Ë¤Ï¡¢
483 ¤è¤ê°ìÈÌŪ¤Ê¥Õ¥Ã¥¯¤¬É¬ÍפǤ¢¤ë¡£
485 .\"O Multiple batteries are currently treated as if they were just one large one.
486 ¸½ºß¤Î¤È¤³¤í¡¢Ê£¿ô¤ÎÅÅÃÓ¤Ï 1 ¤Ä¤ÎÂ礤ÊÅÅÃӤȤ·¤Æ¤·¤«¼è¤ê°·¤ï¤ì¤Ê¤¤¡£
493 .I /etc/apmd/apmd_proxy
496 .\"O This program was written by Rik Faith (faith@cs.unc.edu) and may be freely
497 .\"O distributed under the terms of the GNU General Public License. There is
498 .\"O ABSOLUTELY NO WARRANTY for this program. The current maintainer is Avery
499 .\"O Pennarun (apenwarr@worldvisions.ca).
500 ¤³¤Î¥×¥í¥°¥é¥à¤Ï Rik Faith (faith@cs.unc.edu) ¤Ë¤è¤Ã¤Æ½ñ¤«¤ì¡¢
501 GNU °ìÈ̸ø¶¦»ÈÍѵöÂú¤Î¤â¤È¤Ç¼«Í³¤ËºÆÇÛÉۤǤ¤ë¡£
502 ¤³¤Î¥×¥í¥°¥é¥à¤Ï¡Ö´°Á´¤Ë̵ÊݾڡפǤ¢¤ë¡£¸½ºß¤Î´ÉÍý¼Ô¤Ï
503 Avery Pennarun (apenwarr@worldvisions.ca) ¤Ç¤¢¤ë¡£
506 .\"O .BR apm "(1), " xapm "(1), " cardctl "(8), " hdparm "(8), " syslogd "(8)"