![]() |
#1 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
CPU Governor Menu (KUAL extension)
Since all devices are using (or can use) KUAL . . .
Since Lab126 has been including all of the cpu governors in the kernel build, like in forever . . . A governor selection and report generation menu for the KUAL. The report generated will be helpful in finding the cause of excessively short battery run-time. Installation: Un-zip the attached archive in the top level of visible USB storage. It will create or re-use the /extensions directory - It will create or re-use (since: v-1.1) its own sub-menu directory and populate it. The CPU report generator requires the lua-base-penlight.zip archive from: https://www.mobileread.com/forums/sho...d.php?t=272221 That archive is installed the same way an extension is, un-archive the contents to the visible root of USB storage. It will create or re-use its own KUAL-system sub-tree. v-1.3 change: * Add device manufacturing code to report head section. * Add permissions to each feature (r- read only, rw read/write (a control knob) ) * Annotate "time in state" with hh:mm:ss in human terms. * Fix the missing time zone on the report date line. v-1.2 change: * Fix for idme differences on older firmware * Hyphenate the model number field to make it more apparent (Now known to work on 5.3.7.3 (K5) ) v-1.1 change: KUAL -> CPU Control -> Four new buttons:
The i.MX6 cpu frequency driver in the 3.0.x kernel does not have anywhere near the features of the Intel/AMD driver but it does make a difference in performance and power consumption. Should work on **any** model Kindle that includes Lua in the Amazon firmware, **any** version firmware with the exception of the DX(F). (At least that is my intention in using the system key database.) Repository: https://github.com/janetizzy/KUAL-buttons Last edited by knc1; 04-01-2016 at 03:48 PM. |
![]() |
![]() |
![]() |
#2 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 229
Karma: 944808
Join Date: Apr 2009
Device: Kobo Libra 2, Forma and Aura One; Kindle Voyage; Galaxy Note 10
|
Thanks for this extension. FWIW, I tried powersave on my Voyage with 5.7.3 and, in addition to being really, really slow, it did eventually freeze and spontaneously reboot. So I can't say it's practical for my purposes. If there is any way of doing a slightly less aggressive powersave I'd be happy to test.
![]() |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
I don't have a KV to test with - But I'll add another button that will dump out the choices on a KV-5.7.3 firmware. They may be different. Give me 24 hours - I'll bump this thread when I update the button set. My PW-3 has been in 'powersave' mode since I posted the menu button. It has not "frozen" (at least not yet). (and it seems to be using about 2% battery per day (50 days between charges? Too soon to say.) |
|
![]() |
![]() |
![]() |
#4 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
24 hours my a..
Oh, well, 16 days was more like it. The CPU controls report has been added to the v-1.1 set of buttons. See first post of this thread. Now the user (and our developers here) have something to study, and hopefully learn more about the 'short battery run-time' problem. = = = = Yes Virginia, KUAL has no problems running a Lua script rather than a shell script. = = = = Edit: 1 Report fails on 5.3.7.3 (K5) due to a change in the 'idme' function. Will be fixed in v-1.2 (like, RSN). Last edited by knc1; 03-30-2016 at 08:35 AM. |
![]() |
![]() |
![]() |
#5 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Posted v-1.2, which fixes the problem with older versions of the idme command.
Just un-zip in the USB visible root, it will create or re-use/overwrite as required any prior gov-set buttons. Now known to work on 5.3.x and 5.6.x - should also work on 5.4.x, 5.5.x and 5.7.x (but does no harm if it fails). |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Then attach the report to a post here, where we can read it . . . . (You can read the report yourself, on the Kindle, it shows up as a 'personal' document.) It might be possible to find out why your 5.7.x got worse than the (bad) 5.6.y |
|
![]() |
![]() |
![]() |
#7 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Version 1.3 posted in top post attachments.
|
![]() |
![]() |
![]() |
#8 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Points: *) Both the i.MX50 and the i.MX6 that I have seen so far provide two cpu clock speeds, a high and a low. *) The two hardware/kernel version combinations I have seen so far use the 'standard' Linux cpu frequency governors. *) Both combinations have a working 'userspace' governor. The 'standard' cpu frequency governors use control algorithms for controlling 'general purpose' computer systems. I.E: No outside knowledge of the 'jobs' that the system will be running. BUT... These are special purpose devices, they are e-book readers. We KNOW what the job(s) and job-mix is - to open a book and display a page - then wait (forever in terms of a 1Ghz cpu) to turn the next page. Currently, there is no direct connection between user interaction and cpu speed (that is: cpu power consumption). But we could change that - Say, in general, monitor for user interaction events, in those cases, immediately switch to 'high speed' - As soon as that event action completes, immediately switch to 'low speed' - Any other 'jobs' the cpu has to do are just internal supporting tasks, they can all run at the 'low speed' while the person is reading the page, or drop into 'suspend' in the usual manner. The cpu takes 61035 clock cycles to switch speeds - I.E: It can switch speeds before the user can lift their finger from the touch screen - the user should never notice that the device had been running at low speed (or even suspended) in-between touches of the screen. BUT I would really like to see more "cpu reports" from other device/firmware combinations before I even consider designing a user space controller for the Kindles. That is not something to tackle in an information vacuum. Last edited by knc1; 04-01-2016 at 10:07 PM. |
|
![]() |
![]() |
![]() |
#9 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
@Phooey ...
The 'time in state' conversion to hh:mm:ss figures are off by an order of magnitude. (The original units are 1/100 of a second, not 1/1000) Which at the moment does not matter, since we are only interested in the High speed:Low speed ratio of the original values. Fixed in git and will be fixed in the next release. Ref: https://www.kernel.org/doc/Documenta...freq-stats.txt Last edited by knc1; 04-02-2016 at 11:49 AM. |
![]() |
![]() |
![]() |
#10 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 875
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
|
Quote:
Dave |
|
![]() |
![]() |
![]() |
#11 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Yours will be the first report I have seen, other than on my own devices.
|
![]() |
![]() |
![]() |
#12 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29
Karma: 20994
Join Date: Mar 2013
Device: K11
|
Well ello guvna!
Sorry, I just had to. This looks really neat though. Trying it now ![]() |
![]() |
![]() |
![]() |
#13 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 875
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
|
Quote:
Instead of getting the menu, I got an error message about an improperly closed document and a restart of some kind. When the home screen was back I again opened KUAL. This time I got the menu and your extension was there. I went into the CPU Control menu and hit enter on the CPU Report button. A message appeared refreshing menu, please wait and then I was back on the home screen. No new document listed, so I guess something went boom. I have myts installed, so if I can try something from the command line to get you more please let me know. Dave |
|
![]() |
![]() |
![]() |
#14 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
I'll update the KUAL-system base files to account for that (RSN). I need to blow the dust off my K2, K3, and K4 devices first (and re-charge them). The governor select commands will still work - they are shell scripts. |
|
![]() |
![]() |
![]() |
#15 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 875
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
|
I just installed the tool on my KT2 and the cpu_report is attached.
Dave |
![]() |
![]() |
![]() |
Tags |
cpu governor |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
is there any KUAL extension development guide? | fangzi | Kindle Developer's Corner | 2 | 01-02-2014 10:11 AM |
Kual Menu development - Bitbucket or Github? Your thoughts | eureka | Kindle Developer's Corner | 28 | 11-01-2013 09:18 AM |
Deleted kual by accident from home menu, proper way to get it back? | rukawa11 | Kindle Developer's Corner | 2 | 09-21-2013 04:09 PM |