libera/#maemo-leste/ Saturday, 2025-05-10

siceloi notice nearly every SMS on my Droid 4 has a 1970 timestamp, while the time is correct on the device17:14
siceloam I the only one?17:16
Wizzupwith latest conversations I suspect?17:32
Wizzupdsc_: ^ ?17:32
siceloi'm on latest, yes. it could be the time-related commits in rtcom?17:41
dsc_sicelo: if it is 1970 in `Events` @ el-v1.db, then dont think it is conversations18:02
dsc_https://git.maemo.org/leste/conversations/src/branch/master/src/lib/tp/tp.cpp#L68118:03
dsc_https://git.maemo.org/leste/conversations/src/branch/master/src/lib/tp/tp.cpp#L71618:03
dsc_that first one is silly maybe hmm18:03
dsc_https://github.com/TelepathyIM/telepathy-qt/blob/188dece432d090809c5ad88a91cd573c5af61c09/TelepathyQt/message.cpp#L23518:06
dsc_returns the time when this message was sent18:06
dsc_do we get such information with SMS18:06
dsc_some protocols support 'the time it was sent', thats why it gives precedence to that18:08
dsc_sicelo: you can modify this to take .received() instead, see if it fixes18:10
Wizzuphttps://gitlab.freedesktop.org/telepathy/telepathy-qt/issues/118:11
WizzupI don't think this will bite us in daedalus at least, time_t is not 64 bit there18:12
Wizzupbut maybe freemangordon can confirm18:12
sicelodsc_: yes ofono (and i guess sms in general) reports two timestamps: time it was sent by the network/sender, and time it was received. in most cases, they're the same time18:14
dsc_there is a isValid() check on the datetime object, in case telepathy-qt returned a default one (which would eval to False)18:16
dsc_perhaps you can check with dbus-monitor to see which timestamps are set18:17
dsc_https://git.maemo.org/attachments/d17c4221-e82c-477f-9605-879bf1354ad0 <== message-sent, message-received18:17
sicelojust checked el-v1.db .. timestamps are correct there18:18
sicelo185|3|1|1746884748|1746874728|1746874728|1|0|0|0|0|ring/tel/account0|<SelfHandle>|MTN MoMo||<#> Y?ello. Please enter the following code:7520 to complete your login. Be Careful. NEVER Share this code. RdbS6eMOXvx > N/RywfrtIZL>|TN MoMo18:19
sicelo186|3|1|1746884846|1746874792|1746874792|1|0|0|0|0|ring/tel/account0|<SelfHandle>|MTN||You have successfully purchased 12 Daily Minutes. Your bundle will expire 11/05/2025 at 12:59:54. For Balance enquiry dial *686*5#|MTN18:19
dsc_how do you see this 197018:19
sicelo1970 in conversations UI for18:19
dsc_mkay18:20
dsc_ill copy that row and check myself later18:20
Wizzupkeep in mind sicelo is on 32 bit18:31
Wizzupour vm images are 64 bit18:31
sicelosaw this while trying to chase down my repeated SMS issues, which is more annoying than the date issue18:31
sicelodsc_: https://0x0.st/8y-o.png18:31
Wizzupthis is a modem / operator issue18:32
Wizzup(so kernel or ofono most likely)18:32
WizzupI have also had this happen to me on fremantle  some times18:32
Wizzupit lasted for weeks :D18:32
sicelonever happened for me for the 10+ years that i used Fremantle. and didn't happen on the N900 with Leste the last few weeks that I used it. i'm quite sure it's Droid 4 specific in my case, kernel or ofono18:34
Wizzupyes, it is a problem in our kernel or ofono, but it isn't unique to us is what I meant18:35
WizzupI think somewhere the modem doesn't acknowledge we received the message to the operator18:35
siceloi understand you, and agree :-)18:36
dsc_sicelo: \o/18:41
arno11btw it is -still- normal in conversations to not be able to see sms received while the phone is off ?20:51
arno11*is it20:54
arno11ah, i got the 1970 issue as well21:04
arno11and phone numbers seem not shown anymore (when i receive a new sms from a known contact)21:06
arno11*with last conversations21:07
Wizzupis it last conversations or last rtcom I wonder21:19
arno11both21:20
arno11ah sorry21:20
Wizzup:p21:20
sicelommm, arno11, messages sent while device was off are lost? why would that be? i guess network sends them when we go online next, so i don't see why we would lose them21:29
arno11sicelo: quite agree but i tried several times from my andro, 100% lost21:31
siceloodd. this needs investigation. i wouldn't like to lose messages. would rather have them repeated (even though it can get annoying eventually)21:32
siceloi'll try and test it21:33
arno11yep, sure @repeated21:33
arno11ok21:33
dsc_arno11: what kind of messages are lost?21:36
arno11sms's21:36
dsc_at least in converastions SMS are treated a bit different and never dropped if received21:41
dsc_sometimes I have to drop messages when scrollback comes in but we already have it (matrix/xmpp)21:42
dsc_but this mechanism active for SMS21:42
dsc_but this mechanism *is not* active for SMS21:42
siceloarno11: you can stop ofono, and cellulard, send yourself an sms, start ofono, monitor ofono via dbus, then start cellulard21:45
arno11ok, will try21:45
sicelothis will hopefully show us if ofono ever receives that message.21:45
arno11ok21:46
sicelomaybe your operator has short life for undelivered messages ...21:46
t_F_t_arno11: usb port should be fine - the message on my PC is correct as well and provides feedback that the N900 is found and data is send and received via udo ./0xFFFF -m test/u-boot-2013.04-2.bin -l21:47
arno11sicelo: maybe21:47
arno11t_F_t_: ok21:47
t_F_t_arno11: if there is a better method for the N900 - can you provide a link. I thought this one was the most detailed.21:48
t_F_t_https://leste.maemo.org/Nokia_N90021:49
arno11the easier way is the method with uboot from fremantle imo21:50
sicelot_F_t_: where exactly do you get a problem? i used those steps on an N900 a couple of weeks ago21:52
t_F_t_sicelo: Followed everything until ./0xFFFF -b21:53
t_F_t_It seemed to be working - terminal on my PC showed the output that is exactly the same as the explanation - screen on my N900 appears to be turned off - no menu whatsoever, just black.21:53
arno11sicelo: @sms, really weird: it works using your process21:53
t_F_t_so the screen of my N900 doesn't show a menu.21:53
arno11sicelo: but not @boot21:54
t_F_t_well - I have another N900 that I can try it with later - just to rule out any hardware issue.21:55
siceloarno11: then it suggests your operator has a short lifetime for waiting SMSes. it seems to be a boot problem simply because of time21:55
sicelot_F_t_: you can try start from scratch, and run the command like `0xFFFF ... -l && sleep 2 && 0xFFFF -b` ... you are possibly waiting too long between -l and -b21:56
siceloalso, as noted in the wiki page, the screen might not be backlight after the -b ... you have to look at the screen sideways or shine a light on it :-)21:57
t_F_t_sicelo: thx - will probably try that tomorrow and if it fails give another N900 a spin. Battery is pretty low now on both of them - will charge them tonight.21:58
arno11sicelo: not convinced @shortlife time21:58
siceloarno11: you are probably right21:59
siceloif tp starts long after ofono, then the message might be lost indeed, because ofono will receive it immediately and nothing's there to pick it from dbus22:00
siceloso what needs to happen is - ofono must be configured to start *after* tp (or whoever fetches SMSes from ofono)22:01
arno11yeah and telepathy is quite 'buggy' on boot on n900 btw22:01
arno11should be complicated as tp seems to start very late after boot22:03
arno11like during H-D loading22:03
sicelowe should wait for it regardless22:03
arno11ok, i can try to block ofono on boot and start it manually once h-d is completely ok22:04
sicelowe don't necessarily need to fiddle with ofono itself. we could do it in cellulard ... since that's the one that brings modem only22:05
sicelos/only/online/22:05
arno11ok22:05
arno11let's try22:05
arno11need to reboot22:08
sicelommm, cellulard runs as root. it should be able to run as user actually22:08
siceloWizzup: where/how does the tp stack get started?22:14
arno11sicelo: sms still lost22:21
sicelowhat was your process?22:21
sicelodo you know how the TP stack is started?22:22
arno11move cellulard in home, turn off, send sms, turn on, wait for h-d loading completely, start cellulard22:23
arno11once the modem online, able to receive sms, but not the one sent offline22:24
arno11@tp start, no idea22:25
sicelojust before starting cellulard, in a separate terminal, start monitoring ofono on dbus. something like `gdbus monitor --system --dest org.ofono` should do. i'm quite sure the waited-for SMS should show up at least in ofono. either way, we do need proof to be sure it really arrives22:27
arno11ok let's do it again22:30
Wizzupwait, you think the problem is in tp-ring?22:40
sicelono :-)22:41
Wizzupah, ok22:41
Wizzupso most of these things don't matter until the modem is onlined22:41
sicelojust trying to find a good time to start cellulard. just starting it at boot is not very safe for SMS, because of how ofono handles SMS22:41
sicelothe theory i have for now is that the modem gets onlined before tp is ready, so the SMS arrives on dbus but no one is there to pick it up. so i'm not sure 'who' exactly is that. i'm guessing tp, but i am not fully in touch with our stack22:44
arno11sicelo: maybe i'm silly or tired or both but:22:45
arno11still nothing from dbus22:45
arno11and ofono monitor22:45
arno11and i'm a ble to receive sms *without* cellulard running22:46
Wizzupare you manually restarting services or is this on boot22:46
siceloyes, cellulard only onlines the modem. you can stop it once modem is online22:47
Wizzupofono should never be put directly in online mode by anything but cellulard22:47
Wizzupcellulard just makes the modem offline and online basically22:47
arno11(after boot, i start cellulard manually)22:47
Wizzupand the modem should be offline on boot without cellulard running22:47
WizzupI'm confused22:47
siceloarno11: but your description makes it sound like the issue is with your operator then. you're sure the offline-sms issue doesn't affect other phones?22:47
arno11absolutely no issue on other phones22:48
Wizzupto me it seems that if you think there is a race condition then the only thing that matters if when cellulard onlines ofono modem22:48
arno11i'm confused as well22:48
Wizzupif that should happen later, then let's make that happen later22:48
Wizzupofono will start but the modems must be offline after boot22:49
sicelook. i'll give it a try on my own device (although i don't really have time) :-D22:49
siceloWizzup: yes modem definitely boots up in offline state for sure22:49
siceloufnortunatley if he doesn't see the message via ofono dbus, then we can't blame tp/conversations, etc.22:51
arno11i think something is racy honestly, or another service runs cellulard (stopping/blocking it from init.d doesn't offline the modem)22:52
siceloyou mean that your modem is online before cellulard brings it online?22:53
arno11exactly22:53
siceloare you sure about this?22:54
arno11and even if i stop cellulard from init.d, still able to receive sms22:54
arno11current cellulard status: stopped22:54
siceloonlining ofono modem is quite a chore ... nearly impossible for it to happen by accident :-)22:54
siceloyou first need to Power it on, then Online.22:55
* sicelo is rebooting the Droid 422:55
siceloarno11: correct way to disable it is `sudo rc-update del cellulard`. this works as expected on my D4. i can try on N900 too, but really should be exactly similar23:00
arno11ok23:02
arno11hmm, what is exactly expected when i run the rc-update command ?23:05
sicelorc-update alone tells you all defined services, and which runlevel they're applicable to23:06
sicelorc-update del service removes a service from that list23:06
sicelorc-update add service adds a service to that list23:07
siceloin this case, the runlevel is `default`.23:07
Wizzuparno11: so, remember, cellulard only online and offlines ofono23:08
Wizzupit doesn't need to run for ofono to function, ofono just needs it to online it23:08
arno11ok23:09
arno11let's reboot again, and then zzz23:10
Wizzupso rc-update del/add can change if openrc starts a service as part of a runlevel, but it does not prevent the service from being started23:11
siceloWizzup: the d4 capacity saving script is now useless .. it stores charge_full, which is the only R/W property. as long as charge_now is reported as 0, knowing charge_full is not useful for 'new' upower.23:11
sicelore: rc-update, yes. there's nothing else that starts cellulard on a normal Leste installation. and yes, we do want to start it manually later on, rc-service cellulard start23:12
sicelo@script, so that's why we kept wondering why after reboot the calibration is lost. script does work, but upower doesn't care :p23:14
siceloanyway now we don't care either. so WONTFIX.23:15
sicelointerestingly, regarding the repeated SMSes ... after booting, the sms reception was fine/normal. i have 3 SMSes for the first two days from last bootup. the issue surfaced after two days up to now at 5 days uptime23:27
Wizzupsicelo: I think that might be good news @ d4 script, better not to have them23:29
Wizzupsicelo: I don't agree, I don't think the problem is when cellulard starts, the problem is when it makes the decision to online23:29
siceloafaik, it doesn't make any decision :-)23:31
siceloit starts, finds modem, and onlines immediately23:32
siceloof course it does respect if we have set offline mode specifically, but otherwise makes no decisions of its own. and i don't see a problem with that23:33
Wizzupwell, maybe it needs to wait for a specific dbus signal to start working23:34
siceloi think we should start it as user, not root. quite sure there's nothing root-specific in it. then we could orchestrate things so user starts it once something's available to pick up any early SMSes23:34
Wizzupwhy?23:34
sicelonot sure i get the question :-)23:35
sicelowhy we start as user? or why delay its start?23:35
Wizzupwhat would this additional orchestration be?23:35
Wizzupboth23:35
sicelouser - makes it easy to start from session without hacks23:36
Wizzupwhat hacks?23:36
WizzupWe have a session script that sends a dbus signal already that says hildon-desktop is ready23:36
Wizzupbut I don't know how you're going to ensure that tp-ring is running and initialised within the xsession23:37
WizzupHowever, it seems something that cellulard could check for pretty easily23:37
sicelodelay - the problem with ofono is that it doesn't have its own store for SMSes. it's a general ofono limitation. so if you are not ready to pickup the message as soon as it shows up on dbus, it's gone forever. so you absolutely need to ensure someone's ready to pick that message up *before* you go online. by onlining after that someone is ready, no problemo23:37
WizzupI understand ofono not storing things, what I don't understand is why we want add this instrumentation in the xsession script and how that would be the best way to orchestrate it23:38
arno11i ran rc-update del cellulard and remove init script and the modem still goes online on boot23:38
WizzupWe just want cellulard not to online the modem until tp-ring is running23:38
Wizzuparno11: yes, you missed it, but rc-update del doesn't do what you think it does23:38
siceloarno11: then your system is different from what we're running23:39
Wizzup23:11 < Wizzup> so rc-update del/add can change if openrc starts a service as part of a runlevel, but it does not prevent the service from being started23:39
Wizzupif anything has 'depend cellulard' or something, then it will still start23:39
sicelothere's nothing like that though :-)23:39
arno11ah ok, that was my real question23:39
Wizzupsicelo: like what?23:39
sicelonothing that depends on cellulard23:40
sicelotrust me on this ... i've done this lots of times while working on ofono with fmg23:40
Wizzupfine23:40
Wizzupin any case, just rename the init script23:40
sicelorc-update del should be enough on a standard leste system23:40
sicelobut yeah, other things can work, true23:40
Wizzupin any case, it seems to be we just don't want cellulard to online until a certain condition is hit23:41
Wizzupso we just either have it check directly or listen to a dbus signal to know this condition is hit23:41
siceloagreed23:41
Wizzupremember that tp-ring and all other tp stuff gets started implicitly when sphone or conversations get through some part of their initialisation23:41
siceloah, so they're dbus-activated?23:42
Wizzupand it's pretty easy to listen to tp-ring 'joining' the dbus bus23:42
Wizzupyes, I'm 99% sure they are all dbus activated23:42
Wizzupand all cellulard does is listen on dbus, act on dbus, and listen to gconf (I think, for offline mode)23:42
sicelohad no idea, hence asked a number of times :-)23:42
Wizzupsorry, must have missed it23:43
sicelothen yes, i agree that's a good solution23:43
Wizzupcool23:44
siceloarno11: btw, when your modem onlines mysteriously, you say cellulard is not running? that also proves you have something completely independent doing this onlining23:44
siceloyou need to find it, and remove it23:44
arno11yes agree...but what's going on lol ?23:45
sicelo22:54 < arno11> current cellulard status: stopped   <<23:45
siceloheh, you tell us what you did to the system :p23:45
sicelomaybe in the past, you set some ofono-scripts thingy to do that for you?23:45
arno11no, misunderstanding23:46
arno11i just did that to test and block cellulard today23:46
arno11i mean i blocked cellulard on boot and the modem still goes online23:46
sicelo22:54 < arno11> current cellulard status: stopped   << this was at boot, before you started cellulard yourself, but modem was already receiving sms?23:47
Wizzuparno11: sicelo: is saying that nothing in else onlines ofono apart from cellulard unless you have something custom23:47
arno11i don't have any custom thing on boot23:47
Wizzupcould be some weird dependency, maybe modemmanager is somehow running, who knows23:47
siceloyeah, in fact that's why fmg wrote cellulard to begin with. in the past, it was started by some hack .. can't recall what that was :-/23:48
Wizzupsicelo: libicd-network-ofono I think23:48
Wizzupbtw, if you need a work around now, just set a pin for sms :p23:48
Wizzups/sms/sim/23:48
siceloyup @ pin23:48
sicelobut then N900 gets painful to boot with sim pin :p23:49
sicelofun23:49
Wizzupbedtime for me, ttyl23:53
arno11i'm still convinced something is really racy. anyway bedtime as well, gn guys23:55

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