Open gaich opened 6 years ago
Unfortunately there is no way to move issues between projects I know of so you may want to re-add it here
Using an MTK phone running Nougah, 214 BBS test version. It seems that statistics regarding alarms and network is wrong. Instead of showing custom-current is probably uses raw stats. And there`s no CPU data.
BetterBatteryStats-2018-02-08_063051513.txt
This is raw stats:
And these are GSAM Battery monitor screenshots, I think this data may be correct:
Apps in general:
Awake time:
Alarms:
Network:
KWL:
Amplify data for this period:
Some system files, if they are useful: 1.ZIP
Some more - I have disabled some unactive services and receivers in BBS, but I have tried to turn them back - no result.
Please, take a look when you have some time. It is not urgent, just interesting, what is going on. Thank you.
Last beta seems to display right statistics. The refreshing time is instant, instead of previous versions, maybe this was the reason? But still without CPU. And why is it showing KWL using API, I didn`t chek this in settings? BetterBatteryStats-2018-02-18_074122403.txt
KWL is automatically going back to API when the wakelock files can not be read from the file-system. In regards to CPU, could you please provide a logcat? The dumpfile shows that there are samples so I can only guess there is a problem in computing the difference between "current" and "custom"
Will this be enough or should I make it after an idle period, like the dump: logcat-2018-02-18_142703370.txt dmesg-2018-02-18_142703452.txt
I don't seen anything in that log. Please turn on debug logging in the advanced prefs and go to raw cpu states first, then on the normal screen.
You can check if that was captured in the logcat by searching for:
Processing CPU States from
<-- if this appears the event was captured
These words are present here: logcat-2018-02-18_155252454.txt
Interesting, the log shows:
02-18 15:52:52.418 D/StatsProvider( 6938): Processing CPU States from ref_custom to ref_current
02-18 15:52:52.418 D/StatsProvider( 6938): Reference used: Reference ref_custom created 2 d 23 h 56 m 2 s (Wl: 27 elements; KWl: 46elements; NetS: 54 elements; Alrm: 13 elements; Proc: 289 elements; Oth: 19 elements; Sensors: 7 elements; 7 elements)
02-18 15:52:52.419 D/StatsProvider( 6938): It is now 2018-02-18 15:52:52
02-18 15:52:52.419 D/StatsProvider( 6938): Substracting []
02-18 15:52:52.419 D/StatsProvider( 6938): from []
Note the Substracting [] from []
. That basically says there is no data to process.
As the data comes from /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state
could you please check if this file exists and if this file is world readable?
In /sys/devices/system/cpu/cpu0/cpufreq there are no subfolders at all and no such files.
It is in /sys/devices/system/cpu/cpufreq:
Interesting. Seems you just delivered the solution to add the new feature from #192 :) Will do in 2.4
Hi, Sven! I have missed the repository and put an issue to asksven/BetterBatteryStats-Knowledge-Base. Is it possible to transfer it here, or should I open another one?