Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917534 - kde-plasma/plasma-pa-5.27.8-r1 seems to not connect to pipewire
Summary: kde-plasma/plasma-pa-5.27.8-r1 seems to not connect to pipewire
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-17 22:28 UTC by Christophe PEREZ
Modified: 2023-11-30 23:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe PEREZ 2023-11-17 22:28:57 UTC
As explained there https://forums.gentoo.org/viewtopic-p-8807537.html#8807537 on one machine, plasma-pa volume (and mute) sliders have no effect.

It looks like it doesn't communicate at all with pipewire.

I verified all what I could, but can't find any solution and I add no answer on the forum.

Any idea of what I could try else please?
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-26 00:22:36 UTC
* ps faux | grep pipewire please
* emerge --info
* emerge -pvO media-video/pipewire
Comment 2 Christophe PEREZ 2023-11-26 03:02:21 UTC
(In reply to Sam James from comment #1)
> * ps faux | grep pipewire please

# ps faux | grep [p]ipewire
regine    7497  0.0  0.6  77808 11884 ?        S<l  nov.24   0:00                  \_ /usr/bin/pipewire
regine    7500  0.0  0.8  45160 15132 ?        S<l  nov.24   0:00                  \_ /usr/bin/pipewire -c pipewire-pulse.conf


> * emerge --info

Portage 3.0.51 (python 3.11.5-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-13, glibc-2.37-r7, 6.1.57-gentoo x86_64)
=================================================================
System uname: Linux-6.1.57-gentoo-x86_64-Intel-R-_Celeron-R-_CPU_N3350_@_1.10GHz-with-glibc2.37
KiB Mem:     1852004 total,     76884 free
KiB Swap:    2097148 total,   2081496 free
Timestamp of repository gentoo: Sat, 25 Nov 2023 08:45:01 +0000
Head commit of repository gentoo: 193ffcccd8fa0844e9abecd9968dea30e4043715
Timestamp of repository novazur: 0
Head commit of repository novazur: 57b835f8884a3e05c8ca0a1e0bc9d8b8a7010d0e

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p5) 2.40.0
distcc 3.4 x86_64-pc-linux-gnu [enabled]
ccache version 4.8.2 [disabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.11.5::gentoo
dev-lang/rust:             1.71.1::gentoo
dev-util/ccache:           4.8.2::gentoo
dev-util/cmake:            3.26.5-r2::gentoo
dev-util/meson:            1.2.2-r1::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/openrc:           0.48::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           16.0.6::gentoo
sys-devel/gcc:             13.2.1_p20230826::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             16.0.6::gentoo
sys-devel/llvm:            16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://coffee.novazur.fr/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1

novazur
    location: /var/db/repos/novazur
    sync-type: git
    sync-uri: vps1.novazur.fr:/var/git/overlay
    masters: gentoo
    volatile: False

Binary Repositories:

gentoo-distbinn3350
    priority: 10
    sync-uri: rsync://coffee.novazur.fr/gentoo-distbinn3350

Installed sets: @kde, @net_gkrellm
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=goldmont -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/sddm/scripts/Xsetup /usr/share/sddm/scripts/Xstop"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=goldmont -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --keep-going --binpkg-respect-use=y -k --binpkg-changed-deps=n"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=goldmont -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live clean-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles getbinpkg ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=goldmont -O2 -pipe"
GENTOO_MIRRORS="http://mirrors.rit.edu/gentoo/ http://gentoo.netnitco.net http://gentoo.mirrors.pair.com/ http://gentoo.mirrors.tds.net/gentoo"
LANG="fr_FR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="fr fr_FR"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages/n3350_poubelle"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo caps cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr eds elogind encode exif fbcon ffmpeg flac fortran gdbm gif gphoto2 gtk gui iconv icu imlib java jpeg kde kwallet lcms libnotify libsamplerate libtirpc mad matroska mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg openal opengl openmp pam pango pcre pdf pipewire plasma png policykit portaudio pulseaudio qml qt5 readline scanner screencast sdl seccomp sndfile sound speex spell split-usr ssl startup-notification svg test-rust theora tiff truetype udev udisks unicode upower usb v4l vorbis vulkan wayland widgets wifi wxwidgets x264 x265 xattr xcb xcomposite xft xinerama xml xpm xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2021" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="fr fr_FR" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" SANE_BACKENDS="net hp" VIDEO_CARDS="intel i965 iris" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

> * emerge -pvO media-video/pipewire

[ebuild   R    ] media-video/pipewire-0.3.80:0/0.4::gentoo  USE="X bluetooth dbus echo-cancel extra ffmpeg readline sound-server ssl v4l -doc -flatpak -gsettings -gstreamer -ieee1394 -jack-client -jack-sdk -liblc3 -lv2 -modemmanager -pipewire-alsa -roc (-system-service) -systemd -test -zeroconf" ABI_X86="(64) -32 (-x32)" 0 KiB

Total: 1 package (1 reinstall, 1 binary), Size of downloads: 0 KiB
Comment 3 Christophe PEREZ 2023-11-26 03:04:07 UTC
But you should have a look to the link I gave. You would have these infos and a lot of more.
Comment 4 Christophe PEREZ 2023-11-29 23:24:22 UTC
why resolved ? How ?
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-29 23:28:55 UTC
(In reply to Christophe PEREZ from comment #4)
> why resolved ? How ?

(It was closed as NEEDINFO and nobody had reopened it. Relying on external stuff for bugs is not great because of firewalls and it's not very insular.)

Anyway, back to the issue: it's unusual. I'd normally expect this to happen if your other applications were communicating w/ pw over jack or alsa (so nothing was using the pulse server)..
Comment 6 Christophe PEREZ 2023-11-29 23:32:20 UTC
Can I provide any other enlightening information?
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-29 23:55:47 UTC
You could try to diff /etc/portage between the two machines.

Some other random questions which come to mind:
- Do you have apulse installed on either of them?
- Do you have any stale 'alsa' or 'pulse' entries in /etc/portage? (grep -rsin ...)
Comment 8 Christophe PEREZ 2023-11-30 00:14:53 UTC
(In reply to Sam James from comment #7)
> You could try to diff /etc/portage between the two machines.

The machines are still quite different in the rest of the installations. I'll have to handle the diff correctly.

> Some other random questions which come to mind:
> - Do you have apulse installed on either of them?

I had apulse on both, but removed since.

> - Do you have any stale 'alsa' or 'pulse' entries in /etc/portage? (grep
> -rsin ...)

Nothing special in my opinion
# grep -Eri "pulse|alsa|pipewire" /etc/portage/
/etc/portage/make.conf:ALSA_CARDS="hda-intel"
/etc/portage/package.use/sound:media-video/pipewire extra echo-cancel

I think I followed everything on https://wiki.gentoo.org/wiki/PipeWire
I have already tried recompiling libpulse pipewire pulseaudio plasma-pa alsa-utils kpipewire without effect.
I've already spent an awful lot of time finding out what's wrong, and it's because I can't find that I'm here.
Comment 9 Christophe PEREZ 2023-11-30 19:12:01 UTC
The plasma-pa problem is clearly confirmed by the log:
[2023-11-30T14:57:50AST] Starting PipeWire-Pulse.
[W][00157.595796] mod.protocol-pulse | [         reply.c:   54 reply_error()] client 0x555af52b0f40 [Plasma PA]: ERROR command:36 (SET_SINK_VOLUME) tag:46 error:1 (Permission non accordée)
[W][00158.609009] mod.protocol-pulse | [         reply.c:   54 reply_error()] client 0x555af52b0f40 [Plasma PA]: ERROR command:36 (SET_SINK_VOLUME) tag:53 error:1 (Permission non accordée)
[W][00159.243406] mod.protocol-pulse | [         reply.c:   54 reply_error()] client 0x555af52b0f40 [Plasma PA]: ERROR command:36 (SET_SINK_VOLUME) tag:59 error:1 (Permission non accordée)
[W][00160.094588] mod.protocol-pulse | [         reply.c:   54 reply_error()] client 0x555af52b0f40 [Plasma PA]: ERROR command:36 (SET_SINK_VOLUME) tag:65 error:1 (Permission non accordée)
[W][00160.758916] mod.protocol-pulse | [         reply.c:   54 reply_error()] client 0x555af52b0f40 [Plasma PA]: ERROR command:36 (SET_SINK_VOLUME) tag:71 error:1 (Permission non accordée)
[W][00161.489041] mod.protocol-pulse | [         reply.c:   54 reply_error()] client 0x555af52b0f40 [Plasma PA]: ERROR command:36 (SET_SINK_VOLUME) tag:77 error:1 (Permission non accordée)
[W][00162.095710] mod.protocol-pulse | [         reply.c:   54 reply_error()] client 0x555af52b0f40 [Plasma PA]: ERROR command:36 (SET_SINK_VOLUME) tag:83 error:1 (Permission non accordée)

No error in pipewire log:
[2023-11-30T14:57:50AST] Starting PipeWire.

Errors in wireplumber log, but I don't know if this has anything to do with my problem:
[2023-11-30T14:57:51AST] Starting WirePlumber.
M 14:57:51.422855          wp-device ../wireplumber-0.4.14/lib/wp/device.c:619:wp_spa_device_new_from_spa_factory: SPA handle 'api.libcamera.enum.manager' could not be loaded; is it installed?
M 14:57:51.422977   script/libcamera libcamera.lua:173:chunk: PipeWire's libcamera SPA missing or broken. libcamera not supported.
W 14:57:51.777878 m-portal-permissio ../wireplumber-0.4.14/modules/module-portal-permissionstore.c:63:wp_portal_permissionstore_plugin_lookup: <WpPortalPermissionStorePlugin:0x561e982b8ec0> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera
M 14:57:51.823103    wp-pw-obj-mixin ../wireplumber-0.4.14/lib/wp/private/pipewire-object-mixin.c:303:wp_pw_object_mixin_set_param: <WpNode:0x561e98456730> ignoring set_param on already destroyed objects
M 14:57:51.824251    wp-pw-obj-mixin ../wireplumber-0.4.14/lib/wp/private/pipewire-object-mixin.c:303:wp_pw_object_mixin_set_param: <WpNode:0x561e98456730> ignoring set_param on already destroyed objects
M 14:57:51.824871    wp-pw-obj-mixin ../wireplumber-0.4.14/lib/wp/private/pipewire-object-mixin.c:303:wp_pw_object_mixin_set_param: <WpNode:0x561e983d5820> ignoring set_param on already destroyed objects
M 14:57:51.825293    wp-pw-obj-mixin ../wireplumber-0.4.14/lib/wp/private/pipewire-object-mixin.c:303:wp_pw_object_mixin_set_param: <WpNode:0x561e983d5820> ignoring set_param on already destroyed objects
M 14:57:51.845682    m-lua-scripting ../wireplumber-0.4.14/modules/module-lua-scripting/api/api.c:376:object_activate_done: <WpSiAudioAdapter:0x561e985c0ca0> Object activation aborted: proxy destroyed
M 14:57:51.845783 script/create-item create-item.lua:80:chunk: <WpSiAudioAdapter:0x561e985c0ca0> failed to activate item: Object activation aborted: proxy destroyed
W 14:57:51.851964 m-portal-permissio ../wireplumber-0.4.14/modules/module-portal-permissionstore.c:63:wp_portal_permissionstore_plugin_lookup: <WpPortalPermissionStorePlugin:0x561e982b8ec0> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera
Comment 10 Christophe PEREZ 2023-11-30 23:38:30 UTC
I finally found it.

I had to replace:

"tcp:4713"

by

{ address = "tcp:4713"
    client.access = "unrestricted"
}

in /etc/pipewire/pipewire-pulse.conf.d/server_access.conf

I don't understand at all why I had to do that, and I hadn't to do it on the other machine.
I never found anything about this problem on internet.