12-18-2011, 12:11 PM | #1 |
Developer
Posts: 155
Karma: 280
Join Date: Nov 2010
Device: Kindle 3 (Keyboard) 3G / iPad 9 WiFi / Google Pixel 6a (Android)
|
How to trigger reading location sync via cron?
Hi,
I use my Kindle 3 WiFi on my commute where it has no WiFi connection. The Kindle is rooted and I'd like to create a cron job which wakes the Kindle at times when it should be in a place with WiFi available (home, work) and force it to sync the current reading location with the amazon network, so I can continue reading with the Kindle App on my Android. I already found the command for waking up the Kindle (lipc-set-prop com.lab126.powerd wakeUp 1), but how do I start the syncing and can I put the Kindle back to suspend mode via another command or would I have to wait until it suspends automatically? Any help on this is very appreciated, because if I can't find a way to accomplish the sync I'll have to buy a 3G Kindle Ciao, Steffen |
12-18-2011, 01:05 PM | #2 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
EDIT: It would be much better to find and launch the sync app directly. Navigating the menu can be unreliable due to different options greyed out on different units, or at different times. Last edited by geekmaster; 12-18-2011 at 02:10 PM. |
|
Advert | |
|
12-18-2011, 05:38 PM | #3 | ||
Developer
Posts: 155
Karma: 280
Join Date: Nov 2010
Device: Kindle 3 (Keyboard) 3G / iPad 9 WiFi / Google Pixel 6a (Android)
|
Quote:
Quote:
So any information about the sync app is still very appreciated. Ciao, Steffen |
||
12-18-2011, 09:15 PM | #4 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
|
|
12-19-2011, 01:42 PM | #5 | |
Developer
Posts: 155
Karma: 280
Join Date: Nov 2010
Device: Kindle 3 (Keyboard) 3G / iPad 9 WiFi / Google Pixel 6a (Android)
|
Quote:
Code:
[root@kindle root]# lipc-set-prop com.lab126.powerd wakeUp 1 [root@kindle root]# lipc-set-prop com.lab126.powerd wakeUp 0 com.lab126.powerd failed to set value for property wakeUp (0x8 lipcErrNoSuchProperty) Ciao, Steffen |
|
Advert | |
|
12-19-2011, 02:10 PM | #6 |
Developer
Posts: 155
Karma: 280
Join Date: Nov 2010
Device: Kindle 3 (Keyboard) 3G / iPad 9 WiFi / Google Pixel 6a (Android)
|
Ha, found it!
Next to /usr/bin/powerd is a binary /usr/bin/powerd_test which gives the following usage hint when executed: Code:
powerd_test: Utility to test powerd Options: s : Print status i : Simulate input event p : Simulate power button pressed event h : Simulate power button held event l : Simulate low batt low event d <value> : Set defer sleep property to given value r : Simulate a random series of events at random intervals. Max interval is 10s by default. b<optional>: Set fake battery level if a value is provided. Remember to there is no space between b and value. If no value is provided, it interactively accepts values from you and sets fake battery level t <value> : Max interval between events in seconds. Valid only when used with -r NOTE : Only one of i,p,d, b and r can be used at one time Code:
lipc-send-event com.lab126.powerd.debug dbg_power_button_pressed Code:
[root@kindle /]# lipc-get-prop com.lab126.powerd status Powerd state: Screen Saver Remaining time in this state: Unknown defer_suspend:0 suspend_grace:0 prevent_screen_saver:0 drive_mode:off Battery Level: 92% Last batt event at: 92% Charging: Yes batt_full=0 Battery logging: On Ciao, Steffen |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ebook start reading location | cyberbaffled | Amazon Kindle | 22 | 09-18-2012 04:23 PM |
Touch Sync books (and reading location) with iOS device? | IDSmoker | Barnes & Noble NOOK | 1 | 12-10-2011 10:40 AM |
What's your favorite posture & location when you are reading? | bookmeal | Lounge | 17 | 10-08-2011 04:37 AM |
Books I'm Reading problem after sync | kimberhill | Kobo Reader | 27 | 01-09-2011 12:53 AM |
Kindle 1 - Reading Location Problem | gagne | Amazon Kindle | 4 | 12-26-2010 12:31 PM |