libera/#maemo-leste/ Thursday, 2022-12-01

Wizzupfreemangordon: looks like eds-backend-telepathy is in need of forward porting, if I understand correctly00:06
Wizzupseveral functions seem to be gone00:07
Wizzupe_data_book_create_error seems to be e_client_error_create00:09
WizzupE_DATA_BOOK_STATUS_INVALID_ARG -> E_CLIENT_ERROR_INVALID_ARG00:10
Wizzuphttps://gitlab.gnome.org/GNOME/evolution-data-server/-/issues/83 and https://gitlab.gnome.org/GNOME/evolution-data-server/-/issues/8500:18
Wizzupfreemangordon: please take a look if you can00:23
WizzupI'll make an issue00:23
Wizzuphttps://github.com/maemo-leste/bugtracker/issues/67500:26
Wizzupheh, our mesa is newer than bullseye mesa01:06
Wizzupfreemangordon: random question, but should tinymail depend on telepathy-glib to have telepathy support enabled?01:21
WizzupFor Chimeara, I hope that the only things that will require significant work at this point are: qt pkgs, eds telepathy, mafw-shared01:27
Wizzupthe remaining py2 pkgs are probably doable, and a bunch depends on osso-abook-dev which we don't have now because of eds telepathy01:28
Wizzuptinymail + gtkhtml3 + modest might need some work too, but a lot is pretty much there01:28
Wizzupuvos: please look if we need to rebase iio-sensor-proxy01:28
freemangordonWizzup: seems I am missing something - how is tinymail related to telepathy?08:14
Wizzupfreemangordon: it is not, it's just not building atm11:03
Wizzupfreemangordon: https://www.phoronix.com/news/xf86-video-modesetting-TearFree11:10
uvoshavent looked at the pr11:13
Wizzuphttps://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1006/diffs ?11:13
uvosbut if that works like the amd/ati ddx its just adding double buffering to x'es own rendering11:13
uvoswhich hildon allready dose too11:14
uvosor should anyways11:14
Wizzupthe mr has a descr11:14
Wizzup"This adds support for TearFree page flips to eliminate tearing without the use of a compositor."11:14
uvosright yes that sounds exactly like the amd ddx11:15
uvoswrt iio-sensor-proxy11:15
uvosi only build this for us beacuse, while it is in debian, it was not in devuan11:15
uvosbeacuse old iio-sensor-proxy versions hard depended on systemd11:15
uvosthis is no longer the case11:16
uvosand i presume devuan now has iio-sensor-proxy11:16
uvosis there a package search webpage for devuan somewhere? i ususaly just use the debian one11:16
uvosWizzup: https://pkginfo.devuan.org/cgi-bin/package-query.html?c=package&q=iio-sensor-proxy=3.0-211:19
uvosso you can just drop this package11:20
uvoshuh wait, the package dosent contain a init script11:21
uvosjust a systemd unit11:21
Wizzupuvos: you added various patches for groups and stuff too11:21
uvoswhat the?11:21
uvosWizzup: those are not nessecary11:22
Wizzupuvos: well that's expected, debian doesn't support anything else11:22
uvosi just enabled some features we dont use11:22
uvosWizzup: but this is devuan11:22
Wizzupdoesn't it just show all pkgs?11:22
uvosits from  http://deb.devuan.org/merged chimaera/main amd6411:22
uvosso i gues no?11:23
uvosthis seams like an oversight11:23
Wizzupdevuan merged debian packages into its own11:23
Wizzupmerges*11:23
WizzupI wrote the code that does it way back11:23
uvosokay, well thats.. not great11:23
WizzupI wouldn't assume that it doesn't just come from debian11:23
Wizzupwell it's a fork, not an overlay on top of debian11:23
uvosso who to contact in devuan to fix this?11:24
Wizzupto be clear I helped rewriting the code and make it fast, that's all11:24
Wizzupuvos: it's a debian pkg, not a devuan one, so you need to convince debian to support something other than systemd, I guess?11:24
WizzupI don't think there's a devuan maintainer for it11:24
Wizzupbut you could ask in the channel I guess11:24
uvoswhats the channel name?11:26
uvos#devuan11:26
uvos?11:26
WizzupI think so11:26
uvosWizzup: will you also be archiveing the repos from -forks you remove?11:28
uvosits pretty confusing otherwise11:28
Wizzupuvos: yes, I did plan to take some ation11:32
Wizzupation*11:32
Wizzupaction*11:32
Wizzupsee the bottom of the first comment https://github.com/maemo-leste/bugtracker/issues/64411:32
uvoslots of work i know, but really we should just switch to systemd, it would be alot better for us since, while im not a compleat fan of the kitchen sink approche, we really use the features it provides (with our own hacky tools)11:33
uvosand example of this is dsme lifeguard and reboot behavior, systemd can do both of these11:33
uvosWizzup: ok great!11:33
Wizzupnot going to happen with this release11:33
uvosright11:34
Wizzupwe could consider -also- supporting unit files, but the way the whole thing went down still annoys me11:34
uvosyes politics where horrible, as is the absorbtion of other stuff like udev into the systemd orbit, but systemd the init system itself is not bad11:35
Wizzupwell, in any case, we'll keep dsme around for now, but I agree it's a bit of a mess, the shutdown in particular11:35
uvosthe shutdown isent the main problem imo11:36
Wizzupwhile we reboot/shutdown, dsme tries to restart services that stop working because they depend on something else that was stopped11:36
freemangordonWizzup: if we shutdown through dsme, this will not happen11:37
freemangordonor at least meakle dsme know that we do shutdown11:37
freemangordon*make11:37
Wizzupfreemangordon: ok11:38
Wizzupfreemangordon: np if not, but do you think you could look at eds tp today? I have an itch to finish this chimaera stuff this week and this is a blocker for anything that wants to use abook11:39
uvosWizzup: btw i dont think we need sdl2 anymore either11:40
uvosi think kmsdrm is enabled upstream11:40
uvosand the other patches wehere about directfb we dont need anymore with ddk1.711:41
uvos*1711:41
Wizzupyeah, I marked it was probably skip11:41
Wizzupit as*11:41
uvossame story with sdl111:42
uvoshmm besides --enable-video-x11-xrandr=yes11:42
uvosneed to look at the flags upstream11:43
Wizzupwell we still need to build our own mesa I am sure (glesv1)11:43
uvosnot sure how this is related, but yes11:44
Wizzupwell, debian is disabling gles1 in various places11:45
Wizzupso there's a good chance they also disabled it from libsdl111:45
freemangordonWizzup: will try, but no promise11:46
Wizzupfreemangordon: ok, ty11:46
freemangordonI am a bit of disappointed with kernel maintainers and need a bit of rest11:46
Wizzupfreemangordon: it'll be hard to test I am sure, but if it just compiles first that's probably enough for now11:46
uvosWizzup: sdl1 dosent appear to have any such flag11:47
freemangordonsure, it is just that I want to be in a mood for it :)11:47
Wizzupok11:49
uvosWizzup: btw i have another xt160211:51
Wizzupoh, cool11:51
uvossoon anyways11:51
WizzupI'm still waiting for the xt1602 I ordered to arrive11:51
uvosi bought my gf a new phone and will collect hers :P11:51
Wizzupnice :)11:51
WizzupI'm still lookng for another to send to Tony, since this'll be my first, so if you see one on ebay11:52
uvosi can send it someone if i get a xt160411:52
WizzupI found this: https://www.dgmoutlet.nl/refurbished-motorola-moto-g4-play-zwart-3248?number=R694768153235911:53
Wizzupnot sure of the exact model11:53
uvosseams extreamly expensive11:53
uvosi bought mine for like 20 euros xD11:54
Wizzupoh11:54
WizzupI found another..11:54
Wizzuplol, they only do pickup and it's on the border with belgium and germany (3+ car drive)11:55
Wizzup3h+11:55
uvossounds.. also expensive :P11:55
Wizzupthis one is 25 eur, dropped them a msg11:56
Wizzupwe'll see11:56
Wizzupthe irony is that the website tells me I am a "world changer" by buying second hand, and that the CO2 saved is the amount of a trip from amsterdam to brussels, which is maybe only twice the distance of picking it up11:57
uvosxD11:57
uvosthere allways some on ebay-kleinanzeigen btw11:57
uvosusualy no modell number ofc11:58
Wizzuphttps://www.ebay-kleinanzeigen.de/s-motorola-play-g4/k0 ?11:58
uvosbut it bought 2 blind and both ended up being xt1602 so i presume this is the most sold version in germany at least11:58
uvosyeah11:59
Wizzupit ought to be either xt1602 or xt160411:59
Wizzupwell is this kleinanzeigen not to klein to ship to .nl? or maybe we can ship to you?11:59
uvosits just an informal classifieds page12:00
uvosyou contact the sellers directly and negotiate whatever12:00
Wizzupright12:01
uvosprobubly better if done in german12:02
uvoswhat do you want ill ask12:02
Wizzupnot sure, I think we'd just want a xt1602 and xt1604 for tony12:03
Wizzup(or at least one of them)12:04
Wizzupuvos: hm there seem to be more in .nl than I thought12:14
Wizzupoh, maybe these aren't the play versions?12:17
uvoscareful yeah12:18
uvosmotorola g4 is a totaly different phone12:18
Wizzupconfusing :D12:18
uvoslenovo are idiots with nameing12:18
freemangordonit seems we have some pvr issue as well in 6.112:44
freemangordondmesg is full of ERROR: PVRSRVMapFullDmaBuf failed: PVRSRV_ERROR_OUT_OF_MEMORY - Unable to allocate required memory fd 2512:44
Wizzupwe also disabled all compaction with leste-config12:47
Wizzupit's probably not related, just wanted to mention ...12:48
freemangordonI doubt it is12:48
freemangordonhttps://pastebin.com/i1S9YcLc12:48
Wizzupwhat are you running when you see this?12:49
freemangordonI run gtkperf a couple of times12:49
freemangordonand now it happens even if I scroll h-d12:49
Wizzupsmells like a leak12:49
freemangordonso, to me it looks pvr driver run out of MMU space12:49
freemangordonyes, but I see nothing wrong in dri or gem buffers in /sys/kernel/debug/...12:50
freemangordonsmells like a driver bug12:50
freemangordonXorg has 39 fds12:52
Wizzupok12:52
freemangordon303 dma_buf objects ~13MB in total12:53
Wizzupif it perhaps some config option we're missing? I very vague recall needing something to prevent fragmentation12:53
freemangordonno, this is SGX MMU, I don;t think kernel options have anything to do with it12:54
freemangordon402 gem objects ~14MB12:54
freemangordontiler_map looks perfect12:54
freemangordoneverything points to a leak in the driver12:55
uvosfun12:55
freemangordonyeah12:55
freemangordonthere was major rewrite of dma_fence code12:55
freemangordonI guess related12:56
freemangordononce I finish playing with cos estimator I will see if this is steadily reproducuble12:57
freemangordon*SOC12:57
freemangordonThe fun part is that if you don't look in dmesg or ignore a little stutter, you will not understand that there is any issue :D12:58
WizzupI haven't seen it in dmesg yet12:58
Wizzup(using it for a few days, ftr)12:58
Wizzupbut sounds like gtkperf is a good way to reproduce12:58
freemangordonomap driver falls back to SW render and works12:58
Wizzuphildon-application-manager also needs porting to newer apk-pkg interfaces12:59
Wizzupmade a start, but taking a break from that now12:59
uvosfor some reason pvr is also a bit slower in 6.1 maybe related, maybe not13:00
uvosbut openlara seams to underperform13:00
freemangordonI guess it is related13:00
uvosi havent seen the dmesg however13:00
uvosjust greped13:00
freemangordonwill try to repro13:01
freemangordonnot now, have to attend mtg13:01
freemangordonttyl13:01
Wizzuptmlind: btw I have a xt912 here so can try the kexecboot stuff this weekend I hope :)13:34
uvostmlind: so i gues we are not going to be using the fact that the bootloader on xt912 is unlockable14:58
uvoswe could use the mainline kernel for kexecboot i gues, altho presumably this would expose problems in our cpcap drivers expecting the register state to be initalized by the android kernel14:58
tmlindi don't think at least my xt910 is unlockable, also flashing xt912 modem fails15:33
uvosyes xt910 (and all verizon devices for that matter) is not15:34
tmlindlcd is some mipi dsi amoled.. needs some days of tinkering, no output quite yet15:34
uvosmhm15:35
tmlindbut i think the lcd is the same on xt912 too15:35
tmlindso after that xt912 should behave pretty much like d415:35
tmlindi guess only european xt910 are unlockable? mine seems to be ca rogers/fido15:36
uvosaccording to xda its complicated15:37
uvoson release there was a dev editon that was unlockable15:37
tmlindok, fastboot oem unlock disabled on mine15:37
uvosat some point the just starting shipping the unlockable bootloader on all devices (in europe at least)15:37
tmlindok15:37
uvos*they15:37
uvosim not sure if this means you can flash the later/euopean bootloader15:38
uvosprobubly not15:38
tmlindprobably can flas xt912 modem on it then..15:39
tmlindfor the unlocked variants15:39
uvosin generaly this would be atypical for android devices15:39
uvosunlocked bootloader ususaly just means the android partitons15:40
uvosare not signed15:40
tmlindyeah modem could be still efused15:40
tmlindWizzup: yeah if you get a chance see log for the info to dump, no rush15:43
buZzdid ppl already notice the mce update changed the auto-backlight-adjustments?15:46
uvosit should not have15:47
uvoschange how exactly?15:47
buZzit does get brighter on a bright light, but never goes back to dimmer15:47
uvosthat is correct and has been so for a long time15:47
buZzoh eh weird, it did for me15:47
buZzshould i be self-setting it lower every time?15:48
uvosno15:48
uvosso it resets on display off15:48
uvosso while the display is on it will only increase the brightness15:49
uvosnever lower it15:49
buZzah indeed, weird that it did lower it for me then15:49
uvosthis is to prevent it changing the brightness to often15:49
uvosthere is a config option15:49
uvosif you want the old behavior15:49
uvosin mce.ini15:49
buZzah ty15:49
uvoshttps://github.com/maemo-leste/mce/commit/2a9e12f4b00604116c3a37df531cc1f2078de7e915:49
uvosits been this way since at least 1 year15:50
buZzhehe weird, i must have had a old mce.ini15:53
uvosas the top of the file suggest you shal not change mce.ini at all15:54
buZzyeah well :P15:54
Wizzupuvos: ok so the xt1602 I found for 25 euro is not an option, for some reason the person outright does not want to ship it16:02
buZzboo16:02
freemangordonhmm, on allwinner tablet battery driver reports 44% for 3646mV17:17
freemangordonthat can't be true17:17
bencohwhy not?17:20
bencoh3.7V should be ~50%17:21
freemangordonhmm17:21
bencohit might be slightly off (5~10%) but it's a decent approx, especially if it's voltage-based only17:22
freemangordonon d4 it looks different17:22
freemangordonmaybe because it is HV battery17:22
freemangordonso it has different discharge curve17:22
bencohcharging at 4.35V vs 4.2V you mean? yeah, it would impact the nominal voltage slightly17:24
freemangordonmhm17:24
freemangordonbecause on 'calibrated' d4 battery, voltage for 44 % is ~4V17:25
bencohuh17:26
bencoh4V/44% sounds plain wrong17:26
bencoheither your battery is dead, or ... I dunno17:26
freemangordoncould be17:26
freemangordonthis is new battery17:26
bencohit might be """new"""17:26
freemangordonthat lasts almost forever17:26
bencohoh17:27
freemangordoncalibrated @ 1620mAh17:27
bencohI'd love a link to buy such a battery then :D17:27
bencohI'm not happy with mine17:27
freemangordon@ 4.2V, nominal capacity 2250mAh@4.3517:27
freemangordonthis is the same battery uvos implanted17:27
freemangordonI did the same and I think buZz too17:27
bencohis it a standard battery? where does it come from?17:28
freemangordonno, you need soldering iron :)17:28
bencohah17:28
bencohcan you still close the phone?17:28
freemangordonlemme try to find it17:28
freemangordonyes17:28
bencohneat17:28
SuperMarioSFwoah17:28
freemangordonit fits perfectly17:28
SuperMarioSFhack into a new battery17:28
freemangordonyou just have to replace the electronics17:28
bencohsounds perfect17:28
SuperMarioSFsounds explosive17:28
bencohSuperMarioSF: :D17:28
freemangordonno, why?17:28
freemangordonit is just a PCB17:29
SuperMarioSFyeah17:29
SuperMarioSFPCB on a battery17:29
freemangordonthis17:29
freemangordonhttps://www.ebay.com/itm/334581894280?hash=item4de6a28c88:g:DskAAOSwz65jO7SQ17:29
bencohI dunno how cpcap deals with battery level, maybe then assume the battery has a lower capacity than that and does "electron counting" as well17:29
bencohoh, polarcell <317:29
freemangordonit does coloumb counting17:30
bencohI'll have to order one I guess, thanks17:30
bencohwell then if it has a total capacity hardcoded somewhere then it might result in invalid reporting17:30
SuperMarioSFwell I don't want to deal with flex cable...17:30
freemangordonremoving original electronics is a bit tricky, as it is glued by some black polimer17:30
bencohsuch as 40%/4V17:30
freemangordonbencoh: no, cpcap does coloumb counting17:30
freemangordonthat can;t be hardcoded17:31
SuperMarioSFbtw it is likely harrd coded into the PCB on battery17:31
freemangordonno17:31
freemangordonpcb on the battery is nvram with some parameters for android17:31
freemangordonone of them is design capacity/voltage17:31
bencohfreemangordon: total capacity might be written somewhere17:31
freemangordonit is17:31
freemangordonbut that does not make any difference for upstream cpcap-battery driver17:31
bencohand is it still 1600~1700, or did you write 2250 there?17:32
freemangordonit is 2250@4.3517:32
freemangordonbut we charge it to 4.2 only17:32
bencohwell, I dunno what it does then, something's wrong17:32
freemangordonno idea17:32
bencohyeah, I complained about charging 4.35V which resulted in swollen battery at some point17:32
SuperMarioSFbtw second XT883 arrived. condition is great17:33
freemangordonwas that you now tmlind doesn;t want my patches ? :)17:33
bencohwoopsie :D no idea, I reported about that years ago, I think other people complained about something later on17:33
freemangordonbencoh: in case you didn't follow:17:34
freemangordonI am trying to implement some voltage based SOC estimation algo17:34
freemangordoncalculating Ri in real-time17:34
freemangordonand using some formula found over the inet17:35
bencohvoltage-only is tricky when under load17:35
freemangordonthat's why Ri17:35
bencohstill tricky, but interesting :)17:35
bencohdo we have a sense resistor (I guess yes) and do we have access to the raw readings?17:36
freemangordonso, on d4 it seems to work fine - calculates Ri ~= .130mOhm, which is about right17:36
freemangordonuvos confirmed yesterday that voltage readings are the same as what is measured with DMM on battery terminals17:36
freemangordonso, with some massaging (high time constants for Ri and estimated SOC filtering), this works pretty much ok on d417:37
freemangordonlike, usually difference with calibrated value is 1-3%, rarely 517:38
freemangordonso I decided to try on my allwinner tablet17:39
freemangordonnot a good idea - calculated Ri is ~0.09 that sounds sane for 3x1300 mAh batteries in parallel17:40
freemangordonbut, estimation is totally wrong17:40
freemangordonbencoh: so in short - every 30 seconds I am taking 16 samples every second and calculate Ri=(Umax-Umin)(Imin-Imax)17:42
freemangordonoops, it is Ri=(Umax-Umin)/(Imin-Imax)17:42
freemangordonand then use that Ri to calculate the OCV of the cell17:43
freemangordonoh, I thin kI know what's wrong17:44
freemangordonI changed one of the constants17:45
bencohwait, all that in software?17:47
freemangordonyes17:47
bencohthat all sounds terrible battery wise :D17:47
freemangordonnot really17:47
freemangordonalso, this is just a POC17:47
bencoh:)17:47
freemangordonin RL it will take samples every 2 minutes or something17:47
bencohit's pretty nice as a POC tbf yeah :)17:47
freemangordonactually I don;t see this affecting battery life on my d417:48
bencohhmm17:48
bencohit might mean that something else runs in the background and keeps us awake (actually we know there is)17:48
bencoh(s/there is/something does/)17:48
freemangordoneither ways device is woken >15 times/s17:49
bencohah17:49
bencohokay17:49
freemangordonyeah, restoring the constant made it behave correctly17:49
bencohnice :)17:51
freemangordonCalculated r = 0.071186, Ri = 0.052247 for Imax=-956mA@3602mV, Imin=-1251@3581mV17:51
freemangordoncalculated (current 25 25, filtered 28) measured 2917:51
freemangordonif you are curious I can provide the code17:51
bencohI'm more interested in the method, what's your input? battery voltage, and battery current?17:53
freemangordonyes17:53
freemangordonthat's all17:53
bencohand you just get min/max values out of 16 samples?17:53
freemangordonyes17:53
bencohinteresting17:54
freemangordonwell, if you draw the most simplified equivalent scheme...17:54
freemangordonjust E and Ri17:54
bencohE?17:54
freemangordonOCV17:54
bencohah17:55
freemangordonE like, ummm... don;t know it in English, sec17:55
freemangordoncannot find it, but it is voltage as E, not voltage as U if you know what I mean :)17:58
bencohI think I do yeah17:58
bencohlike how we represent the voltage source in ciruits, with U = E - Ri17:59
bencohR being the internal resistance17:59
freemangordonexactly17:59
freemangordonbut I don't know the english term for E17:59
bencohit might really be OCV18:00
freemangordonyeah, maybe18:00
bencohhttps://en.wikipedia.org/wiki/Internal_resistance18:01
freemangordonIf I translate from Bulgarian, it should be "Electromotive voltage"18:01
freemangordonseems to be EMF in english18:02
bencohindeed yeah18:03
freemangordon"EMF is the maximum potential difference between two points of the battery when no current flows from the source in the case of an open circuit"18:03
bencohI learned a similar word in french :)18:03
freemangordonhave to go to the store, bbiab18:04
SuperMarioSFWizzup, images of second phone were sent to you via email.18:41
SuperMarioSFthis is a good condition one, no gunk, no sticky surface.18:42
SuperMarioSFwith almost complete accessories (one less battery, missing a unimportant paperwork)18:43
SuperMarioSFeven came with its quick start screen protection film 🤣18:43
uvosfreemangordon: you have to scale the soc estimation by voltage_max_design18:51
uvosthe nominal voltage of a hv lipo is about 3.818:51
freemangordonyeah18:52
freemangordonalso, I think I shall dig my master degree thesis and remember how inverse regression models were calculated ;)18:53
bencoh^^18:53
uvosok yeah thatl help18:54
freemangordonyeah, I was able to control a robotic arm about 2 meters long with 2 degrees of freedom to draw a square (1m side or something) with 1m/s and less than 1% error (IIRC). Simulation in matlab, but still :)18:58
freemangordonby using a simple matrix math and inverse regression18:58
uvosneat neat18:59
freemangordonmhm. So i think something similar shall be useful to simulate a battery19:00
freemangordonwhat the? https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/100720:08
freemangordonOMG!!! glamor cares about GLES2?20:10
Wizzupfreemangordon: heh20:53
uvosjust in time for debian folks to decide to disable gles2 in mesa :P20:57
Wizzuplol20:57
Wizzup@SuperMarioSF: thakns for the email!20:57

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