View Single Post
Old 12-26-2010, 05:03 PM   #61
yifanlu
Kindle Dissector
yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.
 
Posts: 662
Karma: 475607
Join Date: Jul 2010
Device: Amazon Kindle 3
Anyone knows a command to turn off kindle wireless? It's probelty a lipc command.

NVM, found it:

"lipc-get-prop com.lab126.wan powerState" shows the power status
0 = off
1 = on
3 = powering on
4 = powering off
(there might be more, but those are the ones I saw)
"lipc-set-prop com.lab126.wan startWan 1" starts wireless
"lipc-set-prop com.lab126.wan stopWan 1" stops wireless

Code:
if [ `lipc-get-prop com.lab126.wan powerState` -ne 1 ]; then
        lipc-set-prop com.lab126.wan startWan 1
else
        lipc-set-prop com.lab126.wan stopWan 1
fi
This is a short script to stop/start the wan depending if it was on or off when you ran it. The only weird thing is that the status bar/framework doesn't update to the wan status. There should be another lipc command to do so.

Last edited by yifanlu; 12-26-2010 at 10:37 PM.
yifanlu is offline   Reply With Quote