aboutsummaryrefslogtreecommitdiff
path: root/ja_JP.eucJP/man/man8/man8.i386/apmd.8
blob: d46b04c779fb08e211aa076e6f25ee2494f14acd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
.\" Copyright (c) 1999 Mitsuru IWASAKI <iwasaki@FreeBSD.org>
.\" Copyright (c) 1999 KOIE Hidetaka <koie@suri.co.jp>
.\" Copyright (c) 1999 Yoshihiko SARUMARU <mistral@imasy.or.jp>
.\" Copyright (c) 1999 Norihiro Kumagai <kuma@nk.rim.or.jp>
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\"     @(#)apmd.8	1.1 (FreeBSD) 6/28/99
.\" %FreeBSD: src/usr.sbin/apmd/apmd.8,v 1.19 2004/07/03 18:35:50 ru Exp %
.\"
.\" $FreeBSD$
.\"
.Dd June 28, 1999
.Dt APMD 8 i386
.Os
.Sh ̾
.Nm apmd
.Nd Advanced Power Management ƻǡ
.Sh 
.Nm
.Op Fl d
.Op Fl f file
.Op Fl s
.Op Fl v
.Sh 
.Nm
桼ƥƥϡꤷ Advanced Power Management
.Pq Tn APM
٥Ȥƻ뤷
줫Υ٥Ȥȯ硢
б륳ޥɥ󥹤¹Ԥޤ
եǻꤵ줿٥ȤΤߤ
.Nm
Τ졢ʳΥ٥Ȥ̵뤵ޤ
APM BIOS ˤäȯԤ줿
٥ȤФơ
.Nm
եǻꤵ줿ޥɥ󥹤¹Ԥޤ
.Nm
򥵥ڥ/Хƻ뤹褦ˤƵưȡ
ͥϤ׵ᥤ٥ȤФ
Ԥޤ
Τ᤽Υ٥ȯ
򤵤ϡŬڤʥޥɤޤȤ߹ߴؿ
Ūե˻ꤹɬפޤ
.Pp
.Nm
桼ƥƥϰʲμ¹Իץ򤷤ޤ
.Bl -tag -width -f_file
.It Fl d
ǥХå⡼ɤǵưޤ
ǡ⡼ɤǤϤʤե饦ɤưޤ
.It Fl f Ar file
ǥեȤե
.Pa /etc/apmd.conf
˻Ѥ롢̤ե
.Ar file
ꤷޤ
.It Fl s
Ÿ֤ѹФ줿 (AC_POWER_STATE)
åץȥåפ BIOS 𤷤ʤȤˡ
.Nm
 POWERSTATECHANGE ٥Ȥ򥷥ߥ졼Ȥޤ
ˤꡢŸɤȴȤ LCD Хå饤ȤŤ
ȤäȤǽˤʤޤ
.It Fl v
Ĺ⡼ɤưޤ
.El
.Pp
.Nm
ϵưե
(ǥեȤ
.Pa /etc/apmd.conf )
ɤ߹ߡ
ƻ뤹٤٥Ȥ APM ǥХɥ饤ФΤޤ
λˤ APM ǥХɥ饤Фϥ٥ȤδƻưŪ˲ޤ
.Pp
.Nm
ץʥ SIGHUP ȡեɤ߹ľơ
ѹƤ APM ǥХɥ饤ФΤޤ
.Pp
.Nm
桼ƥƥϡǥХե
.Pa /dev/apmctl
ͳơ٥Ȥμ APM ƥѤ
.Xr ioctl 2
׵ȯԤޤ
ΥǥХե¾椵ƥץ󤵤뤿ᡢ
.Nm
ץƱ 1 ĤΤߵưǽǤ
.Pp
.Nm
 APM ٥Ȥȡեǻꤵ줿
٥Ȥб륳ޥɥꥹȤ¹Ԥ뤿
ҥץƤ APM ٥ȤԤ֤ˤʤޤ
줿ҥץϡ
ꤵ줿ޥɤ 1 Ĥ󤵤줿֤˼¹Ԥޤ
.Pp
.Nm
 SUSPEND/STANDBY ׵Ф륳ޥɥꥹȤƤ֡
ͥ APM ǥХɥ饤ФϡAPM BIOS Ф
 1 ʾΤȯԤ³ޤ
ˤä BIOS ϡޥɽǤ׵᤬
ޤ뤷ƤʤȤǧޤ
.Pp
.Nm
桼ƥƥϥե
.Pa /var/run/apmd.pid
ץ ID Ͽޤ
.Nm
 kill 䡢եɤ߹ޤ뤿˻Ȥޤ
.Sh ե
.Nm
եι¤˥ץǤ
㤨мΤ褦ˤʤޤ
.Pp
.Bd -literal
apm_event SUSPENDREQ {
        exec "sync && sync && sync";
        exec "sleep 1";
        exec "zzz";
}
.Ed
.Pp
ǤϡAPM ٥
.Ql SUSPENDREQ
(ǥץ쥤Ĥʤɤȯޤ) 
.Nm
ȡ
.Ql sync
ޥɤ 3 ¹ԤԤäȤ
.Nm zzz ( Ns Nm apm Fl z )
¹Ԥƥƥ򥵥ڥɤޤ
.Pp
.Bl -bullet
.It
apm_event 
.Bd -ragged -offset indent
.Ql apm_event
ϥɤǤꡢ٥ȤȤγϤؼޤ
.Ed
.It
APM ٥
.Bd -ragged -offset indent
ʣΥ٥ȤФƱ¹ԤϡΥ٥̾
ޤǶڤäƻꤷޤ
ͭʥ٥̾ϼ̤Ǥ
.Bl -item
.It
-
.Nm
ưƤȥͥǤνԤʤʤ륤٥:
.Pp
.Bl -tag -width USERSUSPENDREQ -compact -offset indent
.It STANDBYREQ
.It USERSTANDBYREQ
.It SUSPENDREQ
ޥɥꥹȤ sync ޤ뤳Ȥ򤪤ᤷޤ
.It USERSUSPENDREQ
ޥɥꥹȤ sync ޤ뤳Ȥ򤪤ᤷޤ
.It BATTERYLOW
ޥɥꥹȤ zzz Τߤ򤪤ᤷޤ
.El
.It
- ͥνλ
.Nm
Τ륤٥:
.Pp
.Bl -tag -width USERSUSPENDREQ -compact -offset indent
.It NORMRESUME
.It CRITRESUME
.It STANDBYRESUME
.It POWERSTATECHANGE
.It UPDATETIME
.It CAPABILITIESCHANGE
.El
.Pp
嵭ʳΥ٥Ȥ
.Nm
Τޤ
.El
.Ed
.It
ޥɥ饤ʸˡ
.Bd -ragged -offset indent
ҤǤϡ
.Ql exec
Ϥޤ 3 Ԥϥ٥ȤФ륳ޥɤǤ
줾ιԤϥߥǽλƤɬפޤ
٥ȤФ륳ޥɥꥹȤ
.Ql {

.Ql }
ǰϤߤޤ
.Nm
桼ƥƥϡ֥륯ơǰϤޤ줿ޥɤμ¹Ԥ
.Xr system 3
Ʊͤ
.Pa /bin/sh
Ѥޤ
ƥޥɤϥޥɥꥹȤκǸã뤫 0 ʳ
λɤǽޤǽ֤˼¹Ԥޤ
.Nm
桼ƥƥϡԤޥɤνλɤ
.Xr syslog 3
ͳ𤷤ޤ
ä APM BIOS ׵ᥤ٥Ȥäޤ
.Ed
.It
Ȥ߹ߴؿ
.Bd -ragged -offset indent
ޥɹԤ
.Nm
Ȥ߹ߴؿǤޤȤ߹ߴؿϥޥɹԤƱͤ
ߥǽλޤȤ߹ߴؿߥݡȤƤޤ
.Bl -item
.It
- reject:
.Bd -ragged -offset indent
APM BIOS ľ׵ݤޤ
ǥץ쥤Ĥȯ SUSPEND ׵ݤơ
 STANDBY ֤ˤʤɤ˻Ѥޤ
.Ed
.El
.Ed
.El
.Sh 
եΥץˤϡʲΤΤޤޤƤޤ
.Bd -literal
apm_event SUSPENDREQ {
        exec "/etc/rc.suspend apm suspend";
}

apm_event USERSUSPENDREQ {
        exec "sync && sync && sync";
        exec "sleep 1";
        exec "apm -z";
}

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
# reinitializing a moused(8) connected to a serial port.
#
#apm_event NORMRESUME {
#       exec "kill -HUP `cat /var/run/moused.pid`";
#}

# suspend request event configuration for ATA HDD users:
# execute standby instead of suspend.
#
#apm_event SUSPENDREQ {
#       reject;
#       exec "sync && sync && sync";
#       exec "sleep 1";
#       exec "apm -Z";
#}
.Ed
.Sh Ϣե
.Bl -tag -width /etc/apmd.conf -compact
.It Pa /etc/apmd.conf
.It Pa /dev/apmctl
.It Pa /var/run/apmd.pid
.El
.Sh Ϣ
.Xr apm 4 ,
.Xr apm 8
.Sh 
.An Mitsuru IWASAKI Aq iwasaki@FreeBSD.org
.An KOIE Hidetaka Aq koie@suri.co.jp
.Pp
ޤ
.An Warner Losh Aq imp@FreeBSD.org ,
.An Hiroshi Yamashita Aq bluemoon@msj.biglobe.ne.jp ,
.An Yoshihiko SARUMARU Aq mistral@imasy.or.jp ,
.An Norihiro Kumagai Aq kuma@nk.rim.or.jp ,
.An NAKAGAWA Yoshihisa Aq nakagawa@jp.FreeBSD.org ,
.An Nick Hilliard Aq nick@foobar.org
ˤ׸ޤ
.Sh 
.Nm
桼ƥƥ
.Fx 3.3
о줷ޤ