libera/#maemo-leste/ Monday, 2024-07-29

arno11Wizzup: is there any particular reason to keep hifi ? then how to properly deal with mic ?07:19
arno11hm, backend management is a bit confusing: able to receive a sip call through ring backend (apparently) with sound in one way08:00
arno11can't get sound anymore (with both backends)08:01
Wizzuparno11: hifi just means regular mic/speakers, so I think hifi is correct here08:17
siceloarno11: Wizzup is right. there's no reason to not have mic with hifi08:28
WizzupIt's a confusing term perhaps08:28
Wizzupit just means 'good ol pc audio'08:28
Wizzuplike, for video calls, other sip calls, or whatever08:28
arno11Wizzup: sicelo: sorry my question was unclear: i meant, if we use hifi profile, does it mean  we keep mic activated all the time or ?08:39
sicelomaybe think of it this way - on N900 or your pc, what do you need to do before you can record from mic? ;-)08:41
sicelothe answer is - nothing, because (at least in normal cases), you're on HiFi already, and the mic is available/ready for use in that profile too.08:42
arno11ah, so we are supposed to keep it activated all the time, ok08:43
siceloof course you can specifically mute it (for privacy reasons, for example), otherwise the profile will normally activate it08:43
arno11i need to modify n900 hifi profile then08:43
arno11sicelo: not related but do you think ofono could be the culprit for freeze on startup ?08:58
Wizzuparno11: no mic is not active all the time, just when alsa uses it08:58
Wizzupbut yes it should be ready for usde08:59
arno11ok08:59
Wizzupnormally only when userspace uses alsa component it is powered on08:59
Wizzupiuc08:59
Wizzupwhich is why we had trouble with the modem08:59
arno11ah ok08:59
arno11Wizzup: btw i don't remember if you got some freeze on boot (pin entry) on your n900 (before swap troubles ofc)09:07
arno11sicelo also got it iirc, but it seems to work fine with no sim card inside09:08
Wizzupdid you not get there then?09:09
Wizzupthese*09:09
arno11yep09:10
siceloarno11: i think ofono is well-behaved. you can experiment with `sudo rc-update del ofono default`.09:10
sicelothat'll require you to start ofono manually09:10
arno11ah ok ty09:11
WizzupI am not so sure sicelo09:11
Wizzupother services require it so it will get pulled09:11
WizzupI will try again later today, maybe with serial, and check09:12
arno11ok09:12
arno11the issue is a bit random in fact, sometimes it boots fine, and sometimes i need to remove the battery 4-5 times to be able to boot (with sim)09:15
arno11but maybe that's just my device (and a problem with sim slot maybe)09:17
arno11or the sim card itself09:17
siceloiirc ofono is started by openrc on leste, so nothing can activate it. that would have been the case if we used dbus activation, yes09:17
siceloarno11: i do have the problem, and it's 100% reproducible for me.09:18
arno11ok09:18
sicelosomething You could try is to remove the Pin requirement from the SIM09:18
arno11what do you mean exactly ?09:20
sicelothe pin entry dialog shows up because your SIM requires Pin. if you disable that on SIM, pin-entry won't come up09:20
arno11ah scratch that09:21
arno11yep ok09:22
siceloin fact that's probably easiest/quickest way to narrow down the cause09:27
arno11yes indeed09:29
arno11sicelo: btw is it possible to directly disable it form ofono scripts ?09:35
arno11*from09:35
sicelodisable pin? yes09:36
arno11lock-pin ?09:38
arno11or change-pin maybe ?09:40
siceloi forgot what it is with ofono scripts, but a direct dbus call would look like:09:43
sicelobusctl call org.ofono /n900_2 org.ofono.SimManager UnlockPin ss pin 1234 (if your pin was 1234, amd n900  modem path was /n900_2)09:44
arno11ok ty09:45
siceloah, there' `unlock-pin` ofono script ;-)09:46
arno11yes indeed :)09:46
arno11seems to work09:49
arno11i'll try to reboot and see09:50
arno11still got 2 freezes on boot but when it works, boot time is a way faster with no pin10:15
uvos__did we enable openrc parallelized starting of services?10:16
uvos__i have that on my d4 but im not sure if i did that10:16
uvos__if so thats probubly bad for n90010:17
uvos__since its constantly close to oom10:17
arno11interesting10:17
sicelorc_parallel is disabled10:26
arno11sicelo: what is clearer now is the moment when it freezes: when H-D is appearing, time + battery + network + desktop icons + widgets are visible after few sec then it freezes few sec later11:01
arno11btw n900 is not really constantly close to oom, leste even works with no swap on it, just multitasking (let's say 3-4 apps opened) is not usable11:31
arno11and the device is not faster with no swap (but with all tweaks) meaning imo that swapping is not really slowing down all stuff11:34
arno11as KREYREN confirmed, the ui is now really responsive with lastest tweaks, even not sure d4 responsiveness is superior with original transitions file.11:39
sicelod4 is obviously going to be superior :-)11:39
arno11yep11:40
sicelobut yeah, FUD isn't useful either11:40
uvos__oom might not be quite right, since there is swap, but it its under constant memory pressure12:03
uvos__thats not fud its just a fact12:03
uvos__thanks for confirming that i just enabled the parallelizeing locally12:05
arno11wow it tooks me almost 40 min to be able to boot...13:26
arno11i had to finally use fremantle to free up memory a bit in leste, removing mafw stuff from xsession13:28
arno11and then, able to boot13:28
arno11so even if memory is ok after boot, seems really near oom during boot as uvos said13:29
uvos__the way the xsession scripts work is not that great for n900 i gues13:31
uvos__we launch lots of proccesies in parralell13:31
uvos__instead maybe should wait for things to stabalise before launching the next thing on n90013:32
arno11yes and that's a bit confusing13:32
uvos__but this is hard to do with xsession13:32
uvos__we would need some thing to manage user session deamons like systemd can13:32
uvos__so either that or something custom (very common for desktop des to have something cusom here)13:33
uvos__anyhow not so tivial changes13:33
arno11the weird stuff is boot issue is totally random13:35
arno11sometimes ok, sometimes quite impossible to boot13:35
arno11anyway, true that we can't add more stuff on boot atm13:37
arno11btw how to explain that memory is just a problem on boot and not from userspace ? running 20 apps at the same time causes no troubles13:58
arno11maybe something is wrong with swap on boot? (like no swap)13:59
uvos__arno11: well swap may activate to late yes, but also having lots of swap used is not a problem per say but having lots of hot pages in swap is because then you are thrashing14:09
uvos__during boot lots of different stuff is happening so manny pages are hot14:10
uvos__possibly to manny for the kernel not to end up compleatly stalled14:10
uvos__once booted you opening alot of apps dosent matter as mutch as long as those apps arnt doing anything and thus need pages swaped in constantly14:11
arno11ok thx for clarifying14:35
arno11hm conversations use 35MB in background now, a lot more than previously15:25
arno11d4dsc: ^^^ any idea why ?15:27
arno11*uses15:27
arno11scratch that, back to normal :)15:31
dsc_arno11: what is normal? :D15:32
dsc_I'd say 35MB is not so much15:32
arno11yeah that's the maximum i see, it is usually around 20MB15:36
dsc_Qt memory alloc greediness depends on several things, its hard to pinpoint when it does what15:36
dsc_for example, on d4 idle is around 50MB (never 20-30MB)15:37
arno11ok15:59
arno11i just wonder how stuff like conversations can use so much memory just for msgs lol16:01
bencohbecause of how the underlying toolkit works I'd say16:01
bencoh(toolkit and used widgets)16:01
arno11ok16:02
uvos__modern toolkits use alot of memory everywhere a memory/speed tradeoff can be made as speed is gennerally more precious than space on modern devices, that comes in the form of scrolling buffers, holding huge acellerated contexts, holding caches for a veriaty of resources and surfaces. Additionally theres stuff like qtquick that means executeing scripts which in turn means spinning up interpreters, modern theming engines are also scripts whith thair own16:07
uvos__interpreters. Toolkits must expect that the dpi of any suface may change at any time (eg because it was moved to a diffferent monitor) this also means holding resources for those and it goes on like this16:07
uvos__really if we want to port leste to a modern toolkit from gtk2 i strongly doubt that continuing support for n900 is possible.16:08
uvos__of we dont have the resources to move away from gtk2 anyhow atm, so n900 is safe for the forseable future16:09
arno11yep all of this makes sense16:09
uvos__to share some expirance from the android world: android 2.x's native toolkit worked very much like gtk2 as in it simply displayed fixed sized pixmaps using the cpu for rendering.16:12
uvos__in android 4.0 this was changed to ogl accelerated rendering of vector graphics simmilar to how modern linux toolkits like qtquick also work16:13
uvos__this ment a over night doubleing of the ram requirements of android despite a large amount of optimization effort16:14
WizzupI don't think gtk3 is ogl accelerated but their theming is more complicated16:14
uvos__gtk3 is old16:14
uvos__really old16:14
* Wizzup taps out16:14
uvos__qwidgets is also mostly unaccelerated16:14
sicelowe'll have to switch N900 to i3 at some point ;-)16:14
uvos__anyhwo android 4.0 indeed is also the cutoff where the droid1 stopped being usefull (althoug you could bearly runn it)16:15
dsc_conversations doesnt do qtquick on startup, so only widgets16:15
Wizzuparno11: rtcom-messaging-ui uses more than 35MB on fremantle think16:16
WizzupI think*16:16
dsc_however, conversations links against many shared libs, see `ldd`. I think memory usage is due to that also16:16
arno11Wizzup: oh really ?16:17
Wizzupmhm16:17
WizzupI don't think leste uses a lot more ram than fremantle16:17
arno11dsc_: ok16:17
uvos__well you have to count sphones 20 or so mb too16:17
uvos__oh messaging ui16:18
arno11Wizzup: yes probably16:18
uvos__nvm16:18
Wizzupyes, rtcom-call-ui is the equivalent16:18
arno11atm the real problem is only on boot, specially after H-D starts to load16:20
WizzupI think some serial or profiling will help16:21
arno11otherwise, that's fine in userspace, even probably better than fremantle actually16:21
arno11Wizzup: yes maybe16:21
arno11Wizzup: btw is it safe to block conversations from xsession and start it from userspace instead ? (just to free up some mem on boot and see if it helps)16:24
siceloyes @serial16:24
sicelootherwise we're groping in the dark16:24
dsc_yes you can block from xsession16:32
dsc_or just `rm /usr/bin/conversations` like I do16:32
dsc_(I generally run debug builds)16:32
arno11ok thx16:34
arno11let's try16:37
arno11to reboot16:37
arno11ok, it does the trick16:47
arno112 min to boot instead of 416:48
arno11just around 20 sec unresponsive once everything is loaded16:48
arno11and then everything is ok16:49
arno11so definitely (near) oom on boot16:49
arno11i removed mafw and conversations from xsession and start conversations --background from userspace16:51
arno11will reboot again to doublecheck16:55
Wizzuparno11: it is safe, but remember you might miss smses on boot16:55
uvos__why whould you miss sms? if there is no one to read the sms they should stay in the buffer no?17:12
uvos__otherwise you may miss sms anyhow since ofono may start before conversations is ready17:12
siceloyes, the latter ... ofono will receive the sms immediately and it'll get lost17:13
uvos__hmm thats bad17:13
siceloyeah, i've sometimes wondered why ofono handles sms in this way.17:14
siceloModemManager stores them itself afaik17:14
Wizzupmission-control will still launch conversations for the incoming messages/channel fwiw17:14
uvos__none of this helps during boot17:14
uvos__rn at least using sphone for sms i know ofono starts after sphone17:14
uvos__but this is just a race17:14
uvos__*sphone is ready17:14
Wizzupthe same is true for tp-ring17:14
arno11Wizzup: 2 reboots with no issue, that's fine for me with this workaround. now i can continue cmtspeech and ucm stuff :)17:15
uvos__sure but its just a race it currently winns17:15
Wizzupluckily we have full control over this17:15
uvos__so we17:15
Wizzuparno11: sounds good17:15
uvos__who sais that conversations isent stalled on startup17:15
uvos__due to memory pressure for instance17:15
uvos__(before its ready to store msgs)17:16
Wizzupit gets startd on startup, so I don't know who said it but it's wrong17:16
Wizzuparno was talking about purpusefully not starting it on boot17:16
uvos__sure but curretly17:16
uvos__the n900 stalls for a long time starting converstaions17:16
uvos__if ofonos startup is not stalled during this time17:16
uvos__you end up with ofono comeing up before17:17
uvos__even if it isent happening right now it can happen17:17
Wizzupofono can be up if the mdeom is not online'd by cellulard17:17
Wizzupwhich can be done upon h-d ready signal17:17
Wizzupthis is not an unsolvable problem17:17
uvos__and converstaions is guarenteed to be finished before this signal?17:17
Wizzupsure it can be17:17
uvos__ok but atm no17:18
uvos__but ok17:18
uvos__i should finish the modemmanager code for sphone17:18
siceloah right - forgot that the modem needs to be online first (and yes it won't online itself). my bad17:19
Wizzupyeah it's not a problem17:19
uvos__i mean it still kinda is17:19
uvos__what if sphone/conversations crashes17:20
uvos__during the restart you could loose sms17:20
Wizzupconversations restarts17:20
uvos__so?17:20
Wizzupand tp-ring keeps it like I said17:20
uvos__doseent matter17:20
uvos__if the first rung after ofono crashes17:20
WizzupI know you're trying to find flaws in it, but it works, has since n900/fremantle :)17:20
uvos__during restart it could loose messages17:20
uvos__no its plain bad17:20
* Wizzup sighs and goes to do something else17:20
sicelouvos__: solution?17:22
uvos__sicelo: not sure17:23
siceloif whoever fetches message from ofono crashes, then yeah, it seems logically unavoidable that the message will get lost forever.17:24
siceloi guess solution is if ofono stores message until someone has acknowledged collecting it.17:24
sicelobut yeah, this isn't how ofono works currently17:25
uvos__i gues its not a huge problem if whomever collects messages from ofono is somehing small and simple17:25
uvos__but its a bit of a defect17:25
sicelohttps://marc.info/?l=linux-omap&m=172215643028564&w=221:50
siceloWizzup: any idea here? I am not sure I understand :-)21:51
siceloi'm quite sure there's nothing wrong with driver (it's the same driver on Droid 4 btw) ... and mount matrix is documented at https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/iio/mount-matrix.txt#n3121:51
siceloi'll respond, but just want to be sure i'm not mistaken in my understanding perhaps21:52
kivauvos: I readed logs about weeks ago and you said: "i dont think anyone uses the pinephone in a major way besides testing even"...well I use! And for everything last 6 months...even banking and streaming tv-news from local broadcasting company web-site. Ok..I use it with Pinephone Keyboard, without it Leste quite hard to use (virtual keyboard is not23:45
kivashow to OS as keyboard device)...with it Leste is the best OS for it.23:45

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