![]() |
#1 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31
Karma: 30000
Join Date: May 2012
Device: KT B011
|
Kindle Touch 5.1.0, How to turn on/off wifi in a script?
Like turn on/off wireless in the menu
not just ifconfig up/down wlan0 I wanna restart wifid, but if I don't stop wifi first, the GUI sometimes crash. |
![]() |
![]() |
![]() |
#2 |
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
The Wiki, especially the section about LIPC, is your friend here.
The "Interesting handlers / actions" contains information about how to peek and poke around LIPC. I merely fetched the output from "lipc-probe -a -v", took a look at it, applied a bit of common sense, and after 5 minutes of trial-and-error arrived at the commands below. For this particular case: Code:
# disable WiFi lipc-set-prop com.lab126.cmd wirelessEnable 0 #enable WiFi lipc-set-prop com.lab126.cmd wirelessEnable 1 If you find this useful, and/or if you find out more about how exactly it behaves, you're more than welcome to add this information to the Wiki as well. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31
Karma: 30000
Join Date: May 2012
Device: KT B011
|
I'm sorry to say, there is still something wrong.
It seems the WIFI is turned off on the GUI, but Kindle still connects to the AP after a while automatically. But if you turn off wireless manually in the menu, it won't do that. So I think I need more steps to turn off wireless completely. Thanks |
![]() |
![]() |
![]() |
#4 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 67
Karma: 70690
Join Date: May 2013
Device: Kindle Paperwhite 1 & Kindle 4 Black
|
Quote:
What can I do to edit the file '/etc/crontab/root'? Just like Code:
0 7 * * * lipc-set-prop com.lab126.cmd wirelessEnable 1 0 8 * * * lipc-set-prop com.lab126.cmd wirelessEnable 0 |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Turn off wifi on 3G Kinde Touch | techiegirl | Amazon Kindle | 4 | 02-12-2012 08:39 AM |
How to what you get is Kindle Touch 3G or WIFI? | JRyn | Amazon Kindle | 1 | 12-23-2011 06:33 PM |
can you hold to turn multiple pages on the kindle touch | bluerfoot | Amazon Kindle | 9 | 12-01-2011 12:28 PM |
Kindle 3: run script when turning wifi on? | theblop | Kindle Developer's Corner | 1 | 11-09-2010 10:25 AM |
run script on wifi connect | sinisterguy | Kindle Developer's Corner | 1 | 10-18-2010 03:46 PM |