summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@localhost>2011-08-23 07:53:55 +0200
committercinap_lenrek <cinap_lenrek@localhost>2011-08-23 07:53:55 +0200
commit94e7de15311c12c6fba68cc3ccffdc16945eb9fb (patch)
tree221f1a8c3e0c2fd6584beaea34baf1e82f8e063d
parent1a82d677702d0a16c6c6ea2f4cc2325c24a4a570 (diff)
downloadplan9front-94e7de15311c12c6fba68cc3ccffdc16945eb9fb.tar.xz
apm(8): support off state
-rw-r--r--sys/man/8/apm1
-rw-r--r--sys/src/cmd/aux/apm.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/sys/man/8/apm b/sys/man/8/apm
index 23fdd6686..f16f89ff4 100644
--- a/sys/man/8/apm
+++ b/sys/man/8/apm
@@ -80,6 +80,7 @@ and
.BR enable ,
.BR disable ,
.BR standby ,
+.BR off
and
.BR on .
.B Enable
diff --git a/sys/src/cmd/aux/apm.c b/sys/src/cmd/aux/apm.c
index 5df37d2b6..4098cd09d 100644
--- a/sys/src/cmd/aux/apm.c
+++ b/sys/src/cmd/aux/apm.c
@@ -848,10 +848,8 @@ ctlwrite(Req *r)
respondx(r, apmsetpowerstate(&apm, dev, PowerStandby));
else if(strcmp(p, "on")==0)
respondx(r, apmsetpowerstate(&apm, dev, PowerEnabled));
-/*
else if(strcmp(p, "off")==0)
respondx(r, apmsetpowerstate(&apm, dev, PowerOff));
-*/
else if(strcmp(p, "suspend")==0)
respondx(r, apmsetpowerstate(&apm, dev, PowerSuspend));
else