Sunday, 2026-03-29

T42<nc1x72> Something must have gone wrong.11:46
T42<nc1x72> I made the changes you suggested. It compiled fine but now the phone display turns off few seconds after SailfishOS splash screen.11:46
T42<nc1x72> 11:46
T42<nc1x72> I have also removed everything, repo sync everything and compiled a fresh rootfs = same problem11:46
malhmm11:48
malgo to folder rpm/dhd and there run "git reflog"11:50
T42<nc1x72> Ok but wouldn’t that be the same as removing the whole hadk folder and repo syncing from scratch? Because I already deleted hadk folder and did everything from the beginning11:53
T42<nc1x72> Oh sorry reflog11:54
T42<nc1x72> You want log11:54
malthere is pretty much never need to start from beginning, it's just waste of time11:55
maloh, you removed that dhd/rpm folder from earlier build?11:56
T42<nc1x72> yep11:57
malI just want to see what difference there is between the earlier build and latest build11:57
T42<nc1x72> removed everything11:57
T42<nc1x72> nonta72@localhost:~/hadk/rpm/dhd$ git reflog11:57
T42<nc1x72> 732c329 (HEAD, m/hybris-21.0) HEAD@{0}:11:57
T42<nc1x72> nonta72@localhost:~/hadk/rpm/dhd$11:57
malyou should not do that, it's just huge waste of time11:58
mala moment, I did some test build and found some issues, check what is causing those12:05
T42<nc1x72> You did test build on fp5 repos? Or spacewar?12:07
malfp5, it seems the latest rpm/dhd submodule has a bug, making a test now with a possible fix12:09
mal@nc1x72 go to rpm/dhd and there run "git fetch origin" and then "git reset --hard origin/linkerconfig"12:16
malthen back to ANDROID_ROOT and repackage droid-hal rpms with "rpm/dhd/helpers/build_packages.sh -d" and then build a new image with "rpm/dhd/helpers/build_packages.sh -i"12:17
mal@nc1x72 and just for future, instead of removing all hadk folder it's enough to just remove the out/ folder from there, that is where the whole output of android side build goes12:32
maland the need to remove out/ is very rare12:32
T42<nc1x72> Ok noted12:48
T42<nc1x72> Ok that worked. Now boots and audio is working.14:53
T42<nc1x72> 14:53
T42<nc1x72> However, it has broken camera which now gets stuck on a black screen and not responding14:53
T42<nc1x72> Some logs : https://paste.opensuse.org/pastes/a5b9a151e91e15:08
T42<nc1x72> 15:08
T42<nc1x72> But I doubt it's due to SELinux denials15:08
malthose can be ignored15:12
malshow logcat when you try to use camera15:12
malyou could try removing /home/defaultuser/.cache/gstreamer* on device and try again15:16
T42<nc1x72> logcat : https://paste.opensuse.org/pastes/9116895abeb415:20
T42<nc1x72> Removing gstreamer cache didn’t work15:20
T42<nc1x72> android.hardware.camera.provider@2.4.so is in /vendor/lib (and lib64)15:23
malwait, are minisfservice and minimediaservice process running?16:00
T42<nc1x72> minimediaservice yes, but not minisfservice16:06
T42<nc1x72> [root@phone1 defaultuser]# pgrep minisfservice16:07
T42<nc1x72> [root@phone1 defaultuser]# pgrep minimediaservice16:07
T42<nc1x72> 228816:07
T42<nc1x72> Wait, is it on the android side?16:09
mal@nc1x72 for testing you could add symlink for the /vendor/lib64/android.hardware.camera.provider@2.4.so in /usr/libexec/droid-hybris/system/lib64/17:01
T42<nc1x72> android.hardware.camera.provider@2.4.so is also in /usr/libexec/droid-hybris/system/lib64/ already18:59
T42<nc1x72> I didn’t put it there19:00
malok19:01
malit seems that one change in linkerconfig is not good for android 1419:03
T42<nc1x72> Ok19:13
malyou could try to symlink it to /system/lib64/19:21
T42<nc1x72> Yes that actually worked!19:41
T42<nc1x72> video recorder is broken (that bug was already there before the new linkerconfig patches tho).19:42
T42<nc1x72> Should I make changes on my repos regarding this symlink or wait for a fix on linkerconfig?19:42
malI'll try to fix it, I just used the patch from newer android bases and it seems there are issue with it in android 14 base, I didn't have time to test it on fp5 yet19:43
malhmm, how does video recording fail?19:44
malshow logcat when that happens19:45
mal@nc1x72 did camera work before the linkerconfig changes?19:52
T42<nc1x72> Camera worked before yes but not for recording videos. In other terms, it's back to the state it was before linkerconfig changes: I can open it and take pictures. I can even switch to video recorder mode. When I click on video recorder button, it starts recording. When I click to stop, camera app hangs.19:57
T42<nc1x72> 19:57
T42<nc1x72> Here's the logs : https://paste.opensuse.org/pastes/9c3d3efbf7e619:57
T42<nc1x72> 19:57
T42<nc1x72> The line CANNOT LINK EXECUTABLE "/usr/libexec/droid-hybris/system/bin/minisfservice" was before the symlink and it was spamming a lot, I removed all the lines from the logs to keep just 3. Same for thes lines : "Codec2Buffer: GraphicMetadataBuffer does not work in 32+64 ..." and "QC2Comp : [avcE_15] Returning work with no/empty ..."19:57
malwhat does "getprop debug.stagefright.c2inputsurface" show on your device20:06
T42<nc1x72> Empty20:07
maltry "setprop debug.stagefright.c2inputsurface -1" and then try recording20:08
T42<nc1x72> Still hangs20:11
malsame messages in logcat?20:11
T42<nc1x72> Yep : https://paste.opensuse.org/pastes/e4f967fc2ba120:14
malI don't see those GraphicMetadataBuffer errors anymore20:14
T42<nc1x72> I missed those ...20:19
T42<nc1x72> Video recording works with front camera20:20
malok, just a moment20:21
malI think you need to figure out what it the largest supported video resolution that works, I suspect maybe 4k resolution, so try the first two lines https://github.com/mer-hybris/droid-config-f5121/blob/master/sparse/etc/dconf/db/vendor.d/jolla-camera-hw.txt#L1 but resolution value of 4160x3120 if it fails the try lower values20:29
malor maybe 3840x216020:30
T42<nc1x72> I'm assuming just this line ? https://github.com/mer-hybris/droid-config-f5121/blob/508c0c9b5cf69649cabb43a425184e92a8f72651/sparse/etc/dconf/db/vendor.d/jolla-camera-hw.txt#L220:31
malyes, you have the file already20:31
malafter editing the dconf file on device run dconf update and restart camera app20:31
mal"dconf update"20:31
T42<nc1x72> Yes, but the file doesn't have the other settings like https://github.com/mer-hybris/droid-config-f5121/blob/master/sparse/etc/dconf/db/vendor.d/jolla-camera-hw.txt#L4-L54 that's why I asked.20:38
T42<nc1x72> 20:38
T42<nc1x72> Anyway, running dconf update returns "(dconf:36174): GLib-GIO-CRITICAL **: 21:33:28.526: g_dbus_connection_emit_signal: assertion 'object_path != NULL && g_variant_is_object_path (object_path)' failed"20:38
T42<nc1x72> 20:38
T42<nc1x72> I restarted the phone, still hangs20:38
T42<nc1x72> I chose 1920x108020:38
malthe setprop doesn't remain across reboots at moment20:38
malso remember to set that again20:39
T42<nc1x72> Oh yes, I forgot, I should have set it in droid-hal-early-init script20:39
malor patched in to build.prop in /system/20:39
maleither way is fine20:40
T42<nc1x72> Ok fixed after setting setorio20:41
T42<nc1x72> setprop*20:42
T42<nc1x72> I'm gonna go with droid-hal-early-init script20:42
malyou should find what is the best value to use for recording, some standard resolution20:42
T42<nc1x72> Indeed20:42
T42<nc1x72> I'll try that now and then move to vibrator fixing maybe tomorrow20:43
mal3840x2160 is a good guess for first tests, that seems to be the usual 4k resolution, I think fp5 can do 4k20:43
T42<nc1x72> Thank you mal!20:43
T42<nc1x72> Spacewar can do 4k too (at least on Android)20:44
malI wonder if you need the same way to handle vibrator that I use on fp5, depends on the kernel driver20:44
T42<nc1x72> I knew vibrator was going to be an issue, that's why I left it alone as the final boss20:44
malwell if it's the same as fp5, it's just tiny change to one spec file and patterns and build one package20:46
T42<nc1x72> On the first attempts, I used the same package you use on fp5. It resulted in constant, strong vibration. After switching to native vibrator as you suggested earlier, it simply stopped working (no vibration at all), which is fine by me for now because the constant vibration almost broke the motor. Anyway, I'll dig deeper later.20:49

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