Saturday, 2025-06-21

rinigus@TheVancedGamer: with your PR https://github.com/sailfishos/droidmedia/pull/130, I have a camera on nagara/los21. thank you very much! (cc mal)12:12
malI tested that on x10v and at least the new services showed up in binder-list so probably fine12:14
malmaybe I'll still test on fp4 or fp5 to verify12:14
T42<TheVancedGamer> it works on my pixel at least, gets hwc up12:14
T42<TheVancedGamer> otherwise it wouldn't boot12:14
Mister_Magisterdoes it restore camera1 api or something?12:14
T42<TheVancedGamer> no, stubs sensorservice and IStats but over AIDL12:15
T42<TheVancedGamer> a lot of services depend on these two HALs (at least for me)12:15
Mister_MagisterI was told there's no camera on a14 due to no camera1 api12:15
Mister_Magisterin fact mal said it12:15
Mister_Magisterso are y'all using camera2 api?12:16
malno, camera2 still needs a bit of work12:16
rinigus@TheVancedGamer: for me composer was fine, just camera. although, composer is blob-lifted from moto blobs. with sony blobs I couldn't start composer when making LOS21.12:16
malcamera in a14 works without video recording12:16
rinigus@TheVancedGamer: you asked me regarding composer earlier. nagara has vendor.qti.hardware.display.composer@3.1::IQtiComposer/default and android.hardware.graphics.composer@2.4::IComposer/default .12:17
T42<TheVancedGamer> yeah you have hwc212:18
Mister_Magistermal: via camera2 api12:18
Mister_Magisterso i'm confused how that fix restores camera for y'all if y'all aren't using camera2 api a14 doesn't have camera1 api supposedly12:19
malMister_Magister: no, I mean camera1 picture mode work fine in a14, the part they removed was the video pipeline we use12:19
Mister_Magisterahhh12:19
Mister_Magisterbut you also only get picture in camera2 api cause you didn't fix video yet12:19
rinigussince I have been living under the rock and not following camera1/2 - what do I need to get multiple lenses working on SFOS? right now looks like its loading one of the back lenses out of three. and also can switch to front . but cannot choose which one of the back lenses is used12:20
Mister_Magisterconfusion cleared12:20
Mister_Magisterrinigus: nothing much, use advanced camera12:20
malwell my test camera2 code I have did record video but due to some timestamp issue or somethings like that it couldn't be played back, the video data was there in the file12:20
Mister_Magisterso close12:20
malyeah12:20
T42<TheVancedGamer> mal: you've pushed all of your camera2 stuff right?12:20
malI think no12:20
T42<TheVancedGamer> I'm interested in getting camera2 running on UT with FP5, so I could help if you want12:21
Mister_MagisterI'm like on the two edges of spectrum12:21
Mister_Magisteri want camera2 api for my a14 device and I want fix for kernel 3.4 on my 11 years old device12:21
Mister_Magisterold and new12:21
Mister_Magisterthe newest and the oldest12:21
rinigusMister_Magister: advanced camera doesn't show multiple lenses either. any config needed?12:21
Mister_Magisterrinigus: nope, it ususally works straight away12:22
T42<TheVancedGamer> mal: I would also appreciate it if you could merge the libhybris PR before I forget to update UT packaging :D12:22
rinigus:( .12:22
Mister_Magisteralso the mce pr pretty please12:22
Mister_MagisterI've been touching grass and it works perfect12:22
Mister_Magisterrinigus: could be camera2 api thing12:24
rinigusMister_Magister: hmm, you mean its not supported with camera1 api? I have a feeling it was similar on LOS21, but don't remember for sure12:25
Mister_Magisterrinigus: on a1412:25
mal@TheVancedGamer would you like to do a quick rebase of that libhybris memory fix so I get cleaner git history (I want the merge commit there so I don't want to use the rebase feature)12:25
Mister_Magisterbut thats just a guess12:25
T42<TheVancedGamer> mal: sure, can do12:25
rinigusyeah, could be. but to test it I would have to go back to LOS21. probably should12:26
T42<TheVancedGamer> mal: done12:26
mal@TheVancedGamer something went wrong, it shows the commit you pushed in the PR12:28
T42<TheVancedGamer> hmm12:28
T42<TheVancedGamer> it shouldn't appear if you merge it though12:28
T42<TheVancedGamer> because I only rebased my branch on top of origin12:28
maldid you cherry-pick the commit or merge instead of rebase?12:28
T42<TheVancedGamer> rebase12:28
malhttps://github.com/muhammad23012009/libhybris/commits/master/12:28
malthose are in wrong order12:28
T42<TheVancedGamer> how did that happen even12:29
malno idea12:29
T42<TheVancedGamer> sec12:29
T42<TheVancedGamer> hmmm : https://irc.thaodan.de/.imgstore/6096409e/file_7454.jpg12:29
malthat branch is not pushed based on that?12:30
T42<TheVancedGamer> it's confusing, I pushed this12:30
T42<TheVancedGamer> I'll try fixing it12:30
malit should so the someremote/master in the commit line12:30
malhow did you rebase?12:31
T42<TheVancedGamer> pulled origin with pull.rebase12:31
malbut that branch looks ok in that screenshot, not sure what happened when pushing, try force pushing again12:31
T42<TheVancedGamer> ok, fixed12:33
malmerged12:35
T42<TheVancedGamer> great, thanks mal!12:36
malI'll probably wait for that hwc2/hwc3 PR to be fixed before updating sailfish packaging12:36
T42<TheVancedGamer> fortunately for us we use two separate forks of libhybris :P12:36
malare there any changes in those that could be upstreamed?12:37
T42<TheVancedGamer> there is an issue on Android 14+ vendors, VNDK got fully dropped and now we need to use HYBRIS_LD_LIBRARY_PATH with /system/lib6412:38
T42<TheVancedGamer> no idea how to properly handle that12:38
malyeah, that vndk has been causing some headache for me also12:39
T42<TheVancedGamer> I managed to drop all dependencies on vndk.v34, but I still need system libs12:39
malI did reorder the paths in our packaging https://github.com/mer-hybris/libhybris/commit/c97746de1696a09bf5a4b067fdfb7918874c528512:39
T42<TheVancedGamer> because everything is now moved back to either vendor or system12:39
T42<TheVancedGamer> mal: could you turn that into a proper patch in libhybris itself?12:40
T42<TheVancedGamer> e.g. we do this for UT: https://gitlab.com/ubports/development/core/packaging/libhybris/-/blob/ubports/latest/debian/patches/0009-q-Add-com.android.i18n-apex-to-library-path.patch?ref_type=heads12:40
malneed to see what the defaults are there12:40
T42<TheVancedGamer> maybe it'd be good to unify everything in one place12:40
malis that com.android.i18n from some newer android linker?12:41
T42<TheVancedGamer> A12+ iirc12:41
malI remember having issues with that path12:41
T42<TheVancedGamer> some mandatory libraries got moved to i18n apex12:41
malyeah, that would be good for upstreaming, maybe android version conditionally if that was added in a12?12:41
T42<TheVancedGamer> possibly yeah12:41
malbut should not matter much if it's unconditional, maybe12:42
malthis is how we have handled that issue https://github.com/mer-hybris/droid-config-sony-murray/tree/master/sparse/system/lib6412:42
malwhich is a terrible way12:42
T42<TheVancedGamer> oh dear12:43
T42<TheVancedGamer> uhhh xD12:43
malI didn't have time to check linker side when fixing that12:44
malbut please have a look at upstreamging that patch, would be useful for us also12:44
Mister_Magistermal: oh yeah right i'm dumb i have photos working on my a14 device i just forgot12:47
T42<TheVancedGamer> mal: would it make sense to use linkerconfig for ld paths?12:47
Mister_Magistertoo many devices to keep track of12:47
mal@TheVancedGamer how do you mean? i think we do get some parts from linkerconfig already, it generates the linker configs at boot12:48
malbut not in lh12:48
T42<TheVancedGamer> mal: linkerconfig also specifies list of paths that should be used for libraries12:48
rinigusmal: for some reason s didn't work on nagara/los21. as linker was refusing to follow to apex dir. so, I had compiled apex and added these libs as copies in hybris. if UT solution works, its way better12:48
malrinigus: linker is quite strict about namespaces now12:49
rinigusedit: (symlinks didn't work)12:49
rinigusit is.12:49
maland symlinks12:49
malthat is why some devices have needed some bind mount hacks12:49
Mister_Magisteryeap like me12:50
malI know the linker stuff is a bit hacky at the moment12:50
Mister_Magisteri can't preload i can't symlink i can't even put it in libexec/droid-hybris12:50
Mister_Magisteri need to mount --bind it to vendor12:50
malI'll take a break now, will be back a bit later, I'll verify that droidmedia PR later today and merge it and maybe rebase the camera2 stuff I have12:51
rinigusactually, with nagara I dropped bind mounts and use overlays. which seem to work nicely12:52
malwould be nice to solve the linker issues to remove the need for things like those12:52
Mister_Magistermal: is c2 also on a14?12:53
T42<TheVancedGamer> ooh that does remind me, OMX has been deprecated with 15/1612:53
malyeah, codec stuff might need some changes soon12:54
malMister_Magister: a13, which has same camera issues as a1412:54
Mister_Magisterah12:54
malfor video recording12:54
Mister_Magister@TheVancedGamer good old a5, nothing beats a512:54
mal@TheVancedGamer those ndk codecs might be the way forward (also used in camera2)12:55
T42<TheVancedGamer> mal: we have c2 codecs on gst-hybris12:56
riniguslet's let mal have his break :)12:56
Mister_Magisterrinigus: thats a tough one12:57
Mister_Magisterhe never ever wants to take a break12:57
Mister_Magisterhe's legend like that12:57
T42<TheVancedGamer> nah he's just finnish12:58
Mister_Magisteryeah12:58
T42<morciatka> he's not finished /s12:58
mal@TheVancedGamer can you point be to the repo of that12:58
T42<TheVancedGamer> mal: https://gitlab.com/ubports/development/core/hybris-support/gst-hybris12:58
Mister_Magisterwe shall name him angel of sailfish12:58
T42<TheVancedGamer> we need some work for audio codecs still12:58
T42<morciatka> the mermaid or what /s12:58
Mister_Magister@TheVancedGamer audio codecs? those are done in software12:59
T42<TheVancedGamer> gst-hybris cannot handle any audio codecs12:59
Mister_Magisterye12:59
T42<TheVancedGamer> it has code, just needs to be fixed12:59
Mister_Magisterbecuase there's no point for it to12:59
T42<TheVancedGamer> there is12:59
mal@TheVancedGamer codecs in droidmedia have some issues with c2-only devices, some devices have issues12:59
T42<TheVancedGamer> codecs like eac3 are proprietary13:00
T42<TheVancedGamer> and android bundles them13:00
Mister_Magisterah13:00
malMister_Magister: droidmedia has couple of audio codecs13:00
maland gst-droid13:00
Mister_Magisterso instead of paying for license you just use android side13:00
malyes :)13:00
Mister_Magister:))))))))13:00
Mister_Magisteri love it13:00
T42<TheVancedGamer> who wants to pay Dolby millions of dollars13:00
malrinigus: about that multicamera issue on nagara, does the issue happen in all camera apps?15:36
rinigusmal: yes, it does. I haven't checked, but I think its not supported on LOS21 using camera1 api15:37
rinigusalso adding multicamera setting to /vendor/etc/camera/camxoverridesettings.txt doesn't help either.15:38
malanyway that droidmedia PR has now been merged15:38
rinigusmal: thanks!15:39
mal@TheVancedGamer https://github.com/libhybris/libhybris/pull/58217:21
T42<TheVancedGamer> mal: lgtm!17:23
T42<TheVancedGamer> and thank you for working on it :D17:23
mal@TheVancedGamer in case you want to test this in ubuntu builds https://github.com/libhybris/libhybris/pull/58320:02

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