Wednesday, 2026-07-15

*** n2klb_ is now known as n2klb02:01
sharks@rinigus Do you know what would be required to tailor droid-bthelper to android.hardware.audio@6.0? I am seeing "setConnectedState transact failed for AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET" and "Failed to set status to disconnected through AudioHal for 68:D6:ED:F1:D2:3B".07:40
rinigusmal: thanks! it was compiling for so long in that OBS repo, that I also forked, made 5.10 version, and tagged it properly (so RPMs are with version 5.10.xxx). maybe we should do similar in the main repo07:55
rinigussharks: you should get OBS repos (devel and testing) for the port before releasing it. that would later simplify life for all users07:56
rinigussharks: its a while since I worked on droid-bthelper, sorry. you would have to look into it yourself07:57
sharksCool, thanks. I'm really hoping @mal has thought up a name for me and I can get my very own repo this evening.07:57
sharksNo worries, it was a long shot but I thought it was worth asking in case it saved me a few hours. I'll continue digging into it myself. Thanks for giving me a starting point though!07:58
rinigusbtw, to distinguish, you could also opt for murray-los . in principle, it shouldn't matter07:58
sharksmurray-los would be more than fine by me07:58
rinigushowever, it would be somewhat inconsistent as nagara is also los based07:58
rinigus:)07:59
sharksTrue, but nagara doesn't have an active SODP port running in parallel anymore!07:59
sharksSo it doesn't require the distinction08:00
sharks@mal or @Keto can I pretty please with a cherry on top have a repo made for me? I would really love to get something done tonight as I'll be away tomorrow09:10
malsharks: what is you obs username?10:14
sharkssharks10:14
sharksThankyou mal!!10:18
malhttps://build.sailfishos.org/project/show/nemo:devel:hw:sony:murray and https://build.sailfishos.org/project/show/nemo:testing:hw:sony:murray10:19
sharksVery appreciated, thanks so much. I will populate them according to hadk and add them to my image so I can get the port out. Thankyou thankyou thankyou!10:21
malsharks: you probably should make lvm based image before releasing it10:47
sharksBugger. Where do I find documentation on that process?10:47
malthere isn't any but it's pretty much just copying this folder and all its content and adjusting the needed parts https://github.com/mer-hybris/droid-config-sony-murray/tree/master/kickstart10:51
sharksOkay, then just build and flash as normal? What's the catch?10:52
maladjusting the file names and codenames in the files10:52
sharksSounds too easy10:52
malalso you need to build new boot images10:52
sharksOh bugger, there's the catch.10:53
sharksOkay, I better get the ball rolling on that then, gonna take 2hrs to build that and I'll be in bed by then!10:53
malwhat?10:54
malthat are you going to build that takes so long?10:54
malthe lvm based boot images are completely separate from the others and the build of those happens on obs10:55
malsomething like this https://github.com/mer-hybris/droid-hal-img-boot-sony-murray10:56
sharksOh sorry, I misunderstood. I thought I had to jump back into the habuild environment on my local machine10:56
malyou need to adjust boot image generation commands to match your build10:57
malin the spec of that10:57
malmaybe increate lvm_root_size also, we have been using 10000 on newer devices, can't remember how big internal storage x10iv had10:58
sharksRight, this is going to take a bit to wrap my head around. Thanks mal, I'll see how I go10:58
malalso you need to adjust patterns10:58
sharks128gb is internal storage10:59
sharksI saw that the obs patterns were different, I need to understand how to change that too10:59
malalso while at it add proper .gitignore to your config repo https://github.com/sailfishos-sony-nagara/droid-config-sony-nagara/blob/main/.gitignore  like that and remove the useless installroot, tmp and documentation.list from your droid-config repo11:00
sharkswill do, sure. Thanks11:00
malfor patterns you need to remove Requires: droid-hal-pdx225-kernel-modules11:01
malalso you are missing Requires: droid-hal-pdx225-vendor_boot and Requires: droid-hal-pdx225-kernel-dtbo11:01
sharksWhat do they do, and why does my phone work perfectly fine without them?11:02
sharksI don't mean to be rude I'm just trying to learn11:02
malthe droid-hal-pdx225-kernel-modules is needed when using community style boot image, lvm based boot image contains those11:02
sharksRight, okay sure11:02
maland you probably just flashed manually vendor_boot and dtbo11:03
malthe packages are needed if you want to be able to update kernel and dtbo from obs11:03
sharksNever vendor_boot, I flashed vbmeta and dtbo from Lineage11:03
malhmm11:03
malcan't remember if vendor_boot had anything useful on x10iv, maybe it didn't11:04
sharksLineage do have a download for vendor_boot but their instructions don't call for it to be flashed so I never did11:04
malok11:05
malmaybe you can skip it then11:05
sharksOkay, I'll try that11:06
malanother thing is that you should add file /usr/share/ssu/board-mappings.d/10-community.in with this content:11:07
mal[xqcc72]11:07
maldeviceDesignation=community11:07
malthat goes to droid-config sparse as usual11:07
Keto.ini11:08
maloops11:08
malso that goes to /usr/share/ssu/board-mappings.d/10-community.ini11:08
malcopy paste mistake earlier11:08
sharksOkay, no worries.11:08
Ketothat'll set the second value shown in parentheses on the ssu device model line, and we can use that to distinguish the different ports on the store side11:12
sharksFantastic, I'll make sure that happens then. mal - any particular submodule revision for droid-hal-img-boot-$VENDOR-$DEVICE? same as the one you've got in murray?11:14
malyou can use latest submodule11:18
sharksThanks11:19
sharksRight, I think I've done all those things. I have work early in the morning so I need to head to bed soon, so I guess I will not get to start playing with OBS properly until Friday night. But hopefully I'm a little bit closer. Thanks again11:37
T42<nightishaman> mal: To my loading modules problem, is there a way I can copy lib/modules/kver to /lib/modules during build or should modprobe load from /lib/modules/kver. (I dont know why it broke now to /lib/modules)11:50
malI still don't understand what exactly looks for those in /lib/modules11:52
T42<nightishaman> It only says modprobe, I can revert my change and delete all ko files from my test device and then copy dmesg to gist if you need it11:53
malwhich modprobe? did you have the androie module loading hack?12:00
T42<nightishaman> https://gist.github.com/maltesermailo/611e0bcacbd570a5c0731149a8dad0fd#file-gistfile1-txt-L471312:04
T42<nightishaman> mal: It happens after droid_init_done12:04
T42<nightishaman> I dont remember any hack except for pre-systemd module loading12:08
mal@nightishaman I meant didn't you have the patch make android side load the modules? or do remember incorrectly who did that12:47
T42<nightishaman> mal: No, I didn't. Don't remember12:48
T42<nightishaman> However in the log you can see modprobe wants to load from /lib/modules12:49
T42<nightishaman> What is the best strategy now?12:49
malyou had that https://github.com/maltesermailo/hybris-patches/blob/hybris-23.2/system/core/0044-Allow-building-of-load_kernel_modules-binary.patch12:52
T42<nightishaman> Thats only pre systemd tho, not Android side, it is called on the ramdisk to load init modules from the ramdisk12:53
T42<nightishaman> The current problem is post systemd with normal modprobe12:53
malcan you find the modules.load of ramdisk /lib/modules12:57
mal@nightishaman why would any module loading happen at that point, normally modules are supposed to be loaded before droid-hal-init12:58
malas I probably mentioned before something like this is the usual way https://github.com/mlehtima/droid-config-fp5/blob/master/sparse/etc/modules-load.d/fp5.conf12:59
malunless you had some odd issues with modules being loaded that way12:59
T42<nightishaman> I wonder why it did work before with only /lib/modules/kver and why it loads that late now13:00
maldo you have the module loading config for systemd?13:01
malhave you even tried if it works, try with one module first13:01
T42<nightishaman> mal: where do i find that config13:02
T42<nikita_kraev> it's the modules-load.d from above13:02
T42<nightishaman> modules-load.d is empty13:03
malyou make it yourself, based on the modules.load files you find in out, from any of these paths https://github.com/mer-hybris/droid-hal-device/blob/master/droid-hal-device.inc#L106113:03
T42<nikita_kraev> yeah, what mal is suggesting - try adding the llist of modules you need to load early / explicitly into that list13:03
T42<nightishaman> this is ramdisk: https://gist.github.com/maltesermailo/61abc76f613117aa02a60cf39497a9f013:03
malusually the order of modules is to that for example vendor_dlkm/lib/modules/modules.load list is added to modules-load.d and then you append the system_dlkm/lib/modules/modules.load to it13:05
malthat is the order android uses, vendor first then system13:05
T42<nightishaman> @nikita_kraev I dont need those modules early, for example touch should be loaded at system time, not ramdisk13:05
T42<nightishaman> mal: Okay, I copy those from vendor_dlkm to modules.load.d13:06
malthe point of that list is that android side module loading doesn't usually work so if we load the modules by systemd before droid-hal-init then android side is happy13:06
T42<nikita_kraev> modules-load.d loads them at system time, when systemd starts, not earlier13:06
T42<nikita_kraev> also it's modules-load.d, not modules.load.d13:07
mal@nightishaman and system_dlkm also, make sure the format is correct, no .ko at the end of the modules in the list13:07
T42<nightishaman> got this now: https://gist.github.com/maltesermailo/b2b08c315dc53059fb718aaebf9c25ff13:10
malseems reasonable13:10
T42<nightishaman> lets test13:11
T42<nightishaman> now the phone blows up13:11
T42<nightishaman> it works13:13
T42<nightishaman> Okay, Touch works, Wifi works, next up is, i dont see sim cards in settings13:18
T42<nightishaman> we boot into homescreen13:18
T42<nightishaman> I cant believe im already in ui13:18
T42<nightishaman> (and patched 2 kernel modules in between)13:19
T42<nightishaman> also ui size is too small, the https://imgur.com/a/cKHK2o913:20
T42<nightishaman> rild_exynos is running13:23
T42<nightishaman> ofono too13:23
malyou need to adjust pixel_ratio13:27
malhttps://github.com/mlehtima/droid-config-fp5/blob/master/rpm/droid-config-fp5.spec#L36 the value is a bit of guess work13:27
T42<nightishaman> Is there guides on the other stuff such as Bluetooth, Cellular and the stuff on the checklist?13:30
maldoes the device use hidl or aidl for telephony, use binder-list -d /dev/binder and same for /dev/hwbinder and look which has IRadio related services13:32
malmost of the time bluetooth failure is because it can't find the mac address property13:32
malin case your device uses /dev/binder for IRadio then you need first 4 lines of https://github.com/mer-hybris/s19mps-droid-configs/blob/master/sparse/etc/ofono/binder.d/s19mps.conf13:34
mallast line (5th) is for devices which don't have 5g13:34
T42<nightishaman> I also gotta test usb-moded next13:39
malcheck which interface it uses for usb on device13:41
malrndis0 or usb013:41
T42<nightishaman> [ 6309.452577] rndis_host 1-4:1.0 usb0: register 'rndis_host' at usb-0000:02:00.0-4, RNDIS device, 62:69:59:a0:0c:1513:42
T42<nightishaman> [ 6309.472485] rndis_host 1-4:1.0 enp2s0f0u4: renamed from usb013:42
T42<nightishaman> [ 6311.787620] usb 1-4: USB disconnect, device number 1613:42
T42<nightishaman> [ 6311.787684] rndis_host 1-4:1.0 enp2s0f0u4: unregister 'rndis_host' usb-0000:02:00.0-4, RNDIS device13:42
T42<nightishaman> it immediately deregisters13:42
T42<nightishaman> i got perfect pixel ratio and terminal on the phone tho to check13:42
T42<nightishaman> just dont know what13:42
malI meant check on device, ifconfig -a13:43
maldo you see usb0 or rndid0 interface in the list13:44
T42<nightishaman> yes, usb013:44
malhttps://github.com/mlehtima/droid-config-fp5/blob/master/sparse/etc/usb-moded/usb-moded-fp5.ini the udev part might not be needed, depends on the device13:45
maladjust function_rndis and gadget_udc_device if needed, latter might not even be needed if your device only has one entry in /sys/class/udc/13:47
malbtw, that configs/b.1 is for lvm based build, community style builds use configs/c.113:47
T42<adampigg> i didnt know that13:52
mal@adampigg hat?13:53
mal*what13:53
T42<adampigg> *that ... about the c.1/b.113:53
T42<nightishaman> how do i know the rndis function that i gotta set?13:54
malcheck what you have in /config/usb_gadget/g1/functions/13:55
T42<nightishaman> ok im rare stupid, i just wondered why usb wasnt coming up, while holding the usb cable in my hand13:56
Mister_Magister@nightishaman truly a mystery13:56
Mister_Magisterwe'll never know the answer13:56
T42<nightishaman> usb-moded works13:59
T42<nightishaman> thanks mal already for the wonderful help14:03
T42<nightishaman> https://gist.github.com/maltesermailo/3d87410d4005da57902d579dec392f2d14:06
T42<nightishaman> both binders have radio services14:06
maluse the config I mentioned14:07
malit's only some vendor services in hidl which we don't have to care about14:07
T42<nightishaman> I did14:07
T42<nightishaman> no sim cards show up14:08
malyou copied it to correct place? just making sure14:08
T42<nightishaman> /etc/ofono/binder.d # cat panther.conf14:08
T42<nightishaman> [Settings]14:08
T42<nightishaman> Device=/dev/binder14:08
T42<nightishaman> InterfaceType = aidl14:08
T42<nightishaman> useNetworkScan = true14:08
malanything journal from ofono?14:08
T42<nightishaman> Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.14:09
T42<nightishaman> its running14:10
malsystemctl restart ofono14:11
maland try again14:11
T42<nightishaman> https://gist.github.com/maltesermailo/18c8659939327a834ea8ae68f52e5af214:12
maldoes "/system/bin/logcat -b radio" show anything when you restart ofono14:16
T42<nightishaman> no14:17
maldoes it show anything at all?14:17
T42<nightishaman> 07-15 14:20:07.905  3351  3512 V RIL     : poll timeout. interval=300014:20
T42<nightishaman> 07-15 14:20:07.906  3351  3512 E RIL     : [PollModemState] oldState=0 newState=014:20
T42<nightishaman> these on repeat14:20
malhmm ok, I think modem is not ready for what ever reason14:21
malare all mounts successful?14:21
malcheck output of "systemctl"14:22
malany failing services?14:22
T42<nightishaman> /etc/ofono/binder.d # systemctl list-units --failed14:27
T42<nightishaman> *0 loaded units listed.* Pass --all to see loaded but inactive units, too.14:27
T42<nightishaman> To show all installed unit files use 'systemctl list-unit-files'.14:27
T42<nightishaman> mnt-vendor-modem_img isnt mounted14:29
T42<nightishaman> it didnt fail its just inactive14:29
T42<nightishaman> ● mnt-vendor-modem_img.mount - Droid mount for /mnt/vendor/modem_img14:29
T42<nightishaman>    Loaded: loaded (/usr/lib/systemd/system/mnt-vendor-modem_img.mount; enabled; vendor preset: enabled)14:29
T42<nightishaman>    Active: inactive (dead)14:29
T42<nightishaman>     Where: /mnt/vendor/modem_img14:29
T42<nightishaman>      What: /dev/block/platform/14700000.ufs/by-name/modem14:29
malso a mistake in fixup-mountpoints14:30
malyou probably had there modem_a instream of modem14:30
malyou can test first on device by replacing the What in that mount service with correct /dev/ path14:31
malthe target where /dev/block/platform/14700000.ufs/by-name/modem points to14:31
T42<nightishaman> its modem_b14:31
T42<nightishaman> im on b14:32
T42<nightishaman> mal: In recovery? in sfos only /dev/block/platform/1470000.ufs/by-name/modem_b and modem_a exist14:34
malwhat?14:36
malreplace it which what ever slot you want to use14:37
malthe /dev/block/platform/14700000.ufs/by-name/modem is something android does and it points to active slot, we don't have that at the moment14:37
malmost likely both modem slots have quite similar image, unless you manually flashed something different14:38
T42<nightishaman> i didnt flash anything on modem14:38
T42<nightishaman> Jul 15 16:40:37 Pixel7 systemd[1]: *Dependency failed for Droid mount for /mnt/vendor/modem_img.*14:41
T42<nightishaman> Jul 15 16:40:37 Pixel7 systemd[1]: *mnt-vendor-modem_img.mount: Job mnt-vendor-modem_img.mount/start failed with result 'dependency'.*14:41
T42<nightishaman> it fails for some reason14:41
malyou didn't replace it with the actual node?14:41
malthe node where /dev/block/platform/1470000.ufs/by-name/modem_b or _a points to14:42
malthose are symlinks14:42
malshow the mount service file14:42
T42<nightishaman> ok its mounted14:44
malis modem happy now?14:45
T42<nightishaman> rebooting14:45
T42<nightishaman> nope still no sim cards14:49
T42<nightishaman> ofono restart no change in logcat14:50
T42<nightishaman> but the spam is gone14:50
malhow about normal logcat?14:50
T42<nightishaman> modem_userdata is already mounted too14:50
maland no other failing mounts?14:50
T42<nightishaman> logcat is spammed by IStats missing14:52
T42<nightishaman> so i cant actually see, its spamming ten times per second14:52
T42<TheVancedGamer> I did fix that in minimediaservice14:52
T42<nightishaman> mounts how do i check, no failed units, but id have to check each individually to get errors on inactive ones14:53
T42<nightishaman> https://gist.github.com/maltesermailo/f418a6c5d587a86b5254b096a241538614:55
mal@TheVancedGamer do you have the patch somewhere?15:05
T42<TheVancedGamer> I MRed that to upstream15:07
T42<TheVancedGamer> it fixed the bug for me on Ubuntu Touch15:07
T42<TheVancedGamer> the logging*15:07
malno sign of that in our droidmedia15:08
T42<TheVancedGamer> huh15:09
T42<TheVancedGamer> one second15:09
malor was it long ago?15:09
malah, I think I found it15:10
malmy bad15:11
mal@nightishaman was that hybris-23.2 based port?15:11
T42<nightishaman> mal: Yes15:12
malthe issue is that droidmedia is not yet working on 23.2 so minimediaservice is not running15:12
malI'll see if I can get that fixed finally15:12
T42<TheVancedGamer> ah15:12
malworks fine on 23.0 but android decides to changes function parameters etc for 23.215:13
malso I need ot figure out how to support both, there is no trivial way to detect which one is being used15:13
T42<nightishaman> Question is how we continue on cellular problem15:25
maldo you see in logcat anything about something waiting15:25
malother that that IStats15:26
malit's possible that is blocking something from starting15:27
T42<nightishaman> nothing is coming up when i do restart ofono and look at logcat15:28
T42<nightishaman> /system/bin/logcat | grep -v "IStats" | grep -v "ISensorManager" | grep -v "IUsbGadget" | grep -v "IAudioExt"15:28
malMister_Magister: can you check in kernel sources of your old device with 3.4 if those have PR_SET_NO_NEW_PRIVS and PR_SET_SECCOMP15:33
Mister_Magisterfor you anything <315:33
maljust updating openssh and it has strict requirement for those to work15:34
malif we use seccomp filter in it15:34
Mister_Magisterboth are available on all 3 deviecs (two of which share kernel and defconfig :P)15:35
malok15:38
malso I probably can keep that enabled15:38
malof course if you want to test the new version and see if ssh still works https://github.com/sailfishos/openssh/pull/1215:38
malif you build that remember to apply the patch (x86 and arm32 need it)15:39
T42<nightishaman> ill make a pause now and come back later with cellular fixing16:03
malfix other things16:07
malmaybe check why bluetooth is failing16:07
T42<nightishaman> I got no idea where to check bluetooth either, but once I finish this port, I'm gonna collect all my conversations and compile them into a wiki16:11
malwhat do you see in journal from bluebinder for example16:19
T42<nightishaman> apparently im missing some defconfig variables, at least kernel check suggests that16:28
malvhci is missing?16:28
T42<nightishaman> yeah16:28
malwell that will break it16:28
T42<nightishaman> ERROR: Unable to find net/bluetooth/hidp/hidp.ko in any of the following directories:16:41
T42<nightishaman>   bazel-out/k8-fastbuild/bin/aosp/kernel_aarch64/staging/lib/modules/6.1.145-android14-11-g1a6d4ea1a506/kernel16:41
T42<nightishaman> Unable to find net/bluetooth/rfcomm/rfcomm.ko in any of the following directories:16:41
T42<nightishaman>   bazel-out/k8-fastbuild/bin/aosp/kernel_aarch64/staging/lib/modules/6.1.145-android14-11-g1a6d4ea1a506/kernel16:41
T42<nightishaman> Target //private/devices/google/pantah:pantah/dist failed to build16:41
T42<nightishaman> Use --verbose_failures to see the command lines of failed build steps.16:41
T42<nightishaman> 16:41
T42<nightishaman> getting these now ._.16:41
T42<securebootoff> remove hidp from module load lists16:49
T42<securebootoff> as you've inlined it16:49

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