libera/#maemo-leste/ Thursday, 2021-12-09

uvosWizzup: sure00:30
uvosso someone needs to try out/ set up charge-mode on pp00:30
uvosand emergency shell runlevel with fbkeyboard00:31
uvosalso investigation on display brightness linearity00:31
uvosie possibly setup https://github.com/maemo-leste/mce/blob/483c527164bc17898d400d9cd65d7b9408c3b30e/config/mce.ini#L327 for pp00:31
Wizzuphi ho00:31
Wizzupok00:31
uvosalso see if we need battery guard on pp and what https://github.com/maemo-leste/mce/blob/483c527164bc17898d400d9cd65d7b9408c3b30e/config/mce.ini#L301 to use00:31
WizzupI wonder if we should try to get the new xorg as well00:31
Wizzupit might fix the modesetting problems00:31
uvoswhat modesetting ploblems do we have?00:32
Wizzupon the pinephone?00:32
uvoswe have problems with glamor not modesetting no?00:32
Wizzupwe have crashes, graphical glitches/damage update problems00:32
Wizzupwell, there's a lot of glamor fixes too00:32
uvosalso those would probubly be solved00:32
uvosif we where to use the gles path instead of the ogl one00:32
Wizzup(I counted about 80+ mentions of glamor in the changelog)00:32
Wizzupare you sure? I'm pretty sure we tried that in the past to no avail00:33
Wizzupwe can try again of course00:33
uvosim not sure ofc00:33
Wizzup:p00:33
uvosi dont think you can make glamor choose gles00:33
uvoswhen ogl is available00:33
uvosother than a patch00:33
WizzupI saw that new X has a check where if gl > 2.1 it will use gles or something00:33
uvosno i think it uses egl then00:34
Wizzupah, no, that's < 2.100:34
uvosbut maybe im miss remembering00:34
Wizzupah, could be00:34
Wizzupno you're probably right00:34
uvosyeah it tries gles if gl is <2.100:34
uvosproblem is pp ends up in ogl path00:34
uvosand ogl is known to be iffy on it00:34
Wizzupstill there are a lot of fixes for glamor00:35
uvosyeah sure00:35
Wizzupuvos: do you know how to force it into gles path?00:35
uvosyou have to patch the places where it calls epoxy00:35
uvosi did this before for my desktop to try the gles path on radeon00:35
uvosi can dig it up tomorrow00:35
uvosits just a oneliner ofc00:36
Wizzupok00:36
freemangordonWizzup: yes, I was able to build it, but I had to patch here and there07:49
freemangordondsc_: BTW, if you are still bored, maybe you may want to look into SGX tearing issue.09:03
Wizzupok re: xorg09:06
Wizzupit might be valuable to have it09:07
freemangordonyeah09:08
freemangordonbut iirc it requires newer libwayland (or something) version09:09
Wizzupmaybe we can just not build the wayland stuff, we don't need it09:09
freemangordonyeah09:09
freemangordonXwayland that is09:09
Wizzupbut maybe if uvos' idea about forcing gles glamor with lima works, we don't need to now09:09
freemangordonby forcing libepoxy to resolve to gles?09:09
dsc_https://plak.infrapuin.nl/selif/5bmf43ow.jpg09:11
dsc_scrolling is 30fps, pretty good09:12
dsc_freemangordon: SGX tearing?09:13
Wizzupfreemangordon: yes09:13
dsc_I do see some tearing right now with my application but not sure if this is what you are refering to09:13
dsc_i might be on an older kernel09:13
dsc_was planning to spend the day looking at hamsterfiler, fixing SGX sounds scary, I only operate in userspace :P!09:14
* Wizzup bbiab 45 mins or so09:15
freemangordondsc_: ah ok (only userspace)09:17
dsc_only been using linux since a few months, I came from Flash development, barely know what a computer is - ill stick to user interfaces :PpPpP09:17
freemangordonok, ok, got it :)09:17
dsc_xD09:17
Wizzupuvos: freemangordon: heads up, I think the kernel in -experimental doesn't boot atm, investigating11:04
Wizzupok it was related to thumb2 I think11:46
Wizzupthat's silly11:46
buZzhehe, maybe soc only has thumb1 ?11:57
bencoherr, which SoC?11:58
bencohthumb2 has been supported for ... ages :)11:58
bencoh(well, apart from erratas here and there)11:58
buZzhehe11:58
Wizzupdroid4/droid311:59
Wizzupnot sure what's up, but going to revert since I just want a kernel that works for everything :)11:59
buZz:)11:59
buZzi'm still sad that the docks dreamer found didnt exist :(11:59
buZzthey are so rare to find on ebay without insane shipping :P12:00
buZz5 usd dock , 30 usd shipping , ffs12:00
buZz:D12:00
WizzupI wish the lapdock that I bought worked ;)12:00
buZzhmhm12:01
buZzmy own lapdock needs a ton of work to get the keyboard to work without 10kg of pressure on the keys12:01
buZz:D12:01
WizzupI could be that the power supply that I got with it is broken12:01
buZzafaik its just 12v DC?12:01
Wizzupcould be, didn't investigate too much12:03
dsc_i ported hamsterfiler from qt4 to qt512:45
dsc_replaced qmake with cmake12:45
dsc_https://i.imgur.com/AmEvE0p.png12:45
Wizzupcool!12:46
Wizzupmaybe you can add it to extras https://github.com/maemo-leste-extras12:46
dsc_oki12:46
Wizzuphttps://github.com/maemo-leste-extras/bugtracker12:46
dsc_Wizzup: do you know if `hildon_mime_open_file(...);` is currently working? i.e: I try to open .txt but perhaps no mime handler yet12:50
dsc_it uses dbus for that12:50
dsc_any file extensions you know of that work in terms of mime handlers?12:51
dsc_thumbnail generation seems to work :) https://i.imgur.com/B8c38fc.png12:56
Wizzupdsc_: no, is there a handler for it13:07
Wizzupuvos: do you have that glamor patch?13:07
dsc_Wizzup: Do you know of a file extension that *does* have a mime handler?13:15
dsc_for example I have Dorian installed, but clicking on `.pdf` files does not yield dorian13:16
dsc_just making sure it is not hamsterfiler's fault13:17
Wizzupdsc_: pdf13:20
Wizzupshould launch the pdf viewer13:21
Wizzupbut I have not done much with mime13:21
Wizzupmaybe ask freemangordon or uvos13:21
uvosWizzup: cant look right now13:26
uvosWizzup: dsc_: any and all maemo applications have broken mimes13:26
uvosinstall some desktop application13:26
uvosthose work13:27
uvosso iirc on freemantle hildon-mime had a global mime database that it held iself and was only extensable via its own custom apis13:28
uvoswhile the xdg-mime system just uses the mime entries in .desktop files to generate a database13:28
uvosas hildon-mime is non functional anything that uses it is broken atm13:29
dsc_ok13:29
uvosalso we probubly want to rid ourselves of this so that desktop applications can launch maemo ones and vice versa13:29
uvoshildon mime shal then be just a compatibily wrapper that uses the xdg stuff behind the scenes13:30
dsc_right13:30
uvosbut yes this is totaly broken atm13:30
dsc_so hamsterfiler uses this hildon-mime thing with dbus13:31
dsc_like you said13:31
dsc_I can port that to xdg13:31
uvosmaybe just port to xdg13:31
uvosyeah13:31
Wizzuplet's check with fmg13:31
dsc_but uhh13:31
Wizzupnot just remove it13:31
dsc_for example where is `xdg-open` ? :P13:31
dsc_or `xdg-mime`13:32
uvosfreemangordon is usualy against changing anything api related - but please do add xdg support at least as an ifdef13:32
uvosthat way hamsterfiler could be used on phosh etc too13:32
dsc_nvm, I think I can just use Qt5's QMimeDatabase13:32
uvosright that also wraps xdg13:32
dsc_ok :)13:32
uvosbtw since we where launching the pdf viewer above13:39
uvosthis is even more broken13:40
uvossince the pdf viewer dosent allow one to open a pdf via its commandline at all13:40
uvosyou have to use the pdf viewers persistant dbus interface13:40
uvosmeaning the pdf viewer is impossible to use in a proper mime13:40
uvosyou can only use the pdf viewer to open a file by implenting its own custom interface13:41
Wizzupor it will just handle mime properly later on13:41
uvoshildon-mime dose this (and for lots of other applications too)13:41
Wizzupwhen it's ported to newer xpdf13:41
WizzupI don't see the point of porting a hildon capable file manager and then stripping out the hildon parts :P13:41
Wizzupbut maybe the mime stuff is super trivial, idk13:41
dsc_uvos: previously ive solved this by having applications opening an unix socket and when a 2nd instance is spawned it can detect it is already running (and communicate a "file open" to the 1st instance)13:42
dsc_dbus probably the better way to do that yeah13:43
dsc_albeit dbus not available on windows, so using unix sockets in Qt5 is nice, because on Windows it uses named pipes13:43
dsc_which keeps the application crossplatform13:43
Wizzuphildon has some of this solved already13:44
Wizzupprobably that's why it has this mime stuff13:45
Wizzupwe just need to make that work13:45
dsc_ill hold on porting to xdg for now13:45
Wizzupyeah, better to make sure the hildon mime stuff works as well13:45
dsc_unsure why hildon had to reinvent that wheel though13:46
uvosthey reinvented most wheels13:47
Wizzupthey invented them before it became a standard* ;-)13:49
uvosnot in this case13:49
uvosanyhow13:49
uvosi just rememberd something13:50
uvosso hildon mime has these categorys xdg dosent have13:50
uvosand i seam to remember fmg implementing a heuristic to pars xdg mimes into the database13:50
uvosso acutally the hildon-mime xdg interop might be there allready13:50
uvosmaybe try installin the thing13:50
mighty17[m]uvos: btw omapconf doesnt compile on android13:51
uvosor rather xdg has other categories13:51
uvosit has the same kind of categories but they are semanticly different13:52
uvosmighty17[m]: yes it dose :P13:52
uvosalso not sure why you would want it on android13:52
uvosit works13:52
uvosbut is mostly non functional because of missing defconfig flags13:53
uvosunless you go and compile your own debuging android kernel ofc13:53
mighty17[m]uvos: comparing registers13:54
uvosuse rwmem13:54
mighty17[m]ah right13:54
uvosomapconf is way overkill13:54
mighty17[m]even rwmem does not13:54
uvosboth of these compile fine for me13:54
mighty17[m]lemme try a clean build13:56
mighty17[m]my bad, uvos, it builds now, thanks!14:00
mighty17[m]time to check TIMER10's location14:01
lelsanderfoobar opened an issue: https://github.com/maemo-leste-extras/bugtracker/issues/26 ([REQ] HamsterFiler)14:28
lelparazyd created a repository: https://github.com/maemo-leste-extras/hamsterfiler15:13
lelparazyd closed an issue: https://github.com/maemo-leste-extras/bugtracker/issues/26 ([REQ] HamsterFiler)15:16
lelparazyd created a repository: https://github.com/maemo-leste-extras/oricutron15:16
lelparazyd closed an issue: https://github.com/maemo-leste-extras/bugtracker/issues/24 ([REQ] oricutron)15:17
lelparazyd created a repository: https://github.com/maemo-leste-extras/lagrange15:18
lelparazyd closed an issue: https://github.com/maemo-leste-extras/bugtracker/issues/23 ([REQ] lagrange)15:18
lelsanderfoobar opened an issue: https://github.com/maemo-leste-extras/hamsterfiler/issues/1 ((possibly) port to XDG)15:44
Wizzupuvos: btw my droid3 upower reports like 400mAh for the battery, even with a new polarcell, I guess I need to check out the calibration?15:59
Wizzupfreemangordon: uvos: ok kernel in -experimental should be OK again16:01
uvosWizzup: what dose it report for current_now?16:11
uvosor avg16:11
uvosis that sane?16:11
Wizzupthe pm script reports sane things I think16:12
Wizzuplet me check16:12
Wizzupd=2021-12-09|t=16:13:20|i=OFF:0,RET:4766|p=149|c=NA|b=none16:14
Wizzuplooks sane to me16:14
uvoscheck if data_get_avg_curr_ua is different in solana kernel maybe16:15
uvossometimes the callibration also gos haywire and reports low way to early16:15
Wizzupthis is a bionic sd card that I transferred16:15
Wizzupso maybe I should nuke any calibration data16:15
uvosno16:15
uvosthat cant cause it16:15
uvoscharge the device take a note of charge_counter16:16
uvosdiscarge it untill the battery voltage is 3.5 v or so16:16
uvosthe diff charge_counter should be the capacity -15% or so16:16
uvosif that checks out and current is correct and you cant find a difference in above funciton16:17
uvosi dont see how it could be wrong and the battery is just bad16:17
Wizzupit's a brand new polarcell16:18
Wizzupand it lasts over a day on it using about 150mW16:18
Wizzupso I don't think it can be only 400mAh16:19
uvosdmesg | grep cpcap_battery cpcap_battery.0: calibration done:?16:21
uvosmaybe also check 0x0a1c with cpcaprw in android16:24
uvosshould be about the same value as in dmesg16:24
uvosbut really16:24
uvosi dont see how this could be different on d3, iirc the columb counter procedure is in the common cpcap code thats used on all devices16:25
Wizzup[   11.060516] cpcap_battery cpcap_battery.0: Coulomb counter calibration done16:34
Wizzup[   11.368774] cpcap_battery cpcap_battery.0: calibration done: 0x000016:34
uvosok16:40
uvosyeah that cant be right16:40
uvoshmm16:40
Wizzupit's not a big deal atm16:41
Wizzupjust something I noticed16:41
uvosmaybe check the value in android16:42
uvosspeculating here, motorola dosent appear to use the counter at all - they use a mutch more complex setup where they have discarge curves for eatch battery16:43
uvosmaybe this is because on early cpcap revisions the counter was broken16:43
bencohmany fuelgauge don't rely on the coulomb counter only - some don't use it at all, even in modern implementations16:44
uvosok16:45
uvosmaybe they just dident feal like using it what do i know16:45
bencoh(in my opinion it's kinda broken, but for some of their parts, Samsung insists on saying they rely on voltage only)16:45
bencoh-s16:45
Wizzupso 5.8 does still hit off but it hangs very quickly when panel is probed21:12
Wizzupsame for 5.8.y (stable), it's not particularly useful for debugging where the off mode regression happened between 5.7 and 5.921:15
Wizzupok, with a specific method I can still hit ~42mW (same as 5.7)21:17
sicelothis is without any modules load? (42mW)21:19
Wizzupyes21:19
Wizzupso whatever caused off mode to never be hit was introduced between 5.8 and 5.9 I think21:20
siceloyou couldn't hit OFF with anything >5.9 ?21:21
Wizzupright, not without changing parts of the kernel21:21
WizzupI am going to try 5.9.y again just to verify21:21
WizzupI am keeping a log here mostly https://github.com/maemo-leste/bugtracker/issues/54521:21
Wizzupprobably best to start at bottom and read up21:21
WizzupI could really use some help if you have spare cycles btw21:22
sicelonot yet :-(21:23
siceloin a week or two i might finally begin to have some time21:24
Wizzupin any case the off mode idling is not stable in 5.8 (seems serial related)21:25
Wizzupbut that is a separate problem21:25
Wizzuptmlind: right so I can confirm the OFF mode no longer being hit is introduced between 5.8 and 5.921:29
uvossince off mode not being hit on 5.9+ is simply because sched is to buisy to find the time, maybe whatever is increasing the events also caused the slight power increase d4 has seen since about 5.8 too21:33
Wizzupcould be, let's see if I can find it21:33
Wizzupthere's a bunch of clock rework in git log v5.8..v5.921:34
Wizzupor rather I looked at git log v5.8..v5.9 arch/arm/mach-omap*21:34
uvosthat might not be wide enough something could have very well changed in the scheduler21:35
WizzupI will do a bisect, so that won't matter21:35
uvosoh i thought you ment you only want to biscect arch/arm/match-omap21:36
Wizzupnah just looking at the log21:36
uvosthats an option21:36
uvosok21:36
Wizzupunfortunately on plain v5.9 my idle script doesn't work21:38
Wizzupthe one that just reads the pm data21:38
Wizzup(from debugfs)21:38
Wizzupit just hangs21:38
Wizzup:(21:38
uvosjust read the ret/off count by hand then21:38
WizzupI bet that will hang too21:39
Wizzupbut let's see21:39
Wizzupinteresting, that works21:40
Wizzupgrep ^core_pwrdm /sys/kernel/debug/pm_debug/count | cut -d',' -f2,321:40
Wizzupanother thing that was nice with 5.8: it stayed in OFF/RET much longer21:42
Wizzupso the numbers are lower, but also the power usage was lower21:42
WizzupRET increases much faster on v5.921:42
WizzupI hope I won't have to come up with fixes for stuff, and rather just point out where it goes wrong :(21:43
Wizzupuvos: do you know if there are plans to make kernel idle again while having kernel console not detached?21:45
WizzupI thought it was a temporary thing (i.e. while serial is being reworked)21:45
Wizzupnot having kernel console while testing idle stuff is awkward21:46
Wizzupwow this one commit I was at before in the bisect (g47ec5303d73e) idles extremely well21:52
Wizzupit basically never leaves the OFF state until I interact with it21:53
uvosWizzup: no idea22:03
Wizzupbtw I reported 42mW but really it's 28mW or so22:04
Wizzup(there's the serial device using power)22:04
uvosdont worry you report all kinds of contradictory numbers :P22:04
Wizzupthat's life22:04
uvosyeah :)22:04
Wizzup:p22:04
Wizzupdid you the conversations with your sphone rtcom logger btw?22:04
WizzupI wonder if it even picks it up22:05
uvosno22:05
Wizzupok22:05
uvossphone for sure dosent pick up any that converations creates22:05
uvos(it explicitly filters for just its own)22:05
Wizzupconversations doesn't add anything atm22:05
uvosok22:05
Wizzupit just is a frontend to el-v1.db22:05
uvosok yeah i havent looked at any of this stuff22:06
Wizzupok22:06
Wizzupit's in -devel so it could be just ~3 mins of work22:06
WizzupI'd appreciate it if check if it picks up on the sphone stuff22:06
Wizzupif you can check*22:06
uvosok22:06
uvosyeah i can ofc22:06
uvosit dose indeed pick something up22:10
uvosbut only one conversation thread (this one is compleat) that i created with sphone-commtest22:10
uvosthe ones that are real ones that i have from ofono are missing22:11
uvoscreating another one in comtest also works22:13
uvoswierd22:13
uvosall sphone events get saved by the same module ofc store-rtcom22:13
Wizzuphm22:14
Wizzupuvos: here's a question...22:24
WizzupI am doing a git bisect and on one commit it's *hardly* ever hitting off mode, but it hit it once22:25
Wizzupbut way less than before22:25
WizzupI guess I'd mark that as bad, yeah?22:25
uvosyeah off mode is not broken the kernel is just to busy22:25
uvosso you would expect it to hit it occasionally22:25
uvosover long time scales22:25
Wizzupyeah so marking it as bad sounds fine22:26
uvosWizzup: dsc_: the problem with conversations is it picks up event type 6 only22:36
uvosWizzup: dsc_: event_type 13 goes unoticed22:36
uvos6 is message 13 is sms22:36
Wizzupah, what is 13, chat?22:37
uvos13 is sms22:37
uvos6 is chat message22:37
Wizzupah22:37
Wizzupthat's weird -- I see all my SMSes from my n90022:37
uvosmaybe i made a mistake sec22:37
Wizzupit uses rtcom, maybe rtcom filters based on service registered ids or something22:37
uvosor they dont use the sms prop22:38
uvosi dont know why its needed22:38
* Wizzup hopes the off mode regression really is not something too hard22:38
Wizzupit idles really nicely...22:38
uvosyeah sphone uses RTCOM_EL_SERVICE_SMS for ofono22:39
uvosthis resolves to id 1322:39
uvoshttps://github.com/maemo-leste/sphone/blob/e5ad31827650099a3cd85ea9a2400cb76633dae9/src/modules/store-rtcom.c#L7422:40
Wizzup# grep ^core_pwrdm /sys/kernel/debug/pm_debug/count | cut -d',' -f2,22:44
WizzupOFF:1,RET:50722:44
Wizzupheh22:44
WizzupI'll count that as bad22:44
WizzupBisecting: 1 revision left to test after this (roughly 1 step)23:38
dreamerhah. fingers crossed :)23:39
Wizzupuvos: tmlind:23:57
Wizzup$ git bisect bad23:57
Wizzupfacdaa917c4d5a376d09d25865f5a863f906234a is the first bad commit23:57
Wizzupcommit facdaa917c4d5a376d09d25865f5a863f906234a23:57
WizzupAuthor: Nitin Gupta <nigupta@nvidia.com>23:57
WizzupDate:   Tue Aug 11 18:31:00 2020 -070023:57
Wizzupmm: proactive compaction23:57
Wizzup^^ this causes off mode to never be hit23:57
Wizzup(or almost never)23:57
uvosyeah23:58
uvosthat makes sense23:58
uvoswe should just turn memory compaction off23:58
uvosTo periodically check per-node score, we reuse per-node kcompactd threads,23:58
uvoswhich are woken up every 500 milliseconds to check the same.23:58
uvosthis makes me think we should maybe look at the tuneing parameters forlinux kernels that are used on modern  android phones23:59

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