libera/#maemo-leste/ Friday, 2024-06-21

dsc_btw our /tmp isnt really tmp right01:46
dsc_as in, in-mem01:46
dsc_i need a place to write logs to but dont want to abuse the SD card01:46
Wizzupwell, normally you'd log anything warning/error level to syslog and then that will take care of it01:54
dsc_ok01:54
Wizzupeverything else should probably just be some flag to log it at a higher debug lvl and log it to sd card01:54
branonsd cards are meant to be abused01:55
gnarfacedsc_: logs aren't usually very high traffic for a personal, single-owner device, unless something is really, really wrong. the thing you want to avoid putting on there is swap.03:18
dsc_gnarface: I was wondering because some distros that target embedded like IIRC armbian write logs to ramdisk then .gz them in bulk to disk periodically04:11
dsc_but I forgot the specifics04:12
uvoson leste logs are pretty high traffic08:38
uvosbecause of high verbosity and because some leste componants are of pretty poor quality and glib logs alot of errors08:38
Wizzupdsc_: syslog-ng can periodically gz things yes09:41
Wizzupprobably our other syslog can too09:41
Wizzupuvos: yes right now it's pretty high :D09:41
arno11Wizzup: weird (again), ringtone stopped working again and sphone stopped showing caller name (but 'unknown' instead). sphone still shows caller name in 'recent'13:26
arno11btw the ringtone stuff is an old random issue and probably not related to recent vcm/tp stuff ofc13:28
arno11seems sphone related only (sip call ringtone works with twinkle and other sounds are not affected).13:37
arno11uvos: ^^13:38
Wizzupbuilding new converations that makes it possible to open chats from contacts again13:55
Wizzupdsc_: apparently the last conversation where I fixed the protocolIstelephone makes the UI no longer show up... lol15:14
Wizzupwhat the..15:14
uvosarno11: not showing caller name for calles placed with vcm is expected for now15:14
uvosarno11: sphone simply uses gst to play the ringtione, there is no special ringtone volume but sphone dose respect the rintone bit in profiled so ensure this bit is not set15:16
uvosarno11: to check if gst istelf is working you can open sphone -c options and try playing the ringtone there15:16
uvosarno11: also note that the ringtone selection in leste is compleatly broken, it hardcodes a bunch of ringtones that are not avaialble at all and has no bearing on actiual available rintone files15:17
uvosonly selecting your own file or never touching it at all after install works15:17
uvosusing sphones own slection mechanism via sphone -c options works too ofc15:21
uvosbut the settings applet is broken in various ways15:21
arno11uvos: ok ty15:21
arno11yes indeed (for settings applet)15:22
arno11i remember now having troubles with gst few months ago and reinstalling the 2 involved pkgs made ringtone working again iirc15:23
uvosno combinaton of pkgs can make it really work15:23
Wizzupisn't canberra a better way to do play these things?15:24
uvosthe whole thing simply needs to be reworked, it needs to select ringtones based on the files in the rintone folder15:24
Wizzupor is that not for repetitive things?15:24
uvosnot based on an arbitary hardcoded list15:24
uvosWizzup: the whole concept of canberra would not work unless you teach it to obay libprofile15:26
uvosWizzup: or better if you remove the slection of sound files from libprofile and put them into canberra15:26
Wizzupringtone selections works good for me on fremantle, so maybe we're missing some bits15:28
uvosWizzup: there is no missing bits15:28
uvosits simply broken by design15:28
uvosit only works on freemantle because all hardcoded assumptions are true there15:28
Wizzupok, but it works fine on fremantle :)15:28
uvosyes if you have excatly all sound files in exactly the places where they are hardcoded to be then it works15:29
uvosthis is not really workable ofc15:30
Wizzupso the ringtone not playing for arno is related to this?15:30
Wizzupbecause I'd think if it works for him some of the time, it shouldn't be related to this15:30
uvosif he ever tried to select a ringtone via the applet yes15:31
uvosbecause not libprofile carries a string pointing to a file that dose not exist15:31
uvosthis is easly testable by setting the string from sphone or setting a custom file via the applet15:31
uvosor just looking at the path in sphone -c options15:31
uvosbeyond that sphone can currently play the ringtone if the volume is 0, which is ofc supriseing since you would expect this to have its own seperate volume15:32
uvosbut we dont have a ucm "ringer" role or sutch that would allow this15:33
Wizzupso this will make it work randomly?15:33
Wizzupit seems to me if it works some of the time it should just always work, or never, not some of the time15:33
uvosthe last one could def look random15:33
uvosi ofc am only speculateing and giveing resons why it may work15:33
uvosi have also noted that using mafw/omp quite often breaks pulseaudio15:34
uvosthis may also be the reason15:34
Wizzupnot on n90015:34
Wizzupthis is (another) droid4 kernel issue15:34
uvosand he would have to check if pa works ingeneral in the non-ringing state15:34
Wizzupand he doesn't use the d415:34
uvosok well point is there are manny potentiall reasons i can come up with15:35
uvosbut without further testing i cant say15:35
Wizzupok, I doubt it's because of the libprofile setting of a ringtone though15:35
Wizzupbut yeah, good to rule things out15:35
uvostrying to play the ringtione on demand via sphone -c options is a good test15:35
uvossince it excercises the same code that plays the ringtone for real15:35
arno11playing ringtone frome sphone -c always works btw15:36
arno11but not from a call15:36
uvosok theres not mutch difference between these really15:37
Wizzupwell if the ucm is already on phone call mode I wouldn't expect it to play a sound15:37
arno11indeed15:37
uvosone is that the libprofile silent bit is checked by the call but not by options15:37
arno11but i already have a look and ucm is not already in call15:37
Wizzupdsc_: I'm bisecting the UI no longer showing up15:37
uvosthe other is ucm15:38
uvosok you checked that15:38
arno11yep15:38
uvosdose playing another sound via pa work during the ringing phase15:38
uvosmaybe the modem pa module is breaking pa for a bit15:38
arno11i doublechecked again and ucm is still under hifi profile and yes playing another sound works during the ringing phase15:44
uvosok15:44
arno11and when ringtone works, other sounds are mixed with it15:44
uvosis sphone uhappy about something?15:45
uvostry running it in a console with -v -v logs15:45
arno11ok15:45
uvos(you have to kill it first)15:45
arno11ok15:46
arno11it seems ok15:49
arno11and it says gstreamer is playing the ringtone file15:50
arno11but in fact not15:50
arno11ucm is switching correctly15:51
arno11call properties and status seem ok15:51
uvosi mean this means it sucesfully gets here15:53
uvoshttps://github.com/maemo-leste/sphone/blob/d7e5442aae137664f14a813c66a258b1afb2d9ad/src/modules/playback-gstreamer.c#L10515:53
arno11ah ok15:54
uvosand none of the subsiquent calls failed15:54
uvossince those return NULL on failure15:55
uvosg_object_set and gst_bus_add_watch would complain about bein passed NULL (but this snippet  dose need some better error checking)15:55
uvosneither dose gst report GST_MESSAGE_ERROR15:56
uvosso this is pretty mysterious15:56
arno11yes indeed and totally 'random'16:01
arno11ah now 'caller name' works again after restarting sphone (still with vcm/tp)16:07
uvosthats even more mysterious since this is simply imposible16:19
arno11lol16:19
WizzupI've seen some races where loading the evolution stuff doesn't work16:19
Wizzupbut I thought it was maybe just my setup16:19
Wizzupthat would probably explain it16:20
uvossure but current sphone in repos is this https://github.com/maemo-leste/sphone/blob/0b40311c7ae58d8ad788acd6154471998281069e/src/modules/contacts-evolution.c#L12116:20
uvosthe code simply dose nothing unless the backend is ofono16:20
Wizzupok, I think if you use the qtloop a few times you might run into the same race16:22
WizzupI gotta go now though16:22
arno11i doublechecked again and with qtloop and last vcm-fixes branch, i get caller name when the phone is 'ringing'16:25
uvosoh you compiled sphone yourself16:27
uvoswell that woudl have been good to know16:27
uvostheres plenty of unlreased code16:27
arno11yes16:27
arno11but i got exactly same troubles before16:27
uvosyes caller name in arbirary modules is a new feature16:27
uvoswell before you had the repo version16:27
arno11yes16:28
uvosas i say its not implemented thair at all16:28
uvosso ofc that dosent work16:28
uvosvcm-fixes branch is broken anyhow16:28
uvossince sphone will fail to read the contact name of past events if saved with the commit that changes loging16:29
arno11well, it works fine on n900, at least from a user pov like me16:29
uvos(from the database)16:29
uvosnope its broken16:29
uvosif it can lookup the contact later it gets hidden16:29
uvosbut the contacts system is totally broken there16:30
Wizzupweird, it works for me in the branch, so what do you mean 'totally broken'?16:31
uvosthis dosent mean that the issue you see is related as this points toward more that contact lookup is not working rather than contact loading from the db is not working16:31
uvosWizzup: its broken it can load the contact name form the db16:31
uvossphone then tries to look it up in evolution16:31
Wizzupit can for me16:31
uvosbut its still broken16:31
uvosnot it _DOSE NOT WORK_ period16:31
Wizzupmaybe if you explain what is broken it might be more clear :)16:32
uvosits hidden from the user if it manages to look it up in eds later16:32
uvosits still broken16:32
uvosanyhow i dont thing its related to arno11s problem16:32
Wizzupok, maybe I didn't have these commts in my testing16:32
uvoswhich as is say sounds more like eds lookup is flaky16:32
Wizzupyeah, like I said, I think there is/was a race with qtloop somehow, that could be it, where it would fail to load the evo module16:32
Wizzupbut I don't recall for sure16:33
Wizzupand since qtloop it used for vcm , but not for the 'regular' setup, it could be related16:33
uvoschaning the xsession sphone script to verbose and loging that somewhere16:33
WizzupI think you could probably reproduce this too16:33
uvoswould help to see if the eds module sometimes dosent initalise for whatever reason16:33
Wizzupbut I need a break for now :)16:33
arno11uvos: just to avoid confusion: the only real problem i have is ringtone and it is ofc not related to any sphone custom branch since the issue appears on fresh install as well and for a long time now16:44

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