Friday, 2026-05-15

nightishamanmal: Kernel built successfully00:07
malgood00:07
nightishamanI have to modify android_vendor_lineage for my build, so it uses the correct commands and push the kernel to a new repo00:08
mal@adampigg update your custom connman config, compare the end of https://github.com/HelloVolla/droid-config-halium-algiz/blob/master/sparse/etc/connman/main-mtk.conf and https://github.com/mlehtima/droid-config-fp5/blob/master/sparse/etc/connman/main-custom.conf00:40
malyou might notice something relevant to your problem :)00:40
malcheck any other ports you have made if those also have the same issue00:41
malalso your config is missing UserStorage00:49
nightishamanmal: I fixed the lineage vendor repository, I think its being pulled in by your manifest tho, in case you wanna fix this for other devices in the future01:05
nightishamanhttps://github.com/maltesermailo/android_vendor_lineage01:05
nightishamanim currently waiting for my mirror of android kernel to be finished01:10
nightishamanhttps://github.com/maltesermailo/android_kernel_pantah/import01:10
nightishamanmal: I have applied some changes to the kernel, should I upload the whole kernel to GitHub or use patch files? Unfortunately the import didn't work02:10
T42<adampigg> Mal: thankyou :)07:57
Mister_Magistermaaaaaaaaaaal any update on camera2 api? xd07:57
T42<abranson> it's progressed a bit lately. not quite there yet.07:58
Mister_Magisternono that's not what i mean, i just want uid fix from him :P08:00
Mister_Magisterhe just didn't have time to do it yet but i'm just querying08:00
Mister_Magisteras my adoption of camera2 api stopped at the fact that droidmedia cannot access any camera because it's launched from wrong uid, or gid, i don't member, and mal said he has fix for it just has to sort out his in-progress stuff08:01
Mister_Magistersorry for pings08:01
T42<abranson> is that android 13+?08:01
T42<abranson> he mentioned last night that it needs the fake camera proxy back08:02
Mister_Magisteryeah it's android 15 indeedio08:02
malMister_Magister: https://github.com/sailfishos/droidmedia/tree/android15-cameraproxy10:30
Mister_MagisterI should give you a smooch but I'm afraid you wouldn't like it so you'll have to ask your significant other for one from me :D10:31
Mister_Magisterthank you so much <310:31
Mister_Magisterwait there's no droidmediacamera2.cpp?10:32
Mister_Magisterno there is10:32
Mister_Magisterwait no there isn't10:32
Mister_Magisteron android15 there isn't either so i'm just confusing myself10:33
Mister_Magisterwait mal that branch is not camera2 api branch is it?10:33
Mister_Magisteri cherry-picked the commit onto camera2-capture branch :)10:36
malnope, it's not camera2 just something to use as base10:37
Mister_Magistergotcha thanks i just got confused10:37
Mister_Magisterhmmm ckati failed with: exit status 13711:04
T42<adampigg> Mal: were those configs added more recently? Its workinr btw :)12:07
mal@adampigg those were added in first 5.0 release12:55
malso quite a long time ago12:55
Mister_Magistermal: to the best of your knowledge, would lipstick crap its pants if you were to dynamically change refresh rate?12:57
Mister_Magisterlike the setting of refresh rate change that was introduced in 5.1, would that be done only on lipstick start or dynamically?12:58
Mister_Magistercause mce has idea if the phone is being touched or active, so potentially you could use mce to control the refresh rate dynamicallly12:59
Mister_MagisterBut i fear that sfos would hate if you did that13:00
malnot sure really, we haven't yet investigated dynamic refresh rate13:02
Mister_MagisterI can imagine :D13:03
Mister_Magistereven so i'll try to make some test software that does change the dynamic range as the android guy that has been helping me knows how to do it13:03
Mister_Magisteryou have to use ioctl on /dev/dri/card0 apparently13:04
Mister_Magistermal: okay we're step closer, now jolla camera initilaizes, sees 2 back cameras, there's brightness slider, advanced camera sees resolutions, except there's no video :( https://paste.opensuse.org/pastes/051e088d0bb413:27
Mister_Magisterlike all i see is darkness13:27
Mister_Magisterand logcat https://paste.opensuse.org/pastes/962de0012ec713:31
Mister_Magistercould it be my changes? :P13:32
malwhat changes have you done?13:39
Mister_Magistertried to disable sharpening and denoising and i see error in the log related to that13:42
Mister_Magisteri've removed them and i'll try again13:42
Mister_Magisterokay it works!13:55
Mister_Magistereven wide angle!13:55
Mister_Magistermal: now question, I'd love if you pointed me to where can i put my ACaptureRequest_setEntry_i8 in droidmediacamera2 to have sharpening disabled by default13:56
Mister_Magisteri tried in update_request but that broke it13:57
Mister_MagisterI tried recording video but video is nogo13:58
T42<Mister_Magister> @b100dian maybe you know since you played with it14:01
T42<CRK_11755> Happy Friday all does anybody use Google voice as their primary phone on SFOS14:26
T42<Mister_Magister> @b100dian fp is nogo sadly, the daemon does communicate but in the test app it just stays on enrolling and no progress, i even tried to blast it with HBM and nah15:38
Mister_MagisterI'm pressing in correct place cause screen is sending events but nah15:40
nightishamanmal: Im currently recompiling. I went with the patch file method since my upload is bad and cuts off the internet for the whole house when I do it. However, after doing make hybtis-hal, it errors out with no kernel binary, but I have the boot.img from LineageOS. How do I continue now?16:45
malnightishaman: as a temporary hack remove hybris-boot from this list https://github.com/mer-hybris/hybris-boot/blob/master/Android.mk#L307 and manually copy boot.img to hybris-boot.img in out/16:54
nightishamanmal: Alternatively I could try setting TARGET_PREBUILT_KERNEL to the location where the kernel build script copies the kernel to17:01
nightishamanI wonder tho how I can tell it to include the kernel modules if I change that17:13
nightishamanokay build is finished17:18
malI need to think a bit more how to handle such prebuilt kernel situations17:25
T42<adampigg> Mal: any change in 5.1 that would cause a new wakelock... Disp_crtc0_wakelock ?17:26
T42<adampigg> From mtk drm i think17:26
T42<adampigg> My tablet no longer sleeps at all, and it used to be great17:31
nightishamanmal: https://pastebin.com/3CUVVemg how do I continue?18:11
maldid you follow instruction when creating target and tooling18:12
nightishamanim stupid18:13
malhttps://hadk.sailfishos.org/build-env/ this mentioned in the warning box about the naming of those18:13
nightishamanyeah I just saw it18:14
malmaybe I should make the text bold or something18:14
nightishamanI installed the tooling as SailfishOS-4.5.0 and in there my device, tested it with the commands on the website18:24
nightishamantho still it is not working18:24
nightishamanmal: https://pastebin.com/BT8HxGnB18:24
malI assume you really used 5.0 not 4.518:32
nightishamanHow do I know?18:32
malyou probably are missing this from droid-hal spec https://github.com/mlehtima/droid-hal-fp5/blob/master/droid-hal-fp5.spec#L9 in $ANDROID_ROOT/rpm folder18:33
nightishamanI added that already18:33
nightishamannow im having this problem: https://pastebin.com/gVgQLbac18:33
nightishamanI don't know what it's referring to, I checked the kernel and it has all values properly set18:34
malcheck that log file mentioned in the end of that18:34
maland see if it finds the .config file18:35
malmaybe it can't find it because of the prebuilt things and you might need some symlink18:35
nightishamanit can't ill symlink it18:35
malfind if there is .config somewhere in out/target/product/$DEVICE or where ever it built the kernel18:36
nightishamanits very annoying that they had to do it like this18:42
nightishamanhttps://pastebin.com/ZZPxak8H18:46
nightishamanmal: You got any idea what's wrong?19:01
malnot yet, it seems that is some new change that broke the build19:08
malnightishaman: in $ANDROID_ROOT/rpm/dhd/helpers there are files simg2img.mk and img2simg.mk, in those replace gnu++14 with gnu++1719:12
nightishamanand another problem: out/target/product/panther/obj/KERNEL_OBJ/include/kernel.release doesn't exist. I copied it already, but I wanted to document the problems19:30
nightishamanthe entire build system is not compatible with the google kernel build19:31
nightishamanwell19:31
nightishamancp: cannot stat 'out/target/product/panther/kernel': No such file or directory19:31
nightishamanerror: Bad exit status from /var/tmp/rpm-tmp.md7BFU (%install)19:31
nightishamanmal: Does it search for a kernel file?19:31
nightishamanPlatformSDK [jannikmueller@fedora hadk]$ file out/target/product/panther/obj/PACKAGING/prebuilt_bootimg_intermediates/kernel19:38
nightishamanout/target/product/panther/obj/PACKAGING/prebuilt_bootimg_intermediates/kernel: LZ4 compressed data (v0.1-v0.9)19:38
nightishamanthere is a file there called kernel, however I might just copy out/pantah/dist/Image.lz4 to kernel instead19:38
Mister_Magistermal: hwc3 has some variable refresh rate stuff, any plans to add support for hwc3? as far as I understand sfos only goes up to 2.0 right?19:56
nightishamanmal: https://pastebin.com/iEf38aA3 new error, I copied the kernel, but it won't work since hybris-recovery.img is missing20:04
nightishamanI have a concern that the boot.img from the kernel build that I renamed to hybris-boot.img will lack the Sailfish OS scripts for telnet and co20:10
Mister_Magisterrinigus: so i need to decompile like rild? I mostly wanna find out what signal id's is the rild sending and reciving to match them on ext_qti side but idk if that's connecting to rild or to what (i really don't get what this plugin does the code is so unreadable)20:13
malnightishaman: just copy the boot.img as hybris-recovery.img also, that recovery is quite useless anyway20:23
nightishamanmal: should I just ignore the failed copies of modules?20:24
malthose might be relevant for creating vendor_boot and packaging modules in droid-hal20:24
malare there modules in any of those paths?20:24
nightishamanthe modules themselves reside at device/google/pantah-kernels/6.1/20:26
nightishamanthe modules.order sits in some subdirectory of the build system20:26
nightishaman./out-kernel/google/gs-6.1/out/bazel/output_user_root/b175185316eccd4bd009205ae3b430ab/execroot/__main__/bazel-out/k8-fastbuild/bin/aosp/kernel_aarch64_modules_install/staging/lib/modules/6.1.145-android14-11-ge57c6088a04b/modules.order20:26
malmodules order is probably not that important since build should be running depmod anyway20:26
malnightishaman: does that kernel path contain all modules in what kind of folders?20:27
nightishamanmal: https://pastebin.com/D3Tczbgp looks like this20:27
nightishamanthere is a prebuilt vendor_boot, vendor_dlkm and co20:27
malbut no clear folders for those? like what goes where, also any modules.load files?20:28
malseems there are20:29
nightishamanwhat should I copy and where?20:30
malI wonder if you should be creating a script to generate a custom out/target/product/ subfolder and the script would copy needed things to correct places, I do that on one device20:30
nightishamanI already modified android_vendor_lineage anyway or could add my own repo20:31
malthose various modules.load files there tell to which place the modules belong to, but we copy everything except vendor_boot stuff to droid-hal20:31
maldo you see vendor_boot.img anywhere?20:32
nightishamanthere is one at ./out/target/product/panther/vendor_boot.img20:32
malok, that is good20:33
nightishamanwhen you can tell me where to inject the script and maybe give me a template based on ur device, I might do that20:33
malsome options what to do, either go with the script way or add some symlink to the module folder to one of those paths it searches20:34
nightishamanwhat is the better way in case someone wants to build it himself from my script files20:34
malI mean I have a fully separate script which I run after hybris-hal build manually which creates a new folder under out/target/product/ and I tell droid-hal to use that20:35
nightishamanok, can you give me that?20:36
malin my case the full android build creates 4 separate out* folders each with different codename and all containing parts of the build, so it's quite terrible20:36
malthe script is device specific20:37
malyou have very different locations for the files than my script uses20:37
malbut in your case the issue is mostly just kernel and modules so it's not as bad20:37
malmaybe just symlink again folder the module folder to one of the paths that droid-hal packaging looks for20:38
Mister_Magistermal: the fix for having to connect and disconnect usb before suspend works, my theory was spot on https://github.com/VerdandiTeam/droid-config-pipa/commit/2d36c8a34d4ca3f498a766d150ef2de2ae9e0e1f20:47
nightishamanmal: I still wanna take a look for inspiration. I wanna do a script for reproducibility20:51
malit's just many cp commands and a function to copy modules to correct places as that doesn't even have single folder for the modules21:00
malI only looked at what droid-hal packaging copies and added suitable command to copy it21:01
nightishamanwhere did you place it21:03
malwhat do you mean? the script, just to $ANDROID_ROOT21:14
nightishamanI created a subdir named scripts, uploaded it to GitHub and added it to repo local manifest21:19
nightishamanbuild of Hal finished21:19
nightishamanmal: https://pastebin.com/jmS1Cu9Q build failed21:24
T42<b100dian> I am not sure you should see touchscreen events when enrolling, quite the opposite (re @SailfishFreenodeIRCBridgeBot: <Mister_Magister>I'm...)21:32
T42<b100dian> Do you also run android.hardware.biometrics.fingerprint@2.3-service.miami ?21:32
T42<Mister_Magister> no obviuosly i did not run it, it's already running by default, problem is that community fpd supports only fingerprint 2.1 so i'd first need to add support for 2.3 and report touch position events to it21:34
T42<Mister_Magister> @NotKit said so21:34
T42<b100dian> cool21:35
T42<Mister_Magister> so you'd have to integrate it with silica or some stuff21:35
T42<Mister_Magister> too annoying to bother when i don't care or use fingerprint21:35
T42<b100dian> I used a patch for lockscreen, but yeah, that's the last step:)21:36
T42<Mister_Magister> like i know what i need to implement and how and what to do thanks to @NotKit but i really have no motivation to do so, maybe i'll do it in the future21:39
T42<Mister_Magister> 21:39
T42<Mister_Magister> but its communicating with android side so it will work i guess21:39
T42<Mister_Magister> but i have to worry about ril and like usb and like eugh21:40
Mister_MagisterI'd rather implement motorola gestures than fp tbh21:40
malnightishaman: that seems like some patches were not applied21:46
malhybris-patches/frameworks/native/0006-hybris-Fix-build-with-gcc.patch that is the patch that would have fixed the issue, not sure what went from in apply_patches.sh for you21:47
nightishamanweird because I applied them21:49
malcheck the folder where it applies patches and see which ones are missing21:51
malyou can see those paths in hybris-patches subfolders21:51
nightishamanhmm, for some reason the patches are not applied, you're right21:52
nightishamanbut I can't use hybris-patches/apply-patches.sh because the patches to bionic are applied21:52
nightishamani had that problem yesterday21:52
nightishamanshould I apply them manually?21:54
malno21:56
malgo to bionic folder, check with git status if git am is in progress, if so then git am --abort, then check with git log to make sure it doesn't have any hybris patches applied21:57
malif it has hybris patches then find the first commit which is not a hybris/halium patch and git reset --hard to that21:58
malalternative way to remove the patches is "repo sync -l bionic"21:59
malactually that repo sync -l only works for whole repo sync and can't be used with path22:00
malah, it's "repo sync bionic -l" that works22:04
nightishamanhttps://pastebin.com/4dyAgyjQ22:19
malmaybe you had patches already in that build folder22:27
malplease check all the folders and subfolder you see in hybris-patches in your android_root for patches22:27
nightishamanyeah I just reset build/make/22:28
nightishamanall patches applied22:30
nightishamanI guess I have to do make again?22:30
malyes, make hybris-hal22:38
nightishamanbtw do you work for Jolla or are you just an independent maintainer doing this in their free time22:49
malI work for Jolla22:50
nightishamanDo I need to redo build_packages.sh --droid-hal and --configs too?22:51
maldroid-hal22:51
nightishamanoh man, i wanted to give you a donation once this boots on my Pixel 7 for the help, I appreciate that22:52
malI did sailfish stuff even before I worked for jolla and never accepted donations back then, some people did try22:53
nightishamanIs it correct to say yes to Build libhybris?22:54
malyes, you should build everything it asks, better to just say all22:54
nightishamanPlatformSDK [jannikmueller@fedora hadk]$ rpm/dhd/helpers/build_packages.sh --gg22:58
nightishamanPlease build droidmedia as per HADK instructions22:58
nightishaman!! Failed to pack_source_droidmedia-localbuild.sh22:58
nightishamanI guess I skip that22:58
malyes22:58
nightishamanhttps://pastebin.com/PLTHm7xr22:59
nightishamanhmm22:59
malcheck the log file23:01
nightishamanhttps://pastebin.com/BwHn6hci23:02
nightishamanI guess I forgot to change something23:02
nightishamanits referring to the template23:02
maltoo new droid-config submodule23:03
malgo to hybris/droid-configs/droid-configs-device and run "git reset --hard c67fe5b47b81714c1338c39d5d2547f528933b15" then back to $ANDROID_ROOT and run build_packages.sh -c23:04
nightishamanhttps://paste.centos.org/view/80271eae23:18
malhttps://github.com/mlehtima/droid-config-fp5/blob/master/rpm/droid-config-fp5.spec copy lines 14-17 and 22-24 to your droid-config spec and build_packages.sh -c23:27
maland 26-27 if those are not there already23:28
malmake sure you don't copy those to the end of the spec, the includes need to be last23:29
nightishamanhttps://paste.centos.org/view/2b712f30 for some reasons it doesn't let me choose but insta cancels23:40
nightishamanmaybe delete installroot and redo all the stuff?23:41
nightishamanhttps://paste.centos.org/view/dd765a4423:42
nightishamanim currently rebuilding everything from the start since I renamed that one directory from hammerhead to panther23:46
malwait23:47
malsb2 -t $VENDOR-$DEVICE-$PORT_ARCH -R -m sdk-install zypper in droid-config-$DEVICE -ofono-configs-binder23:48
malactually it should be this:23:48
malsb2 -t $VENDOR-$DEVICE-$PORT_ARCH -R -m sdk-install zypper in droid-local-repo/$DEVICE/droid-config-$DEVICE*.rpm -ofono-configs-binder23:49
malthat should get rid of the error you got23:49
malthere is almost never need to rebuild from start23:49
nightishamanit worked23:55
nightishamanusing the rebuild23:55

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