apm(8): support off state

This commit is contained in:
cinap_lenrek 2011-08-23 07:53:55 +02:00
parent 1a82d67770
commit 94e7de1531
2 changed files with 1 additions and 2 deletions

View file

@ -80,6 +80,7 @@ and
.BR enable ,
.BR disable ,
.BR standby ,
.BR off
and
.BR on .
.B Enable

View file

@ -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