11-11-2020, 12:59 PM | #1 |
Member
Posts: 19
Karma: 10
Join Date: Feb 2020
Device: kindle dxg and touch
|
fix current date on kindle dx? stuck in 1970, KUAL won't open
When I do ;debugOn and ;dm I get a title which refers to "all logs as of tue mar 03 1970". This is a problem I have faced before.
When I try to open KUAL it says "The permissions to open the requested title have an invalid date. Please contact customer service." Any ideas on how to re-set the date to something reasonable so that KUAL will open? Can I re-write KUAL somehow to have a rather OLD date? Maybe adjust mkk to be an older date? Thanks |
11-11-2020, 01:14 PM | #2 | |
Member
Posts: 19
Karma: 10
Join Date: Feb 2020
Device: kindle dxg and touch
|
I think the pertinent logs from launching KUAL (or freshly copying it to /mnt/documents) are these lines from ;dm output? Anything else I should look for to debug?
Quote:
|
|
11-11-2020, 01:46 PM | #3 |
BLAM!
Posts: 13,481
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
If you have shell access, use the setdate script (takes an epoch [date +%s]). If you don't, hope that the ;setdate command existed at the time (and I don't remember *what* it took as input, so, try an epoch, too ;D).
|
11-11-2020, 02:09 PM | #4 |
Member
Posts: 19
Karma: 10
Join Date: Feb 2020
Device: kindle dxg and touch
|
Is there a doc about the format of the bin files? They are ISO images? Aka a kindlet? Maybe I could add a date command in some install script in a .bin update file?
|
11-11-2020, 02:21 PM | #5 | |
Member
Posts: 19
Karma: 10
Join Date: Feb 2020
Device: kindle dxg and touch
|
I don't think ;setdate worked. I grepped ;dm logs with "Booklet" as that seemed to be the most interesting bits in the log related to it. The log produced by ;dm still had a 1970 year in the title.
Quote:
|
|
11-11-2020, 04:28 PM | #6 |
BLAM!
Posts: 13,481
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
I'm fairly sure there's a less roundabout way of doing that if you can't use KUAL and don't have USBNet installed at the time, but it's a ten-year old device, so, err, ^^.
But, yeah, if it's jailbroken, building an install package with KindleTool and a simple script that just runs date with an even remotely accurate date should do the trick. (The Booklet/Kindlet thing is irrelevant here, that's just the base API name used by the Java applets that make up most of the Kindle UI). |
11-11-2020, 05:36 PM | #7 |
Member
Posts: 19
Karma: 10
Join Date: Feb 2020
Device: kindle dxg and touch
|
Perfect. KindleTool seems like it will work well as I'm quite certain it's jailbroken. Thanks!
|
11-11-2020, 09:39 PM | #8 | |
Member
Posts: 19
Karma: 10
Join Date: Feb 2020
Device: kindle dxg and touch
|
KindleTool seems to be working!
I set to epoch with `date -s 1605147285` and it set it to somewhere near the log file title of `'all_logs as of Sat Apr 05 15.14.04 GMT 1986.txt`. Is there a way I can output to a file to log the output of say `date -h` or `date +%s`? Or get that into the "all_logs" next time I do `;dm`? Quote:
|
|
11-11-2020, 09:45 PM | #9 |
Member
Posts: 19
Karma: 10
Join Date: Feb 2020
Device: kindle dxg and touch
|
Ok. Deal is done. Had to lookup format that busybox date uses and that worked! Date is up-to-date.
`date 111120422020` Thanks NiLuJe! |
11-11-2020, 09:46 PM | #10 |
Member
Posts: 19
Karma: 10
Join Date: Feb 2020
Device: kindle dxg and touch
|
And now KUAL works again. Problem solved!
|
11-19-2020, 03:19 AM | #11 |
Junior Member
Posts: 8
Karma: 10
Join Date: Jun 2008
Location: Kuala Lumpur, MY
Device: Kindle DXG, Kindle PW2
|
Thanks! This was very helpful as I had the same problem. I had some difficulty figuring out the setdate format since I just assumed it was the usual seconds since the unix epoch but I think have it figured out. It looks to be MMDDHHSSYYYY but with overflow enabled so that month 16 makes it 04 but with one year added to the year (same for hours etc). My DXG now has the current date and time to within a couple of minutes on it.
|
01-28-2024, 05:03 PM | #12 |
Member
Posts: 18
Karma: 638
Join Date: Feb 2016
Device: kobo aura hd
|
In case someone runs into the same issue, I attach the prebuilt setdate.bin here.
|
04-13-2024, 05:41 PM | #13 |
Enthusiast
Posts: 33
Karma: 33664
Join Date: Jun 2015
Device: kindle paperwhite
|
Thank you for posting that bin file. My kid's DXG finally knows it isn't 1970.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
old kual stuck | pewpawpew | Kindle Developer's Corner | 2 | 06-12-2018 01:23 PM |
backup problem - Date showing 1970 | Maxy007 | Library Management | 1 | 05-10-2018 10:14 PM |
Kindle touch won't turn on. Can see current book in background of ad. | chr1st0ph3rc | Kindle Developer's Corner | 1 | 01-10-2015 05:33 AM |