Sunday, 2026-05-31

Mister_Magisterit might not be merged but i hope talks start00:00
Mister_Magisteri'm very proud of myself for implementing those gestures :300:00
Mister_Magisterokay now for a tricky question, how do i make it so that sensorfw from my vendor is pulled instead of jolla's00:09
Mister_Magisterig all I can do is to stay version in front of it i guess00:09
nightishamanokay, strace has executed00:15
nightishamanlets look at it00:15
nightishamanmal: it mounts twice, first it mounts /linkerconfig to a tmpfs, then it mounts /linkerconfig/default to /linkerconfig00:18
nightishamanaccording to the strace00:18
Mister_Magistermal: do you mind explaining to me, why sensorfw package, which is version 0.14.4, in jolla repos is 0.15.0-1.14.1.jolla? Where the hell did 0.15.0 come from?00:18
Mister_Magisterit'sa freaking tag00:19
Mister_Magistertag not matching a version should be criminal offence00:20
Mister_Magisterpushed my tag 1.0 so that it's always above jolla's no matter what00:22
malMister_Magister: someone forgot to update the version00:31
Mister_Magister:)00:31
Mister_Magisterlemme make a PR i'm sure it will be merged in timely fasion :D00:32
nightishamanbuiltins.cpp:122700:32
malbut if you build that on obs it should be using the tag+something00:32
malMister_Magister: PR for what?00:32
Mister_Magisterfor version bump :D00:32
malnah00:32
Mister_Magisteryeah i realised that it was tag causing it, hence i tagged my stuff 1.0 so that it's picked over jolla's00:32
Mister_Magistermal: …that was a joke, with the version bump00:33
malMister_Magister: so you have only built it locally? obs should be using tag not spec version00:33
Mister_Magistermal: yes it is using tag00:33
Mister_MagisterI just didn't know that 0.15.0 is using tag, now that I've realised it, i've tagged my changes with 1.0 so that my packages will be picked over packages from jolla repo00:34
malbut even without custom tag it would be newer than official version afaik00:34
Mister_Magisterno without tag it would be 0.14.400:34
Mister_Magisterand jolla is using tag 0.15.000:34
malare you sure?00:34
malon obs that is00:34
Mister_Magisteryes thats why i had this issue00:34
Mister_Magisterwithout tag, the version in .spec is 0.14.4 and that's what OBS will use00:35
nightishamanmal: i found it00:35
Mister_Magisteryou have to use tag 0.15.0 for obs to set version to 0.15.000:35
malobs should be taking tag always00:35
Mister_Magistermal: yes, unless you don't give it a tag00:35
nightishamaninit.rc calls enter_default_ns on line 748, which mounts /linkerconfig/default on /linkerconfig00:35
Mister_Magisterif you pull from master, HEAD it won't use tag00:35
Mister_Magisterit will use .spec version00:36
Mister_Magisterbecause there's no tag provided00:36
malMister_Magister: why would you have a fork of sensorfw without all the tags?00:36
malthat makes no sense at all00:36
Mister_Magistermal: you're missing the point00:36
Mister_Magisterit doesn't matter what the fork has00:36
malyou are missing the point00:36
Mister_Magisterif in tar_git, you supply branch master, and revision HEAD, it will NOT magically change the version to latest tag00:37
Mister_Magisteryou have to specify tag in revision for it to change version to the tag version00:37
malobs does all kinds of magic00:37
Mister_Magisteri'm telling you how it works00:37
Mister_Magisterbecause i just had this issue00:37
maland when you did the test you had all of the tags in the fork?00:37
Mister_Magisterokay the fork has no tags, i guess it's github's default behaviour00:38
malforks always have the tags from when you forked it00:38
Mister_Magisternope00:38
Mister_Magisteryou want me to prove it?00:39
Mister_Magisterit could be because of the "Copy the master branch only" that's selected by default00:39
Mister_Magisterhttps://github.com/Michal-Szczepaniak/sensorfw fresh fork, do you see tags00:40
malwtf, github broke it then recently00:40
Mister_Magisterglad we're on the same page00:40
Mister_Magisteralso yes you're right obs will pull latest tag00:40
Mister_MagisterI was wrong00:41
nightishamanmal: So, I figured out why strace shows a two mounts on linkerconfig. The function MountExtraFilesystems mounts linkerconfig as tmpfs again, then later enter_default_ns mounts /linkerconfig/default as /linkerconfig00:41
Mister_Magistermal: also yes, i was correct, it's the default option "Copy the master branch only" that removes tags00:42
Mister_Magisteryou have to do full fork for tags00:42
nightishamanMister_Magister: thats why i only do full forks00:42
malMister_Magister: so stupid to not have tags of master branch in there, that makes no sense00:42
Mister_Magisterwell that's microsoft for you00:42
Mister_Magisterthey haven't made single reasonable decision in years now00:43
malMister_Magister: why wouldn't you trust me earlier when I said how obs works, I have used it so much that I know what it does and doesn't do00:43
Mister_Magisteryeah you're right, my bad00:43
Mister_Magistersorry00:43
malnightishaman: is MountExtraFilesystems always run?00:45
nightishamanmal: yes00:46
malnightishaman: so which call breaks it?00:47
nightishamanthe builtin enter_default_ns00:47
nightishamanit gets called on post-fs-data by init.rc and causes /linkerconfig/default to be mounted on top of /linkerconfig00:47
malso the linkerconfig/default is not ok?00:47
nightishamanyeah00:47
nightishamanbut we might want to disable MountExtraFilesystems too because mounting twice is redundant00:48
nightishamanI can make a patch ready and start a PR00:48
maljust wondering why my a16 device doesn't have that issue00:49
nightishamanNo idea, but the source code confirms it00:49
T42<b100dian> mal: is pulseaudio at 17.0 in latest ?00:51
T42<b100dian> (sorry I don't know who else to ping)00:51
mal@b100dian pa 17 is in sfos 5.1, not in 5.000:52
malon obs latest is still 5.000:53
T42<b100dian> that answers my question. So I need sailfishos:5.1 on devel00:53
malnightishaman: on my device if I unmount /linkerconfig then /linkerconfig/default has ok content00:54
nightishamanmal: How can I test that on mine?00:55
malI just did umount /linkerconfig and then checked what is under /linkerconfig00:55
Mister_Magistermal: sensorfwd has -c=/etc/sensorfw/primaryuse.conf does that mean i have to override the primaryuse.conf in sparse? it won't load other configs?00:56
nightishamanok im gonna check by unmasking droid-hal-init and expand my test script00:56
malnightishaman: what happens if you just comment out that enter_default_mount_ns from /usr/libexec/droid-hybris/system/etc/init/hw/init.rc00:57
nightishamanif i do umount then i have ok content in /linkerconfig00:58
nightishamanbut not in /linkerconfig/default00:58
nightishamandoes your device somehow copy stuff to /linkerconfig/default?00:58
malmaybe you have multiple mount layers, umount second time00:59
malbut maybe test that commenting first in init.rc to see what happens01:00
malMister_Magister: droid-hal-configs submodule has the default primaryuse.conf, you can override in device config sparse01:02
Mister_Magisterwell that wasn't my question but that's what I did01:02
nightishamancommenting out enter_default_mount_ns causes it to keep the ld.config.txt01:02
Mister_Magisteri was just asking if it can load other configs in that directory so that I don't have to override it01:03
malnightishaman: are android side processes starting better now?01:03
Mister_Magisterwho the heck is hogging all the resources with wordle app xdd01:03
nightishamanmal: still having this: 05-31 01:05:17.547  6042  6042 F linker  : CANNOT LINK EXECUTABLE "/system/bin/odsign": library "libstatspull.so" not found: needed by main executable01:05
nightishamanand this: droid-hal-init: Control message: Could not find 'aidl/android.frameworks.stats.IStats/default' for ctl.interface_start from pid: 2504 (/system/bin/servicemanager)01:05
nightishamanlibstatspull.so is only found in an apex01:07
malthose don't seem very critical processes01:08
malprobably01:08
nightishamanmal: well according to google they are important for ART01:10
malMister_Magister: there is a very odd design in sensorfw https://github.com/sailfishos/sensorfw/blob/b62d0e591d736c904128fcfc8476f22cfdbe53b9/core/config.cpp#L6301:10
malnightishaman: so not for sfos01:10
nightishamaninit.rc waits for it tho01:10
malhmm where?01:11
nightishamanline 110901:11
malprobably different lines in my file01:12
nightishamanthen do grep -rn "odsign"01:12
malcomment it out also01:14
malI assume you mean wait_for_prop odsign.key.done 101:15
nightishamanyes01:15
nightishamanand odsign.verification.done in zygote start01:15
malnightishaman: no01:15
nightishamanwhat01:15
malzygote is not started in sfos01:15
nightishamanwell i commented it out anyway for testing01:16
malI meant the other thing01:16
nightishamanyeah i commented out start odsign and odsign.key.done01:16
malin "on post-fs-data"01:16
nightishamanbut if on zygote-start is never run then statsd wont be run and it will keep filling my log with IStats not found01:17
Mister_Magistermal: I seem to be running into race condition where the gesture sensors are not yet available when lipstick starts… do you have better idea than StartPre: sleep 100000000000001:18
malnightishaman: unless something is wrong zygote should not be starting01:18
Mister_MagisterI… could loop the app and wait check if plugin is available every second01:18
malhow are the sensors not available?01:19
nightishamanmal: How do I stop these from getting spammed every second then? droid-hal-init: Control message: Could not find 'aidl/android.frameworks.stats.IStats/default' for ctl.interface_start from pid: 2504 (/system/bin/servicemanager)01:19
nightishamansince statsd seems to be started in on zygote-start01:19
Mister_Magisterthey just aren't sensorfwd says HYBRIS CTL invalid sensor type: 6554001:19
maldo you see anything about zygote in logs then?01:19
Mister_Magisterand even if i restart my daemon sensorfwd won't give it the sensor anymore01:20
Mister_Magisterbut if i restart sensorfwd it should work fine01:20
malso sensorfw is started too early01:20
Mister_Magisteri would think so yes01:20
Mister_Magisteri wonder if there's something i can condition it on instead of just adding random delay01:21
malmaybe some android service activates those?01:22
T42<b100dian> Doesn't work (re @b100dian: that answers my ques...)01:25
T42<b100dian> Anyone built 5.1 on obs / devel01:26
malwhich device?01:26
T42<b100dian> https://build.sailfishos.org/project/show/nemo:devel:hw:xiaomi:tucana01:26
T42<b100dian> But if I had an example of another device on 5.1 with devel I would probably figure it out01:27
malhow about now01:27
T42<b100dian> hmm :) what did you change mal? Teach the man to fish01:28
malthe order of repos is important in meta01:28
malhttps://build.sailfishos.org/project/meta/nemo:devel:hw:xiaomi:tucana01:28
T42<b100dian> oh, didn't expect that01:29
T42<b100dian> thanks!01:29
malthe nemo:devel:hw:common is still 5.0 so you had it at the bottom which meant it was used for base stuff01:29
malwhich of course is not ok01:30
nightishamanmal: https://pastebin.com/6n2s790f new stuff crashing01:30
malusb service is useless01:30
malcan be disabled01:31
malexample of a service being disabled https://github.com/mlehtima/droid-config-fp4/blob/master/sparse/usr/libexec/droid-hybris/system/etc/init/disabled_services_device.rc01:32
malyou have to check the .rc files for the service name etc to use01:32
nightishamanyeah but the others are part of the camera01:33
nightishamanall the so files they search are in apexes01:33
malbut now linkerconfig should be ok?01:34
malso why are those still failing01:34
nightishamanwell linkerconfig doesnt have those pathes in it01:34
malunless there is something wrong in linkerconfig still01:35
malhow different is the linkerconfig if you create it using the linkerconfig in /apex, I remember there might be one there?01:36
malMister_Magister: that sensorfw PR is a bit of a mess, why 7 commits?01:37
Mister_Magisterwhy not? i made commits as I went01:37
Mister_Magisteryou can always squash it01:37
mal3 commits with same commit message?01:37
Mister_MagisterI'm lazy xd01:38
malsome are removing things you added in another commit, that's not ok01:38
Mister_Magisteryou can always squash it xd but if it is a problem i'll squash it myself01:39
nightishamanmal: when i run linkerconfig right now after starting droid-hal-init, it gives a more expanded linkerconfig which also include libstatspull.so01:39
nightishamanhowever the camera hal is still not included in that linkerconfig01:40
Mister_Magisterhere you go, squashed01:40
nightishamanusing the one in /apex/com.android.runtime makes no difference01:40
malok, something odd still with that01:40
T42<b100dian> (yee I have sound back on jb2q)01:40
Mister_MagisterI've added delay 100 to sensorfw start xd that just made it not start, but 10s was not enough :/01:44

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