libera/#maemo-leste/ Thursday, 2022-09-29

buZzon a vanilla config?00:05
buZzoh. 10mA more than 30mA ?00:05
buZzfreemangordon: yes it does!00:05
buZzuntil the next missing mime mediatype, i bet ;)00:06
tmlindhmm no idea what could have caused increased power consumption, don't think i've seen that with my kernel tests07:46
freemangordonI will revert to the kernel before the patches to see if I get the same here08:12
freemangordonwith latest I have POWER_SUPPLY_POWER_AVG=12561208:13
freemangordonfor POWER_SUPPLY_CURRENT_AVG=3245808:13
freemangordontmlind: I see serial kernel threads in top with the patches08:19
tmlindfreemangordon: hmm i wonder which patch could cause that08:26
freemangordontmlind: wait, I am still not convinced we have an issue08:26
freemangordonfor how long I shall not touch the device in order to assume it has proper average power calculated?08:27
tmlindi'd check once a minute if comparing08:29
freemangordonok08:29
freemangordonso far I'd say it is better with the patches08:30
freemangordonhmm. lets put accounts offline and set modest to check every 30 minutes08:32
freemangordonwithout patches the lowest I got is:08:36
freemangordonPOWER_SUPPLY_CURRENT_AVG=3117708:36
freemangordonPOWER_SUPPLY_POWER_AVG=11629008:36
freemangordonbut most of the time idle avg current stays between 40-50mA08:37
freemangordontmlind: I see 2 more serial interrupts in /proc/interrupts with the patches, I guess that's normal08:45
freemangordonwhat I don;t think is normal is having irq/112-48020000.serial:wakeup and irq/124-4806a000.serial:wakeup visible in top all the time08:46
buZzis this with the kernel now in -devel?08:49
freemangordonyes08:49
buZzi'm not seeing those in top, at least not in a fully booted hildon?08:50
freemangordonmaybe serial gpios are not configured properly so they generate fake interrupts?08:50
freemangordonOTOH I don;t see number of interrups to increase08:53
freemangordonwithout patches I have average of the average power consumption over a period of 5 minutes (removing spikes) of 142.8mW09:00
freemangordonwith patches, under same conditions, it is 139.209:01
freemangordonso I'd say there is no difference09:01
freemangordontmlind: still, is it normal that I see serial irqs here https://pastebin.com/rpUuKUEv?09:03
freemangordonhttps://pastebin.com/rpUuKUEv09:03
tmlindyes those are the threaded interrupt handlers for the padconf wakeup events09:07
freemangordonyes, but I don;t see them without patches09:09
freemangordonalso, I have nothing connected to the serial, why are those active?09:09
tmlindthose are always active when a device is runtime suspended09:12
freemangordonok09:16
freemangordonenabling online accounts (no iphb) increases power usage with ~40 mW09:27
uvos40mW is really terrible on d409:35
uvosi get more like 25 ususally09:35
uvoser mA09:35
uvos"<freemangordon> but most of the time idle avg current stays between 40-50mA"09:36
uvosbut mW mesurements are more usefull09:37
uvosas mA changes quite a bit with battery voltage09:37
uvos(as you would expect)09:37
freemangordonyes, that's why I measured power09:38
uvos__idk what was going on yesterday11:36
uvos__but its ideling at 90mW here rn11:36
uvos__so i gues the yesterdays excessive power usage was unrelated to the kernel patches. probubly11:37
freemangordonmaybe modem related11:37
uvos__it dose sometimes idle at 120mW with out explanation (allways has, only the xt875 dosent have that problem)11:38
uvos__but 150mW from yesterday was farily excessive+11:38
uvos__freemangordon: maybe, no idea11:38
freemangordonnow testing if iphb makes any difference11:39
Wizzupah, cool11:41
freemangordonught, gabble is compiled without iphb support :(11:43
Wizzuphey that's interesting news @ pvrsgx mail12:47
WizzupI wonder if they are fully aware of the X ddx that we use/have12:48
buZzWizzup: https://leste.maemo.org/Extras/MStarDict was what you had in mind for it, right? :)12:49
buZzi'm not sure why a application has a device, i thought they were all pretty portable?12:49
uvos__Wizzup: what email are you talking about?12:49
uvos__buZz: some applications might need some specific hw feature, think compass usage excluding n900 or something12:53
uvos__but yeah its probubly not nessecary to fill that in usually12:54
buZzright, but most do not i guess? should i just remove the device tag?12:54
Wizzupuvos__: ah I thought it went to the list but didn't, I can fwd it to you12:54
WizzupbuZz: looks good, maybe mention mor explicitly where the dictionaries are hosted12:55
buZzWizzup: okidoki12:55
buZzbut there's many many many sources of dicts12:55
buZzeven inside devuan12:55
buZzstardict-english-czech/stable,stable 20171101-1 all12:56
buZzstardict-german-czech/stable,stable 20171101-1 all12:56
Wizzuphmmm, ok, it isn't clear to me that those can be used from the page12:57
WizzupI guess it's under the "Also" ?12:57
buZzhow's this?12:57
uvos__Wizzup: great12:57
buZzif traffic gets nuts for those dicts i could move them to a leste server or whatever12:58
buZzall dictionaries on that mirror that are linked in the .htmls are free to use/pd/gpl12:58
buZzbut there's some unlinked inside that are copyrighted i think?12:58
buZzremoving the device tag works well btw, i dont think this needs any13:00
WizzupbuZz: I made some changes13:00
WizzupCan you elaborate some on espeak as well?13:00
buZzyez13:00
Wizzupalso, maybe we ought to have a 'mstardict-alldict' pkg or something13:01
Wizzupunless it's very very large13:01
Wizzup:D13:01
buZzwell, there's no authority issueing stardict format dictionaries13:01
buZzthat stardict-dic mirror is 5.8GB13:02
WizzupbuZz: is it distconv or dictconv btw13:02
buZzdictconv13:02
Wizzupwiki says distconv13:02
buZzdangit :P13:02
freemangordonWizzup: please reply to that mail13:09
freemangordonif we can convince andrew to help with pvr EXA on our x driver (HW accell compositing) that would be great13:10
buZzWizzup: i also think this program is more suitable for a 'few' dictionaries and not the whole mass of human knowledge :P13:10
freemangordonas we already have everything else FOSS13:11
freemangordonalso, you may mention this https://github.com/maemo-leste/sgx-ddk-um/tree/master/dbm13:11
freemangordonand mesa driver we have13:11
buZzWizzup: i elaborated on it and added a preferences screenshot too13:11
Wizzupfreemangordon: my understanding is that he'd make builds mostly13:20
Wizzupfreemangordon: ok, I can try, but I believe you know a -lot- more about this than I do13:20
freemangordonI will join to the party later on if questions arise13:21
WizzupI'm afraid I might not be able to add enough context, but ok, I can try...13:21
freemangordonok, if you think it will be better, I will reply13:21
WizzupI think so, my only thought is that it'd be great if we know what builds we could use from him, and that over-asking might not be productive atm (but who knows, I don't know what the other 'good news' is)13:22
freemangordonok13:22
freemangordonwill do13:22
WizzupbuZz: these espeak voices, where would they be placed, also in MyDocs/mstardict ?13:24
buZzWizzup: updated :)13:25
WizzupbuZz: btw, the 'website' is set to a git repo, and the leste repo to another, I think they're one and the same so we can probably just link to our leste repo13:25
Wizzupif there's no website that is13:25
buZzthere's no website, alright13:25
Wizzupright13:25
buZzthe repo linked is the upstream where norayr was doing their dev work13:25
Wizzupmaybe the wayback link can be the website13:26
WizzupbuZz: sure but it'll be out of date assuming norayr submits to the leste repo going forward13:26
buZzthats for stardict, maybe the maemo.org thread?13:26
Wizzupmaybe, also not ideal imho, maybe just don't have one if there's no clear point13:27
buZzalright, removed :)13:28
buZzi explained some about the espeak now anyway13:28
buZzthe red is so ugly on its default colors :P maybe thats ugly enough to get me to edit it13:29
buZz:D13:29
Wizzupheh13:30
buZzi think its hardcoded in libwrapper.cpp ? :/13:33
norayrhey i am here, let me soo what you are talking about.13:37
buZznorayr: i wrote this ; https://leste.maemo.org/Extras/MStarDict13:38
buZzand wizzup some13:38
norayrwow thank you!13:39
norayrfeel free to make any changes to the repo in maemo-extras.13:41
norayrdid i leave somewhere a link to norayr/mstardict? it's not important anymore, you can delete it.13:41
norayrand i am not planning much work on it. i was just able to port/package it, bring to life with some changes, not even sure that good changes.13:42
norayrand i use it, since i use stardict dictionaries, and i have my own dictionaries converted from pdfs or other sources, and it is convenient.13:42
norayrso i would be happy if anyone does something to it.13:43
buZzhehe13:43
norayrlet's say i have no idea what to do with that on click function13:43
buZzwell, i'm annoyed by the red, not sure where it's originating from13:43
norayrwhich tries to execute nokia browser.13:43
buZzyeah its a html rendering i think13:43
norayrred?13:43
norayrah!13:43
norayryeah feel free to push to the repo!13:44
buZzi think it should somehow know to link to itself , but it doesnt13:44
buZzhehe , well, if i can find it ;)13:44
norayryes true!13:44
buZzthis red ; https://leste.maemo.org/images/0/0d/MStarDict_Itemview.png13:44
norayryou said once!13:44
norayrwait13:44
norayron this screenshot13:44
buZzsi?13:44
norayri see the word is red13:45
buZzindeed13:45
norayrbut it shoud non link to anything.13:45
norayri don't see links.13:45
buZzcorrect13:45
buZzthis was just a example of 'a item' from 'a dictionary'13:45
buZzbut, the item title is always red13:45
buZzregardless of colors of theme, etc13:45
norayryeah... i think it's possible to change it.13:45
norayrat least to not be red, but have the same color as the rest of the text.13:46
norayri need a flickr app. will try to bring one to life. if it doesn't work, i'll try to write one by using flickurl.13:47
norayri remember one app for maemo was in qt and was very slow on n900.13:48
norayrextremely slow.13:48
norayri had the impression that qt is slower on n900.13:48
norayrdid anyone have such an impression?13:48
uvosits pretty much guarnteed qt4+ / gtk3+ are slower than gtk213:50
uvosjust beacuse how they render themselves13:50
norayrdoesn't gtk render itself via x?13:50
Wizzupqt5 scrolls smoother than gtk2 for sure13:50
uvos(potential for improved hw accel asside)13:50
Wizzupright13:50
bencohnorayr: I'd say that qt was slower than gtk on n900 as well yeah14:21
freemangordonsomething werid happened to my device, now it idles @ 400 mW14:53
Wizzupfreemangordon: some drivers loaded?15:12
freemangordonnothing changed IIUC15:14
Wizzupmaybe run omapconf?15:14
freemangordonit shows the same15:15
freemangordonI installed powertop, unfortunately it does not help much15:15
freemangordonogh15:15
freemangordonwhat the?15:15
WizzupI had a problem with a droid that after I had it on psu for too long, it started drawing 16mA when turned off15:15
Wizzuplab psu*15:16
Wizzupwas a hw problem I bet15:16
freemangordonok, I switched status from offline to online and back and it fixed the issue15:16
freemangordonthis does not make sense :)15:16
freemangordonhmmm15:17
freemangordonok, it idles @ 120 mW now15:17
freemangordonnow I can test iphb15:18
Wizzupyeah there is a problem where the modem doesn't idle in some states I think15:19
freemangordonI am connected through wifi15:20
freemangordonah, I meat account status15:20
freemangordon*meant15:20
freemangordonnot flight mode15:20
freemangordonok, without iphb and with 2 jabber accounts it idles @ ~155mW15:23
freemangordonWizzup: BTW, can we remove obsolete linux headers from the repo?15:26
Wizzupsure, if you want, just let me know which exact ones you want removed15:27
freemangordonok15:28
freemangordonso, with iphb I am seeing values as low as 125 mW15:28
Wizzupthis is over wifi I suspect?15:28
freemangordonwith same accounts online15:28
freemangordonyes15:28
freemangordonok, lets stop iphb and try again15:29
freemangordonhmm, seems iphb breaks it15:36
freemangordonoh, it crashes :)15:38
sicelommm, PVR email ... may i get a link? i thought i was in the correct ML, but I didn't get the mail15:44
freemangordonsicelo: it is not in a ML16:00
siceloah16:06
uvoseven 120 is very high @ freemangordon16:32
uvoswakeups generally dont hurt the droid 4 nearly as mutch as the n900 btw16:35
uvossince it can enter and exit idle way way faster than n90016:36
uvoseven the mm compatction that creates a couple of hz of wakeups totaly prevents the n900 from ideling at all16:36
uvoswhile on d4 the effect on power consumption wasent even mesurable16:37
uvosso yeah just things to think about when optimizing16:37
freemangordonwell,, this is what I get here16:43
freemangordonhints how to chase that are appreciated :)16:43
Wizzupuvos: it was measurable on the d4 fwiw16:44
Wizzupbut not a lot16:44
freemangordonuvos: keep in mind I measure that in ssh session16:44
freemangordonI think each ssh session adds about 40 mW or something16:44
uvosno16:44
uvosidle ssh session is very low cost16:45
uvosso if omapconf dosent change16:45
Wizzupon gprs it actively causes the batery life to die 2-3 normal speed16:45
uvossure16:45
uvoson gprs it causes the modem to stay awake16:45
Wizzuphaving gprs active without ssh hardly impacts battery life16:46
uvosanyhow if ompaconf dosent change, nothing is keeping the device awake permantently16:46
uvosso that suggests something is using too mutch cpu time16:46
freemangordonmaybe tcp activity16:47
uvospossible16:47
freemangordonI'll run tcpdup to see what happens16:47
uvosalso if its tcp activity on the modem16:47
freemangordon*tcpdump16:47
uvoslike ssh it will not enter idle state16:47
uvosthe modem takes qutie some time to calm down16:47
uvosafter you last used it16:47
freemangordonlemme offile the modem16:47
uvosfor some reason offlineling the modem dosent really do anything pm wise16:48
freemangordonwell, what to do then?16:48
uvosdont connect gprs?16:48
freemangordonit is not connected16:48
uvosthen your not waking the modem16:49
freemangordonI am using wifi all the time while measuring16:49
uvosok16:49
freemangordonmy wifi rooter is pretty ol, that might create issues too16:49
freemangordonalso, I think I have lowered RTS, lemme check16:49
freemangordonwell, rts threshold is 500, not that bad16:50
freemangordonshoudl not affect power savings16:50
uvoshow manny wakeups do you have?16:51
freemangordonsec16:51
uvosshould be 15 ish hz at very the most16:51
freemangordon3016:51
freemangordonnow 1016:52
uvossounds resonable16:52
uvosfirst mesurement is allways high16:52
freemangordon916:52
uvossounds fine16:52
freemangordonI am doing 'while [ 1 ]; do sleep 30; cat uevent | grep AVG; done'16:53
freemangordonno issue with that,right?16:53
freemangordonPOWER_SUPPLY_POWER_AVG=22263616:53
freemangordonthe fuck?16:53
freemangordonok, lemme run tcpdump16:54
freemangordonuvos: what is the time window avg is calculated on?16:54
freemangordondo you know?16:54
uvosshould be fine at reading uevent16:55
uvosno but short16:55
uvosits filtered for spikes16:55
uvosnot for long periods16:55
freemangordonok16:55
uvosie its seconds not minutes or anything16:55
freemangordonthis is what I get https://pastebin.com/iQjyKRZT16:56
freemangordondoes not look good16:56
freemangordonlet me see if using iphb will change that16:56
uvosits about 50mW high yeah16:56
freemangordonI guess because of the jabber accounts16:57
uvosi wonder if reading uevent makes it higher16:58
freemangordonfor sure it does16:58
uvosbecause the kernel goes and fetches more values than just reading power_avg16:58
freemangordonhmm16:58
freemangordonhmm....16:58
freemangordonright16:58
freemangordonlemme try with just the average16:58
uvosso by the time it fetches power_avg16:59
uvosits been awake more16:59
freemangordonyeah16:59
freemangordonalso grep keeps it awake for longer17:00
uvossure but thats after the read17:00
uvosand the window isent 30 s long17:00
freemangordonI think it is longer than 30s17:00
freemangordonat least a minute17:01
uvosi dont think so17:01
uvosbut wating 1 minute like i do17:01
uvoswould make the results more comperable in this case17:01
freemangordonok, lemme change the delay17:02
uvosso doing what you do gives me 158990 btw17:03
uvoswhile the cron job was saying 92 before17:03
uvosso i dont think anythings wrong17:03
freemangordonhmm17:04
uvosor wrogner than here :P17:04
freemangordon10829217:04
uvosandroid dose 30mW17:04
freemangordonfor 1 minute with iphbd17:04
uvosor so17:04
freemangordonbut we don;t have off mode?17:04
uvosright17:04
freemangordonbtw, why?17:05
uvoswas never implmented in the mainline kernel17:05
uvosfor omap417:05
freemangordonah17:05
Wizzupwould be nice to have ofc :p17:05
freemangordonmaybe we shall pester tmlind :)17:05
freemangordonI'll leave it running for 10 minutes and then will do the same without iphbd17:10
uvosspeaking of off mode17:12
uvosthe other 2 things the android kernel dose that we dont pm wise17:12
uvosis clock sgx down and change the emif operating point17:12
uvosthis is probubly the reason we use more power while not idle17:13
freemangordonI don't think clocking sgx down will help a lot17:13
freemangordonno idea what emif is17:13
uvosmomory bus17:13
freemangordonah17:13
uvosmemory bus17:13
uvosidk how mutch these things account for and wont speculate17:14
freemangordonI think our buggest issue is dss being on17:14
freemangordonbecause sgx is idle most of the times17:15
freemangordonbasically sgx clocks are stopped as soon as there is nothing for it to render17:15
freemangordonIIUC17:15
uvosthis broke after swiching form ddk1.9, but you said it works again17:16
uvosso sure17:16
freemangordonyes, you can check in /kernel/debug17:16
freemangordonit is OFF even when display is ON17:16
uvosok17:16
freemangordonok, some results:17:31
freemangordoniphb on: 10 samples average: 158.5mW, lowest reading 105.6, 8 samples average (highest and lowest samples removed): 155.217:31
freemangordoniphb off: 10 samples average: 182.8mW, lowest reading 132.6, 8 samples average (highest and lowest samples removed): 182.217:31
freemangordonuvos: ^^^17:31
uvosim not sure why iphb would hurt17:32
freemangordonwell, you was against it IIRC17:33
uvosim skepitcal it would help (much)17:33
uvosbut thats different from it hurting17:33
freemangordon~25mW on average for 2 jabber accounts is lots IMO17:33
uvosyes17:33
uvoshow often dose it try and refesh?17:34
freemangordonevery 30 seconds iiuc17:34
freemangordonbut with iphb this gets synced, so you have only one wake for both accounts17:34
freemangordonthe more users the more the saving will be17:35
freemangordonlike, modest supports iphb as well17:35
uvossure17:35
uvosbut also why dose telepathy not sync refreshes with itself17:35
uvoswhy dose it need the kernel to do that17:35
uvosalso maybe there is some other way to accive the same thing, besides introducing a custom kernel module17:36
freemangordonno, wait17:36
freemangordonkernel module is used in a different way17:36
freemangordonit just signals userland that there is something to be send over the wire17:37
freemangordonso radios will be on anyways17:37
uvossure17:37
freemangordonso, if there are clients whose wake time is nearby, just wake them up now17:37
uvosi also wonder how android handels this17:37
freemangordonno idea17:37
uvosalot of android patches ended up in mainline17:37
uvos(android boots on mainline now basicly)17:37
freemangordonwell, wakelocks :)17:38
freemangordonI would bet on that17:38
uvospossible17:38
freemangordonso maybe it is more or less the same, besides I don;t know how it communicates when kernel tcp stack has something to send17:39
freemangordonhow feasible is to have pre-build kernel module in the repos?17:40
freemangordoninstead of doing dkms build17:40
uvoswould be quite the headache i imagine17:40
freemangordonok, lets stick to dkms for now17:41
uvoswe could also just add it to the kernel17:41
uvosits not like its relevant on x8617:41
uvosand everywhere else we build the kernel anyhow17:42
freemangordonI prefer dkms way17:42
freemangordonotherwise it will not be possible to test on the VM17:43
freemangordonuvos: Wizzup: why linux-headers-generic is not provided by omap kernel headers?17:54
freemangordonomap kernel headers package that is17:54
freemangordondo you mind if I add it?18:13
Wizzupnot sure why it is like that18:18
WizzupI mean if it provides the headers18:18
Wizzupthen yes18:18
freemangordonit provides linux-headers, but IIUC virtual package should be linux-headers-generic18:19
freemangordonat least this is what is provided by amd64 devuan kernel18:19
freemangordonhere https://github.com/maemo-leste/droid4-linux/blob/maemo/beowulf-devel/debian/control#L3118:20
Wizzupok18:20
freemangordonok, going to change that18:20
freemangordonhmm ok, actually this is the correct virtual package name18:30
freemangordonWizzup: please remove linux-headers-n900 and linux-headers-droid4 packages18:30
freemangordonoh, you can;t18:31
freemangordonI shall disable -stable repo18:32
freemangordonWizzup: is -omap kernel in -stable?18:32
freemangordonyes, it is18:33
freemangordonso, I think we shall remove all the old n900/droid4 kernels18:33
freemangordonPali: do you mind if I become the maintainer https://github.com/maemo-leste/iphb-dkms/blob/master/debian/control#L4 ?18:36
freemangordonI assume no, if you onject, please LMK and I'll revert18:37
freemangordon*object18:38
PaliI'm fine with it!18:44
freemangordonok, thanks18:44
Wizzupfreemangordon: I can remove any pkg if needed18:51
freemangordonWizzup: please remove all old kernels (and headers) then18:54
freemangordonthey are not used anyways18:54
freemangordonand just create trouble18:54
Wizzupfreemangordon: ok, can you be explicit?19:03
Wizzuplinux-headers-n900 and linux-headers-droid4 ?19:04
Wizzupif we do that, and remove it from stable too, we also need a replacement for it for -stable usres19:05
freemangordonwe already have19:08
Wizzupok19:08
freemangordonhttps://github.com/maemo-leste/droid4-linux/blob/maemo/beowulf/debian/control#L3119:09
freemangordonsee ^19:09
Wizzupok19:15
Wizzupdone19:16
freemangordonthanks19:17
freemangordonWizzup: wich package to add dependency to?21:17
freemangordonhildon-connectivity-meta?21:17
Wizzupfreemangordon: for what package?21:36
freemangordoniphbd21:37
freemangordonthe daemon itself21:37
WizzupI think hildon-connectivity-meta is fine for now21:41
freemangordonok21:41
Wizzupwill it depend on the dkms pkg too?21:43
freemangordoniphbd depends on it21:46
freemangordonso meta needs only iphbd dependency21:46
Wizzupok21:53
Wizzuplet's make it -devel only for now?21:53
freemangordonsure21:53
freemangordonwill you add that dependency?21:53
WizzupI can in a few minutes21:54
freemangordonok21:54

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!