libera/#maemo-leste/ Thursday, 2023-11-30

tmlindok got the mz608, it was on some old v2.6 kernel.. decided to try to flash it with mz609 kernel with some xda instructions (roughly backup cid, clear cid, flash mz609, don't restore cid) and it boots with some warnings06:50
tmlindflashed kexecboot, installed linux, turns out the lcd works with the same timings as mz617, it just has smaller physical dimensions :)06:51
tmlindhoping to send out some more mainline lcd patches at some point over the weekend06:52
tmlindsounds like mz615 can also be flashed in a similar way using mz617 firmware, i should have an mz615 in a box somewhere06:53
tmlindoh and no memtester errors on the mz608 unlike my mz609 had, so it for sure has bad memory06:54
Wizzuptmlind: cool @ timings!10:34
WizzupI have mzmz615,mz616,mz617 and mz608 here too if helpful10:35
arno11uvos: sorry, i forgot to tell you that landscape view fix in sphone doesn't work: boolean 'False' doesn't work (i don't understand why), it must be replace by 'false'. this way it works.11:27
arno11and avoid confusion if the user set boolean to 'true' (True doesn't work)11:31
arno11(and in fact 'False' is 'working' because it is not recognized as a valid option)11:34
siceloarno, so maybe we should just update the config file to use false/true?11:52
arno11sicelo: yes i think so (and set LandscapeCalls to true)12:27
arno11i tried calls from a fresh install: good news, it works OOTB with a proper pulse/daemon.conf file12:46
arno11bad news: it is too slow to take incoming calls12:46
arno11tweaking priorities and blocking 125MHz freq is not enough12:47
arno11the key is transitions.ini file12:48
arno11anyway we are closed to OOTB calls12:49
arno11(and SIP calls are ok with the modified daemon.conf file)12:50
freemangordonumm, what does it mean "too slow to take..."12:51
freemangordondoes it mean that UI does not appear fast enough?12:52
arno11exactly, i mean the device is too slow to open sphone dialer (with PA running at 100% at the same time)12:53
arno11OTOH, no troubles in 16bpp + modified transitions12:53
arno11it really means that's a performance issue12:54
arno11and to make thing more complicated, apt-worker + auto wifi search make n900 unusable every 5 min lol12:57
arno11To be positive, that' s just many basic things that cause troubles on N900 OOTB12:59
arno11(when i say OOTB, i mean OOTB + -devel upgrade)13:02
arno11freemangordon: PA running in user mode should help13:08
freemangordonyeah, but I lack the knowledge to do it13:25
WizzupI think we just don't start pa in system mode and don't set the env vars if any14:07
Wizzupand then it should autospawn, no?14:07
freemangordonhmm, lemme try on my d416:02
freemangordonWizzup: does not seem to run properly16:19
freemangordonthere is start-pulseaudio-x11, but no idea who is supposed to run it16:21
freemangordon/etc/xdg/autostart/pulseaudio.desktop it is16:25
freemangordonbut seems h-d ignores it16:25
uvos__on systemd systems systemd starts it16:26
freemangordonstarts what? /etc/xdg/autostart/pulseaudio.desktop16:27
uvos__on session creation systemd forks itself, setuids itself to the user in question, and executes an entire init process, with its own services and runlevels16:27
uvos__it runs the pulsaudio binary16:27
freemangordonI think it is desktop env that shall start .desktop files, no?16:27
uvos__[Service]16:27
uvos__LockPersonality=yes16:27
uvos__MemoryDenyWriteExecute=yes16:28
uvos__NoNewPrivileges=yes16:28
uvos__RestrictNamespaces=yes16:28
freemangordonno, no16:28
uvos__SystemCallArchitectures=native16:28
uvos__SystemCallFilter=@system-service16:28
uvos__Type=simple16:28
uvos__ExecStart=/usr/bin/pipewire16:28
uvos__Restart=on-failure16:28
uvos__Slice=session.slice16:28
uvos__[Install]16:28
uvos__Also=pipewire.socket16:28
uvos__WantedBy=default.target16:28
uvos__heres the unit16:28
freemangordonthis is piperwire :)16:28
uvos__its for pipewire16:28
uvos__but the pa one is the same16:28
freemangordonno16:28
uvos__i know pa is the same16:28
freemangordonit is not16:28
freemangordonsec, lemme explain16:28
freemangordonthere is /etc/init.d/pulseaudio-enable-autospawn16:29
freemangordonthat enables pa autospawn16:29
freemangordonand DE is supposed to run /etc/xdg/autostart/pulseaudio.desktop, which calls start-pulseaudio-x1116:29
freemangordonsystemd has nothing to do here16:29
freemangordonbut seems our DE ignores /etc/xdg/autostart16:30
uvos__init.d dosent even exist on a systemd system16:30
uvos__yes pa is started the same way16:30
freemangordonright, but exists on our16:30
uvos__this is maybe how it worked in sysv16:30
freemangordonmhm16:30
freemangordonthere is even a man page for start-pulseaudio-x1116:31
uvos__the systemd way is imo vatly supierior16:31
freemangordonanyway16:31
freemangordoncould be16:31
uvos__since there is a real dependancy system involved, and is agnostic of what the desktop is or if there is even one16:31
uvos__ie in console only sessions16:31
freemangordonstill, I guess I shall modify maemo-audio to call start-pulseaudio-x11 from xsession file16:32
freemangordonunless you have a better idea16:32
uvos__sure no we have no real session level init so xsession it is16:32
freemangordonok16:33
arno11if it can help: without init.d/pulseaudio script, PA doesn't try to start and no error messages on boot17:18
arno11if i run the script on boot without --system, it tries to start but complains about the use of root and the lack of DISPLAY env var17:20
sicelofreemangordon: start-pulseaudio-x11 is indeed the correct way to do this. i use exactly the same on pmOS, which is also openrc17:21
freemangordonsicelo: for soe reason it does not work properly17:22
freemangordon*some17:22
freemangordonoh, it did17:23
freemangordonI had to make xorg startup script depend on pulseaudio-enable-autospawn17:23
arno11and ? it works ?17:24
freemangordonyes17:24
arno11woohoo17:24
arno11freemangordon: plz, give me more details to be able to test :P17:27
freemangordonwait17:28
freemangordonarno11: clone and build https://github.com/maemo-leste/maemo-audio17:32
arno11ok thx17:32
freemangordonarno11: also, you have to add dependency to pulseaudio-enable-autospawn in /etc/init.d/xorg17:33
freemangordonI will fix that properly, but not now17:34
arno11ok17:34
freemangordonsystem sounds does not seem to work17:37
freemangordonoh, wait17:38
arno11ah probably need to modify some stuff in PA config17:38
freemangordonno idea17:40
arno11(currently building)17:44
freemangordonguys, are system sounds supposed to work?17:45
arno11check if there are deactivated in settings maybe17:46
freemangordonalready did :)17:46
arno11ok (build ok and dependency added)17:47
arno11(installing and rebooting)17:47
arno11ah during installation it says 'the user user is already a member of pulse-acces' so if sound is not working we know where to look at17:50
arno11(rebooting)17:51
freemangordonok, it works fine17:51
freemangordonit was that I started PA from ssh session17:52
freemangordonafter proper reboot it is ok17:52
arno11cool :)17:53
arno11let's try17:53
freemangordonon d4 seems PA is using 2-3% less17:53
arno11ok probably much impressive on N900 lol17:54
freemangordonwhich is about 30%-40% decrease17:54
arno11ok17:54
arno11(h-d loading...)17:55
arno11wooo about the same on N900 :)17:58
arno11let's try a call...17:58
freemangordonunless resampling is done with NEON, I doubt there will be much diff17:59
arno11arghh seems cmtspeech crashed on startup18:00
freemangordonwhat is "cmtspeech"?18:00
freemangordonlike, is that some kind of process?18:01
arno11it is a kernel module18:01
arno11i don't understand what's going on18:02
arno11let me few min18:02
freemangordonah, kernel oops that is then :)18:02
arno11rebooting...18:04
arno11it will be ok18:04
arno11still loading lol18:08
sicelocmtspeech? not cmt_pulse?18:10
arno11cmtspeech and now after rebooting ofono crashed18:11
arno11ah seems cmtspeech can't communicate with PA18:14
siceloyou set the permissions as shown before?18:14
arno11sicelo: weird maybe i'm in the wrong group ?18:14
arno11sorry didn't see your message18:15
sicelothe group in udev rule is wrong18:18
arno11ah18:19
arno11plz details :)18:19
sicelowhat's the group in udev rule?18:22
arno11let me check18:23
sicelo just check which group owns cmtspeech18:24
* sicelo is at a meeting18:25
arno11sorry i was looking in the wrong path lol18:26
arno11ok so indeed that's wrong18:27
arno11owner root and group pulse-access18:27
siceloso it should be just pulse, not pulse access18:29
arno11yep ok (it will be a bit long to check, ofono crashed again...)18:30
arno11and owner: user ? or root ?18:30
siceloroot18:30
arno11ah ok18:30
arno11let's go, need at least 8 min18:31
sicelowhy's ofono crashing?18:31
arno11freemangordon: btw i tried audio and video and it is really better in user mode :)18:32
arno11sicelo: it happens sometime if something is wrong with cmt_pulse18:33
sicelook18:34
arno11still not working18:45
freemangordonarno11: what is better? cpu usage? or?18:49
arno11yes cpu usage and PA is really working better in background18:49
arno11ATM everything is fine with a real improvement18:51
arno11non working calls are half a surprise18:52
arno11i'll have time this weekend to check18:52
freemangordonok, I'll push the changes to -devel repo later on18:55
arno11ok cool and many thx18:56
arno11bbl18:58
uvos__arno11: ofono crashing when cmtspeach is missing isent great, it really should just work in data only mode instead19:03
uvos__freemangordon: thats quite a bit @ perf advantage of pa using shm, i dident expect it to be that mutch19:04
freemangordonuvos__: how much? the values I reported?19:09
freemangordonkeep in mind I took those from top, so not really precise19:10
freemangordonI didn't perform any extensive testing19:10
uvos__sure but i wasent expecting it to be super mesurabe without real benchmarking19:19
arno11it works now, as user:pulse-access in dev rules and running cmt_pulse with no root19:23
arno11but result is similar to system mode19:24
arno11high cpu usage19:24
arno11but for audio and video it is really better on N900. need to check with a fresh install19:26
sicelooh great  @ no root cmt_pulse19:27
arno11yes :)19:28
arno11in fact it works better because i didn't use chrt and renice19:28
arno11sicelo: the weird thing is that it didn't work when adding user:pulse-access in dev rules...19:30
arno11using chown, it works19:31
sicelowait ... you set user:pulse-access?19:31
Wizzupyou need to reload udev db19:31
Wizzupand/or re-login19:31
siceloyou should have root:pulse-access (or more likely, root:pulse)19:32
arno11it didn't work after reboot19:32
sicelouser is in that group, so it should be able to control the device19:32
arno11pulse group doesn't exist19:33
sicelook. pulse-access then :-)19:33
arno11yep19:33
sicelobut root:pulse-access,not user:pulse-access19:34
arno11root:pulse-access doesn't work19:34
arno11only user19:34
sicelosounds weird to me. anyway I'll also play with it when I'm finally free19:35
arno11actually udev looks like that: mode 0660 (maybe wrong), owner user and group pulse-access19:35
arno11and doesn't work, only working with chown command: sudo chown user:pulse-access /dev/cmt_speech19:37
arno11every other possiblities causes cmt_pulse or ofono errors19:39
sicelowhat does `id` return for user user?19:41
arno11which part do you want to check ?19:42
sicelojust run id and ahare the output19:42
sicelo*share19:43
arno11uid=1000(user) gid=1000(user) groups=1000(user),27(sudo),29(audio),44(video),102(netdev),111(pulse-access)19:44
sicelook. root:pulse-access should work then if the permissions on cmtspeech are 66019:49
arno11ok let's try19:52
siceloplease show output of ls -l /dev/cmtspeech19:53
arno11the command returns no such file20:03
arno11and after reboot root:pulse-access still doesn't work20:03
arno11and works with chown command20:04
arno11but still with user:pulse-access20:04
freemangordonok, so, shall I push to -devel?20:05
freemangordonWizzup: ^^^20:05
Wizzupfreemangordon: feel free20:06
Wizzup(work mtg atm)20:06
freemangordonok20:06
arno11freemangordon: troubles are just with calls, everything else seems to work20:06
freemangordonbut this is not working either ways, no?20:07
freemangordonor it is WIP?20:07
freemangordonarno11: like, shall we push it to -devel, despite it is breaking the calls?20:08
freemangordon(on n900)20:08
arno11sure20:08
freemangordonok20:08
arno11it works20:08
arno11just a problem with permissions20:08
arno11with cmtspeech20:08
arno11(currently checking sip calls)20:09
arno11sip, audio , video are ok20:14
freemangordonso, no there is no need to increase the prio?20:14
freemangordon*now20:14
sicelosomeone should also test how calls on d4 are affected, if any. of course i don't expect problems there20:17
* freemangordon is testing20:18
freemangordonno issues20:19
arno11sicelo: seems only affecting cmt_speech20:20
arno11cool20:20
Wizzuparno11: does cmt_speech still run as a different user for you?20:34
freemangordonuvos__: https://pastebin.com/yCwpGW8M20:36
uvos__hmm what20:39
uvos__ill look in to it20:39
arno11Wizzup: sorry, wdym exactly ?20:50
siceloarno11: i've just got home. will shortly boot my leste N900 and also have a look at the weird permissions problem. i don't have it under pmOS, so I'm really surprised20:52
arno11sicelo: ok20:57
Wizzuparno11: does it run as 'user' ?20:58
arno11Wizzup: yes it works well as user20:59
arno11brb20:59
arno11Wizzup: sorry i forgot: works as user but only using chown command21:38
arno11no way to get it working through udev on my device21:38
arno11btw sip calls are now awesome with twinkle :)21:40
arno11sicelo: you should try it ! :)21:41
Wizzupok21:45
Wizzupgreat21:45
sicelommm, on my device, i have /lib/udev/rules.d/10-nokia-modem.rules and 10-nokia-modem.rules.leste21:45
siceloarno11: re - twinkle, i will ... but i don't really have that many people i can call via sip :-)21:47
arno11(me too) indeed, that's a problem :)21:51
arno11and for udev, i've got the 2 modem rules as well21:52
arno11(i've used the .leste one btw)21:57
arno11freemangordon: sorry, didn't see your quest about prio: no need anymore on my config, not sure with no tweaks, i'll try tomorrow22:01
arno11from a fresh install22:02
siceloarno11: Wizzup: the group to be set in that udev rule is `audio`22:29
siceloso /dev/cmt_speech gets owned by root:audio22:30
arno11ah ok cool (i tried but with user...)22:32
arno11thx22:33
arno11so it seems/means we have Leste working perfectly with no PA system mode :)22:44

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