libera/#maemo-leste/ Friday, 2021-07-02

uvosbtw no without a connection ham dosent let you try and install an app11:48
Wizzupkind of makes sense11:49
bencoh:)11:49
uvosbut its not great, it creates a dependancy on icd and needlesly punishes people for seting up networks manually11:50
siceloyou can use dummy network if you've setup manual network11:50
uvosthere is no reason for it to not just try and then try the icd/connui dus interface to raise the dialog if it cant connect11:51
uvosand what if you want to replace icd with nm or whatever - it would be best if suff is modular as far as possible11:53
WizzupI think the hildon integration makes it not try when it knows it'll fail11:54
parazyduvos: You can avoid this in red pill mode in HAM11:55
uvosparazyd: ok11:55
parazydSee red-pill.txt in the repo11:55
uvosanyhow, btw i cant get syncevolution to work11:59
Wizzupwhat is the server sw11:59
uvosthe frontend just sits at syncronizing with.. forever with stop doing nothing12:00
Wizzupwhat if you run it manually?12:00
uvosand if i run sync.py in console this appears: https://pastebin.com/ZgrJX06y12:00
lelMerlijnWajer closed an issue: https://github.com/maemo-leste/bugtracker/issues/472 (Fork and change syncevolution)12:00
uvosWizzup: im not sure how yet syncevolution "/home/user/.config/syncevolution/uvos-target/peers/target-config/config.ini" returns with12:00
uvos[INFO] Configuration "/home/user/.config/syncevolution/uvos-target/peers/target-config/config.ini" does not exist.12:01
uvosbut thats not true12:01
Wizzupuvos: did you see https://leste.maemo.org/Calendar12:01
bencohhaving HAM depend on a "normal" hildon environment doesn't sound that bad to me actually12:01
Wizzupbencoh: yeah12:01
uvoseh id rather have leste be modular and non interdependant (at least hard dependancies wise)12:01
uvosbut  ham is no big loss12:01
WizzupI mean it currently even only shows maemo apps12:02
uvosi know ham is no big loss12:02
Wizzupthat sounds overly negative ;)12:02
parazydAgain, you can just disable the network checks in the UI12:02
uvosright12:02
uvosits fine12:02
bencohwe mostly need to watch out for broken edge cases ... when it upgrades icd, for instance12:02
Wizzupuvos: so did you try to follow the steps on that wiki?12:03
uvosnot yet12:03
uvoson it12:03
uvosbut the config that the frontend created12:03
uvosi should be able to try to use that no?12:03
WizzupI don't know, I've had a lot of trouble with finding the right options12:03
uvosok12:03
uvosill try manually12:03
bencohI'm currently trying to debug power usage when idle ... http://pastebin.notk.org/pastebin.php?show=f24064aa812:03
Wizzupfwiw syncing works for me from the frontend, I didn't use it for config12:04
bencohthis is from serial, with wifi off, leste-stable12:04
uvosdevice?12:04
bencohdroid4*12:04
uvoswhy dose it need debuging?12:04
sicelosyncevo is really difficult to configure right - you need a lot of patience :p12:04
bencohI'm pretty sure the "869mW" reported by powertop is wrong anyway12:04
Wizzupbencoh: great, I also saw some newer kernels used more power too12:04
uvosits right12:04
uvosjust the burst12:04
Wizzupor caused more wakeups at least12:04
bencohuvos: because upower reports 0.260~0.340W idle12:05
Wizzup24 wakeups/second isn't that terrible though12:05
uvoswhat dose sleep 10 ; /etc/init.d/droid4-powermanagement status12:05
uvosstay12:05
uvos*say12:05
bencohand it pains me, since I reached ~0.150 a few days ago12:05
* sicelo wonders where gordon1 went12:05
uvosshoult be ~90mW in a working setup12:05
bencohand I don't really understand what changed12:05
bencohuvos: seriously?12:05
uvosyes12:05
uvosbut the modem is wierd12:05
bencohwell, looks like I'm far from it12:05
uvosso sleep 10 ; /etc/init.d/droid4-powermanagement status12:06
uvos?12:06
bencohI haven't fiddled with the modem yet, I dunno what's its default state either12:06
bencohyeah, a min12:06
uvosoh12:06
uvosif you dont have a sim you must printf 'U1234AT+CFUN=0\r' > /dev/gsmtty112:06
uvosotherwise the modem dosent sleep12:06
bencohd=2021-07-02|t=13:06:35|i=OFF:0,RET:0|p=248|c=44|b=none12:06
uvosok your device istent acciveing sleep at all12:06
parazydWizzup: ^ could we automatically do this if no sim is detected?12:07
uvosparazyd: problem is ofono lies to us12:07
uvosabout that12:07
uvosatm12:07
parazydYeah12:07
bencohhuhu12:07
parazydI'll add it as a note on the ofono ticket12:07
bencohtime to clone ofono and hack, I guess ... :)12:07
uvosbencoh: ok so add printf 'U1234AT+CFUN=0\r' > /dev/gsmtty1 to rc.local12:08
uvosreboot and then report back after leting the device idle for 10 min12:08
uvosyou can do sleep 10 ; /etc/init.d/droid4-powermanagement status via wifi/ssh12:08
bencohalright12:08
uvosno need for serial12:08
bencohreboot or poweroff?12:08
uvosshould not matter12:08
bencohhmm ... do you mean that modem keeps that settings even after poweroff?12:09
bencohah, rc.local12:09
bencohnevermind12:09
bencohlet's see what it does when issuing it manually first then12:09
Wizzupparazyd: once we fix ofono, yes12:09
uvosit dose seem the modem reatins stuff btw12:10
uvosbut thats beside the point12:10
parazydNoted here https://github.com/maemo-leste/bugtracker/issues/53012:10
uvosit dosent reatain cfun12:10
Wizzupbencoh: if you want to that (hack ofono), would be much appreciated12:10
Wizzupyou'll probably need a sim as well for some of it though12:10
parazydbencoh: https://github.com/maemo-leste/bugtracker/issues/530 https://github.com/maemo-leste/bugtracker/issues/51912:10
bencohhmm, I haven't ordered a sim yet (since I never found time to play with it), but ... yeah, I'll probably do it at some point12:11
uvosturing off the modem if you dont have a sim is problematic also because i think that would break hotplugging the sim12:12
* Wizzup is happy he can just buy sims for ~5 euro with cash12:13
uvosneeds investigation how android handles this12:13
uvosit manages to have good pm with no sim12:13
bencohuvos: I haven't rebooted yet (I only ran it from the shell), but I don't really see a difference thus far; I'll try with it in rc.local12:13
Wizzupuvos: CFUN=0 just makes the modem go offline though, that should not prevent sim detection?12:13
uvosWizzup: yes (offline)12:13
uvosWizzup: idk12:13
Wizzuppretty sure it should not12:14
uvosWizzup: i gues maybe not12:14
bencohyou're positive it should be U1234AT+CFUN and not just AT+CFUN?12:14
uvosyeah the modem is wierd12:14
bencohah, alright12:14
WizzupI think this is kernel interface, not modem per se, no?12:14
uvosno this is the modem it talks at directly12:15
Wizzupok12:15
bencohanyway, reboot12:15
uvosWizzup: what is target-config@radicale supposed to be12:18
Wizzuphm?12:18
uvosin https://leste.maemo.org/Calendar12:18
Wizzupjust a name/identifier12:18
uvosim not sure what this parameter is12:18
uvosok12:18
Wizzupyou can literally use that if you ewant12:18
uvosok12:18
Wizzupofc the radicale after the @ needs to be replaced elsewhere too if you choose to use something else12:18
bencohcurrently d=2021-07-02|t=13:21:57|i=|p=214|c=NA|b=none12:22
bencoh(I'll try it again in ~10mn)12:22
uvoshmm12:24
uvosi cant seem to get it to work12:24
uvosunexpected reply from peer; might be a temporary problem, try again later12:25
uvosim probubly just configureing something wrong12:25
uvosbut idk what atm12:25
* Wizzup going home, so back in a few hours12:32
Wizzupare you using radicale or something else?12:32
uvosbaikal12:33
uvossyncevolution --print-databases backend=caldav username= password= syncURL=https://uvos.xyz:8081/cal.php/calendars/USER shows the calendars fine12:38
sicelofollow any tutorial for baikal + syncevolution12:39
siceloi.e. maemo's syncevolution is not particularly special (besides the maemo backend) ... the settings that work for baikal on your pc should work with Leste (with minor modification, perhaps)12:41
uvosi only used it with android12:41
uvosthat mainly just autodetects everything12:42
uvosi also cant really find anythign on baikal + syncevo12:45
uvos(or mutch on syncevo at all for that matter)12:45
uvosi managed a different error message12:46
uvosSoupTransport Failure: https://uvos.xyz:8081/cal.php via libsoup: Not Implemented12:46
uvosinterstingly installing evolution (the gnome frontend) and just configureing it with that works with no isse13:08
uvos(with seemingly the same parameters)13:08
bencohwhat's the recommended way to launch a user daemon at session start with leste?13:14
uvosxsession.d13:14
bencohthanks13:15
Wizzupuvos: I'd have to check baikal, haven't used it before15:20
uvosok16:25
uvosi cant seem to get what request is not implmented16:26
uvosand not sure why evolution works16:26
uvosbut it dosent configure syncevolution16:26
Wizzupcan baikal not log more info?16:41
uvossure on the server side ther might be soemthing16:42
uvosbut syncevo dosent log anything really16:42
Wizzupchecked this? https://docs.ubports.com/en/latest/userguide/advanceduse/dav.html16:42
Wizzup(their script anyway)16:42
Wizzup+ https://askubuntu.com/questions/597528/synchronisation-of-contacts-in-evolution-via-carddav-baikal16:42
uvosi saw that16:43
uvosim pretty mucht 90% sure im configureing it correctly16:43
Wizzupok16:43
Wizzupfinal link - someone doing it on jolla https://wied.it/blog/caldav-and-carddav-sync-with-jolla-phone-syncevolution-and-zimbra-zcs-owncloud-and-ssl.html16:43
Wizzuphm, maybe it's not baikal16:43
uvosi did the config with evolution by hand and on android by hand16:43
uvosnow16:43
uvosso the stuff im entering is correct16:43
uvosso i modified the script16:52
uvosand it works16:52
uvosnvm it works for addressbook only16:53
uvoschanged the script slightly17:00
uvosnow it synced17:00
uvosok it works i can create items and see syncevolution get them on the cli17:06
uvosbut qcalendar dosent show anything (and there are only local calendars configured/ configureable)17:06
uvosprobubly still missing somehting17:06
Wizzupuvos: are you doing a sync to the maemo calendars?17:07
Wizzupthe script probably syncs to some random ubports db17:07
uvosprobubly17:07
uvosit worked :)17:18
Wizzupmaybe you can add a section to the wiki17:19
Wizzupone for radicale, and one for baikal17:19
uvosyeah i adapted the script17:19
Wizzupbrb17:19
uvosi dont think its baikal specfic17:19
uvoshttps://leste.maemo.org/Calendar added the script17:32
uvosyou might want to host it some where else incase i become bus-factor17:32
Wizzupuvos: it seems like a small script, just put it on the wiki?17:34
WizzupI would maybe also differentiate between radicale and that you tested it with baikal17:34
Wizzupuvos: btw I hope this coming week to get the audio stuff going19:23
uvosWizzup: nice :)19:25
uvosi think the flaky wifi scanning issues are pretty delapidating btw so it would be great if you could look at that. ofc i understand if you want to do what seams the most interesting to you.19:27
Wizzupuvos: might need your help some19:29
Wizzupuvos: it's not just about interesting, it's just blocking stuff, and I agree wifi regressions are bad19:29
lelIMbackK opened an issue: https://github.com/maemo-leste/bugtracker/issues/553 (Get the syncevultion ui to work)19:30
stanthe single low-power beep could be improved by one beep, then a second one after 5 seconds then a third after another 10 seconds19:32
uvos???19:32
stanto assist in locating the beeping device19:32
uvosthe device dosent beep19:32
lelIMbackK opened an issue: https://github.com/maemo-leste/bugtracker/issues/554 (Flakey wifi scanning)19:35
lelIMbackK opened an issue: https://github.com/maemo-leste/bugtracker/issues/555 (GPRS/UMTS provisioning dosent work (reliably?))19:41
uvosfreemangordon: could you look at 555 ^^^19:42
stanstatus-area-applet-battery-1.5.3/debian/changelog:  * Repeat battery low sound when battery is too low19:44
lelIMbackK opened an issue: https://github.com/maemo-leste/bugtracker/issues/556 (Pdf reader crashes often)19:48
uvosWizzup: ^^^ these should keep you from getting bored :P19:49
Wizzuphehe19:54
Wizzupbored I am almost never, unless I have to wait and cannot do anything while waiting19:55
Wizzup554 is -devel only right19:55
uvosno19:55
uvoswe promoted those afaik19:55
uvosbecause it fixes the issue with connection failue breaking icd untill all dialogs are closed19:56
uvoswe introduced the scanning issue at the same time so i think its in stable :(19:56
uvosstan: ok my bad i have never herd it beep but i gues i just have system sounds disabled19:58
stansimple tweak is to make /usr/share/sounds/ui-battery_low.waw repeat the beep over a period of a few seconds19:59
stanhelps find the beeping device19:59
stanperhaps i can add this to wiki?20:00
uvosyeah go for it20:00
uvosidk what page tho20:00
uvosanything you can add the wiki is very welcome20:00
Wizzuphmm20:05
WizzupI am not sure if we pushed the wifi changes20:05
WizzupI don't think we did20:05
lelMerlijnWajer assigned an issue: https://github.com/maemo-leste/bugtracker/issues/554 (Flakey wifi scanning)20:38
Wizzupuvos: also wondering if ^ could be due to connui changes20:39
Wizzupprobably not I bet20:39
Wizzupbut we changed a lot at once20:39
uvosWizzup: idk maybe20:47
uvosWizzup: yeah @manny changes at once20:47
rafael2kinteresting, I turned on my pinephone today, and it connected to the wifi automatically21:33
Wizzupas it should :P21:35
freemangordonuvos: I think it is Wizzup who should look at it (provisioning), unless I am missing what the issue is.21:42
freemangordonuvos: could you please explain in the issue what you are trying to achieve and what is the result.21:43
uvosWizzup: said that you wrote libicd-conectivity-cellular (or is it -mobile)21:46
freemangordonI did the initial work, IIRC, lemme check21:46
uvosfreemangordon: so i inserted a sim, installed the stuff as shown in the bug and then i expected to be able to create/select a gprs/umts internet connection21:47
uvosthis worked previously21:47
uvosbut now the connection never appears21:47
uvosthe device still connects to the network as evidenced by the 3g and bars in the status as well as the operator name21:47
uvosconnecting to gprs is possible manualy via ofono21:47
freemangordonhmm: what is status 6?21:51
rafael2k; ))21:51
rafael2kI moved to moscow, will test 4G with the carrier here again21:52
rafael2kand "wifi sharing" too, with hostapd21:52
Wizzupfreemangordon: I did investigate that21:52
Wizzuplet me read the logs21:52
Wizzup11:48 < Wizzup> btw 6 = OPERATION_STATUS_CANCEL21:53
Wizzup11:48 < uvos> i can make voice calls after all21:53
Wizzup11:48 < Wizzup> and the code checks for OPERATION_STATUS_FINISHED21:53
Wizzup11:48 < Wizzup> so we need to figure out why ofono_start_search_finish gets a non-successful status21:53
Wizzupit seems to be a timeout of some sort, but it's not clear why21:53
Wizzuprafael2k: cool, both should work I hope21:53
freemangordon  p, li { white-space: pre-wrap; }  OPERATION_STATUS_ABORT21:54
freemangordonWizzup: 6 is ABORT21:54
Wizzuphm21:54
rafael2kWizzup: me too, I think it will just work21:54
rafael2klets hope the wifi chipset in the pinephone is decent in AP mode21:55
Wizzupfreemangordon: off by one error21:55
freemangordonoperations_group_timeout()21:56
freemangordonSEARCH_INTERVAL is 20 seconds21:57
Wizzupfreemangordon: it works in ofono though21:57
Wizzupso it's weird that it would timeout21:57
freemangordonwhat do you mean?21:57
Wizzuphttps://github.com/maemo-leste/bugtracker/issues/555#issuecomment-87315956521:57
uvosalso in no way dose this take 20 secons21:59
uvosthat status 6 thing appears almost immidatly with starting icd21:59
Wizzupwell activating the context can take time, but not that -- yeah21:59
uvosactivating the context via ofono is also effectivly instantaious22:00
Wizzupuvos: not for me, but ok :)22:00
freemangordonwe receive timeout on searc, not context activation22:00
uvosi happens faster than i can check the connection status :P22:00
uvos(via typeing in the command)22:01
Wizzupfreemangordon: right22:01
freemangordonunfortunately there are no enough traces in  search_operation_check()22:03
Wizzupright22:03
Wizzupthat's where I gave up22:03
uvosso what doset that function do ofono wise?22:03
freemangordongets the results and decides on what to do22:03
Wizzupfreemangordon: hmmm is it possible he doesn't have the xml file with sim/operator info22:03
uvosis there some dbus function call i can try and see how long it takes?22:03
Wizzupor do you not rely on that22:03
Wizzupit might simply not be in the meta pkg22:04
freemangordonso, something unexpected happens and plugin doesn;t know how to handle it, so it waits for known result22:04
freemangordonwhich never comes22:04
freemangordonWizzup: don;t really remember22:04
uvoslibicd-network-ofono was not in the meta package btw22:05
uvosi had to install that by hand22:06
freemangordondo you have mobile-broadband-provider-info installed?22:06
uvosnope22:07
freemangordonplease installo22:07
freemangordonhmm, I don't have it either in the VM22:08
freemangordonwait22:08
freemangordonWizzup: shall we have mobile-broadband-provider-info installed?22:08
Wizzupfreemangordon: I am not sure if we need it, it was just something that occured to my mind22:08
parazydhttps://github.com/maemo-leste/hildon-connectivity-meta/blob/master/debian/control#L2622:09
parazydpls add anything relevant here22:09
Wizzuplet's figure out if it is relevant first ;)22:09
freemangordonWizzup: https://github.com/maemo-leste/libicd-network-ofono/blob/maemo/beowulf-devel/src/search.c#L11722:09
freemangordonsee my note22:09
Wizzupfreemangordon: ah, so it relies on the behaviour of ofono when that pkg is installed22:09
freemangordonmaybe, I don;t remember22:10
Wizzupstill not sure if this would cause the problem22:10
freemangordonbut I guess I put that note there for a reason22:10
Wizzupwe don't see "Deactivating chosen context" I think22:10
uvosok so i installed the pkg22:10
uvosand killed icd222:10
Wizzupuvos: restart ofono22:10
Wizzupmaybe we can add some more traces to libicd-network-ofono ?22:10
uvosand i has made no change22:10
uvosok ill just reboot22:10
freemangordonuvos: could you set BP in  search_operation_check() and report the code path taken22:11
freemangordondid I really write all this code ?!?22:12
freemangordon:)22:12
Wizzupyes22:12
freemangordongood for me22:12
Wizzupapart from the context activation that is blocking22:12
Wizzupuvos: I removed the IAP with gconf --recursive-unset and it does work for me22:13
Wizzupuvos: so it's not entirely broken22:13
uvosok i rebooted22:15
uvosand nothing changed22:15
freemangordondo you have gconf entry for the IAP?22:15
uvosfreemangordon: no22:15
uvosjust to be sure here the gprs connection is just supposed to appear in the connection dialog right, i dont have to create a connection (that dosent work either) i dont quite remember how it worked previously22:15
uvosalso this is now the same sim22:16
uvosit worked with before22:16
Wizzupyes, it should just appear. do you have any other GPRS connections there?22:16
uvosno wifi only22:16
freemangordonuvos: could you set BP in  search_operation_check() and report the code path taken22:16
uvosBP?22:17
uvosbreak point?22:17
freemangordonbreakpoint22:17
uvosok22:17
uvoslet me install debug symbols22:18
freemangordonmaybe clone the source and install -dbgsym package22:18
freemangordonmhm22:18
freemangordonhttps://github.com/maemo-leste/libicd-network-ofono/blob/maemo/beowulf-devel/src/search.c#L7022:18
freemangordonFYI22:18
freemangordonhmm,   sim->present has to be true22:19
uvosofono reports sim22:20
uvosas present22:20
freemangordonyes, but something doesn;t make it to the plugin22:20
freemangordonso, once you hit the breakpoint, please dump *sim22:21
freemangordonor better dump *md22:22
freemangordondump == print22:22
freemangordonI suspect online status of the modem is wrong22:23
uvosok it hit the bp22:23
Wizzupuvos: you might have to write 'step' a bunch of times to get to the right location22:23
uvosits slightly annoying to use because i have to do it on device kbd22:23
uvosWizzup: yeah i know22:23
freemangordonactually we need 'next' :)22:24
freemangordonwhy not connect through USB networking?22:24
uvosi  dont load that module22:24
uvoscpcp_phy22:24
uvosi could use usb serial22:24
uvosbut i wasent that forsighted22:25
freemangordonbut how you're going to provide me the results of 'p *md*'?22:25
freemangordonp *md22:25
uvosill just dump it to a file22:25
uvosand connect later?22:25
freemangordonok22:25
freemangordonjust make sure to dump after g_hash_table_lookup() call22:25
lelMerlijnWajer opened an issue: https://github.com/maemo-leste/bugtracker/issues/557 (connui-internet: Add providers tab to advanced settings)22:26
lelMerlijnWajer labeled an issue: https://github.com/maemo-leste/bugtracker/issues/557 (connui-internet: Add providers tab to advanced settings)22:26
lelMerlijnWajer assigned an issue: https://github.com/maemo-leste/bugtracker/issues/557 (connui-internet: Add providers tab to advanced settings)22:26
Wizzupuvos: I'll stop with the suggestions now but GNU screen can be helpful here too22:26
uvosi know i know :D22:27
freemangordonhmm, could it be that flightmode is activated on your device?22:27
uvosi just started gdb on device without thinking gosh :P22:27
uvosok so i dumped md at line 8122:27
uvosany thing else?22:27
freemangordonyes, trace the flow22:28
freemangordonin that function only22:28
uvosok22:28
uvosso condition at line 90 is true22:29
freemangordongood22:29
uvos97 is false22:29
freemangordonand I guess iap_id is NULL22:29
uvosso is 10022:29
freemangordonmhm22:29
freemangordon100?22:29
Wizzupparazyd: freemangordon: looks like connui plugins can have plugin->advanced_show = to have settings show up in advanced settings, so we could do that for provider22:30
uvosconditon on line 100 is false22:30
uvosso is if on line 10822:30
freemangordonas suspected22:30
freemangordonso, it calls  ofono_modem_set_online(), right?22:30
freemangordonuvos: ^^^ ?22:32
uvossec22:32
uvos*md = {modem = 0x461898, modem_handler_id = {0}, sim = 0x465850, simmgr_handler_id = {75},  connmgr = 0x4658e8, connmgr_handler_id = {76}}22:33
uvos90in search.c22:33
uvos91in search.c22:33
uvos95in search.c22:33
uvos97in search.c22:33
uvos100in search.c22:33
uvos108in search.c22:33
uvos124in search.c22:34
uvos126in search.c22:34
uvos142in search.c22:34
uvos145in search.c22:34
uvos146in search.c22:34
uvosif (!sim->spn || !*sim->spn) fails22:35
freemangordonand the modem is online?22:35
uvosyeah its connected22:35
freemangordonok, I don't know what to do here22:35
freemangordonwe need SPN22:36
freemangordoncould you respin and dump *md->sim?22:36
uvossure22:36
uvoshere is list-modems22:36
freemangordonor you can get the same results from ofono tools22:36
freemangordonno, I need sim properties22:36
uvoshttp://uvos.xyz/maserati/modem.txt22:37
uvosfreemangordon: sure sec22:37
freemangordonhmm22:37
freemangordonServiceProviderName = Vodafone22:37
freemangordonbut, why we don;t have it?22:37
uvosorg.ofono.SimManager  shoul have it22:38
freemangordonyes22:38
uvosoh right you saw22:38
uvosok22:38
uvosno idea22:38
freemangordonhmm, who powers the modem up?22:38
Wizzupicd222:38
Wizzupoh22:38
Wizzupno22:38
Wizzuppower up is done by kernel22:38
Wizzuponline is done by icd222:38
freemangordonon uvos' device?22:38
freemangordonyes, online22:38
uvosyes its powerd by kernel22:38
uvosi online it22:38
uvosby hand22:38
freemangordonyou should not22:39
uvoswell i have to22:39
Wizzupicd2 should online it for you22:39
uvosi cant enter the sim pin22:39
uvosofono fails22:39
Wizzupuvos: ok, let's try this: reboot, then wait 2-3 minutes, then /etc/init.d/ofono restart22:39
freemangordonit seems icd2 doesn;t get sim properties in that case22:39
Wizzupwait for missing sim icon to go away22:39
Wizzupuvos: then issue 'startup-pin-entry'22:39
Wizzupand then try to connect to the dialog22:39
Wizzup(just to confirm, this is what I do)22:39
Wizzupnot saying it's not a bug, but this works for me22:40
uvosshal i enbale-modem?22:40
Wizzupno22:40
uvossince ofono thinks is not powerd22:40
uvosok22:40
Wizzupbtw, while at it, we should fix the context activation not blocking22:40
Wizzupor rather, make it not-blocking22:41
Wizzupfreemangordon: unrelated but connui-wlan plugin is the one that adds the "Other" tab to advanced settings, apparently conn_set_iap_ti_adv_misc is "Other"22:42
Wizzupa bit confusing :)22:42
Wizzupbut I now have enough info to make plugin for providers tab22:42
uvosbtw the missing sim icon dose go away as soon as i enterd the pin via ofono22:43
uvosso something in the maemo stack realizes the sim is there22:43
Wizzupuvos: no, this is ofono not reporting it properly22:43
uvos(when i online the modem by hand)22:43
Wizzupand you kicking it makes it wake up22:43
freemangordonWizzup: I think we have bugs in libgofono as well22:44
Wizzupfreemangordon: possible, there might also be a newer version22:44
freemangordonsee https://github.com/sailfishos/libgofono/commit/7ff446e4fea58faec5d10b851d7c40f709ae685822:44
uvosstartup-pin-entry: command not found22:44
uvoswhat pacakge is this?22:44
Wizzupsec22:45
Wizzupstartup-pin-query22:45
Wizzupsryt22:45
Wizzupsry22:45
Wizzuppart of connui-conndlgs-cellular22:46
WizzupI always confuse it with the pinentry helpers (for gpg and such)22:46
freemangordonthis https://github.com/sailfishos/libgofono/commit/c8eb3fe1e36500b87241effeeb615417e41af954#diff-25a6634263c1b1f6fc4697a04e2b9904ea4b042a89af59dc93ec1f5d44848a26 as well22:46
uvosok i enterd the pin22:47
uvosabsolutly nothing happend22:47
Wizzupuvos: yes22:47
Wizzupuvos: now hit the status area, and then go to internet connections22:47
uvosyes i mean same state as before22:47
uvosi have 2g and full bars22:47
Wizzupfreemangordon: didn't I file that bug a long time ago?22:47
freemangordonyes22:47
uvosand only wifi in the dialog22:47
freemangordonfor some reason libgofono does not report SPN to icd plugin22:48
uvosorg.ofono.SimManager looks the same22:48
Wizzupuvos: just to check, you did reboot, right?22:48
uvosyeah ofc22:48
Wizzuphm, looks fmg is on to something22:48
uvos /motmdm_0/context1 looks the same22:49
uvosthe / at start of line thing in irc is annoying22:49
uvos\ would have been better, only windows user would complain :P22:49
Wizzupuse '/ /hello'22:50
freemangordonuvos: could you attach gdb again and dump *md->sim?22:50
uvosok22:50
uvosits valid22:52
uvos(gdb) p *sim22:53
uvos$1 = {intf = {object = {object = {g_type_instance = {Python Exception <class 'gdb.error'> No type named TypeNode.:22:53
uvosg_class = },22:53
uvos        ref_count = 1, qdata = 0x464be8}, priv = 0x465020,22:53
uvos      intf = 0x43e330 "org.ofono.SimManager", path = 0x454ad8 "/motmdm_0",22:53
uvos      valid = 1}, priv = 0x465018, modem = 0x4620b0}, priv = 0x465000,22:53
uvos  present = 1, imsi = 0xb4908110 "262022703707497", mcc = 0x468df8 "262",22:53
uvos  mnc = 0x4696f8 "02", spn = 0x439b70 "Vodafone",22:53
uvos  pin_required = OFONO_SIMMGR_PIN_NONE}22:53
uvoslooks correct22:53
freemangordonbut you said spn was empty on the previous try?22:53
Wizzupfreemangordon: maybe we shall add more tracing to the code at the DEBUG level?22:54
freemangordonyeah22:54
uvosif (!sim->spn || !*sim->spn)22:54
uvosthat condition was false yeah22:54
freemangordonnow it is true, right?22:54
freemangordoncould yout trace the flow now?22:55
uvosits still false22:55
uvosit jumps directly to line 12422:56
freemangordonno, actually this means we have SPN22:56
freemangordondoes ofono_modem_get_last_internet_context() finds ctx?22:57
uvosvalue has been optimized out22:57
freemangordon:(22:57
Wizzupthat means it can be null, no?22:58
Wizzupor it's not set yet?22:58
uvosand after line 124 the fuction just returns22:58
uvosthats it22:58
freemangordonuvos: break in  ofono_modem_get_last_internet_context()22:58
freemangordonto see if it finds context22:58
Wizzupuvos: can you show the context properties using mdbus2 if not too hard?22:59
uvosfreemangordon: know the file thats in?22:59
Wizzupfor example: mdbus2 -s org.ofono /motmdm_0/context1 org.ofono.ConnectionContext.GetProperties22:59
uvosi dont have the source cloned22:59
uvosand gihub has bad search22:59
freemangordonofono-modem22:59
Wizzupfreemangordon: is it possible that either apn/password/username are not set, and this causes it to not set status finished?23:01
freemangordonyes, could be23:01
uvoswth23:01
uvosnow it  just had the conecction in the dialog23:01
uvosand a break point in  ofono_modem_get_last_internet_context  never triggerd23:02
Wizzupyeah so perhaps the method I outlined helps get ofono in the right state, and then it created the connection last time, but you didn't see it yet, maybe?23:02
* Wizzup bbiab23:02
uvosits possible23:02
uvoslet me reboot and start over23:03
Wizzupso I have noticed that when I online ofono without restarting it, I believe it doesn't get the contexts in dbus23:04
uvos /motmdm_0/context1 shows fine for me23:04
freemangordonthat happens on d4 only?23:04
uvoson first start23:04
Wizzupfreemangordon: yes23:04
uvosof ofono23:04
freemangordonuvos: yes, but we are not notified23:04
freemangordonso icd2 is not aware of context changes23:04
uvoswell ofono starts first23:05
Wizzupit gets info async23:05
uvosok23:05
Wizzuplike the sim presence reporting comes in late23:05
uvosthats just the modem23:05
uvosbeing the modem23:05
freemangordonmaybe we shall try newer libgofono23:06
Wizzupuvos: no. dmesg shows the info coming in and ofono does not act on it23:09
Wizzupbut that is just for sim presence in any case23:09
WizzupI don't think the problems are in libgofono23:10
Wizzupwe know d4 ofono is buggy23:10
Wizzupwe need to fix it23:10
Wizzupeven just different ways (and times) of starting it make a difference in its state23:10
freemangordonmhm23:10
freemangordonwhat it takes to fix it?23:10
uvoswel now i cant repoduce the sate before because i cant get the now sim icon to go away23:12
freemangordonanyway, I am out. Night guys.23:14
uvosgn823:15
Wizzupuvos: so the no sim icon not going away is for me really a question of uptime >~ 2 mins23:39
Wizzupand then 1-3 ofono restarts and it will pick it up23:39
uvosok23:40
uvosyeah it eventualy did it23:40
uvosnow i unlocked the pin23:40
uvosand clicking on the vodaphone connection just allways fails23:40
uvosanyhow i have had enough of this for today :P23:41
Wizzupuvos: ok so23:41
Wizzupall good23:41
Wizzupjust: it's expected that that fails23:41
Wizzupfor the simple reason that it doesn't block on activating context23:41
uvosoh ok23:41
Wizzupit just returns right away and tries to get IP23:41
uvosok23:41
Wizzupit should block, show it's busy (with timeout), and then return23:41
uvoso23:41
uvosok23:41
WizzupI need to see why I did it that way at the time23:41
Wizzupprobably it was like a 15 mins hack tbh23:42
uvosok23:42
uvosok :)23:42
uvosi lost my android device the other day and was low key hoping i could just use leste for a few days23:42
Wizzupif you try again now it might work23:42
uvosbut then voice call audio dident work and data dident either23:43
uvos:P23:43
Wizzupwe're getting there I feel23:43
uvosyeah23:43
Wizzupbtw src/link.c has this:23:43
Wizzupif (!ctx->active) { OFONO_DEBUG("Context is not yet active, activating"); ofono_connctx_activate(ctx);23:43
Wizzupand that just doesn't block at all23:43
Wizzup}23:43
uvosi have a reasonable idea how to fix voice calls now :)23:43
uvosso should be soon23:43
Wizzupit probably needs another pending operation group, waiting for the context property to change23:43
Wizzupawesome!23:43
uvosstill fails23:43
Wizzupoh well. tomorrow :p23:43
WizzupI've been using data for many months23:44
Wizzupjust didn't fix the rough edges23:44
uvosgreat23:44
uvosi now have a dedicated sim for the device too23:44
Wizzupcool :)23:44
WizzupI also have one, with a monthly contract actually (I kept buying prepaid but then forgot to do anything with them)23:46
WizzupI'll probably and get some sleep soon - got up at 4am today to catch the catamaran23:46
uvoswell sleep tight then - but not too tight :P23:47
uvosill be off then too gn823:47

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