<s>
On	O
Apple	O
computers	O
,	O
pmset	B-Operating_System
is	O
a	O
command	O
line	O
utility	O
to	O
manipulate	O
power	O
management	O
settings	O
under	O
the	O
Darwin	B-Operating_System
and	O
macOS	B-Application
operating	B-General_Concept
systems	I-General_Concept
.	O
</s>
<s>
The	O
pmset	B-Operating_System
utility	O
first	O
appeared	O
in	O
Darwin	B-Operating_System
6.0.1	O
and	O
Mac	B-Operating_System
OS	I-Operating_System
X	I-Operating_System
10.2	I-Operating_System
"	I-Operating_System
Jaguar	I-Operating_System
"	I-Operating_System
.	O
</s>
<s>
It	O
has	O
been	O
updated	O
periodically	O
since	O
its	O
introduction	O
,	O
and	O
is	O
still	O
available	O
as	O
of	O
Darwin	B-Operating_System
21.2.0	O
and	O
macOS	B-Device
Monterey	I-Device
.	O
</s>
<s>
Some	O
of	O
the	O
functionality	O
provided	O
by	O
the	O
utility	O
is	O
available	O
through	O
the	O
GUI	O
interface	O
of	O
the	O
Energy	B-Operating_System
Saver	I-Operating_System
preference	O
pane	O
.	O
</s>
<s>
However	O
,	O
pmset	B-Operating_System
allows	O
for	O
greater	O
flexibility	O
and	O
access	O
to	O
several	O
options	O
not	O
available	O
in	O
the	O
GUI	O
.	O
</s>
<s>
Any	O
arguments	O
already	O
set	O
will	O
be	O
unmodified	O
by	O
pmset	B-Operating_System
unless	O
those	O
arguments	O
are	O
specifically	O
included	O
.	O
</s>
<s>
The	O
utility	O
is	O
also	O
able	O
to	O
configure	O
hibernation	O
and	O
safe	O
sleep	O
options	O
,	O
and	O
change	O
Energy	B-Operating_System
Saver	I-Operating_System
profiles	O
.	O
</s>
<s>
The	O
pmset	B-Operating_System
utility	O
recognizes	O
the	O
following	O
arguments	O
.	O
</s>
<s>
Note	O
this	O
setting	O
only	O
appears	O
when	O
running	O
"	O
pmset	B-Operating_System
-g	O
"	O
if	O
the	O
device	O
is	O
plugged	O
into	O
a	O
power	O
source	O
.	O
</s>
<s>
Otherwise	O
,	O
the	O
womp	O
setting	O
will	O
NOT	O
appear	O
when	O
running	O
"	O
pmset	B-Operating_System
-g	O
"	O
.	O
</s>
<s>
networkoversleep	O
This	O
setting	O
affects	O
how	O
macOS	B-Application
networking	O
presents	O
shared	O
network	O
services	O
during	O
system	O
sleep	O
.	O
</s>
<s>
The	O
following	O
command	O
will	O
set	O
the	O
machine	O
to	O
never	O
sleep	O
(	O
sleep	O
0	O
)	O
,	O
enable	O
the	O
Sudden	B-Device
Motion	I-Device
Sensor	I-Device
(	O
sms	O
1	O
)	O
,	O
set	O
the	O
display	O
to	O
sleep	O
after	O
20	O
minutes	O
(	O
displaysleep	O
20	O
)	O
,	O
disable	O
processor	O
speed	O
reduction	O
(	O
reduce	O
0	O
)	O
,	O
enable	O
intermediate	O
display	O
dimness	O
(	O
halfdim	O
1	O
)	O
,	O
enable	O
the	O
machine	O
to	O
wake	O
when	O
the	O
lid	O
is	O
opened	O
(	O
lidwake	O
1	O
)	O
,	O
prevent	O
the	O
system	O
from	O
sleeping	O
when	O
a	O
tty	O
session	O
(	O
such	O
as	O
SSH	O
)	O
is	O
active	O
(	O
ttyskeepawake	O
1	O
)	O
,	O
disable	O
waking	O
the	O
machine	O
when	O
the	O
AC	O
adapter	O
is	O
inserted	O
(	O
acwake	O
0	O
)	O
,	O
disable	O
an	O
automatic	O
restart	O
after	O
power	O
is	O
removed	O
and	O
restored	O
(	O
autorestart	O
0	O
)	O
,	O
enable	O
dynamic	O
change	O
of	O
processor	O
speed	O
based	O
on	O
system	O
load	O
(	O
dps	O
1	O
)	O
,	O
enable	O
wake	O
on	O
modem	O
ring	O
(	O
ring	O
1	O
)	O
,	O
enable	O
wake	O
on	O
receipt	O
of	O
"	O
magic	O
"	O
Ethernet	O
packet	O
(	O
womp	O
1	O
)	O
,	O
and	O
disable	O
hard	O
disk	O
sleep	O
(	O
disksleep	O
0	O
)	O
:	O
</s>
<s>
For	O
instance	O
,	O
pmset	B-Operating_System
-b	O
sleep	O
10	O
will	O
cause	O
the	O
machine	O
to	O
sleep	O
after	O
10	O
minutes	O
,	O
but	O
only	O
when	O
the	O
battery	O
is	O
attached	O
.	O
</s>
<s>
At	O
least	O
as	O
of	O
Darwin	B-Operating_System
9.4	O
and	O
OS	B-Application
X	I-Application
10.5.4	I-Application
"	I-Application
Leopard	I-Application
"	I-Application
,	O
all	O
changes	O
made	O
through	O
pmset	B-Operating_System
are	O
saved	O
in	O
a	O
persistent	O
preferences	O
file	O
at	O
/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist	O
.	O
</s>
<s>
The	O
command	O
pmset	B-Operating_System
touch	O
will	O
reread	O
existing	O
settings	O
from	O
disk	O
and	O
apply	O
them	O
to	O
the	O
system	O
.	O
</s>
<s>
The	O
pmset	B-Operating_System
command	O
is	O
able	O
to	O
schedule	O
system	O
sleep	O
,	O
shutdown	O
,	O
wakeup	O
or	O
power	O
on	O
events	O
.	O
</s>
<s>
The	O
utility	O
expects	O
to	O
be	O
able	O
to	O
store	O
this	O
information	O
in	O
the	O
PMU	B-Device
,	O
and	O
so	O
may	O
not	O
work	O
reliably	O
on	O
non-Apple	O
hardware	O
.	O
</s>
<s>
The	O
get	O
functions	O
of	O
pmset	B-Operating_System
do	O
not	O
require	O
privileged	O
access	O
.	O
</s>
<s>
The	O
utility	O
recognizes	O
the	O
following	O
arguments	O
(	O
an	O
up-to-date	O
list	O
can	O
be	O
retrieved	O
with	O
the	O
undocumented	O
pmset	B-Operating_System
-g	O
getters	O
command	O
,	O
though	O
it	O
does	O
not	O
show	O
all	O
*	O
log	O
variants	O
)	O
:	O
</s>
<s>
Only	O
one	O
get	O
argument	O
can	O
be	O
passed	O
to	O
pmset	B-Operating_System
-g	O
.	O
For	O
instance	O
,	O
to	O
display	O
scheduled	O
events	O
,	O
type	O
pmset	B-Operating_System
-g	O
sched	O
.	O
</s>
<s>
The	O
following	O
examples	O
demonstrate	O
the	O
output	O
of	O
the	O
pmset	B-Operating_System
command	O
on	O
an	O
Apple	O
PowerBook	O
G4	O
running	O
Mac	O
OS	O
X	O
10.5.4	O
"	O
Leopard	B-Application
"	O
.	O
</s>
<s>
If	O
the	O
command	O
is	O
issued	O
successfully	O
and	O
is	O
without	O
syntax	O
errors	O
,	O
pmset	B-Operating_System
will	O
exit	O
silently	O
with	O
an	O
exit	O
code	O
of	O
0	O
.	O
</s>
<s>
To	O
verify	O
that	O
the	O
system	O
took	O
the	O
new	O
configuration	O
,	O
issue	O
the	O
command	O
pmset	B-Operating_System
-g	O
.	O
</s>
<s>
If	O
the	O
command	O
is	O
issued	O
successfully	O
and	O
is	O
without	O
syntax	O
errors	O
,	O
pmset	B-Operating_System
will	O
exit	O
silently	O
with	O
an	O
exit	O
code	O
of	O
0	O
.	O
</s>
<s>
To	O
verify	O
that	O
the	O
system	O
took	O
the	O
new	O
configuration	O
,	O
issue	O
the	O
command	O
pmset	B-Operating_System
-g	O
.	O
</s>
<s>
If	O
the	O
command	O
is	O
issued	O
successfully	O
and	O
is	O
without	O
syntax	O
errors	O
,	O
pmset	B-Operating_System
will	O
exit	O
silently	O
with	O
an	O
exit	O
code	O
of	O
0	O
.	O
</s>
<s>
To	O
verify	O
that	O
the	O
system	O
took	O
the	O
new	O
configuration	O
,	O
issue	O
the	O
command	O
pmset	B-Operating_System
-g	O
.	O
</s>
<s>
If	O
the	O
command	O
is	O
issued	O
successfully	O
and	O
is	O
without	O
syntax	O
errors	O
,	O
pmset	B-Operating_System
will	O
exit	O
silently	O
with	O
an	O
exit	O
code	O
of	O
0	O
.	O
</s>
<s>
To	O
verify	O
that	O
the	O
system	O
took	O
the	O
new	O
configuration	O
,	O
issue	O
the	O
command	O
pmset	B-Operating_System
-g	O
sched	O
.	O
</s>
<s>
If	O
the	O
command	O
is	O
issued	O
successfully	O
and	O
is	O
without	O
syntax	O
errors	O
,	O
pmset	B-Operating_System
will	O
exit	O
silently	O
with	O
an	O
exit	O
code	O
of	O
0	O
.	O
</s>
<s>
To	O
verify	O
that	O
the	O
system	O
took	O
the	O
new	O
configuration	O
,	O
issue	O
the	O
command	O
pmset	B-Operating_System
-g	O
sched	O
.	O
</s>
<s>
Here	O
,	O
example	O
output	O
from	O
pmset	B-Operating_System
-g	O
.	O
At	O
the	O
time	O
,	O
the	O
machine	O
was	O
being	O
powered	O
by	O
the	O
charger	O
,	O
while	O
simultaneously	O
charging	O
the	O
battery	O
.	O
</s>
<s>
Here	O
,	O
example	O
output	O
from	O
pmset	B-Operating_System
-g	O
sched	O
.	O
</s>
<s>
Here	O
,	O
example	O
output	O
from	O
pmset	B-Operating_System
-g	O
.	O
At	O
the	O
time	O
,	O
the	O
machine	O
was	O
being	O
backed	O
up	O
.	O
</s>
