These are chat archives for abranson/rockpool

6th
Jul 2016
ruff
@rufferson
Jul 06 2016 16:24
@abranson may I ask for some insiders info? :) Still cannot pinpoint higher battery usage to anything particular. Howver it's clearly related to the timeline. Bcz when the daemon is stopped - phone can last for days. With daemon and timeline on - it may hang for a day and then discharge for couple hours. This discharge may happen sooner. But when it happens - CPU is still near 0. So need some inside info on how to power-profile the app
suspect it may have something to do with NAM and persistent connections - maybe they keep wakelocks
ruff
@rufferson
Jul 06 2016 16:29
I've found already one obvious issue - NAM timeout is 40sec so with timeline sync happening more frequently - in absence of inet connections are piled up preventing device to sleep. so that is fixed by lowering sync freq to 1min (this was that major drain issue in absence of inet) but still sometimes something similar happens. Moreover when it happens - stopping the daemon doesn't fix the drain. Maybe it's that combo of caldav+timeline
Andrew Branson
@abranson
Jul 06 2016 20:05
That's on my
list of thing to find out about :) They've got some lovely graphs for things like that.
I have a tintin yes.
Andrew Branson
@abranson
Jul 06 2016 20:11
Sorry I've been quiet. In darkest Scotland with really bad internets...
ruff
@rufferson
Jul 06 2016 20:11
so re langpack - you need to have exact hw/sw match and to use stm32 crc
then you need to use sepcific filename - lang
once both are fullfilled - lang is ok
latest WIP commit adds GUI to set language
so we're now good in that
Andrew Branson
@abranson
Jul 06 2016 20:14
Do they provide the crc anywhere? i didn't see it in the index
and what was the upload type?
ruff
@rufferson
Jul 06 2016 20:15
I've been in Inveraray last year - i liked that place. inet though was a crap
no
need to calc crc
so i implemented it
Andrew Branson
@abranson
Jul 06 2016 20:15
ok, hoped not. kind of silly.
ruff
@rufferson
Jul 06 2016 20:16
and now calculate crc on the fly while uploading the file if a) slot is not -1 b) appId==uploadType
Andrew Branson
@abranson
Jul 06 2016 20:16
am in the trossachs. actually no gsm coverage at all. wifi in hotel is really overloaded.
ruff
@rufferson
Jul 06 2016 20:17
this is basically because is slot is not -1 then it's not app but system hence appId is unused, and appId is 0 normally on system uploads. so i'm hijacking that fact
Andrew Branson
@abranson
Jul 06 2016 20:18
wow
how did you find that out?
ruff
@rufferson
Jul 06 2016 20:18
no that i figured just from the code, what is important is that stm32crc
Andrew Branson
@abranson
Jul 06 2016 20:19
i see
ruff
@rufferson
Jul 06 2016 20:19
what I figured from hcidump is that file name should be "lang"
bcz uploading file did nothing, even though upload was acked
so i went through android doing hcidump - and there i saw that name of the file is lang. uploading file with that name did the trick
also on android i captured that lp.getpebble.com server which provides official language packs for all official platform
so we dno't need to tinker with pebblebits and other custom resources
so new GUI does exactly the same now what official android app is doing
ruff
@rufferson
Jul 06 2016 20:26
upload type is file btw. file, to bank 0, with name "lang" and with stm32crc