libera/#maemo-leste/ Sunday, 2021-08-08

Wizzupuvos: what do you need that libgofono does not support?01:23
uvosWizzup: org.ofono.VoiceCallManager org.ofono.MessageManager org.ofono.PushNotification09:50
uvosWizzup: libgofono is geard to and only supports ofono usage for mobile data09:50
uvosWizzup: and sphone uses dbus-glib, which is deprecated09:50
uvosWizzup: so im probubly going to have to port it to gdbus09:51
uvosWizzup: https://github.com/caiwenzh/libofono helps, i can pull lots of code from there09:51
uvosWizzup: and is acctually supports the stuff we would need09:52
lelparazyd created a repository: https://github.com/maemo-leste/libtrace-ohm10:00
lelparazyd edited a repository: https://github.com/maemo-leste/libtrace-ohm10:01
Wizzupuvos: we did go for libgofono for various reasons10:59
Wizzuplet me try to remember10:59
Wizzupuvos: but if this works well we could look at it, I am not sure if it supports as much as libgofono11:18
Wizzupuvos: but also libgofono is what sailfish os uses, so if we collaborate, that might be better11:18
Wizzupuvos: have you considered just trying to port it to the telepathy interface to use ring instead? there might be better bindings for it11:19
uvoslibgofono supports essentally nothing11:19
uvosseriously11:19
Wizzupwe've already tested ring to work as far as I know11:19
Wizzupuvos: I think I mostly haven't run into limitations yet, but that was not doing phone call stuff11:19
Wizzupuvos: as in, this works: https://wizzup.org/leste-sms-telepathy-ring-1.png11:19
uvosWizzup: ok no idea about telephathy11:20
Wizzupit's what we'd like to use in the (near) future11:20
WizzupI think this might be using TP (not sure) https://github.com/DigitalHERMES/rhizo-dialer11:20
Wizzupoh, I guess it doesn't11:21
Wizzupbut it has some code for it11:21
uvosit uses at commands directly11:22
uvosmostly usesless on a qmi modem11:22
Wizzupyes11:22
Wizzupbut it has a tp.c :)11:22
Wizzupin any case, feel free to pick any direction, but I'd be personally more interested in the TP path11:23
Wizzupsince that means we could use the sphone also for e.g. sip calls11:23
Wizzupparazyd: so libtrace is fixed, I guess we can make ohm build with that now?11:23
Wizzupok so policy-settings-basic/ contains ohmd.ini11:32
Wizzupah libprolog is a sailfish/nokia thing12:18
Wizzupit's supposedly LGPL but I can't find the source12:23
PaliWizzup: it was closed in Maemo, but open-sourced in Harmattan12:24
PaliI remember that sources were on meego.gitorious.org website12:25
Paliit was here: https://gitorious.org/maemo-multimedia/prolog.git12:26
WizzupPali: sailfish/mer and nemo use it, so I imagine it's open source12:28
Paliyes, it is open source... just gitorious.org is down forever...12:28
WizzupPali: ok, but sailfish CI must build it from somewhere12:33
Paligood point... so there should be some public repo12:33
Palihttps://wiki.merproject.org/wiki/SailfishOSS12:36
Wizzupyes, it says it's LGPL12:36
Wizzupbut has no link12:36
Palilibprolog - LGPLv2.1 - but missing link to git12:37
WizzupI think I'll drop Juho another email and see if he has a pointer12:37
WizzupI need to work on the tor stuff later today anyway12:38
Paliand has Juho replied to your email?12:38
Wizzuphe replied that he was on vacation before and would reply when he had time, and told me to ping him after a few days12:39
Wizzupso I suppose now is a fair time to write a brief second email12:40
Paliok...12:40
Palitada! here is repo: https://git.sailfishos.org/mer-core/libprolog12:40
Pali"Archived project! Repository and other project resources are read only"12:40
Palibut it was already moved somewhere12:41
Wizzuphuh, I am sure I searched for that12:41
Wizzuphttps://github.com/sailfishos/libprolog12:41
Wizzupit's moved here then12:41
WizzupI'm so confused12:41
WizzupPali: thanks!!12:42
Paliand another link: https://github.com/nemomobile/libprolog12:42
Paliso looks like ping-pong move between github and gitlab12:42
WizzupI tihnk generally the latest github.com/sailfishos is where the mer stuff moved12:43
Wizzupthey merged that a while ago12:43
Wizzupok, it builds12:43
Wizzup(libprolog)12:43
WizzupI'll add the debian packaging then12:43
Palialso see http://wiki.maemo.org/Fremantle_closed_packages12:44
Palimaemo 5 version of libprolog is here: https://github.com/maemo-foss/maemo-multimedia-prolog/tree/6feb212f9b720caa57ddffb935e3f3ac47f4a4e012:44
WizzupI'll probably go for the sfos one since we use the other parts of their stack too12:45
Wizzupwe should figure out how to effectively make a mirror/backup of all of this12:45
lelMerlijnWajer created a repository: https://github.com/maemo-leste/libprolog12:56
Wizzupwe also need https://github.com/sailfishos/libdres-ohm19:00
Wizzup... :-)19:00
Wizzupalso https://github.com/sailfishos/ohm-plugins-misc19:10
Wizzupand https://github.com/sailfishos/ohm-rule-engine19:10
freemangordonWizzup: won't have time to check PRs today, want to finish OssoABookContactEditor first. However, will review them ASAP.19:40
Wizzupfreemangordon: ok, thanks19:44
Wizzupthis audio stuff is a lot of packages19:44
Wizzupeasily 10+19:44
Wizzupwin 4520:11
Wizzupoops20:11
lelMerlijnWajer created a repository: https://github.com/maemo-leste/libdres-ohm20:12
lelMerlijnWajer created a repository: https://github.com/maemo-leste/policy-settings-common20:22
lelMerlijnWajer created a repository: https://github.com/maemo-leste/ohm-rule-engine20:32
Wizzupcan't wait for this to work & be finished20:51
Wizzupheh20:51
Wizzupparazyd: do you know how I can add an empty directory in a .deb pkg?21:02
lelMerlijnWajer edited a repository: https://github.com/maemo-leste/policy-settings-common21:07
Wizzupparazyd: when you have a moment pls look at policy-settings-common debian packaging, I don't know how to create the 'current' dir that the rpc/*.spec file makes21:08
Wizzupparazyd: that is in debian/policy-settings-common-text.install21:08
Wizzupparazyd: also the .spec file defines the .dres files for both packages21:09
WizzupI think the .dres file should go in the -text only21:10
Wizzupalso, we need an initscript for ohmd ;)21:12
Wizzupok, just ohm-plugins-misc remains, I think I will do that another day21:17
uvosWizzup: just use install ?21:32
Wizzupuvos: where, in rules file??21:43
uvosjust postinst21:43
uvos(note im no deb wizzard its just what i would do)21:44
Wizzupyeah21:44
Wizzupwell I spent too many hours today doing packaging21:44
WizzupI'll look at with a fresh mind tomorrow21:44
WizzupI think once all of this is there, I can try it on the n90021:44
uvostry what exactly?21:44
uvostha audo setup from nemo?21:44
Wizzupyes, so hopefully we can get most of it to work, whih is:21:46
Wizzup1. volume applet21:46
Wizzup2. policy routing based on system state (hp plugged in, etc)21:46
Wizzup3. call audio routing (if any)21:46
Wizzupand probably loads of other stuff I forget21:46
uvosok cool21:46
WizzupI don't think it works *yet) with ucm, so that will be for another time21:46
uvosi gues n900 because the backend stuff is hardcoded for n900 mixers21:47
Wizzupwhich is why I'd probably start with the n90021:47
uvosok21:47
Wizzupyeah because there are n900 files from nemo21:47
WizzupI don't know if we also still need https://github.com/spinal84/alsa-policy-enforcement/21:47
WizzupI think probably not21:47
Wizzupuvos: for the d4, being able to detect the hp plug would be required I think though21:49
uvosnot gonna happen21:49
uvosin any resonable timeframe21:49
Wizzuphm, not sure how we'll have to deal with that in the policy then21:49
Wizzupwell, first things first I guess21:50
uvosits still a total mystery how the d4 hardware / the android kernel even detects the hp21:50
uvosit just talks with the cpcap firmware to enable routing and it dose everything itself21:51
uvosbut somehow the hp isent connnected to any cpcap gpio either21:51
Wizzupdo you think it could be worth asking sre?21:51
uvosso no idea how the fw even knows21:51
uvosWizzup: well i asked sre about the audio problem like 2 months ago and he is totaly mia21:51
uvosalso he dosent know i suspect21:51
siceloasked him via email?21:54
uvossicelo: yeah21:54
uvosthe mc13783 datasheet also isent helpfull21:55
uvosas it dosent have the features used by the android kernel for hp21:55
WizzupI haven't looked at the kernel much, does it report/print anything upon plug in dmesg or so?21:55
uvosno21:55
uvosit cant no omap4 gpio or cpapgpio changes21:55
uvosit has no possible source for the information21:56
uvosand mc13783 dosent have the stuff the android kernel uses (namely the uc/ rtos)21:56
Wizzupbut alsa on android knows?21:56
uvosandroids sound layer knows yeah21:56
uvosit gets it passed by the rtos in the mailbox system i think (at least it gets a message at the same time)21:57
uvosthe rtos fw somehow reads the state21:57
uvosno idea how21:57
uvosso either you have to implement the rtos fw uploading and all the cpcap-uc handling stuff21:59
uvos(lots of work ergo not any time soon)21:59
uvosor you have to figure out where the hell the fw is sourceing this infomation21:59
Wizzupok22:01
Wizzupwell I don't know how we can work around it, but we'll figure it out later on I guess22:01
uvosi can now use sphone to place a call22:07
uvos(but nothing else works)22:07
Wizzupcool22:07
Wizzupwhat lib do you end up using?22:08
uvosjust reimplmenting the calls with gdbus22:08
uvosits by far the easiest way atm22:08
Wizzupokay22:08
Wizzupit looks like even the audio policy routing relies on telepathy22:08
Wizzupe.g.22:09
Wizzupcall_prefix(cellular, '/org/freedesktop/Telepathy/Connection/ring/tel/ring/').22:09
uvoshmm thats not so great22:09
Wizzupcall_prefix(skype   , '/org/freedesktop/Telepathy/Connection/spirit/skype/').22:09
Wizzupcall_prefix(gtalk   , '/org/freedesktop/Telepathy/Connection/gabble/jabber/').22:09
Wizzupit's how it works in maemo and nemo/mer/sailfish22:09
uvoshmm22:09
uvosseams kinda excessive22:09
WizzupI can't comment on how it works at all, since I don't know22:10
Wizzup(yet)22:10
Wizzupbut it seems pretty likely we'll want to use thos code22:11
Wizzups/thos/this/22:11
Wizzupthat's also why I suggested going the tp route22:11
uvosim still not sure why there is not just several modes with different pa streams associated to them and an app can ask for a stream22:11
Wizzupthat might also work22:11
uvosand then depending on the mode the other streams are paused22:11
WizzupI just looked at some of the policy files just now22:11
uvosand the volume is restored depending on what mode was enterd22:11
Wizzupcould be22:12
Wizzupbut it has different routing for ip calls than normal calls, etc, so it has to know22:12
Wizzupit can't just be a "phone" property somewhere in pa22:12
Wizzupsomewhere in a pa stream22:12
uvossure so have a 4th stream mode for ip calls22:12
uvossure so have a 4th stream/mode for ip calls22:12
uvosi think tieing the entire audio setup to some implmentation of a comunications framework is a misstake22:13
uvosless is more here22:13
uvosbut thats just imo22:13
Wizzupall I know is that I like what maemo does, and we need something, and sailfish is maemo stack but foss22:13
WizzupI can't comment on how it works technically really22:13
uvosthats a problem in and of itself22:14
Wizzupbut I do know that this is a solid path to get us to something works is proven to work22:14
uvosbut ok22:14
Wizzupuvos: I didn't say I wouldn't know at some point22:14
uvossure22:14
Wizzupuvos: it's like 10+ repos with a lot of prolog and C code22:14
uvosright22:14
uvosanother problem in and of itself22:14
uvos:)22:14
Wizzupproblems that lead to a solution :p22:14
uvoswell its jour department22:15
sicelo"tieing the entire audio setup to some implmentation of a comunications framework" < no. it's not like that. the communications framework is in charge of exactly communications. other audio issues are not handled by tp at all (e.g. music playback)22:15
uvossicelo: well the audo setup forces the communications framework to be tp forever22:16
uvosyou cant swap out tp for ex the telegram-desktop app and place a ip call with that22:16
Wizzupyeah it's just pa doing the audio core, and then ohmd does all the routing policy (through some pa module to be able to do certain things) and then userspace can request audio features22:16
uvosif its just a specal stream for ip calls22:16
Wizzupuvos: that is my guess, it's not clear that that is true22:16
siceloyou can22:16
uvosthen you could route the telegram app to use that that stream22:16
uvosand everything works22:16
Wizzupbut just for the record our aim *is* to use tp for everything if we can22:17
uvosif pulse reads some special tp proparties and descides what to do based on that22:17
uvosthen its a problem22:17
Wizzupno, pulse doesn't do that, ohm does22:17
Wizzupas I understand it22:17
uvossure pulse ohm whatever22:17
WizzupI'm sure you could extend to policy if it doesn't do what you want yet22:17
uvospoint is the audio streams etc arnt configured correctly if i replace tp with some other app22:17
Wizzupbut for example this also deals with emergency calls22:17
Wizzupuvos: well, I can't argue with that point because I do not know if that is the case22:18
sicelo:)22:18
uvosi dont either22:18
Wizzup:D22:18
uvosbut that was wat i gatherd from the above22:18
uvos"but just for the record our aim *is* to use tp for everything if we can" maybe but tp wont and cant provide all the features of the native apps22:18
sicelolook, you can run your telegram just fine while the maemo tp stuff is in place.22:18
Wizzupit's 3.5k of prolog code (the basic policies)22:18
uvosso peapole will allways want to use the native apps22:19
uvossicelo: maybe but when i get a call with the vollume be right?22:19
siceloWizzup is talking about the leste stuff. it doesn't prevent use of native anything22:19
Wizzupuvos: I agree it might not offer all the features, but I don't agree that that is what folks want22:19
Wizzup:p22:19
Wizzupuvos: it might be fine if it uses the standard pulseaudio phone property thing22:19
uvossicelo: will the notifications be on the right volume?22:19
Wizzupwe won't know until we have it in place22:19
uvosetc22:19
sicelowe were using linphone on n900 without any issues, even though that was not doing tp22:19
uvos"<Wizzup> uvos: it might be fine if it uses the standard pulseaudio phone property thing" ok but if we can use that and it works why dont we use the modern pa mechansums for exactly this + stream silencing etc instead of the neamo setup22:21
uvosnot saying there is no reason22:21
uvosbut we should know this kind of thing beforhand...22:21
Wizzupthere is no phone that uses plain pa and works sensibly as far as I know22:22
Wizzupbut the sailfish stuff does22:22
Wizzupand it's what maemo did22:22
Wizzuppulseaudio itself is not powerful enough to do many of the things we want to be able to do22:23
uvosthats insufficant for me sorry, anyhow im not really helping here, as i say its your department.22:23
Wizzupplus, this setup should give us audio on n900 voice calls22:23
Wizzupuvos: I think we both have waaaay to little knowledge of this to make any determination22:24
uvosright22:24
dreamer(ppst, pipewire kopen?)22:24
uvosshutup22:24
uvos:D22:24
WizzupI'm simply taking the tested and proven path that also happens to support some of our more sophisted devices wrt audio routing22:24
uvosswitching to pupewire just adds more complication we dont need atm :P22:24
WizzupI think that makes the most sense since we don't have the resources to re-do all the work and it's foss22:24
uvosWizzup: its fine, i dont have to like it22:25
Wizzupif it doesn't make sense, well then I spent a week packaging and understanding it, not the end of hte world22:25
uvossure22:25
WizzupI want to get to a point where it works and we can actually evaluate it22:25
uvosok22:25
uvosnot totaly insane i gues22:25
Wizzupmy bet is that it'll actually work out quite ok, and I hope that the main challenge will be supporting ucm22:27
Wizzupplus it'll get us the other maemo bits like volume applet and such22:27
Wizzupuvos: but that's nice progress @ sphone22:33
uvosthanks22:43
WizzupI think some things will come together this year :)22:45
Wizzupit might very well be audio + calls + telepathy/conversations + contacts22:46
freemangordonWizzup: Re volume applet - someone (me?) shall port it to stream-restore-nemo once we have it22:51
Wizzupfreemangordon: we'll see if that's required, it might just be the same22:52
Wizzupor is there still code missing22:52
uvossms works22:53
freemangordonIIRC the diff between stream-restore and stream-restore2 was that latter supports both absolute and relative volume while former supports absolute only22:54
Wizzupok22:55
Wizzupah, we also need https://github.com/sailfishos/libresource22:55
Wizzup(i think)22:56
uvosbtw any idea what the point is of declaring a function extern in header22:59
uvoslike this "extern int ofono_call_hangup(gchar *path);"22:59
uvosall functions that arnt static are effectively extern no?23:00
uvosam i missing something?23:00
siceloyes on droid 4 everything works, except USSD. i once made a basic hildon thing in python to handle incoming calls and smses via ofono dbus23:01
sicelomaybe USSD works now. not sure23:01
uvoscall audio works only on external speaker23:01
siceloor it worked, but there was no reply ... can't remember anymore23:01
uvosunles you have hack applied23:01
uvos(like i do)23:01
siceloi stopped working on the application because it sounded like we only wanted tp23:02
uvosok23:02
uvossicelo: also i assume you where replieing to this "sms works"23:02
uvosi ment sms works in sphone23:03
uvosnot d4 in general23:03
Wizzuphow are you testing?23:03
siceloyes i was replying to that. sms doesn't work on d4 now?23:03
uvosyes it dose23:03
uvosand i just implmented the interface in sphone23:03
uvosso it works23:03
uvosWizzup: i sent myself a sms23:04
siceloactually works on all leste phones23:04
uvosWizzup: and for calls i call a automatic customer service thing from the provider23:04
Wizzupah, check23:04
Wizzupuvos: so testing on the d4?23:05
uvosyeah23:05
uvosbtw can re fix sapwood-engine-WARNING **: 23:08:56.000: sapwood-theme: Failed to load pixmap file /usr/share/themes/marina/images/qgn_plat_separator_horizontal_paned.png: Failed to connect to sapwood server using `/var/tmp/sapwood-:0': Connection refused23:09
uvossomehow23:09
uvossphone hits this manny times23:09
uvosmakeing its output really hard to read23:09
Wizzuphow do you spawn it23:10
Wizzupand as what user23:10
uvosuser23:10
Wizzupover ssh?23:10
uvosjust ./sphone over ssh yeah23:10
Wizzuptry maybe source /etc/profile or something23:10
WizzupI think it's just missing some env stuff23:10
uvosthat dident help23:11
uvosyeah launched on device it dosent happen23:12
Wizzupmaybe diff the env from device shell and ssh shell23:12
uvoshmm its not obvious when looking at printenv after sourceing the profile23:15
uvosanyhow ill quit there for today23:15
uvoswith some luck ill have sphone working as intended by next weak23:15
Wizzup\o/23:16
Wizzupuvos: when you restart just run 'env | sort > /tmp/1.txt' and diff it23:17
Wizzupwith ssh vs phone23:17
lelMerlijnWajer created a repository: https://github.com/maemo-leste/libicd-network-tor23:17
Wizzup(ofc do not write to the same file twice)23:18
Wizzupuvos: hm it could also be some x auth stuff but seems unlikely23:18

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