apm(8): support off state
This commit is contained in:
parent
1a82d67770
commit
94e7de1531
2 changed files with 1 additions and 2 deletions
|
@ -80,6 +80,7 @@ and
|
|||
.BR enable ,
|
||||
.BR disable ,
|
||||
.BR standby ,
|
||||
.BR off
|
||||
and
|
||||
.BR on .
|
||||
.B Enable
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue