libera/#maemo-leste/ Sunday, 2025-05-11

siceloarno11, we're all in agreement re:race. that's why the idea is to delay going online (done by cellulard) until TP is ready. unfortunately in your case, something else seems to be doing the onlining, so yours needs further investigation. but yes, all three of us agree that there's kind of race00:33
arno11sicelo: Wizzup: with no init script and no cellulard binary, the modem still goes online with no troubles09:24
Wizzupmaybe check your ofono log and see what onlines it09:25
arno11will check09:26
arno11nothing relevant but for sms i see 'Error bootstrapping SMS Bearer Preference'09:29
Wizzupit doesn't say anything anout onlineing the modem?09:30
arno11yep, nothing09:30
Wizzupk, I can check later on my n900 and see if it is the same09:31
arno11ok09:31
Wizzupmaybe the n900 kernel module just tries to online it or something09:31
Wizzupif you have a spare sd card you could try latest image and check if it happens on those too09:31
arno11no more sd unfortunately09:32
arno11indeed, from boot log, seems kernel onlines the modem09:35
arno11*kernel module09:35
arno11Loading kernel module nokia-modem.09:36
arno11Connecting modem /n900_2...09:36
arno11Setting modem /n900_2 online...09:36
Wizzupthe last two messages are not from kernel yeah? it shouldn't use ofono naming for modem09:44
Wizzupwhich file are these logs from09:44
arno11/var/log/boot09:48
arno11can't find any other relevant log09:49
Wizzupdid you share the exact log messages or is this you typing them in?09:50
arno11just typing but similar to real ones from last boot09:50
arno11s/typing/copying/09:51
Wizzupok, so I shouldn't grep based on them :p09:51
arno11yeah09:53
siceloofono log won't show what's setting the modem online10:51
sicelojust to be sure ..  when you say "modem still goes online with no troubles" ... you mean it goes online on its own,, without you doing anything?10:54
arno11yep, i don't do anything ofc10:55
arno11no cellulard bin, no init, no troubles lol10:55
arno11like cellulard seems completely useless atm10:56
siceloit's trouble 😁 , because it shouldn't happen. i.e. even if we fix cellulard for everyone, you will remain with problem10:57
siceloshow us `apt-cache rdepends ofono`10:58
arno11ofono-dbsym sphone telepathy-ring sphone ofono-scripts ofono-scripts hildon-connectivity-mobile hildon-connectivity-location libqofono-qt5-0 modem-manager-gui lomiri-indicator-network connman11:02
arno11*ofono-dbgsym11:02
Wizzupis connman installed?11:03
arno11nope11:04
sicelook. do this11:11
sicelo sudo rc-update del ofono && sudo rc-update del cellulard11:12
siceloreboot11:12
sicelothis time modem should be completely dead after boot. then,11:12
Wizzupunless anything depends on ofono service11:13
Wizzupand I am not sure how he'd know that the modem is off/on11:13
Wizzupbut I think the way to do this is indeed to boot without ofono / cellulard on, then start dbus-monitor on system bus, start ofono, see what ahppens11:14
sicelosudo busctl --json=short monitor --match "type='method_call',interface='org.ofono.Modem'"11:14
arno11ok, have to go but can try a bit later11:15
sicelofrom the output of that, note the value in "sender" property11:15
siceloif you just run 'busctl' on its own, and perhaps 'busctl --user', you will see the process that powers on your modem11:17
siceloyou do need to start ofono once busctl monitor is running, of course.. can do in another terminal11:17
siceloWizzup: luckily nothing else starts ofono:-)11:18
Wizzupon your device :p11:18
siceloheh, yes. on a normal Leste install11:18
WizzupI wouldn't be surprised if someone ofono also gets dbus autolaunched or something crazy11:19
Wizzupbut we'll find out11:19
arno11hmm, well, please also try it guys11:19
arno11bbl11:19
siceloit's not dbus-activated11:19
siceloarno11: I've tried it :-)11:20
arno11rebooting12:06
arno11sicelo: not even able to go online apparently (without ofono and cellulard on boot)12:31
arno11no busctl msgs when i run ofono and cellulard init scripts12:31
arno11what is the proper way to start them ?12:32
Wizzup/etc/init.d/ofono start12:34
arno11ok, it was just to confirm, that's what i did12:38
arno11but iirc we already had such issue on n900: if ofono starts after cmt and nokia modem, it doesn't work12:39
Wizzupsomething is quite strange on your device, both ofono and cellulard are running?12:39
Wizzuphmm12:39
arno11what is strange ? just to be clear, i'm not running any 'exotic' leste install...12:40
WizzupMaybe this is n900 stuff, I don't have it with me, but tomorrow I will12:41
arno11ok12:41
Wizzupso when ofono is running, do you see the n900 modem?12:41
Wizzupon the bus12:41
arno11nope12:41
arno11i think i need to stop/ restart nokia modem12:42
arno11iirc12:42
WizzupWhat do you mean when you say that12:42
WizzupIs that an init script that probes the nokia modem?12:42
Wizzupthe module?12:43
WizzupAnd, what did you use to check the bus for the modem?12:43
arno11@nokia-modem, no init script, just modprobe12:44
arno11and yeah, just received offline sms's :)12:44
Wizzupwith what running, in what state where things12:44
WizzupI don't know what offline sms means :D12:45
arno11*sms sent while the device was turned off12:45
arno11to resume: no cellulard and ofono on boot12:46
siceloarno11, restarting ofono is not a problem. we're not touching kernel modules12:46
arno11then noway to go online after boot without modprobe -r/ modprobe nokia modem12:46
arno11then it works12:47
sicelomaybe we misunderstand each other :-)12:47
arno11and then able to receive sms's sent device off12:47
Wizzupwhat confused me is that we were trying to see if there is a race (we know there is, but where arno is seeing it), but now I think that turned into figuring out why arno11's modem would be onlined, and that turned into some rmmod/modprobe thing12:47
arno11but need to restart hsm as well12:47
Wizzupso, with just ofono started after the modprobe and no cellulard, what did busctl show, who onlined the modem?12:48
arno11well, total misunderstanding lol12:48
arno11have to go again for a bit12:49
Wizzupboot with no ofono/cellulard -> [run busctl somewhere, keep it running] rmmod/modprobe -> start ofono -> who onlines modem, if any. if none -> start cellulard12:49
arno11and then will try to explain better12:49
Wizzupok :)12:49
siceloyes, exactly what Wizzup says. don't start cellulard at all ...  since we're trying to find the mysterious process bringing modem online12:50
arno11sicelo: Wizzup: to resume, on boot with ofono and no cellulard, modem goes online with mysterious service/process. on boot without ofono & cellulard, modem stays offline when i start ofono (no msg in busctl) and stays offline even if i run cellulard. the reason is because things are racy between sphone, cmt_pulse, nokia-modem and ofono (as we all know). if i rmmod/modprobe nokia-modem, nothing happens14:25
arno11in busctl until i stop/start ofono & cellulard. then busctl shows cellulard onlining modem. then i receive sms sent while the phone was OFF. however cmt_pulse crashes on boot (without ofono) so i need to start it by hand and restart sphone to get everything working again14:25
arno11i will try again, removing cmt_pulse and cellulard from boot but keeping ofono, to see if modem is still able to go online...14:35
arno11issue 1) mysterious process onlining modem, still no clue14:55
arno11issue 2) sms issue seems to be solved if cellulard start later (after h-d loading). but no clue how to make it working automatically without breaking nokia-modem/cmt_pulse/sphone/ofono on boot...14:58
t_F_t_sicelo: arno11: I tried 0xFFFF -b again and the screen looked totally black again, but now with some sunlight I can see there is a menu. Impossible to read though - do you know what options are in the menu? 3rd line I can decipher 'SD card' - would be nice if that is " boot from SD card" if so I can try booting Leste15:00
t_F_t_the menu has 5 lines - 3rd line contains "sd card"15:01
arno11sorry no idea, sicelo or Wizzup should know15:02
arno11however you should maybe be able to read the lines using flash led from a phone15:04
t_F_t_arno11: flash light works! thx15:08
t_F_t_1 - attached kernel 2 - internal eMMc 3- external SD card 4- U-boot boot order 5- U-boot console15:10
t_F_t_will give 3 a try.15:11
sicelot_F_t_: yes, just cursor down twice. or, another option is cursor down indefinitely, then Enter. it should bring you to the uboot shell, type "run sdboot"15:27
arno11t_F_t_: cool15:43
arno11sicelo: the mysterious 'process' seems nokia-modem...15:44
arno11so to be able to 'solve' the sms issue, i removed nokia-modem, ofono, sphone, cmt_pulse from boot15:45
arno11and start them after h-d load, this way no sms issues and it avoids cmt_pulse crash. what a mess15:46
sicelothere's no nokia-modem process :-)15:46
arno11that's why ' '15:46
arno11;)15:47
arno11(i removed nokia-modem module from boot)15:49
sicelowhat I mean is ..  nokia-modem doesn't online the modem15:50
arno11ok, so you think there is something else able to online it but how to track it ? that's the question now15:51
sicelothe busctl monitor way :-)15:56
sicelobut I'll be home in an hour and do some more tests myself15:57
arno11well, i can't online the modem without cellulard after boot so busctl seems useless, no ?15:58
arno11ok @home15:58
siceloI think, because I was multitasking, I didn't explain things in a way to help you understand16:01
arno11ok16:02
arno11sicelo: gps-nokia-n900 onlines the modem via ofono scripts19:02
arno11seems the culprit19:03
arno11will try without it on boot to check19:04
Wizzupah, yikes :)19:04
Wizzupah yes, the init script does it19:05
WizzupThat just needs to go I think19:05
siceloyes, i was just about to write same :-)19:07
arno11yeah it does the trick :)19:17
arno11now if there is a way to start cellulard later, the sms issue is solved19:18
arno11*later, i mean after tp19:20
Wizzuparno11: no, we will start it early, but we will have it wait19:26
sicelowe had already discussed that it will start whenever it starts, but we'll ensure it onlines when tp is on dbus19:26
siceloah, Wizzup beat me to it19:26
Wizzuplet's see what fmg thinks\19:28
arno11ah ok, yeah @wait19:58
sicelohaving the TP activen check in cellulard is mostly clean, but the downside is that it can create tight coupling between modem and TP, which might not be very desirable20:57
siceloarno11: how is the offline SMS behavior once gps-nokia-n900 is neutered20:59
arno11sicelo: when gps script is blocked, offline sms's are received few seconds after i launch cellulard after h-d load21:25
Wizzupgreat21:25
arno11yep :)21:25
arno11and no troubles with cmt_pulse or sphone21:28
siceloarno11: you can now `sudo rc-update add cellulard` (the default). i would like to know how the offline sms'es work in this default case21:38
WizzupI am not sure if openrc is deterministic enough in this case, if cellulard starts before xsession is finished then that is a problem21:44
Wizzupwe might want to add some 'depend xorg' or something to it, since I think this will not finish until the xsession is ready21:45
Wizzupbut... there might be pinentry blocking call somewhere in the xsession ^_^21:45
WizzupI really wonder if we can't use the hd ready signal for this somehow21:45
arno11sicelo: Wizzup: will try anyway and see what's happening22:00
arno11sicelo: offline sms's still don't work with cellulard init on boot22:21
arno11works again if i start cellulard after h-d22:21
siceloright. so that's the issue that i've been talking about all along. which we still need to solve. let's hear from fmg22:37
siceloi seem to still prefer starting cellulard from Xsession, not via openrc directly (and while at it, run it as user user, since there's nothing in it that requires being run as root anyway). we could then easily ensure it starts after conversations (or the h-d ready signal), etc.22:41
siceloarno11: you'll submit MR to remove those ofono-scripts lines in gps-nokia-n900 and the dependenncy in d/control?22:48
arno11i can do that tomorrow.22:52
arno11and i can try to start cellulard from xsession.post (after sphone maybe) to see if it works22:54
siceloam i the only one that wishes sphone would indicate if a call was incoming or outgoing? if not, would this be OK? https://0x0.st/8ym8.png - i've been using it for a day and i'm happy with it23:30
Wizzupsicelo: we should just add the rtcom gtk widget into it23:56
Wizzupwe'd get the avatars, online status and the nice history for free23:57
Wizzupsicelo: system services should not be started from xsession imo23:57

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