Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]plasma graphicmixer volume sliders have no effect
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Frautoincnam
Apprentice
Apprentice


Joined: 19 May 2017
Posts: 294

PostPosted: Thu Nov 16, 2023 8:32 pm    Post subject: [solved]plasma graphicmixer volume sliders have no effect Reply with quote

Hi,

I have a machine on which I switched from pure ALSA to pipewire/pulseaudio recently, without any particular problem. Under plasma (x11), the graphic mixer (plasma PA?) gives me access to all the audio outputs, and above all the volume sliders are functional. Everything is pretty much perfect, apart from the use of an equalizer but that's off topic.

On another machine, where I believe I did exactly the same thing, I HAVE sound, but the volume sliders of the plasma graphic mixer are completely inoperative, and I only have the speaker output, and not the HDMI outputs that I see in aplay -l. Be careful, these are 2 different problems. Nothing says that they are linked to the same cause. I obviously first have to solve the problem of volume management by the sliders, and then that of choosing the audio output.

Code:
$ LANG=C aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC255 Analog [ALC255 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


pipewire and wireplumber seem to launch correctly when opening the graphics session.

Code:
$ ps -A | grep -E 'pipewire|wireplumber'
 4974 ?        00:00:01 wireplumber
 4997 ?        00:04:30 pipewire
 5001 ?        00:00:13 pipewire


Code:
$ LANG=C pactl info | grep "Server Name"
Server Name: PulseAudio (on PipeWire 0.3.80)


Code:
$ wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+

works well

Code:
$ pw-cli ls Node
        id 29, type PipeWire:Interface:Node/3
                object.serial = "29"
                factory.id = "10"
                priority.driver = "20000"
                node.name = "Dummy-Driver"
        id 30, type PipeWire:Interface:Node/3
                object.serial = "30"
                factory.id = "10"
                priority.driver = "19000"
                node.name = "Freewheel-Driver"
        id 39, type PipeWire:Interface:Node/3
                object.serial = "39"
                factory.id = "10"
                client.id = "36"
                node.name = "Midi-Bridge"
                media.class = "Midi/Bridge"
        id 43, type PipeWire:Interface:Node/3
                object.serial = "43"
                object.path = "v4l2:/dev/video0"
                factory.id = "10"
                client.id = "36"
                device.id = "40"
                priority.session = "1000"
                node.description = "VGA Webcam (V4L2)"
                node.name = "v4l2_input.pci-0000_00_15.0-usb-0_7_1.0"
                node.nick = "VGA Webcam"
                media.class = "Video/Source"
                media.role = "Camera"
        id 49, type PipeWire:Interface:Node/3
                object.serial = "49"
                object.path = "alsa:pcm:0:front:0:playback"
                factory.id = "18"
                client.id = "36"
                device.id = "42"
                priority.session = "1009"
                priority.driver = "1009"
                node.description = "Audio interne Stéréo analogique"
                node.name = "alsa_output.pci-0000_00_0e.0.analog-stereo"
                node.nick = "ALC255 Analog"
                media.class = "Audio/Sink"
        id 50, type PipeWire:Interface:Node/3
                object.serial = "50"
                object.path = "alsa:pcm:0:front:0:capture"
                factory.id = "18"
                client.id = "36"
                device.id = "42"
                priority.session = "2009"
                priority.driver = "2009"
                node.description = "Audio interne Stéréo analogique"
                node.name = "alsa_input.pci-0000_00_0e.0.analog-stereo"
                node.nick = "ALC255 Analog"
                media.class = "Audio/Source"


Code:
$ pw-metadata -n settings
Found "settings" metadata 31
update: id:0 key:'log.level' value:'2' type:''
update: id:0 key:'clock.rate' value:'48000' type:''
update: id:0 key:'clock.allowed-rates' value:'[ 48000 ]' type:''
update: id:0 key:'clock.quantum' value:'1024' type:''
update: id:0 key:'clock.min-quantum' value:'32' type:''
update: id:0 key:'clock.max-quantum' value:'2048' type:''
update: id:0 key:'clock.force-quantum' value:'0' type:''
update: id:0 key:'clock.force-rate' value:'0' type:''


Code:
$ LANG=C pactl info
Server String: tcp:127.0.0.1:4713
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: no
Client Index: 112
Tile Size: 65472
User Name: regine
Host Name: aspires11
Server Name: PulseAudio (on PipeWire 0.3.80)
Server Version: 15.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_00_0e.0.analog-stereo
Default Source: alsa_input.pci-0000_00_0e.0.analog-stereo
Cookie: c350:78b8


Code:
$ wpctl status
PipeWire 'pipewire-0' [0.3.80, regine@aspires11, cookie:3276830904]
 └─ Clients:
        32. xdg-desktop-portal                  [0.3.80, regine@aspires11, pid:2415]
        33. pipewire                            [0.3.80, regine@aspires11, pid:2586]
        35. WirePlumber                         [0.3.80, regine@aspires11, pid:2573]
        36. WirePlumber [export]                [0.3.80, regine@aspires11, pid:2573]
        52. Plasma PA                           [0.3.80, regine@aspires11, pid:2547]
        56. wpctl                               [0.3.80, regine@aspires11, pid:6381]

Audio
 ├─ Devices:
 │      42. Audio interne                       [alsa]
 │ 
 ├─ Sinks:
 │  *   49. Audio interne Stéréo analogique   [vol: 0.59]
 │ 
 ├─ Sink endpoints:
 │ 
 ├─ Sources:
 │  *   50. Audio interne Stéréo analogique   [vol: 1.00]
 │ 
 ├─ Source endpoints:
 │ 
 └─ Streams:

Video
 ├─ Devices:
 │      40. VGA Webcam                          [v4l2]
 │      41. VGA Webcam                          [v4l2]
 │ 
 ├─ Sinks:
 │ 
 ├─ Sink endpoints:
 │ 
 ├─ Sources:
 │  *   43. VGA Webcam (V4L2)                 
 │ 
 ├─ Source endpoints:
 │ 
 └─ Streams:

Settings
 └─ Default Configured Node Names:


Code:
$ emerge -pv pulseaudio pipewire libpulse plasma-pa
[binary   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
[binary   R    ] media-libs/libpulse-16.1-r2::gentoo  USE="X asyncns dbus glib gtk -doc (-selinux) -systemd -test -valgrind" ABI_X86="(64) -32 (-x32)" 948 KiB
[binary   R    ] media-sound/pulseaudio-16.1::gentoo  USE="bluetooth glib -daemon -jack -ofono-headset" ABI_X86="(64) -32 (-x32)" 0 KiB
[binary   R    ] kde-plasma/plasma-pa-5.27.8-r1:5::gentoo  USE="handbook -debug" 206 KiB


It's like the integration into plasma wasn't correct, that some configuration was missing, but I don't remember doing anything special on the other machine to make it work.

I must have missed something during the migration, but I can't find what.

I use OpenRC

Code:
lsmod | grep snd
snd_hrtimer            16384  1
snd_seq                73728  6
snd_seq_device         16384  1 snd_seq
snd_hda_codec_hdmi     69632  1
snd_ctl_led            24576  0
snd_hda_codec_realtek   155648  1
snd_hda_codec_generic    86016  1 snd_hda_codec_realtek
ledtrig_audio          16384  2 snd_ctl_led,snd_hda_codec_generic
snd_hda_intel          40960  1
snd_intel_dspcfg       16384  1 snd_hda_intel
snd_hda_codec         151552  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_hwdep              16384  1 snd_hda_codec
snd_hda_core           98304  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_pcm               126976  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
snd_timer              36864  3 snd_seq,snd_hrtimer,snd_pcm
snd                    98304  15 snd_ctl_led,snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,
    snd_hda_codec_realtek,snd_timer,snd_pcm
soundcore              16384  2 snd_ctl_led,snd


Code:
$ 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

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

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


Last edited by Frautoincnam on Thu Nov 30, 2023 11:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
Frautoincnam
Apprentice
Apprentice


Joined: 19 May 2017
Posts: 294

PostPosted: Sun Nov 19, 2023 10:08 pm    Post subject: Reply with quote

Is my request lacking in details or, on the contrary, is it too detailed for a specialist (I know there are some since I have seen them intervene in other similar discussions) to look into my problem?
Back to top
View user's profile Send private message
Frautoincnam
Apprentice
Apprentice


Joined: 19 May 2017
Posts: 294

PostPosted: Thu Nov 30, 2023 7:12 pm    Post subject: Reply with quote

The plasma-pa problem is clearly confirmed by the log:
Code:
[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:
Code:
[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:
Code:
[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
Back to top
View user's profile Send private message
Frautoincnam
Apprentice
Apprentice


Joined: 19 May 2017
Posts: 294

PostPosted: Thu Nov 30, 2023 11:39 pm    Post subject: Reply with quote

I finally found it.
I had to replace:
Code:
"tcp:4713"

by
Code:
{ 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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum