![]() |
#16 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
I have a 'rain-day' or two here (as an excuse not to do spring-time outdoor work) -
so I will take a look at a comparison of the two - see if they are making any changes or if their build system is just cranking out a new kernel build with each "make release" call. = = = = Take a look at 'top' in 5.7.3 - See what the topmost (cpu hog) process is now. Note: My report earlier in this thread was taken over the serial port - - BUT sshd and telnetd where running (although without any connection to anything). So your report taken over ssh (USBnetworking) should be comparable. Note 2: @NiLuJe: Any reason you can think of why cvm is running wild when sshd, telnetd is 'up'? Shouldn't they just be passively waiting for a connection, with no effect on cvm at all? Last edited by knc1; 03-09-2016 at 06:48 AM. |
![]() |
![]() |
![]() |
#17 |
Member
![]() Posts: 16
Karma: 10
Join Date: Feb 2016
Device: Kindle KT2
|
For the moment I cannot run "top" via ssh nor kterm ('xterm': unknown terminal type.) And if i try to run top via screen (locally/xterm), I get "unknown vt100 type".
So, for now the only option is to run top from the old(er) xterm kual extension. Is there any other easy method for screenprints besides my camera? Oh, and the batterry indicator (bar) is below 50%. Would de-registering / fake-registering help reducing framework/cvm tasks ? I tried that (de-register) after the 5.7.2.1 update and coupled with Airplane mode, seemed to reduce power consumption. But I would use it as a last and temporary resort. Last edited by SlashMaster; 03-09-2016 at 10:58 AM. Reason: my smartphone's batterry lasts longer |
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Simultaniously touch two diagonal corners == screenprint. But that was good enough - it showed the same thing I saw on my 5.6.1.1 I just returned from morning errands, for Lunch I'll look at those two config files. A note on what you can't see (without a serial port connection) - - With sshd and telnetd 'down' and the USB storage exported over the USB cable - - cvm isn't even running (it isn't on the process list - only upstart is mentioned as waiting to start cvm). . . . AND everything about the 'top' display looks like an idle device (I.E: as expected). So if the problem is in something that cvm is running - that means somewhere in the closed source (Java) part of the system. |
|
![]() |
![]() |
![]() |
#19 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Hmm...
Some more debug hints - not sure how they will fit into the overall troubleshooting yet. Devices that are too slow to resume or suspend: http://lkml.iu.edu/hypermail/linux/k...4.0/02268.html A quote from: https://community.freescale.com/docs/DOC-98327 (Yes, Android is run by the Linux kernel.)
Also, this may be of use: Code:
[root@kindle power]# cat pm_test [none] core processors platform devices freezer Last edited by knc1; 03-09-2016 at 07:45 PM. |
![]() |
![]() |
![]() |
#20 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Hmm...
Code:
[root@kindle power]# cat state standby mem [root@kindle power]# echo -n standby > state A quick tap of the power button wakes it up. Code:
[19426.780764] PM: Syncing filesystems ... done. [19426.827399] PM: Preparing system for standby sleep [19426.830041] Freezing user space processes ... (elapsed 0.02 seconds) done. [19426.853048] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done. [19426.873065] PM: Entering standby sleep [19426.873074] Suspending console(s) (use no_console_suspend to debug) [19426.893764] udc suspend begins [19426.893986] USB Gadget suspend ends [19426.894128] KERNEL: I pmic:fg suspend battinfo:current=0mA, volt=4205mV, capav=100%, mAh=1467mAh: [19426.913705] add wake up source irq 105 [19426.914966] add wake up source irq 51 [19426.915025] PM: suspend of devices complete after 41.500 msecs [19426.915401] PM: late suspend of devices complete after 0.359 msecs # tap power button - [19426.920381] PM: early resume of devices complete after 0.187 msecs [19426.920523] remove wake up source irq 51 [19427.122463] remove wake up source irq 105 [19427.142687] KERNEL: I pmic:fg resume battinfo:current=0mA, volt=4206mV, capav=100%, mAh=1466mAh: [19427.145863] USB Gadget resume begins [19427.145872] fsl_udc_resume, Wait for wakeup thread finishes [19427.149345] USB Gadget resume ends [19427.151052] KERNEL: I pmic:onkey::wario button online event [19427.168286] PM: resume of devices complete after 247.810 msecs [19427.168507] PM: Finishing wakeup. [19427.168515] Restarting tasks ... done. [19427.188456] mmc1: mmc_rescan_try_freq: trying to init card at 400000 Hz [19427.304414] mmc1: mmc_rescan_try_freq: trying to init card at 300000 Hz [19427.400930] mmc1: mmc_rescan_try_freq: trying to init card at 200000 Hz [19427.515914] mmc1: mmc_rescan_try_freq: trying to init card at 100000 Hz [19427.584262] g_file_storage gadget: high speed config #1 |
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Now on the other hand:
Code:
[root@kindle power]# cat state standby mem [root@kindle power]# echo -n mem > state It leaves the screen alone. This is the end step in a normal 'suspend' operation (see below) which leaves whatever was on the screen. Last edited by knc1; 03-10-2016 at 05:34 AM. |
![]() |
![]() |
![]() |
#22 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Another point of interest -
I set the PM threshold to 5000 microseconds (default is 50000 when in 'off' state) - Removed the USB cable (which was generating (as it is supposed to) that wake_lock) - Let it go to sleep last night - Woke it this morning with the following found in the kernel's message buffer: Code:
[root@kindle ksm]# dmesg [24135.398799] PM: Syncing filesystems ... done. [24135.417004] PM: Preparing system for mem sleep [24135.419446] Freezing user space processes ... (elapsed 0.01 seconds) done. [24135.434185] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done. [24135.454195] PM: Entering mem sleep [24135.454203] Suspending console(s) (use no_console_suspend to debug) [24135.475077] udc suspend begins [24135.475619] USB Gadget suspend ends [24135.475761] KERNEL: I pmic:fg suspend battinfo:current=-164mA, volt=4129mV, capav=094%, mAh=1377mAh: [24135.494984] PM: device platform:max77696-rtc.0 suspend too slow, it takes 13.112 msecs [24135.495018] add wake up source irq 105 [24135.497787] add wake up source irq 51 [24135.497845] PM: suspend of devices complete after 43.186 msecs [24135.498218] PM: late suspend of devices complete after 0.355 msecs [24135.505188] PM: early resume of devices complete after 0.184 msecs [24135.505330] remove wake up source irq 51 [24135.758247] PM: device platform:sdhci-esdhc-imx.1 resume too slow, it takes 252.819 msecs [24135.758802] remove wake up source irq 105 [24135.759833] KERNEL: I pmic:onkey::wario button online event [24135.781557] PM: device platform:max77696-rtc.0 resume too slow, it takes 22.224 msecs [24135.787579] KERNEL: I pmic:fg resume battinfo:current=-2mA, volt=4127mV, capav=093%, mAh=1298mAh: [24135.791579] PM: device platform:max77696-battery.0 resume too slow, it takes 6.527 msecs [24135.791686] USB Gadget resume begins [24135.791693] fsl_udc_resume, Wait for wakeup thread finishes [24135.811652] dr_controller_run: udc enter low power mode [24135.811668] USB Gadget resume ends [24135.811679] PM: device platform:fsl-usb2-udc resume too slow, it takes 19.990 msecs [24135.831647] PM: resume of devices complete after 326.365 msecs [24135.831869] PM: Finishing wakeup. [24135.831876] Restarting tasks ... done. [24135.851612] mmc1: mmc_rescan_try_freq: trying to init card at 400000 Hz [24135.993329] mmc1: mmc_rescan_try_freq: trying to init card at 300000 Hz [24136.160431] mmc1: mmc_rescan_try_freq: trying to init card at 200000 Hz [24136.286284] mmc1: mmc_rescan_try_freq: trying to init card at 100000 Hz [24149.529017] KERNEL: I pmic:charger chgina::charger connected [24149.550688] otg udc vbus rising wakeup [24149.551417] try_wake_up_udc: udc out low power mode [24150.179060] g_file_storage gadget: high speed config #1 ![]() # 95 95 Last edited by knc1; 03-10-2016 at 05:28 AM. |
![]() |
![]() |
![]() |
#23 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Hmm....
Could this 'problem' be user induced? I.E: Leave USB cable connected to PC - The Kindle will **look as if it powered down** (screen saver showing, front light off) but is still running - The PC to which it is connected goes to sleep (turning off USB power to running Kindle). Since the USB cable was not physically removed to generate a 'cable removed' event - the Kindle will never enter 'suspend' mode. Note in the above message listing - such a situation would leave the Kindle drawing 80x the battery current as a normal suspend state would. |
![]() |
![]() |
![]() |
#24 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
^ ^ ^ ^ But 'user induced' would not account for cvm sucking up 98% of cpu while the system is supposedly idle ^ ^ ^ ^
Code:
[root@kindle upstart]# /usr/bin/dump-stack `pidof cvm` system: I dump-stack:dumpstack:cvm:pid=20321:begin native threads ============================== Error while reading shared library symbols: Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /lib/libpthread.so.0] Error while reading shared library symbols: Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /lib/libgcc_s.so.1] warning: Lowest section in /usr/lib/libicudata.so.50 is .gnu.hash at 000000b4 Error while reading shared library symbols: Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /usr/lib/lua/libluasqlite3.] Error while reading shared library symbols: Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /lib/libpthread.so.0] Error while reading shared library symbols: Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /lib/libgcc_s.so.1] Error while reading shared library symbols: Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /usr/lib/lua/libluasqlite3.] system: I dump-stack:dumpstack:cvm:pid=20321:end native threads ================================ system: I dump-stack:dumpstack:cvm:pid=20321:begin proc maps ================================ system: I dump-stack:dumpstack:cvm:pid=20321:end proc maps ================================ system: I tinyrot:def::Rotating file /var/log/messages with max size 256 /usr/sbin/tinyrot : Signaling syslog system: I tinyrot:def::Rotating file /var/log/netlog with max size 256 system: I tinyrot:def::No file to rotate: /var/log/netlog system: I tinyrot:def::Rotating file /var/log/odotlite with max size 2048 system: I tinyrot:def::No file to rotate: /var/log/odotlite system: I tinyrot:def::Rotating file /var/log/wpa_supplicant with max size 128 system: I tinyrot:def::No file to rotate: /var/log/wpa_supplicant system: I tinyrot:def::Rotating file /var/log/metrics_generic with max size 64 system: I tinyrot:def::No file to rotate: /var/log/metrics_generic system: I tinyrot:def::Rotating file /var/log/metrics_high_priority with max size 64 system: I loginfo:devhw:boardID=0670:muscat device - rev 2 system: I loginfo:devsworig::Original System Software Version: 033-juno_6011_muscat_wario-263413 Wed Apr 15 08:15:02 PDT 2015 com.lab126.eink.muscat.os system: I loginfo:devswota::OTA Kindle 5.6.1.1 (~~otaVersion~~) com.lab126.wan failed to access property localTimeOffset (0x3 lipcErrNoSuchSource) system: W loginfo:ltofailwandoff:cannot retrieve local time offset - wand not running /usr/sbin/tinyrot : Signaling syslog Someone use the above dumpstack command to see if 5.7.x (or whatever your running) is any better. those are back-ticks, not single quotes in the command. next question? ![]() Last edited by knc1; 03-10-2016 at 10:01 AM. |
![]() |
![]() |
![]() |
#25 |
Member
![]() Posts: 16
Karma: 10
Join Date: Feb 2016
Device: Kindle KT2
|
Here is my dumpstack:
Code:
[root@kindle vasi]# /usr/bin/dump-stack `pidof cvm` system: I dump-stack:dumpstack:cvm:pid=4508:begin native threads ============================== Error while reading shared library symbols: Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /lib/libpthread.so.0] Error while reading shared library symbols: Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /lib/libgcc_s.so.1] warning: Lowest section in /usr/lib/libicudata.so.50 is .gnu.hash at 000000b4 Error while reading shared library symbols: Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /usr/lib/libdevice-cap.so] Error while reading shared library symbols: Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /lib/libpthread.so.0] Error while reading shared library symbols: Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /lib/libgcc_s.so.1] Error while reading shared library symbols: Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /usr/lib/libdevice-cap.so] system: I dump-stack:dumpstack:cvm:pid=4508:end native threads ================================ system: I dump-stack:dumpstack:cvm:pid=4508:begin proc maps ================================ system: I dump-stack:dumpstack:cvm:pid=4508:end proc maps ================================ system: I tinyrot:def::Rotating file /var/log/messages with max size 256 /usr/sbin/tinyrot : Signaling syslog system: I tinyrot:def::Rotating file /var/log/netlog with max size 256 /usr/sbin/tinyrot : Signaling syslog system: I tinyrot:def::Rotating file /var/log/odotlite with max size 2048 system: I tinyrot:def::No file to rotate: /var/log/odotlite system: I tinyrot:def::Rotating file /var/log/wpa_supplicant with max size 128 /usr/sbin/tinyrot : Signaling syslog system: I tinyrot:def::Rotating file /var/log/metrics_generic with max size 64 system: I tinyrot:def::Max file size hit 2 on /var/local/log/metrics_generic_00000048_20160310143004.gz system: I loginfo:devhw:boardID=0620:bourbon device - rev 6 system: I loginfo:devsworig::Original System Software Version: 015-<private>-289939 Fri Feb 26 01:55:39 PST 2016 system: I loginfo:devswota::OTA Kindle 5.7.3 (~~otaVersion~~) com.lab126.wan failed to access property localTimeOffset (0x3 lipcErrNoSuchSource) system: W loginfo:ltofailwandoff:cannot retrieve local time offset - wand not running /usr/sbin/tinyrot : Signaling syslog system: I tinyrot:def::Rotating file /var/log/metrics_high_priority with max size 64 system: I loginfo:devhw:boardID=0620:bourbon device - rev 6 system: I loginfo:devsworig::Original System Software Version: 015-<private>-289939 Fri Feb 26 01:55:39 PST 2016 system: I loginfo:devswota::OTA Kindle 5.7.3 (~~otaVersion~~) com.lab126.wan failed to access property localTimeOffset (0x3 lipcErrNoSuchSource) system: W loginfo:ltofailwandoff:cannot retrieve local time offset - wand not running /usr/sbin/tinyrot : Signaling syslog |
![]() |
![]() |
![]() |
#26 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
durn, but that looks familar.
![]() Since my posting, it has occured to me that perhaps that dumpstack utility is the only thing that got mis-built (and its output is meaningless). I have also been digging around in /etc/upstart and reading the scripts. There are quite a few debugging related things mentioned - I wish I knew which one would provide the answer. ![]() You can enter the following command without any options and it will report on what options it accepts. But cvm continues to hog the cpu (and the SoC still is drawing almost the max. current it can) - Which means one of these services is broke: ![]() Code:
[root@kindle upstart]# lipc-probe -l com.lab126.todo com.lab126.amazonRegistrationService com.lab126.otav1 com.lab126.kindleStatusService com.lab126.winmgr.ligl com.lab126.booklet com.lab126.powerd com.lab126.kaf com.lab126.winmgr com.lab126.deviced com.lab126.grokservice com.amazon.ebook.util.net.certmanutilities com.lab126.booklet.home com.lab126.odot com.lab126.freetime com.lab126.transferService com.lab126.JournalingService com.lab126.adManager com.lab126.LocalizationServices com.lab126.pmond com.lab126.DeviceAuthenticationService com.lab126.reader.readingtimer com.lab126.blanket com.lab126.archive com.lab126.system com.lab126.certmand com.amazon.kindle.inputMethod com.lab126.dsus com.lab126.indexer com.lab126.extractor.java com.lab126.scanner com.lab126.transfer com.lab126.dynconfig com.lab126.cmd com.lab126.todo.kaf com.lab126.refreshCache com.lab126.keyboard com.lab126.readingstreams com.lab126.IdentityService com.lab126.stored com.lab126.pillow com.lab126.demoservice com.lab126.dpm.apps com.lab126.wifid com.lab126.mobi8 com.lab126.lxinit com.lab126.appmgrd com.lab126.devicemetrics com.lab126.phd com.lab126.adRotationManager com.lab126.sph com.lab126.volumd com.lab126.bookcacher com.lab126.tphv3 com.lab126.instantSearch com.lab126.coverArtService com.lab126.ccat com.lab126.contentpackd com.lab126.store com.lab126.linux.arm.connectionutilities com.lab126.reader.languagelayer com.lab126.household com.lab126.dpmManager com.lab126.KindleIdentity com.lab126.ota com.lab126.sharing com.lab126.reader.qa com.lab126.cvm com.lab126.merchant org.freedesktop.DBus Another example of the command: Code:
[root@kindle upstart]# lipc-probe -v com.lab126.cvm rw Str logMask [0x0fff0000] rw Str logLevel [Current log level=info (Possible transient levels: all, perf, debug[9-0], info, warn, error, crit, non) (Possible persistent levels: p_all, p_perf, p_debug[0-9], p_info, p_warn, p_err] Code:
[root@kindle upstart]# lipc-probe -v com.lab126.ota w Str refreshCache r Int isFirstBootAfterUpdate [0] r Str getUpdateVersion [0] r Int isUpdateAvailable [0] w Int startUpdate rw Str logLevel [Current log level=info (Possible transient levels: all, perf, debug[9-0], info, warn, error, crit, non) (Possible persistent levels: p_all, p_perf, p_debug[0-9], p_info, p_warn, p_err] w Int scanUserstoreForUpdates rw Str logMask [0x0fff0000] r Str isUpdatePending [] rw Has transferProgressNotification [*NOT SHOWN*] Last edited by knc1; 03-10-2016 at 04:31 PM. |
![]() |
![]() |
![]() |
#27 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@knc1: Which thread is hogging the cpu? (htop has a thread view if the bundled busybox ps sucks).
I'm also not sure CPU_IDLE is applicable on ARM/the freescale Kernel. I think the equivalent for mxc chips is properly handled somewhere else. Last edited by NiLuJe; 03-11-2016 at 06:21 AM. |
![]() |
![]() |
![]() |
#28 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Unable to comprehend: "if the bundled ps six"
|
![]() |
![]() |
![]() |
#29 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Whoops, Apple's autocorrect strikes again ;p. Edited
![]() |
![]() |
![]() |
![]() |
#30 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
OK, that I can make sense of.
![]() I can see no problem with the display of CPU%, either the total summary or the indiviual listings. It follows the battery current draw from -168ma (98.8%) to -2ma (less than 0.0%). Which is reasonable and about the only thing that is reasonable about this problem. But I will try to get 'per cvm thread' numbers also. For the non-hardware guru readers: The SoC is built with CMOS logic. A characteristic of CMOS logic is that the current draw increases with (both) the frequency the logic devices switch states and the number of logic devices switching states. Plus - The problem is that the device is using too much battery power. The comments about cpu load are just side-effects of whatever the real problem is. And a real far out comment: Keep in mind the SoC is no longer "Freescale" but "NXD" - The new company owners may have let a manufacturing error slip into the process of building the i.MX6 devices. The few people reporting problems may just have Kindles built with the floor sweepings of the chip foundry (higher chip construction error rates == lowered production costs). Last edited by knc1; 03-11-2016 at 06:51 AM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle PW2 error says Battery Invalid: -22 | adonis | Kindle Developer's Corner | 29 | 03-03-2025 07:51 PM |
Kindle Keyboard - Battery issues | kimkindle | Kindle Developer's Corner | 6 | 04-29-2012 02:29 AM |
Battery issues since updating to 2.5.8 Kindle DX | bokolobs | Amazon Kindle | 7 | 03-25-2011 05:48 PM |
Kindle 3 - Battery Issues | abhiroopb | Amazon Kindle | 16 | 10-28-2010 11:12 AM |
Kindle 1 battery issues, freezing | Sydney's Mom | Amazon Kindle | 0 | 12-15-2009 06:08 PM |