libera/#maemo-leste/ Sunday, 2022-05-01

buZzahh ok00:22
mighty17[m]what flags do i need to build maemo's mesa? https://github.com/maemo-leste-upstream-forks/mesa/blob/maemo/beowulf-devel/debian/rules ?12:02
mighty17[m]here there is nothing about pvr/omapdrm12:02
Wizzupmeson.build contains that list12:05
Wizzupalso our patches add it12:05
Wizzupsee debian/patches12:05
Wizzupcommit cc91f322fe12c60d661dc112b226eb82f4b03f7e12:05
Wizzuphm wait let me double check12:05
WizzupI mean you'll definitely need the patch from that commit12:06
Wizzupyeah see12:06
Wizzupit adds the pvr driver12:06
Wizzuphttps://github.com/maemo-leste-upstream-forks/mesa/commit/cc91f322fe12c60d661dc112b226eb82f4b03f7e12:06
Wizzupso it's not in debian/rules, it's in meson.build12:06
Wizzupwait, it's also in debian/rule s:)12:07
Wizzup(waking up)12:07
mighty17[m]yeah i already apply your patches, i just wanted to check the build configs for meson12:07
Wizzupwait, so you're not just building our tree12:07
Wizzup?12:07
mighty17[m]i am12:07
mighty17[m]just not on debian12:07
Wizzupok12:07
Wizzupwell the patch in debian/patches patches debian/rules12:07
Wizzupso assuming you have applie it you should see12:07
Wizzup-       GALLIUM_DRIVERS += etnaviv kmsro lima panfrost tegra vc4 v3d12:07
Wizzup+       DRI_DRIVERS += pvr12:07
Wizzup+       GALLIUM_DRIVERS += etnaviv kmsro lima panfrost vc4 v3d12:07
mighty17[m]correct :D12:08
Wizzupok12:08
mighty17[m]but my build system doesnt use rules :P12:08
Wizzupso what flags do you mean?12:08
Wizzupright12:08
Wizzupwell, oyu'll need to set the DRI_DRIVERS and GALLIUM_DRIVERS I guess12:08
WizzupDRI_DRIVERS := $(patsubst %,'%',$(DRI_DRIVERS))12:08
mighty17[m]https://gitlab.com/pvrports/pvrports/-/merge_requests/3/diffs#7ad7275e6f960baa3165b9b143cb5984e676e684_65_7512:08
Wizzuprules is just make12:08
Wizzupso it'd be -Ddri-drivers=pvr,etc,foo,bar12:09
WizzupI think12:09
Wizzupbut you can also check our CI12:09
Wizzupit might contain that info12:09
Wizzup(the build log)12:09
Wizzuphttps://phoenix.maemo.org/job/mesa-binaries/architecture=armhf,label=armhf/97/consoleText12:10
mighty17[m]ah thanks a lot!12:15
mighty17[m]it shows the output ig12:16
Wizzupuvos: maybe we should make share some amixer command sequence to fix the audio temporarily12:25
Wizzupsicelo: do you know who to ask if I want to change the maedevu.maemo.org dns12:39
WizzupWould that be xes ?12:39
WizzupI'm looking to host the server on my own infra12:39
WizzupWill get rid of the space issues12:40
siceloWizzup, yes, iirc it's xes and warfare. joerg might know best14:17
joergwarfare14:18
joergour DNS is the one domain I never looked into, no idea where and by whom it's hosted14:20
_uvos_Wizzup: wdym amixer commands there no sutch commands, sphone sets the mixer up correctly14:20
Wizzuphm14:20
Wizzupbut buzz reports no audio with sphone14:21
WizzupI think14:21
_uvos_to hack it to make it temorarily work you have to wirte to cpcap registers by patching the kernel to allow wirtes fromuserspace on the regmap14:21
_uvos_and then just wirte the regs14:21
_uvos_yes audio effectively dosent work14:22
Wizzupah, so it can't be done with amixer14:23
_uvos_no14:23
_uvos_as soon as you switch to the call audio the kernel disabales all audio outputs because it thinks no sound is playing14:23
_uvos_because it dosent know that it not playing audio dosent mean that the amps dont need power14:23
_uvos_sine the modem is now playing audio14:24
Wizzupok14:24
_uvos_this is a fundamental limitation of the asoc framework14:24
_uvos_when the generic card driver is used14:24
Wizzupcan we write the registers from userspace?14:25
_uvos_no, not without patching the kernel14:25
_uvos_for some reason when you disable all audio outputs cpcap enables the speaker14:25
_uvos_thats why speakerphone sortof works14:25
_uvos_this is kinda a bug in cpcap hw14:25
_uvos_but the amp for the mic remains disabled14:26
_uvos_(thats why you only get one way audio)14:26
Wizzuphm14:26
_uvos_the only fix for this is writing a new driver14:26
_uvos_that dosent use the generic framework14:26
_uvos_(aka the very hard way)14:27
Wizzupbtw one downside with telepathy-gabble is that it doesn't do OMEMO for xmpp18:21
Wizzupnot the end of the world but eh18:21
Wizzupuvos: wonder if we could consider some hack fix to the kernel18:22
buZzweird, looking at voltage and power_now over time, it seems maybe there's no CCCV charging? only CC?18:26
buZzseems that once it would normally switch to CV , it stops charging , leaving battery around ~3.9V for full18:27
buZz^^^ kinda explains the constant re-charging once almost full, it will hit 4.2V , needs to switch to CV, doesnt, drop below 4.0v when charger disables (because its not full) , and then starts the CC charger again18:34
bencohoh18:40
bencohnow that explains it indeed18:40
buZzi'm just catting /sys/class/power/battery/ stuff, not really monitoring properly18:41
buZzbut this totally seems to be happening18:41
buZzalso i guess the battery might be overheating because of this, the CC causes a lot more heat18:49
buZzwhich might be the cause of the 'droid4 on powersupply tends to poweroff after a while'18:50
buZzbtw, anyone got syncevolution to actually work against a horde install ? :P19:08
WizzupbuZz: hm, horde?19:36
buZzits a 'groupware' nonsense thingy with SyncML and WebDAV and eh , addressbook, calendar, etc19:37
buZzhttps://www.horde.org/19:37
Wizzupought to work if it does caldav19:37
buZzi was trying SyncML , is caldav/webdav more mature?19:37
Wizzupidk19:38
WizzupI haven't tried it19:41
WizzupI just know I have instructions for caldav :)19:41
buZz:) welp, i'll just continue trying this stuff :P19:41
uvosbuZz: thats not true19:59
uvosbuZz: it charges cv at the end19:59
uvosslight problem is that the voltage drop is huge19:59
uvosif you mesure at the terminals you will see that it is indeed about 4.2v after cutoff20:00
buZzi see it charge -to- 4.2v and then directly stop, yes20:00
uvosno20:00
buZzi'm saying what i'm seeing :)20:00
uvosyou looking at sysfs20:01
uvosif you mesure at the terminals its quite different20:01
buZzi'll need to fix up my DMM then, i guess20:01
buZzmaybe i can make a sit-between measurement setup20:02
uvosalso note that sysfs lies20:04
uvos(the current is a total lie)20:04
buZzwell, its negative during charging and positive during discharging20:05
buZzat least that part seems correct then :P20:05
uvosright but its not messuring the real current20:05
uvosbut what its intending to happen20:05
uvosthat probubly made you think its cc charging20:05
buZzwell, if its -intending- to pump 800mA into the battery, that doesnt sound like its intending to do CV20:06
uvosno20:06
buZzagreed20:06
uvosits telling cpcap that it shal pump 800mA into the battery20:06
uvosmax20:06
uvoswhat it really dose is down to cpcap hw20:06
uvoswhich is a cc cv supply20:06
uvosbuZz: check out the mc13783 datasheet20:11
uvospage 8-8+20:11
uvos(this chip is register identical to cpcap wrt the charging block)20:11
uvoswe just set ICHRG and VCHRG20:12
uvosit just pumps ICHRG into the battery untill it hits VCHRG20:12
uvosthen it regulates VCHRG to be at the terminals20:13
uvosbuZz: charge termination is is indicated by the charge termination irq20:13
uvosthis fires when the current drops below a thresh20:14
uvosso yeah bascily all of this is handled in hw20:14
uvos(thresh is 30mA btw, also fixed in hw)20:17
buZzand we're charging to 4.3V ?20:17
uvosno 4.220:17
uvosbut you can set it 4.3 in sysfs20:17
uvosand the battery is desined to take it20:17
uvosas its hvlipo20:18
buZzright, as the droid4 uses a 'high voltage' cell20:18
uvosright but we do 4.2 as a curtsy to people that replace the cell20:18
uvosby default20:18
buZzmight be useful to put on the wiki :P there's quite some capacity thats lot there20:18
uvosright yeah20:19
uvosbut its not that mutch20:19
buZzdo you know offhand which sysfs entry to tell 4.3?20:19
uvosmost of the cap of a hvlipo comes from the higher nominal voltage20:19
uvosabove 4.2 is very little20:19
uvosconstant_charge_voltage iirc20:20
buZzin cpcap-battery or cpcap-charger?20:20
buZzor are they the same20:21
uvosno they are not the same20:21
uvosi think in charger20:21
uvosdef in charger20:21
buZzi cant seem to overwrite it ? 'echo 4300000 > constant_charge_voltage' , nor 'echo -n 4300000 > ...'20:22
uvosecho 4300000 > constant_charge_voltage20:24
uvoscat constant_charge_voltage20:24
uvos430000020:24
uvosworks fine here20:24
buZzyeah, thats what i did, sticks to 4200000 here20:24
uvosvoltage_max_design?20:24
buZzah, lets try that first i guess20:25
uvosno i mean20:25
uvosthis limits constant_charge_voltage20:25
uvosif its 4200000 it wont work20:25
uvosthere is some detection logic that i added that should take care of this20:25
buZzright, i dont think its working :P20:26
uvoswell what is voltage_max_design?20:26
buZzthats saying 4200000 indeed , for a li+ thats labelled 'HV'20:26
buZzhttps://github.com/maemo-leste/droid4-linux/blob/master/drivers/power/supply/cpcap-battery.c#L372  , 4347000? :D20:28
uvoswell it works by reading the battery eeprom20:28
buZzwhere is that code?20:28
uvosif it cant read the eeprom it defaults to 4.220:28
buZzhttps://github.com/maemo-leste/droid4-linux/blob/master/drivers/power/supply/cpcap-battery.c#L686 < 4351000 ?20:29
uvosapperantly it got lost20:29
uvosthe detrection code is not in leste anymore20:29
uvosit seams20:29
buZzahhh, a bug! :D20:30
buZzhehe20:30
buZznice that we've caught that now20:30
uvoskinda20:35
uvosmore of a missing feature20:35
uvosanyhow those voltages 4.351 etc are from android20:36
buZzyeah the code is aswell, i assume?20:36
uvosno20:36
buZzoh? just the comments then?20:36
uvosno nothing is20:36
buZzreally should flash that android thingy back on this droid4 to check what cpcap does with this battery20:37
uvosjust that the register values corrispond to voltages20:37
uvosand the reister values where chosen in mainline linux to be the same mostly20:37
uvoswhich implies thresholds etc20:37
buZzi'm not really following why what userland runs on a kernel matters for the values you get from the kernel20:38
buZzbut ok20:38
uvoscharging on android is implmentented mostly in userspaci iirc20:38
uvosand the cpcap driver is totaly different20:38
buZzthe hw charger gets into different modes?20:39
uvosi dont follow20:39
uvosthe charger switches from cc to cv automaticly in hw, other than "off" it has no other modes20:39
buZzeh, i mean, if the charging happens in hw, what does it matter if its happening in userspace?20:39
uvos(well tickle charging)20:39
uvosbuZz: it dosent, why do you think it dose?20:40
buZzyou just said it does?20:40
buZzO_o20:40
uvos? no, you must have missunderstood me20:40
buZzoh ok, so charging works comparable in android?20:41
uvosyes20:41
uvosthe register values of the hw charger where taken from android20:41
uvosand they are indeed the sam eif you diff them20:41
uvosso since its fully hw implemented20:42
uvosthe behavior must be the same really20:42
buZzalright, so 4347000 / 4351000 is full?20:42
uvoswell no, thats one thing we did change20:42
uvosby default20:42
uvosbut other than that20:42
uvosis what i mean20:42
buZzso we've cut off max voltage, right20:42
uvosright20:42
buZzmaybe i should just pull the kernel source to droid4 , and edit the 4200000 constant on it20:43
uvosthe other thing thats different is how android computes state of charge20:43
uvosbut thats just related to what it displays20:44
uvosmostly the android method mostly works20:44
uvosand the mainline method only sorta works :P20:44
buZzehhh no 'fakeroot' or 'build-essential' on leste? ehhhh20:47
sicelodoesn't that come from devuan?20:47
buZzit should20:47
uvosit dose20:47
uvosyou have a problem localy20:47
buZzwonder wtf20:47
buZzwoa , 'apt update' is pulling in a ton O_o but whyyy20:48
buZzalright, works now20:49
WizzupbuZz: well I moved stuff over from devel to stable20:49
Wizzupso that causes version bumps20:49
buZzah that might be what happened :)20:49
buZzare there source repos for the leste stuff?20:50
Wizzupsource as in git, or source as in deb-src20:50
buZzthe latter :)20:50
Wizzupyes20:50
Wizzupjust use deb-src20:50
buZzalright20:51
buZz'unable to find source pkg for linux-image-omap'20:52
buZzaw20:52
buZzok, bbl20:55
WizzupbuZz: for that you can use git21:10
Wizzupit's better probably21:10
WizzupbuZz: but it should be there, but the src pkg is likely called differently21:10
WizzupSource: omap-linux21:10
buZzit doesnt find that either21:36
Wizzupwhat do you run21:41
buZz-devel21:42
buZz5.15.1-2+2m7.121:42
buZzoh, command?22:02
buZzapt-get build-dep omap-linux22:03
buZz'linux-image-omap' gives same response22:03
Wizzupwhat about any other maemo package22:08
buZzlets see22:08
buZzahhh, osso-terminal also nothing22:08
buZzpastebin.com/ErzdcnrF22:11
buZzisnt that setup correctly?22:11
Wizzuplet me check22:23
WizzupbuZz: you did 'apt update' right?22:24
buZzyeah , bunch of times22:25
Wizzuplet me check.22:25

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