Tuesday, 2025-08-26

Mister_Magisteryou guys talking about 3G 4G motivated me to finally debug ofono so pardon as i'm gonna be talking a lot here today :D12:46
Mister_Magisterhttps://paste.opensuse.org/pastes/8c7af4eeb430 this backtrace is oh so useful xd13:00
T42<adampigg> saifish-ofono isnt really ofono anymore :)13:05
Mister_Magisterhm?13:06
Mister_Magisterah great, you open one file and the error is at the line 1978. When your lines resemble years, you should rethink your decisions13:27
T42<adampigg> i mean, upstream has diverged quite somewhat at this point13:52
Mister_Magisteri'm not sure how that does help me13:52
T42<morciatka> wasn't there a community effort once to bring it back to upstream level?13:53
T42<adampigg> yeah, that was me :)13:53
T42<morciatka> oh, I remember reading the posts until... they didn't happen anymore ://13:53
Mister_Magisterit wouldn't be sailfishos if it wasn't outdated13:54
malMister_Magister: no debug symbols for ofono-binder-plugin? maybe build it on community obs and install from there if the debug symbols are missing from official repo14:03
Mister_Magistermal: I fixed it already don't you worry i'm not that dumb :P14:03
malMister_Magister: does your device use hidl or aidl in ofono-binder-plugin?14:04
Mister_Magisterno idea14:04
Mister_Magisterup till now it was using ril-binder-plugin14:04
malis that some old device?14:04
Mister_Magisteroneplus 614:05
malwhich android base?14:05
Mister_Magisterlineage 1614:05
Mister_Magisterso android 9 i imagine14:06
Mister_Magisterit does this weird thing where it goes into infinite loop and then crashes because i think it allocates too much memory14:06
Mister_Magisterbut only if i select sim to use for mobile data14:07
Mister_Magisterand well the crash is in binder_data lol14:08
maljust to be sure, check binder-list for radio interfaces14:08
malI might have an idea but need the info from binder-list14:09
Mister_Magisteri'm not sure what you mean so here's output of binder-list https://paste.opensuse.org/pastes/1963a2187e2414:11
Mister_Magistermaybe i am dumb after all14:11
malyep, just as I suspected, you have only android.hardware.radio.config@1.0::IRadioConfig which is not really working in ofono-binder-plugin, you should revert back to the ril binder plugin14:12
mal1.1 is really needed in ofono-binder-plugin at the moment14:12
malI tried to figure out how to fix 1.0 but didn't manage to do it yet14:13
Mister_Magisterbut i don't want to revert back to ril-binder-plugin i want volte14:13
Mister_Magisterso its time to figure out 1.0 in binder plugin14:13
Mister_Magistermal: no offence but i'm currently waiting for so many fixes that waiting really doesn't get me anywhere14:17
malthat one binder call in binder data code fails which then causes new attempt and when it always fails it goes to endless loop14:17
Mister_Magisterokay14:18
Mister_Magisterif i spend enouguh time in gdb surely i'll figure something out14:21
malafaik binder_data_set_preferred_data_modem_submit only works with 1.114:23
malhttps://android.googlesource.com/platform/hardware/interfaces/+/refs/heads/main/radio/config/1.1/IRadioConfig.hal#4814:23
malvs https://android.googlesource.com/platform/hardware/interfaces/+/refs/heads/main/radio/config/1.0/IRadioConfig.hal which doesn't have that14:23
malnot sure yet how to handle preferred data modem on 1.014:24
malor should we just skip it14:24
Mister_Magisterbut wait thats in case its dual sim right? what if I just ignore second sim slot for now?14:24
Mister_Magisterif we cannot set prefered modem lets just not set it xd14:29
Mister_Magistermonke brain14:29
malI checked android code, it just skips the call if it's not supported14:29
Mister_Magisterso I shall do the same14:30
Mister_Magisteri just need to figure out how14:30
malmake the code in that conditional with the first two from this https://github.com/mer-hybris/ofono-binder-plugin/blob/master/src/binder_data.c#L277614:34
mali.e. check for hidl and interface >= 1.114:34
malyou should be able to figure out the rest14:34
Mister_Magisteryeap thanks that's all i needed14:35
Mister_Magistermy how are you so good at this14:35
Mister_Magisteri suck xd14:35
malwell if I have added all of the recent interfaces to ofono binder code so I might have learned a thing or two14:36
Mister_Magister:D14:36
Mister_Magisteri'm just lowly web developer14:36
Mister_Magisterman any employer gonna be confused as heck when they check my github expecting webdev and they find some weird android binder stuff xd14:39
Mister_Magisternice it built first try14:41
Mister_Magisternice that worked i have now 4G connectivity14:43
Mister_Magistervolte doesn't seem to be doing much of anything, yes i have qti.conf14:44
T42<PandoraTrillion> Which device are you working on? (re @SailfishFreenodeIRCBridgeBot: <Mister_Magister>vol...)14:47
Mister_Magisterop614:47
T42<PandoraTrillion> Okay, good work. (re @SailfishFreenodeIRCBridgeBot: <Mister_Magister>op6)14:48
Mister_Magistermal: i'll make PR in a sec14:48
T42<PandoraTrillion> What is PR? (re @SailfishFreenodeIRCBridgeBot: <Mister_Magister>mal...)14:48
Mister_Magisterpull request14:48
T42<PandoraTrillion> Okay (re @SailfishFreenodeIRCBridgeBot: <Mister_Magister>pul...)14:49
T42<TheVancedGamer> you know you could google some of this terminology14:49
Mister_Magisterand please don't use respond feature that much14:49
Mister_Magisterit's completely unnecessary14:49
Mister_Magisterhmm i'm not sure its using qti_ext as i can't seem to find any mention in the logs14:54
Mister_Magisterthough "Adding "qti" plugin" that seems to be it14:55
Mister_Magisterhttps://paste.opensuse.org/pastes/524cb8cef4ca seems promising14:56
Mister_Magisteroh wait i forgot this sim is data only hold on xd14:59
Mister_Magisterhmm it seems to just error out for no reason ims:imsradio0: QtiRadioRegInfo state:1 radiotech:15 error_code:015:02
malstate 1 is not registered afaik15:07
Mister_Magisterthats what gui says15:08
Mister_Magisterim not sure what that means15:08
Mister_Magisterlike the sim is on the network and stuff15:11
Mister_Magisterthough it doesn't dispaly network in the ui15:11
Mister_Magisterhmm when i manually searched networks and I click one to register, it throws error15:12
Mister_Magisterregistration failed, error INVALID_ARGUMENTS15:12
Mister_Magisterbut if i leave it automatic it is registered15:13
Mister_Magisterso im not sure why qti plugin says not registered when it is15:14
Mister_Magisterin the binder code it does append string so i'm not sure why would it return invalid argument15:17
Mister_Magisterits acutally quite funny cause we set network manually with x parameter then it fails and proceeds to register this network automatically15:20
maldon't confure volte registration and network registration15:21
Mister_Magisteryeah i'm not sure whats the volte registration15:21
Mister_Magisterlike what does that mean15:22
Mister_Magisterbut its still weird that you cannot select network manually, but anyway15:22
Mister_Magistermal: do you want output or too busy?15:26
Mister_Magisteri'm actually not sure how much of that output is safe for public15:27
malyou might see phone numbers and imei in the logs in some cases maybe15:29
Mister_Magistermy car radio does register as volte so the sim itself should be working15:29
Mister_Magisterunless operator doesn't like my phone?15:30
Mister_Magisterany clues?15:30
T42<exynosnineninety> mister_magister: my operator has a whitelist, my op7tp was not allowed on there and ims registration failed on it15:32
T42<exynosnineninety> not saying that's in your case, but it's just something to note15:32
Mister_Magisterbut if my random chinese car radio works, how would it be whitelisted15:32
Mister_Magisterbut i'm aware, the op7pro dev had same whitelist issue on sfos15:34
T42<morciatka> my 6T also has no VoLTE here in Slovakia. Checked on carriers, it just works on the 7TP and some other phones15:34
Mister_Magisterhere he is15:34
T42<morciatka> as for Poland, T-Mobile dropped calls last time and Orange switched to 3G15:35
T42<morciatka> granted, I was on roaming. But still15:36
Mister_Magisterit could be that it doesn't like my phone15:36
Mister_Magisteri'm not saying no, i just want to know if I can check that15:36
Mister_Magisterbecause "not registered" doesn't say much xd15:36
T42<morciatka> the whole IMS situation is a chaos and the fact that qualcomm has some proprietary carrier specific files for modems doesn't spark much confidence15:36
Mister_Magistermal: https://github.com/mer-hybris/ofono-binder-plugin/pull/4615:37
malMore accurate would be "Fix IRadioConfig 1.0 support" also a style nitpick, the line (binder_data_set_preferred_data_modem_new(data)); has 4 spaces too many indentation :)15:40
malthe indentation is 4 relative to the previous line15:41
Mister_Magisteryes master15:42
Mister_Magisterit is done15:42
T42<TheVancedGamer> btw mal did you get to fix the USB issue on FP5? :D15:42
malhmm, forgot which one15:44
T42<TheVancedGamer> the SDP issue15:45
T42<TheVancedGamer> the PR got merged15:45
malforgot to add the fix to my fp5 port15:46
T42<TheVancedGamer> now you can :D15:47
malI have been debugging various issues on fp6 and other things also15:47
Mister_Magistermal: any clue how to debug the volte? or is there nothing i can do16:01
malnot sure, I'll test that PR on was it x10 or xa2 which had that issue when I tried16:06
malone of the older xperias anyway16:06
Mister_Magisteri mean it just says unregistered and i don't even know if it tries to register or something16:06
Mister_Magisteralso can I help you debug the 3.4 wpa supplicant issue?16:06
Mister_Magisteroh, i can go and do the HBM fix16:22
malyes, you can fix the PR16:25
Mister_Magisterxd16:27
T42<adampigg> anyone got a device where enabling tethering appears to work, but in reality, the interface fails to add to the bridge device?16:28
T42<morciatka> I messed with ECM/NCM instead of RNDIS and that was the thing that was broken for me. Maybe usb-moded related? Maybe related to the.... uhhh.. downstream OnePlus kernel which had weird USB modifications?16:30
malMister_Magister: you forgot that nitpick in hbm PR, the F_OK vs W_OK16:39
Mister_Magistermal: don't worry i'm just debugging16:39
malok16:39
Mister_Magisterand i just did that 5s ago locally xd16:39
mal:)16:39
Mister_Magisteryeah with changes reverted HBM doesn't work at all because its limited to a 100 in the code so i'm not sure what spiiroin is on about16:45
Mister_Magisteri'm pumping max value into light sensor16:46
Mister_Magisterled_brightness_pipe: execute 10016:47
Mister_Magisterokay i put 300 in every single spot i could and it finally worked17:20
Mister_Magisteri don't get how it works17:20
*** amccarthy is now known as Guest2506217:26
*** amccarthy_ is now known as amccarthy17:26
Mister_Magisterhow the hell does this thing work17:31
Mister_Magisteri don't understand how this thing works at all, it should be turning on HBM and it doesn't17:48
Mister_Magisternow i'm just causing floating point exceptions17:52
T42<TheVancedGamer> aka divide by zero17:53
Mister_Magisterand nothing makes goddamn sense17:55
Mister_MagisterI give up nothing in this code makes sense. I put 256 in every spot? nope, put 200? nope18:02
Mister_Magisteridk i just asked spiiroin18:26
T42<b100dian> Mister_Magister: mce -v -T -l modules/filter-brightness-als.c:*19:29
T42<b100dian> Should output some values19:30
Mister_Magister@b100dian yes and?19:30
Mister_Magisterthe values make no sense19:30
T42<b100dian> aren't the values related to the ones from /etc/mce/20als-defaults.ini ?19:30
Mister_Magisterno19:30
Mister_Magisterpicking profile 0 slot 20 that in config has 500? nothing19:30
T42<b100dian> I mean my understanding is that Profile0 is the only one that spans up to 200019:31
T42<b100dian> and 356 as in 256 + 100 was the value suggested by spiiroin in the PR, wasn't it?19:32
Mister_Magisteryes19:33
Mister_Magisteranything higher than 256 should enable HBM19:33
T42<b100dian> hmm I remember it was working when I changed half of the slot 0 to 3xx on sake19:39
T42<b100dian> it was a bit "too soo" hbm so I backed that out now19:40
Mister_Magisteranyway patch is fixed we just need sample config19:50

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