libera/#maemo-leste/ Friday, 2021-06-25

uvosWizzup: parazyd: did you guys know about "sphone"?09:59
uvosseams to be a call deamon that dose notifications and ringing and sutch on top of ofono10:00
uvoswas well as a dialer, a sms app and so on in gtk210:01
uvoscompiles and runs fine on leste, apears to find the modem, but i did not try to use it in ernest10:01
Wizzupuvos: got a link?10:01
uvosat least the audio routing is broken (it trys to do something phone specific with alsa directly)10:01
uvoshttp://uvos.xyz/dialer.png10:02
uvoshttp://uvos.xyz/sms.png10:02
uvoshttp://uvos.xyz/maserati/dialer.png10:02
uvoshuh my host is not working10:02
Wizzupit's a 404 at least10:03
uvosjeah the folder is wrong permissions i think sec10:03
uvoshttps://github.com/amipro/sphone10:04
uvosthats the git repo10:04
Wizzupthat's cool, worth looking at10:05
Wizzuplmk when you fix your host :p10:05
parazydNever heard, but looks interesting :)10:05
uvoshttp://uvos.xyz/maserati/dialer.png10:05
parazydesp. if gtk2 :p10:05
uvoshttp://uvos.xyz/maserati/sms.png10:05
uvoshttp://uvos.xyz/maserati/history.png10:06
uvosi think it just works10:06
uvosonly needs porting to pulseaudio/ucm10:06
Wizzupthe proximity needs to be changed a bit I think10:06
uvosright it needs to poke mce for call mode10:07
uvosalso virbration10:07
tmlindcool if that works :)10:07
Wizzupwe could start with this and then modify it some10:07
WizzupI think freemangordon is ready to chat contacts again coming tuesday10:07
Wizzupand we were quite far along (well he was) with the address book gui and lib10:07
uvosfunny thing a contacts system is the one thing it seams to lack10:07
parazyd:)10:08
parazydYeah our RE will not be in vain10:08
Wizzupso the audio routing requires some more PA setup I think, and we still use the nemo stuff there as well10:08
Wizzupand with libabook, we'd be in decent shape, with some of the mce integration(s)10:08
Wizzupbtw on fremantle the UI is always running, just not visible10:08
Wizzupand I guess for sms and such we'd want to log using the eventlogger libs, but we mostly have those already10:09
uvosjust makeing it set the call ucm profile would be enough for a start10:09
uvoshttps://github.com/amipro/sphone/blob/d68ffae05e04c8cdc9193e695635779020061e94/src/utils.c#L69710:09
uvosright now it dose that10:09
uvosthat ofc works nowhere10:09
parazydLooks like ~5000 lines of C10:10
parazydNot too scary10:10
parazydCould also be easy to hildonize10:11
parazydOh and GPL3 :)10:11
uvosits pretty mutch hildonized allready10:11
uvosidk what you would change on that front even10:11
parazyduvos: There's places where libhildon could/should be used instead of plain gtk10:11
uvosexcept set the proratitable flag10:11
uvosok10:11
siceloNot only Fremantle, but almost all (smart)phone OSes have the phone & sms UIs always running. Makes sense too10:13
Wizzupyes, to make sure the mem is avail etc10:13
uvosWizzup: the ui of this is also allways runing10:14
uvosbtw10:14
parazydYeah also starting this stuff up on every call/sms sounds slow10:14
Wizzupuvos: right but it's probably visible is what I mean10:14
uvosno10:15
uvosyou do ./sphone that starts the whole thing in the backgorund10:15
Wizzupah10:15
Wizzupok, cool10:15
uvosand then ./sphone -c dialer-open opens the dialer10:15
uvosand -c sms-new the sms thing etc10:15
uvosand on a incomeing call it rings and opens a window etc10:15
uvospretty mutch a finished stack10:16
parazydVery nice10:16
uvos ./sphone -c dialer-open is just a dbus call10:16
Wizzupand it's gpl :)10:16
parazydYes!10:17
WizzupI think way later we might want this to use telepathy instead of ofono, but also maybe not, maybe for sms or something, not sure10:18
Wizzupin any case, this looks like a great tangible start to me10:18
parazydFor sms we'll surely want telepathy10:18
Wizzupshall I fork it to maemo-leste/ ?10:18
parazydSo it also integrates with other protocols10:18
parazydWizzup: Make a new repo rather than fork10:19
Wizzupwhy?10:19
parazydGithub is weird with forks10:19
parazydAnd you can do "attacks"10:19
parazydBecause you can clone commits not actually part of the repo10:19
parazydGithub keeps all forks in the same directory on their system10:19
WizzupI just wanted to let the author know we forked it, but I suppose we can just not10:19
parazydSo for example you could fork a repo, push a commit, and then access it via web using a different <orga>/<repo>/<commit> link10:20
uvosis that a problem?10:21
parazydIt can be10:21
uvoslooks like there is https://github.com/amipro/sphone/blob/master/src/gui-contact-view.c10:22
uvosnot sure how to get there10:22
uvosmaybe our forked gtk2 is hideing some ui element10:22
tmlindhmm also it may be missing ofono online step after enable? if so, onlining modem manually first might make it work10:23
Wizzupyeah, other parts of the system will do that for us (mce, icd2)10:23
tmlindok10:23
Wizzupbtw, every other day I still get modem resets on my d410:24
Wizzupmaybe it gets hot, not sure why10:24
tmlindor just buggy firmware10:24
tmlindnot seeing the modem resets here, this with just hackish scripts using /dev/gsmtty* interface directly still10:25
WizzupI think it happens more when I use gps a lot10:25
tmlindok10:25
Wizzupor maybe it's just warmer here :)10:25
uvosi dont have a sim for th d4 so no idea if the thing works, if someone wants to try it it, besides the libtoolize autoreconf dance you have to change10:25
uvosgstreamer-0.10 to gstreamer-1.0 here https://github.com/amipro/sphone/blob/d68ffae05e04c8cdc9193e695635779020061e94/configure.ac#L3310:26
uvosthen it compiles fine10:26
lelMerlijnWajer created a repository: https://github.com/maemo-leste/sphone10:27
uvosWizzup: im pushing it10:31
Wizzupuvos: cool10:41
WizzupI have not heard of anjuta before10:41
Wizzupbtw, aczid made these a while ago: https://imgur.com/a/SPGe9ZM10:43
Wizzup(just screenshots if you haven't seen the original maemo)10:43
parazydBut this is fremantle, no?10:43
parazydlol for a sec I thought we had the source10:43
parazyd(and yeah, this is what I meant regarding hildonizing sphone)10:44
parazydWizzup: Just turned on the pinephone I got. Not seeing battery applet is the first bug10:48
parazydAlso can't seem to trigger rotation10:50
parazydThe rest seems fine10:50
uvosmonitor-sensor?10:50
parazydLight and accelerometer work10:51
parazydLandscape says normal, portrait says left-up10:51
uvosbut rotation dosent work?10:51
uvosthats wierd10:51
parazydno10:51
uvoscheck 90-pinephone.ini in mce.ini.d10:52
uvosdose it load iio-accelereometer?10:52
parazydoh it's not there10:52
parazydhmm why10:52
uvoswe load it per device10:52
uvosto avoid breaking n90010:52
uvospinephone dident get the memo i guess10:53
parazydoh there's a typo lmao10:53
parazydhttps://github.com/maemo-leste/leste-config/tree/master/leste-config-pinephone/mce/mce.init.d10:53
parazydmce.init.d10:53
parazydhehe10:53
uvoslol10:53
uvosok well then no wonder it doent work10:53
parazyd:D10:53
uvosled is broken too then10:54
parazydAnd is also not in /etc10:54
uvoshmm?10:54
parazydhttps://github.com/maemo-leste/leste-config/tree/master/leste-config-pinephone/mce/mce.init.d10:54
parazydSee the path10:54
uvoso right10:54
uvosgit blame blames parazyd :P10:54
uvosshould be a easy fix then10:55
uvos(see this is why we need more people with pp's to test...)10:55
parazydmhm10:57
parazydbbl have a mtg now10:57
parazyduvos: Works now :)11:36
parazydWizzup: How do we approach the battery on PP?11:58
parazydWizzup: This is upower -d: http://sprunge.us/KQ5VYm11:58
lelparazyd labeled an issue: https://github.com/maemo-leste/bugtracker/issues/519 (Figure out ofono bug where modem is reported as powered off)12:07
lelparazyd labeled an issue: https://github.com/maemo-leste/bugtracker/issues/519 (Figure out ofono bug where modem is reported as powered off)12:07
Wizzupparazyd: i had a patch in the kernel for it, maybe you missed it12:12
parazydProbably :D12:15
parazydFixing up gps startup on PP now12:15
Wizzupparazyd: do you want me to find the kernel patch? it's just about specifying the battery tchnology12:17
parazydYeah please12:17
Wizzuphttps://github.com/maemo-leste/pine64-kernel/commit/c62a8aeab344523190c7f539de60d94ba6c9cc5f12:17
parazydMaybe I should also update the kernel to latest upstream too12:17
Wizzupmzybe it can be specified in the dts now12:17
parazyd*nod*12:18
WizzupLangoor: did you manage to figure out anything with ssh access?12:20
LangoorI poked around a bit, saw some Xorg errors12:20
Langooralso had issues with my computer dropping the assigned ip adress, so ssh was quite a pain. I think that had to do with my NetworkManager config tho12:21
WizzupLangoor: if you can run 'rc-status' and share that output, that would be helpful12:21
Wizzupyes, NetworkManager is really annoying in that way12:21
Wizzupwe maybe need to have the phone do dhcp over usbnet in the future12:21
Wizzupthere are ways to tell networkmanager not to touch the interface12:22
Wizzupyou could also set it up with static ip in networkmanager12:22
Wizzuphttps://support.qacafe.com/knowledge-base/how-do-i-prevent-network-manager-from-controlling-an-interface/12:22
Wizzupmore complicated than it should be, of course12:22
Wizzup> nmcli dev set wlp2s0 managed no12:23
Wizzupthat seems helpful12:23
parazyduvos: I'll also try to test charge-mode and fbkeyboard soon (not today). Think we should also have the console there in portrait like bionic?12:42
LangoorThanks! i'll check it later12:52
uvosparazyd: fbkeyboard cant work in anything other than native orientation as it directly writes its display into the framebuffer12:59
uvosso you cant rotate it12:59
uvosso yes you need to make the console protrait on pp12:59
uvosthis looks better anyhow as fbkeyboard would take up to mutch room in landscape anyhow (imo)13:00
parazydok13:01
uvosi guess fbcon rotate might work btw (not all drivers support this). but rotating the kernel console dosent affect it fc13:02
uvosso the kernel console rotate must go13:02
uvos*fbdev rotate13:03
parazydhttps://github.com/maemo-leste/pine64-uboot/blob/master/boot.txt13:26
parazydWe rotate it now13:26
uvosparazyd:  fbcon=rotate:1 != fbdev rotate13:27
uvosfbcon only rotates the console not the framebuffer13:27
parazydoh ok13:27
parazydYeah13:27
uvosso the console ends up in landscape and the keyboard in protrait13:27
parazydBut removing this should result in proper portrait, no?13:28
uvosyes13:28
parazydThat was the plan :) Cool13:28
uvoshttps://forum.xda-developers.com/t/sphone-0-04-phone-application-for-rhobuntu.709101/]13:54
uvosso was made for the HTC Rhodium heh13:55
uvosthats random13:55
uvoshttps://mobileunlock24.com/466-thickbox_default/unlock-htc-touch-pro-2-t7385-rhodium.jpg13:56
parazydheh14:00
parazydSometimes you stumble upon great obscure code14:01
parazydAnd it's really nice when it happens14:01
bencohfeels like ancient magic14:01
bencohalright, I have revived my scratchbox-like crossbuilder for leste :)14:21
bencohit's a mix of lxc, qemu-user-static, chroot, and some dpkg-divert magic14:21
bencohI can build armhf packages on my laptop faster than on phoenix :)14:22
bencoh(at least according to phoenix's logs)14:22
parazyd:o14:25
parazydMind writing some doc on the wiki about this?14:26
bencohgeneration process is not fully automated, but it's quite close to it, and I'll probably release an lxc "image" in case anyone is interested14:26
bencohparazyd: yeah I'll probably do that :)14:26
parazydGreat work, thanks!14:26
parazydIt'll be very useful14:26
uvosso today we land a dialer/telephony stack and cross-compile support14:27
bencohhttp://pastebin.notk.org/pastebin.php?show=f3b890a23 meanwhile14:27
uvossounds decent for one day14:27
parazyd:)14:27
bencohwait, really? we have a dialer? <314:27
parazydYeah uvos found sphone14:28
parazydhttps://github.com/maemo-leste/sphone14:29
bencohwow14:30
bencohlet's try crossbuild it :>14:30
uvospretty mutch works on leste out of the gate14:30
uvosjust needs some minor stuff for vibration and sutch to work14:30
uvosalso testing it connects to ofono14:30
uvosand sees the modem14:30
uvosbut i dident try anything beyond that14:31
uvosalso testing, it connects to ofono14:31
parazydThere's still that ofono bug I can't figure out14:33
parazydIt doesn't see the modem is powered/onlinr14:33
parazydAfter booting, you need to do an mdbus2 (or whatever) call to mark it powered14:34
uvosi mean ofono just assumes that it is the one to power the modem14:34
parazydThis also confuses me on the pinephone14:34
uvosso it gets confused because the kernel dose it14:34
parazydBecause I was unable to get a gps fiz14:34
parazydfix14:35
parazydAnd I'm unsure of the reason14:35
parazydu14:35
parazyduvos: Maybe we should have something in mce that issues a poweron call?14:36
parazydThen it could also integrate properly with flight mode14:36
uvosja sure its on my list allready14:36
parazyd<314:36
uvosi also want to make a new audioroute mce module that dose the audio routing on call mode14:36
uvosthen i just need to patch sphone to poke mce into call mode14:37
parazydbtw14:37
uvosand eveything should just start working via calls14:37
parazydDo you ever check what sailfish does with their mce?14:37
uvos*wrt14:37
uvosparazyd: sure, regarding what tho?14:37
parazydJust in general14:37
uvossure yeah i have seen most of the sfos mce code14:37
parazydCool14:38
uvosits a mess14:38
uvossadly14:38
uvosbut there is some stuff i want to lift14:38
uvos(the ke-recv replacement stuff for instance)14:38
parazydmhm yeah, you mentioned14:38
bencohmake[1]: Leaving directory '/mnt/bencoh/Downloads/leste/sphone'14:39
bencoh:)14:39
bencohhmm, sphone complains a lot when I try to run it, and I don't get a GUI. but it first complains about missing org.ofono.Manager, so ...14:43
bencohmaybe I'm missing something on the phone14:43
uvosbencoh14:43
parazydProbably needs some work14:43
uvosits a telephony stack14:43
uvosit dosent show anything by default14:44
bencohuvos: oh, I thought it was the dialer part14:44
parazydbut you should ofc have ofono installed14:44
uvosbencoh: no its everthing in one14:44
bencoh(I mean, the part that interacts with the user)14:44
uvosstart sphone -c dialer-open14:44
parazydAnd you can run it in the terminal14:44
uvoswith another instance running14:44
bencohapparently I have ofono running14:44
bencohgot a GUI now14:44
bencoh:)14:44
bencoh(eeek, low battery)14:45
Wizzupuvos: I think it would be good to look at nemo audio routing and policy enforcement and learn from that15:15
WizzupI know mce has minimal audio routing code atm, but I don't think it makes sense to have it there15:16
uvosWizzup: sure no15:19
uvosWizzup: but just to get sphone going ill do a minimal module15:19
Wizzupok15:22
Wizzupsphone is cool, I'd be happy to try to contribute some stuff once we get organised on it15:22
uvoswe can replace it with something better later15:22
uvosthe mce module that is15:22
Wizzupjust wanted to check we were on the same page with fremantle/nemo like audio15:22
uvossure yeah just switching the profile when a call comes in is inssuficant15:23
uvosyou need to store volumes and stuff15:23
uvosand silence other apps15:23
Wizzupyeah15:26
bencohhttp://bencoh.notk.org/maemo/maemo-leste-armhf-lxc-crossbuilder.tar.xz :)16:09
Wizzupgot some context? a lxc container based on our images that you use to cross build, or a cross-build lxc container?16:10
bencohWizzup: ah, mybad, it's a follow-up to 15:21. tl;dr: cross-build lxc container, like scratchbox16:18
Wizzupbencoh: ah, I missed it :)16:19
Wizzupwell, if qemu-user is faster than our pis, maybe we should run it on arm64 host then16:19
Wizzups/arm/amd/16:19
bencohWizzup: it's tweaked to use a native gcc/make/bash and a few others16:21
Wizzupdo you have instructions on how you built it?16:21
bencohWizzup: http://pastebin.notk.org/pastebin.php?show=f3b890a2316:21
Wizzupbtw, it might be interesting, but there's something to be said for the native building - like the silly scummvm build system16:21
bencohsaid silly scummvm might work there16:22
Wizzuphehe16:22
bencohxorg-xserver was pretty silly as well, and it builds successfully here16:22
bencohnginx worked too16:22
Wizzupif it works well, we might want to advertise it to folks if they want to do arm compilation (as opposed to just development on amd64)16:23
Wizzup>lxc-attach maemo-leste-amrhf16:24
Wizzupis that a typo?16:24
Wizzupah I guess it's a persistent typo16:24
bencohWizzup: oh, shit, I thought I fixed it16:31
bencohah, you mean in the pastebin16:32
bencohthen yeah, it's just a typo16:32
Wizzupok16:32
bencohhmm, you'll probably need a lxc-devuan template as well16:33
bencohsince there is none afaict16:33
bencohI ported the one from debian16:33
bencohWizzup: http://pastebin.notk.org/pastebin.php?show=f6b523d78 in case you wanna try16:34
Wizzupbencoh: can't atm (work), but will try later17:08
uvosWizzup: tmlind: how do you place a call with ofono scripts?18:39
Wizzupuvos: dial-number ?18:58
uvosyeah18:58
uvosfor some rason that dosent work18:58
uvosthe call just gets dropped18:58
uvoshmm18:59
siceloworked well for me (droid 4 and n900) ... unless something broke recently?19:49
sicelovery nice one bencoh!19:50
uvossicelo: might just be this sim card or something19:58
sicelolol, mine doesn't have credit ... so my test also fails20:15
uvosso it works with another sim21:46
uvosWizzup: tmlind: so  for the life of me i cant get the earpice or the headphones to work in call mode21:49
siceloiirc it's a known issue21:50
uvosok21:50
uvosi was under the impression that worked before..21:50
sicelomaybe it did ... i didn't test much further myself22:14
sicelobut i think most reports i read about mention only loudspeaker working.22:14
uvosright, tmlind would know22:15
sicelommm, i vaguely remember headphone might have worked - can't remember too well now22:15
uvosso summoning tmlind22:15

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