libera/#maemo-leste/ Tuesday, 2021-07-06

Wizzuphttps://www.phoronix.com/scan.php?page=news_item&px=X.Org-Server-21.1-21.0.99.1 maybe now is a time to push on some of the bugs we filed00:50
stanwith non-stock battery, one unit reports current, the other gives me c=NA04:09
stanstill gives me power consumed though04:10
Wizzupuvos: ping, I did the thing with the UCM as you suggested08:34
Wizzupbut it just returns less being visible in pa08:35
WizzupI think the playbackpcm stuff doesn't match or so08:35
Wizzupfixed it08:54
Wizzup(the names had to match specifically HDA-Intel, both dirname and the main config08:54
WizzupI had to strace to figure it out)08:55
Wizzupunrelated, but lol: https://github.com/mumble-voip/mumble/issues/106909:02
Wizzuplooks like current PA already has code to cork and paste roles from .desktop files09:03
Wizzupfreemangordon: I guess that properties like these are also assigned/changed dynamically:09:24
Wizzupx-maemo.alsa_sink.mixer_tuning = "HP DAC=0:-6000,38:-4000,42:-3800,46:-3600,50:-3400,54:-3200,58:-3000,62:-2800,66:-2600,70:-2400,74:-2200,78:-2000,86:-1600,90:-1400,94:-1200,98:-1000,102:-800,106:-600,110:-400,114:-200,118:0"09:24
stanexperimenting with PA daemon.conf -- using the 'trivial' resampler didn't reduce cpu use.09:24
uvosWizzup: oh jeah the profile needs to be for the card you have ofc. this is checked by the alsa name09:34
uvoslooks like cork + stream restore + ucm gets us pretty far09:35
Wizzupnot that far I thrink09:36
WizzupI need a break, was woken up too early09:36
uvosok09:36
Wizzupbut yeah, I have a semi working ucm09:36
Wizzup(it only lists "Make a phone call" and "Off", not the hifi equiv)09:36
uvoshmm09:36
Wizzupdo you have a leste vm? and do you use qemu?09:37
uvosyeah09:37
Wizzupij09:37
Wizzupok*09:38
Wizzupso I can share some configs eventually09:38
uvosthere probubly is no CapturePCM "hw:${CardId},1"09:38
uvosarecord -l?09:38
Wizzupright yeah, I didn't add a capture device09:40
Wizzupoh, that's why HiFI doesn't work? likelyu09:41
uvosyeah the profile just fails if the card isent available09:41
uvosyou need to remove all the capture stuff09:41
Wizzupor figure out how to add capture to qemu09:42
uvossure09:42
Wizzupprobably too much work09:43
Wizzupbrb09:43
freemangordonWizzup: not really "changed", rather "provided to volume control based on the current sink"10:14
freemangordonIIUC10:14
Wizzupfreemangordon: hm ok12:25
Wizzupuvos: just to confirm, yes, removing the capture stuff from the UCM worked12:57
uvosgreat13:02
WizzupI'm going to try to get a sink list similar to fremantle13:03
Wizzupe.g. load the null sink, but also this kind of stuff:13:03
Wizzup.ifexists module-policy-enforcement.so13:03
Wizzupload-module module-policy-enforcement null_sink_name=sink.null13:03
Wizzup.endif13:03
Wizzupmy fremantle has 7 sinks, at least last I ran pactl info13:04
WizzupI wonder if we can get jusa (from sfos/nemo/mer) to discuss it some with us13:16
Wizzupbtw https://github.com/nemomobile/pulseaudio-module-cmtspeech-n9xx/commit/0a1db966f67550c3334dd6126fee57ef90ec942513:26
Wizzup:-)13:26
Wizzuphttps://github.com/nemomobile/pulseaudio-settings-n900/blob/master/etc/pulse/arm_nokia_rx_51_board.pa13:27
Wizzupuvos: do you think we should turn this into ucm? https://github.com/nemomobile/pulseaudio-settings-n900/tree/master/usr/share/pulseaudio/alsa-mixer13:29
Wizzupmaybe I should just take this as-is for now13:30
Wizzupget it to work, and then look at ucm and how to change the policy enforcement for it13:30
Wizzupfreemangordon: looks like volumes are here https://github.com/nemomobile/pulseaudio-settings-n900/tree/master/var/lib/pulse-nokia/algs/mainvolume13:30
freemangordonyes13:31
WizzupI fear some of this may need work, since it's PA 4 and nemo is now at PA 12 and they didn't update it13:31
Wizzupwe'll see..13:31
Wizzupfreemangordon: parazyd: any clue what provides pulsecore?13:50
WizzupIt looks like debian doesn't have a package for it13:50
Wizzuplibpulsecore is part of pulseaudio pkg13:50
Wizzupbut there is no pulsecore.pc or something13:50
Wizzupprobably debian didn't package it or something13:53
Wizzup...13:53
Wizzupyes every pulse module they list in debian is part of the pulseaudio source package :(13:54
parazydWizzup: There's libpulse-dev which should provide libpulse.pc14:05
parazydThen all the libs will be available14:05
parazydJust append -lpulsecore14:05
Wizzupthat is not pulsecore though14:23
Wizzupwhat about the include files?14:23
Wizzupthere's a lot of pulsecore include files14:23
Wizzupmaybe it's a fedora (or w/e sfos uses) vs debian thing14:23
Wizzupok, looks like the nemo stuff wants pulseaudio 1415:33
Wizzupbullseye has 14 - wonder if we can get it15:33
WizzupI could also try to use older nemo code..15:34
Wizzupactually, hang on, I think I mostly got an older tag to compile15:35
Wizzupyeah, tag 12.2.30 (latest 12.2) tag compiled finally15:46
Wizzupsudo dpkg -i ../pulseaudio-modules-nemo_12.2.30_amd64.deb ../libmeego-common-dev_12.2.30_amd64.deb17:10
Wizzup:)17:10
bencohlibmeego? uh17:10
Wizzupyeah, it's what the pa common stuff is called17:11
lelMerlijnWajer created a repository: https://github.com/maemo-leste/pulseaudio-modules-nemo17:18
bencohhmm ... do you guys use ${shlibs:Depends} when packaging? the recursive deps thing seems pretty silly to me :(18:29
parazydYeah you should always use that18:30
parazydAlso ${misc:Depends}18:30
bencohseriously? :(18:30
parazydWhat's the problem?18:30
bencohI am not sure whether it really links against all those libs at compile time, or if it just resolves recursively18:31
bencohif the former, then everything is fine18:31
parazydIt generates package dependencies18:31
parazydMeaning, the deps will be equivalent to what your binary is linked to18:32
bencohif the latter, then it means that changing a direct dependency would force us to rebuild the end-of-the-chain (consumer) package just to update its dependencies18:32
WizzupI think debian should do the right thing here18:32
bencohWizzup: which is?18:32
WizzupI don't think it recurses everything18:33
Wizzupyou can also see what it resolves too by opening the .deb file I think18:33
bencohalright18:33
parazydYeah they'll be listed in the .deb, in the control file18:33
bencohaccording to readelf, the .so really includes all those deps18:34
bencohso ... alright then18:34
uvosoh btw can you suppess the unresolved symbol warings that this creates?18:34
uvosmce generates a huge amount of those18:34
uvosbecause of all the pluginns18:34
bencohI do get this at build time: http://pastebin.notk.org/pastebin.php?show=m561eaa4418:34
bencohapparently I'm not the only one thinking that something is silly with that link18:35
uvosWizzup: freemangordon: would have some time to talk about the mce pr rn18:36
uvosif you like18:36
parazydbencoh: -Wl,--as-needed in ldflags18:37
bencohparazyd: I have the feeling --as-needed is one of the last things I'd like to enforce by myself when building packages18:37
bencohconsidering how it changes linker behavior18:38
bencoh(and dependency order requirements)18:38
Wizzupuvos: I don't have time right now, meetings, can we pick another day this week maybe, or later tonight for me18:39
uvosWizzup: ok18:39
uvosso it gernerates a huge amount of dpkg-shlibdeps: warning: debian/mce/usr/lib/mce/modules/libinactivity-inhibit.so contains an unresolvable reference to symbol dbus_send_message: it's probably a plugin18:40
uvoswould be nice if you could specify that "yes this i a plugin" for eatch module somehow18:41
Wizzuphttps://man7.org/linux/man-pages/man1/dpkg-shlibdeps.1.html18:47
Wizzup       /usr/local/etc/dpkg/shlibs.override18:47
Wizzup              Per-system overriding shared library dependency18:47
Wizzup              information.18:47
Wizzup?18:47
Wizzupnot sure what you can override18:47
Wizzupuvos: the man page says18:52
WizzupIf the binary is really a plugin, then disregard this warning. But there's always the possibility that it's a real library and that programs linking to it are using an RPATH so that the dynamic loader finds it. In that case, the library is broken and needs to be fixed.18:52
Wizzupyou could set --warnings to anything but binary18:53
Wizzupalthough, maybe that's not the name for the warning,weird18:53
Wizzuphm. looks like it cannot silence those18:53
parazydI wouldn't worry about it18:55
uvosits not a problem18:55
uvosist just ulgy that the build throws literaly 100s of warnings18:56
Wizzupyup18:56
lelMerlijnWajer edited a repository: https://github.com/maemo-leste/pulseaudio-modules-nemo19:00
Wizzupnot sure how I edited it, but ok19:00
parazydbranch changed from master to leste :p19:01
bencohautotools' distcheck doesn't play nice with plugindir :(19:02
Wizzupparazyd: oh, I see19:03
lelMerlijnWajer created a repository: https://github.com/maemo-leste/pulseaudio-module-cmtspeech-n9xx20:54
lelMerlijnWajer created a repository: https://github.com/maemo-leste/pulseaudio-policy-enforcement20:54
tmlinduvos: sounds like there are both secure (hs) and general purpose (ns) versions of the hardware available for some tablets21:01
uvostmlind: interesting21:28
uvosthose files are in mz615 files21:28
uvosaka euro xyboard 10 inch21:28
uvosso there are effectivly unlocked devices out there21:29
uvoshmm21:29
tmlindyeah so it seems21:35
tmlinduvos: so you suspect the allow-mbmloader-flashing-mbm.bin is actually packed into motoboot.bin?21:35
uvoswell can you flash mbmloader.bin on your device with stock mbm?21:36
uvosif no it must be somewhere21:36
uvosbecause the updates contain updates to mbmloader21:36
uvosits in the sbf files for xoom 2 for sure21:36
uvosthere are forum potst about this21:37
uvossome guy extraced the sbf and posted it21:37
uvosbut the upload long gone21:37
tmlinduvos: hmm so what is sbf?21:37
uvosand i cant find a copy of that extract or the sbf21:37
uvostmlind: sbf is a packed image format moto used with the windows flashing tool21:38
tmlinduvos: ok, never used that21:38
uvosit was for internal use only afaik, sbf files got leaked for some devices only21:38
tmlindok21:38
tmlindso doing strings on motoboot.bin shows mbm and mbmloader21:39
uvosif you load it in a hex editor21:39
uvosyou will find lots of partion names21:39
uvosso yeah21:39
uvosidk21:39
uvoswhat it is21:39
tmlindi guess i'll try to extract it at some point and see what happens21:39
uvoswell can you flash mbmloader.bin on your device with stock mbm? <-- so what about this21:40
uvosjust reflashing the same mbmloader.bin should be safe to try21:40
tmlinduvos: yeah ok i'll try next time i play with it21:41
uvosok21:41
uvosif that works the probubly just changed from having a permissive mbm for updates and a normal mbm to just one slightly more permisive mbm21:41
uvosfor updates21:41
uvoswith the sbf containg the other build21:42
uvosthat would be bad for us21:42
tmlindyeah that would suck21:43
uvosWizzup: btw the tegra 2 soc used on the xoom dose have pcie21:47
uvosWizzup: so maybe the wirgly 4g lcm 2.0 lte card IS pcie21:48
uvostmlind: happen to have one of those? ^^^21:48
tmlinduvos: no, don't have one, and it's not pcie, just pcie connector21:50
uvosok21:50
Wizzupyeah, I think it does usb21:52
uvosyeah that was the most likely thing. tmlind have any info on it?21:52
tmlindyeah somebody tried plugging one to a laptop, it prevents it from booting, did not fry anything21:55
uvosheh thats brave21:55
Wizzuphm, do you know how it prevented it (assuming it's not some laptop blacklist)21:55
Wizzupthe modem I have/had in my x230 was also mini-pcie but just did usb afaict21:55
uvosWizzup: squinting at this21:56
tmlindno idea, but it's not a pcie card so anything can happen21:56
uvoshttps://www.ifixit.com/Teardown/Motorola+Xoom+Teardown/498921:56
uvosreviels its not pcie21:56
uvosas the blank has no chips21:56
uvosbut still is connected to the antenna somehow21:56
uvosso the wifi chip must be driving the ant though the connector or something21:56
uvoshmm21:56
tmlindheh that's a dummy card, the real one was not ready in time or something21:57
uvosyeah i know21:57
uvosor maybe they just dident want the lte antenna leeds to be loose21:57
Wizzupbtw, pulseaudio-modules-nemo, pulseaudio-policy-enforcement, both built fine21:57
Wizzuppulseaudio-module-cmtspeech-n9xx required porting to newer PA api but it was trivial and also builds21:57
* tmlind unplugs from computer21:58
Wizzupttyl21:58
sicelonice to hear (about porting pa) -- so with some luck, it should be possible to get Nemo-grade voice calls on N900 too21:58
Wizzupor perhaps better :)22:00
parazyd^_^22:01
lelMerlijnWajer edited a repository: https://github.com/maemo-leste/pulseaudio-policy-enforcement22:16
Wizzupok, now we need pulseaudio forked to get a pulsecore pkg22:18
parazydWizzup: Could it work by just providing headers and a .pc file in that repo?22:20
uvosthats slightly ugly22:21
uvoswe could have a seperate package with just those22:22
uvosthat would be more stomacheable22:22
Wizzupparazyd: yes, but it's a hack22:23
Wizzupof course, us forking pulse is also a hack22:23
uvosWizzup:  did you petition debian/devuan to stop being silly with with the headers?22:23
Wizzupno, not yet22:23
Wizzupit's only been like 6 hours :p22:23
uvosim just asking :P22:24
Wizzupit looks like debian, maybe even upstream, doesn't ship pulsecore.pc22:24
Wizzupso maybe it comes from sfos people22:24
uvosoh ok22:24
uvosthen its different story22:24
Wizzupbut there is also no way to get the headers + libs on debian22:24
uvoslet me search arch22:24
uvoswhat do you need exacly?22:25
Wizzuplet me pm22:25
uvospulsecore.pc and what header22:25
Wizzuphttps://paste.villavu.com/raw/3rN0qBUYtmovt1Mk2zMbG5R7eGzulX6KkhNCQ8c5/22:25
Wizzup+ made my own pulsecore.pc22:26
Wizzup(so the cp of libpulse.pc is not enough, of course, I modified it)22:26
uvosok22:27
uvoscan you list one header in /usr/include/pulsecore/ (just any) id like to check where these come from22:27
uvossee if its in the repo22:28
Wizzup/usr/include/pulsecore/mutex.h22:28
Wizzuphttps://gitlab.freedesktop.org/pulseaudio/pulseaudio master doesn't have pulsecore.pc either22:29
Wizzupmaybe I should ask jusa22:29
uvosok arch dosent have that file either22:29
uvosso yeah22:29
uvosits froms somwhere else22:29
uvos*from22:29
Wizzupwhat file specifically?22:30
uvosany thing that contains "pulsecore/mutex.h"22:30
Wizzuphere are the headers https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/tree/master/src/pulsecore22:30
uvosany package that is22:30
Wizzupmeson lists them as libpulsecommon_headers22:31
Wizzuphttps://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/blob/master/src/meson.build#L7122:31
Wizzupsid doesn't package them still: https://packages.debian.org/sid/amd64/libpulse-dev/filelist22:32
uvossince this is something that is across distros22:32
uvosi suspect the pulse build system just dosent install these files22:32
Wizzuphttps://github.com/sailfishos/pulseaudio/blob/master/rpm/pulseaudio.spec#L27022:33
bencohWizzup: I guess I should push wifi-switcher to a github repo, or is a private (non-github) repo fine?22:33
uvosWizzup: hmm ok22:34
uvosstrange then22:34
Wizzuphttps://github.com/sailfishos/pulseaudio/commit/0f0e393e8f4aecf81b5bb0473a97cc2f1f28a76122:34
Wizzupsee msg22:34
Wizzupbencoh: you can request one at maemo-leste-extras maybe22:34
uvosah ok22:35
bencohWizzup: hmm, alright22:35
uvosWizzup: no point petitioning debian then22:35
Wizzupbencoh: https://github.com/maemo-leste-extras/bugtracker22:35
bencohoh and ... looks like dpkg-buildpackage includes .git in the source package ...22:35
Wizzupuvos: yeah, lame though22:35
bencohI'd have thought it wouldn't, in 2021 :/22:35
Wizzupbencoh: that's weird, it doesn't for me22:35
WizzupI think?22:36
bencohdo you use dpkg-buildpackage or git-buildpackage?22:36
bencohoh and, maybe I missed something that should go in debian/whatever22:36
WizzupI use dpkg-buildpackage22:37
bencohuh ...22:43
Wizzupuvos: parazyd: I suppose I could make a package that uses the pulse source, and just installs the headers and the pc file (from sfos), if we don't want to re-build/pkg pulse22:46
Wizzupannoying how we have to keep track of more and more :-D22:46
bencoh:]22:48
parazydIf you wanna go a bit weird22:48
parazydYou can apt-get source from the build22:48
parazydSo you pull in the actual corresponding source code from Devuan22:48
parazydjust lmk if you decide to do this, as I need to whitelist it for network in Jenkins22:49
Wizzupprobably better not22:49
bencohWizzup: do you use -i and/or -I ?22:49
Wizzupbencoh: dpkg-buildpackage -b -uc22:49
Wizzupthat's what I use22:49
bencohhmm22:49
Wizzupso I guess I don't usually generate src pkgs22:49
bencohah, right22:49
Wizzupbut our CI should not create a source pkg with git in it22:49
bencohalright22:49
bencohthen everything's fine22:50
bencoh(maybe)22:50
bencohanyway, time to push that to some server and call it a day (somehow)22:50
bencohor not ... I just realized we have a workflow guidelines ... time to read that22:52
Wizzupit should be real simple :)22:52
Wizzup(and if not, let us know)22:52

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