_whitelogger has joined #maemo-leste
_whitelogger has joined #maemo-leste
joerg has joined #maemo-leste
System_Error has quit [Remote host closed the connection]
System_Error has joined #maemo-leste
System_Error has quit [Remote host closed the connection]
apac has quit [Ping timeout: 248 seconds]
vectis_ has joined #maemo-leste
_fab has joined #maemo-leste
_fab has quit [Ping timeout: 272 seconds]
norayr has quit [Remote host closed the connection]
Twig has joined #maemo-leste
akossh has joined #maemo-leste
Pali has joined #maemo-leste
Livio has joined #maemo-leste
System_Error has joined #maemo-leste
Livio has quit [Ping timeout: 264 seconds]
arno11 has joined #maemo-leste
ladsalt has joined #maemo-leste
ladsalt has quit [Client Quit]
_fab has joined #maemo-leste
_fab has quit [Ping timeout: 245 seconds]
arno11 has left #maemo-leste [#maemo-leste]
<sicelo> i notice nearly every SMS on my Droid 4 has a 1970 timestamp, while the time is correct on the device
<sicelo> am I the only one?
mkfx has joined #maemo-leste
<Wizzup> with latest conversations I suspect?
<Wizzup> dsc_: ^ ?
<sicelo> i'm on latest, yes. it could be the time-related commits in rtcom?
<dsc_> sicelo: if it is 1970 in `Events` @ el-v1.db, then dont think it is conversations
<dsc_> that first one is silly maybe hmm
<dsc_> returns the time when this message was sent
<dsc_> do we get such information with SMS
<dsc_> some protocols support 'the time it was sent', thats why it gives precedence to that
<dsc_> sicelo: you can modify this to take .received() instead, see if it fixes
<Wizzup> I don't think this will bite us in daedalus at least, time_t is not 64 bit there
<Wizzup> but maybe freemangordon can confirm
<sicelo> dsc_: 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 time
<dsc_> there is a isValid() check on the datetime object, in case telepathy-qt returned a default one (which would eval to False)
<dsc_> perhaps you can check with dbus-monitor to see which timestamps are set
<sicelo> just checked el-v1.db .. timestamps are correct there
<sicelo> 185|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 MoMo
<sicelo> 186|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#|MTN
<dsc_> how do you see this 1970
<sicelo> 1970 in conversations UI for
<dsc_> mkay
<dsc_> ill copy that row and check myself later
<Wizzup> keep in mind sicelo is on 32 bit
<Wizzup> our vm images are 64 bit
<sicelo> saw this while trying to chase down my repeated SMS issues, which is more annoying than the date issue
<Wizzup> this is a modem / operator issue
<Wizzup> (so kernel or ofono most likely)
<Wizzup> I have also had this happen to me on fremantle some times
<Wizzup> it lasted for weeks :D
<sicelo> never 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 ofono
mkfx has left #maemo-leste [Error from remote client]
<Wizzup> yes, it is a problem in our kernel or ofono, but it isn't unique to us is what I meant
<Wizzup> I think somewhere the modem doesn't acknowledge we received the message to the operator
<sicelo> i understand you, and agree :-)
saeed has quit [Ping timeout: 252 seconds]
_fab has joined #maemo-leste
<dsc_> sicelo: \o/
apac has joined #maemo-leste
saeed has joined #maemo-leste
arno11 has joined #maemo-leste
<arno11> btw it is -still- normal in conversations to not be able to see sms received while the phone is off ?
<arno11> *is it
<arno11> ah, i got the 1970 issue as well
<arno11> and phone numbers seem not shown anymore (when i receive a new sms from a known contact)
<arno11> *with last conversations
<Wizzup> is it last conversations or last rtcom I wonder
<arno11> both
<arno11> ah sorry
<Wizzup> :p
apac has quit [Ping timeout: 244 seconds]
<sicelo> mmm, 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 them
<arno11> sicelo: quite agree but i tried several times from my andro, 100% lost
<sicelo> odd. this needs investigation. i wouldn't like to lose messages. would rather have them repeated (even though it can get annoying eventually)
<sicelo> i'll try and test it
<arno11> yep, sure @repeated
<arno11> ok
<dsc_> arno11: what kind of messages are lost?
<arno11> sms's
<dsc_> at least in converastions SMS are treated a bit different and never dropped if received
<dsc_> sometimes I have to drop messages when scrollback comes in but we already have it (matrix/xmpp)
<dsc_> but this mechanism active for SMS
<dsc_> but this mechanism *is not* active for SMS
_fab has quit [Ping timeout: 268 seconds]
<sicelo> arno11: you can stop ofono, and cellulard, send yourself an sms, start ofono, monitor ofono via dbus, then start cellulard
<arno11> ok, will try
<sicelo> this will hopefully show us if ofono ever receives that message.
<arno11> ok
<sicelo> maybe your operator has short life for undelivered messages ...
<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 -l
<arno11> sicelo: maybe
<arno11> t_F_t_: ok
<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.
<arno11> the easier way is the method with uboot from fremantle imo
<sicelo> t_F_t_: where exactly do you get a problem? i used those steps on an N900 a couple of weeks ago
<t_F_t_> sicelo: Followed everything until ./0xFFFF -b
<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.
<arno11> sicelo: @sms, really weird: it works using your process
<t_F_t_> so the screen of my N900 doesn't show a menu.
<arno11> sicelo: but not @boot
<t_F_t_> well - I have another N900 that I can try it with later - just to rule out any hardware issue.
<sicelo> arno11: then it suggests your operator has a short lifetime for waiting SMSes. it seems to be a boot problem simply because of time
<sicelo> t_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 -b
<sicelo> also, 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 :-)
<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.
<arno11> sicelo: not convinced @shortlife time
<sicelo> arno11: you are probably right
<sicelo> if 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 dbus
apac has joined #maemo-leste
<sicelo> so what needs to happen is - ofono must be configured to start *after* tp (or whoever fetches SMSes from ofono)
<arno11> yeah and telepathy is quite 'buggy' on boot on n900 btw
<arno11> should be complicated as tp seems to start very late after boot
<arno11> like during H-D loading
<sicelo> we should wait for it regardless
<arno11> ok, i can try to block ofono on boot and start it manually once h-d is completely ok
<sicelo> we don't necessarily need to fiddle with ofono itself. we could do it in cellulard ... since that's the one that brings modem only
<sicelo> s/only/online/
<arno11> ok
<arno11> let's try
<arno11> need to reboot
arno11 has quit [Quit: leaving]
<sicelo> mmm, cellulard runs as root. it should be able to run as user actually
<sicelo> Wizzup: where/how does the tp stack get started?
arno11 has joined #maemo-leste
<arno11> sicelo: sms still lost
<sicelo> what was your process?
<sicelo> do you know how the TP stack is started?
<arno11> move cellulard in home, turn off, send sms, turn on, wait for h-d loading completely, start cellulard
<arno11> once the modem online, able to receive sms, but not the one sent offline
<arno11> @tp start, no idea
<sicelo> just 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 arrives
<arno11> ok let's do it again
arno11 has quit [Quit: leaving]
<Wizzup> wait, you think the problem is in tp-ring?
<sicelo> no :-)
<Wizzup> ah, ok
<Wizzup> so most of these things don't matter until the modem is onlined
<sicelo> just 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 SMS
<sicelo> the 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 stack
arno11 has joined #maemo-leste
<arno11> sicelo: maybe i'm silly or tired or both but:
Twig has quit [Remote host closed the connection]
<arno11> still nothing from dbus
<arno11> and ofono monitor
<arno11> and i'm a ble to receive sms *without* cellulard running
<Wizzup> are you manually restarting services or is this on boot
<sicelo> yes, cellulard only onlines the modem. you can stop it once modem is online
<Wizzup> ofono should never be put directly in online mode by anything but cellulard
<Wizzup> cellulard just makes the modem offline and online basically
<arno11> (after boot, i start cellulard manually)
<Wizzup> and the modem should be offline on boot without cellulard running
<Wizzup> I'm confused
<sicelo> arno11: 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?
<arno11> absolutely no issue on other phones
<Wizzup> to me it seems that if you think there is a race condition then the only thing that matters if when cellulard onlines ofono modem
<arno11> i'm confused as well
<Wizzup> if that should happen later, then let's make that happen later
<Wizzup> ofono will start but the modems must be offline after boot
<sicelo> ok. i'll give it a try on my own device (although i don't really have time) :-D
<sicelo> Wizzup: yes modem definitely boots up in offline state for sure
<sicelo> ufnortunatley if he doesn't see the message via ofono dbus, then we can't blame tp/conversations, etc.
<arno11> i think something is racy honestly, or another service runs cellulard (stopping/blocking it from init.d doesn't offline the modem)
<sicelo> you mean that your modem is online before cellulard brings it online?
<arno11> exactly
<sicelo> are you sure about this?
<arno11> and even if i stop cellulard from init.d, still able to receive sms
<arno11> current cellulard status: stopped
<sicelo> onlining ofono modem is quite a chore ... nearly impossible for it to happen by accident :-)
<sicelo> you first need to Power it on, then Online.
* sicelo is rebooting the Droid 4
<sicelo> arno11: 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 similar
<arno11> ok
<arno11> hmm, what is exactly expected when i run the rc-update command ?
<sicelo> rc-update alone tells you all defined services, and which runlevel they're applicable to
<sicelo> rc-update del service removes a service from that list
<sicelo> rc-update add service adds a service to that list
<sicelo> in this case, the runlevel is `default`.
<Wizzup> arno11: so, remember, cellulard only online and offlines ofono
<Wizzup> it doesn't need to run for ofono to function, ofono just needs it to online it
<arno11> ok
<arno11> let's reboot again, and then zzz
arno11 has quit [Quit: leaving]
<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 started
<sicelo> Wizzup: 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.
<sicelo> re: 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 start
<sicelo> @script, so that's why we kept wondering why after reboot the calibration is lost. script does work, but upower doesn't care :p
<sicelo> anyway now we don't care either. so WONTFIX.
Pali has quit [Quit: Pali]
<sicelo> interestingly, 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 uptime
<Wizzup> sicelo: I think that might be good news @ d4 script, better not to have them
<Wizzup> sicelo: I don't agree, I don't think the problem is when cellulard starts, the problem is when it makes the decision to online
<sicelo> afaik, it doesn't make any decision :-)
<sicelo> it starts, finds modem, and onlines immediately
<sicelo> of 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 that
<Wizzup> well, maybe it needs to wait for a specific dbus signal to start working
<sicelo> i 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 SMSes
<Wizzup> why?
<sicelo> not sure i get the question :-)
arno11 has joined #maemo-leste
<sicelo> why we start as user? or why delay its start?
<Wizzup> what would this additional orchestration be?
<Wizzup> both
<sicelo> user - makes it easy to start from session without hacks
<Wizzup> what hacks?
<Wizzup> We have a session script that sends a dbus signal already that says hildon-desktop is ready
<Wizzup> but I don't know how you're going to ensure that tp-ring is running and initialised within the xsession
<Wizzup> However, it seems something that cellulard could check for pretty easily
<sicelo> delay - 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 problemo
vectis_ has quit [Ping timeout: 248 seconds]
<Wizzup> I 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 it
<arno11> i ran rc-update del cellulard and remove init script and the modem still goes online on boot
<Wizzup> We just want cellulard not to online the modem until tp-ring is running
<Wizzup> arno11: yes, you missed it, but rc-update del doesn't do what you think it does
<sicelo> arno11: then your system is different from what we're running
<Wizzup> 23: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 started
<Wizzup> if anything has 'depend cellulard' or something, then it will still start
<sicelo> there's nothing like that though :-)
<arno11> ah ok, that was my real question
<Wizzup> sicelo: like what?
<sicelo> nothing that depends on cellulard
<sicelo> trust me on this ... i've done this lots of times while working on ofono with fmg
<Wizzup> fine
<Wizzup> in any case, just rename the init script
<sicelo> rc-update del should be enough on a standard leste system
<sicelo> but yeah, other things can work, true
<Wizzup> in any case, it seems to be we just don't want cellulard to online until a certain condition is hit
<Wizzup> so we just either have it check directly or listen to a dbus signal to know this condition is hit
<sicelo> agreed
<Wizzup> remember that tp-ring and all other tp stuff gets started implicitly when sphone or conversations get through some part of their initialisation
<sicelo> ah, so they're dbus-activated?
<Wizzup> and it's pretty easy to listen to tp-ring 'joining' the dbus bus
<Wizzup> yes, I'm 99% sure they are all dbus activated
<Wizzup> and all cellulard does is listen on dbus, act on dbus, and listen to gconf (I think, for offline mode)
<sicelo> had no idea, hence asked a number of times :-)
<Wizzup> sorry, must have missed it
<sicelo> then yes, i agree that's a good solution
<Wizzup> cool
<sicelo> arno11: btw, when your modem onlines mysteriously, you say cellulard is not running? that also proves you have something completely independent doing this onlining
<sicelo> you need to find it, and remove it
<arno11> yes agree...but what's going on lol ?
<sicelo> 22:54 < arno11> current cellulard status: stopped <<
<sicelo> heh, you tell us what you did to the system :p
<sicelo> maybe in the past, you set some ofono-scripts thingy to do that for you?
<arno11> no, misunderstanding
<arno11> i just did that to test and block cellulard today
<arno11> i mean i blocked cellulard on boot and the modem still goes online
<sicelo> 22:54 < arno11> current cellulard status: stopped << this was at boot, before you started cellulard yourself, but modem was already receiving sms?
<Wizzup> arno11: sicelo: is saying that nothing in else onlines ofono apart from cellulard unless you have something custom
<arno11> i don't have any custom thing on boot
<Wizzup> could be some weird dependency, maybe modemmanager is somehow running, who knows
<sicelo> yeah, 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 :-/
<Wizzup> sicelo: libicd-network-ofono I think
<Wizzup> btw, if you need a work around now, just set a pin for sms :p
<Wizzup> s/sms/sim/
<sicelo> yup @ pin
<sicelo> but then N900 gets painful to boot with sim pin :p
<sicelo> fun
<Wizzup> bedtime for me, ttyl
<arno11> i'm still convinced something is really racy. anyway bedtime as well, gn guys
arno11 has quit [Quit: leaving]
System_Error has quit [Ping timeout: 264 seconds]
System_Error has joined #maemo-leste
<sicelo> arno11, 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 race
pere has quit [*.net *.split]
norly has quit [*.net *.split]
udder has quit [*.net *.split]
fantom has quit [Ping timeout: 244 seconds]
fantom has joined #maemo-leste
norly has joined #maemo-leste
pere has joined #maemo-leste
udder has joined #maemo-leste
apac has quit [Ping timeout: 245 seconds]
udder has quit [Ping timeout: 265 seconds]
udder has joined #maemo-leste