Audio problem when changing volume

When I change the volume from the desktop panel:

1: the current playing sound goes in a loop and replays the last 1-2 seconds of audio
2: the desktop freezes

After about 5 sec. everything is normal. I’m not sure if the developers created it this way.

It is not a laptop, no bluetooth, just a normal PC with build in audio and speakers attached to that.

Operating System: Fedora Linux 43
KDE Plasma Version: 6.6.3
KDE Frameworks Version: 6.24.0
Qt Version: 6.10.3
Kernel Version: 6.19.11-200.fc43.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-7700K CPU @ 4.20GHz
Memory: 16 GiB of RAM (15.6 GiB usable)
Graphics Processor: Quadro RTX 4000
wireplumber
Compiled with libwireplumber 0.5.14
Linked with libwireplumber 0.5.14

Did a

sudo dnf swap pipewire-pulseaudio pulseaudio

But that didn´t help.

Did a sudo dnf install pulseaudio and it gave


Updating and loading repositories:
Repositories loaded.
Package                                                                    Arch             Version                                                                    Repository                                     Size
Installing:
 pulseaudio                                                                x86_64           17.0-9.fc43                                                                updates                                     3.6 MiB

Transaction Summary:
 Installing:         1 package

Total size of inbound packages is 998 KiB. Need to download 998 KiB.
After this operation, 4 MiB extra will be used (install 4 MiB, remove 0 B).
Is this ok [y/N]: y
[1/1] pulseaudio-0:17.0-9.fc43.x86_64                                                                                                                                             100% |   1.2 MiB/s | 998.5 KiB |  00m01s
>>> Status code: 503 for http://mirror.slu.cz/fedora/linux/updates/43/Everything/x86_64/Packages/p/pulseaudio-17.0-9.fc43.x86_64.rpm (IP: 193.84.206.135) - http://mirror.slu.cz/fedora/linux/updates/43/Everything/x86_64
>>> Status code: 503 for https://mirror.slu.cz/fedora/linux/updates/43/Everything/x86_64/Packages/p/pulseaudio-17.0-9.fc43.x86_64.rpm (IP: 193.84.206.135) - https://mirror.slu.cz/fedora/linux/updates/43/Everything/x86_
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[1/1] Total                                                                                                                                                                       100% | 669.2 KiB/s | 998.5 KiB |  00m01s
Running transaction
[1/3] Verify package files                                                                                                                                                        100% | 125.0   B/s |   1.0   B |  00m00s
[2/3] Prepare transaction                                                                                                                                                         100% |   2.0   B/s |   1.0   B |  00m00s
[3/3] Installing pulseaudio-0:17.0-9.fc43.x86_64                                                                                                                                  100% |   3.9 MiB/s |   3.6 MiB |  00m01s
>>> Running %post scriptlet: pulseaudio-0:17.0-9.fc43.x86_64                                                                                                                                                              
>>> Finished %post scriptlet: pulseaudio-0:17.0-9.fc43.x86_64                                                                                                                                                             
>>> Scriptlet output:                                                                                                                                                                                                     
>>> Created symlink '/etc/systemd/user/sockets.target.wants/pulseaudio.socket' → '/usr/lib/systemd/user/pulseaudio.socket'.                                                                                               
>>>

Did a
sudo dnf install -y pipewire pipewire-pulseaudio pipewire-alsa wireplumber --allowerasing

Updating and loading repositories:
Repositories loaded.
Package "pipewire-1.4.11-1.fc43.x86_64" is already installed.
Package "pipewire-alsa-1.4.11-1.fc43.x86_64" is already installed.
Package "wireplumber-0.5.14-1.fc43.x86_64" is already installed.

Package                                              Arch         Version                                               Repository                        Size
Removing dependent packages:
 pulseaudio                                          x86_64       17.0-9.fc43                                           updates                        3.6 MiB
Installing:
 pipewire-pulseaudio                                 x86_64       1.4.11-1.fc43                                         updates                      436.2 KiB

Transaction Summary:
 Installing:         1 package
 Removing:           1 package

Total size of inbound packages is 210 KiB. Need to download 210 KiB.
After this operation, 3 MiB will be freed (install 436 KiB, remove 4 MiB).
[1/1] pipewire-pulseaudio-0:1.4.11-1.fc43.x86_64                                                                      100% |   1.3 MiB/s | 209.7 KiB |  00m00s
--------------------------------------------------------------------------------------------------------------------------------------------------------------
[1/1] Total                                                                                                           100% | 278.1 KiB/s | 209.7 KiB |  00m01s
Running transaction
[1/4] Verify package files                                                                                            100% | 333.0   B/s |   1.0   B |  00m00s
[2/4] Prepare transaction                                                                                             100% |   4.0   B/s |   2.0   B |  00m00s
[3/4] Installing pipewire-pulseaudio-0:1.4.11-1.fc43.x86_64                                                           100% |   1.1 MiB/s | 444.2 KiB |  00m00s
>>> Running %preun scriptlet: pulseaudio-0:17.0-9.fc43.x86_64                                                                                                 
>>> Finished %preun scriptlet: pulseaudio-0:17.0-9.fc43.x86_64                                                                                                
>>> Scriptlet output:                                                                                                                                         
>>> Removed '/etc/systemd/user/sockets.target.wants/pulseaudio.socket'.                                                                                       
>>>                                                                                                                                                           
[4/4] Removing pulseaudio-0:17.0-9.fc43.x86_64                                                                        100% | 119.0   B/s | 305.0   B |  00m03s
Complete!

now I have no sound and the sound indicator is missing on settings and the panel. Bad advice here: Making sure you're not a bot!

$ pactl info | grep Server
Server String: /run/user/1000/pulse/native
Server Protocol Version: 35
Server Name: PulseAudio (on PipeWire 1.4.11)
Server Version: 15.0.0
$ pactl list cards short
54      alsa_card.pci-0000_01_00.1      alsa
55      alsa_card.pci-0000_00_1f.3      alsa

~/.local/state/wireplumber/default-nodes:

[default-nodes]
default.configured.audio.source=alsa_input.pci-0000_00_1f.3.analog-stereo
default.configured.audio.sink=alsa_output.pci-0000_00_1f.3.analog-stereo
default.configured.audio.source.0=alsa_input.usb-046d_Logitech_BRIO_00205037-03.analog-stereo
default.configured.audio.sink.0=alsa_output.pci-0000_01_00.1.hdmi-stereo

~/.local/state/wireplumber/default-routes:

[default-routes]
alsa_card.pci-0000_00_1f.3:output:analog-output-lineout;output-speaker={"channelVolumes":[0.571791, 0.571791], "channelMap":["FL", "FR"], "mute":false, "latencyOffsetNsec":0}
alsa_card.pci-0000_00_1f.3:profile:output:analog-stereo+input:analog-stereo=["analog-output-lineout;output-speaker"]
alsa_card.pci-0000_01_00.1:output:hdmi-output-0={"channelMap":["FL", "FR"], "iec958Codecs":["PCM"], "channelVolumes":[0.050651, 0.050651], "mute":false, "latencyOffsetNsec":0}
alsa_card.pci-0000_01_00.1:profile:output:hdmi-stereo=["hdmi-output-0"]

~/.local/state/wireplumber/default-properties:

[stream-properties]
Audio/Sink:node.name:auto_null={"channelVolumes":[1.000000, 1.000000], "mute":false, "volume":1.000000, "channelMap":["FL", "FR"]}
Output/Audio:media.role:Notification={"volume":1.000000, "channelVolumes":[1.000000, 1.000000], "channelMap":["FL", "FR"], "mute":false}
Output/Audio:media.role:Test={"mute":false, "channelVolumes":[1.000000], "volume":1.000000, "channelMap":["FL"]}
Output/Audio:media.role:alert={"volume":1.000000, "channelVolumes":[1.000000, 1.000000], "channelMap":["FL", "FR"], "mute":false}
Audio/Sink:media.name:RAOP\sto\smedia-avr={"volume":1.000000, "channelVolumes":[1.000000, 1.000000], "channelMap":["FL", "FR"], "mute":false}
Output/Audio:application.name:Vivaldi={"volume":1.000000, "channelMap":["FL", "FR"], "channelVolumes":[1.000000, 1.000000], "mute":false}
Output/Audio:application.name:eSpeak={"channelMap":["MONO"], "channelVolumes":[1.000000], "volume":1.000000, "mute":false}
Output/Audio:application.name:speech-dispatcher-dummy={"channelMap":["MONO"], "channelVolumes":[1.000000], "volume":1.000000, "mute":false}
Output/Audio:application.name:virt-manager={"mute":false, "channelVolumes":[0.772732, 0.772732], "channelMap":["FL", "FR"], "volume":1.000000}
Output/Audio:media.role:Music={"volume":1.000000, "channelVolumes":[1.000000, 1.000000], "channelMap":["FL", "FR"], "mute":false}
Input/Audio:application.id:org.kde.plasma-pa={"volume":1.000000, "mute":false, "channelMap":["MONO"], "channelVolumes":[1.000000]}
Output/Audio:application.name:Firefox={"volume":1.000000, "channelVolumes":[1.000000, 1.000000], "channelMap":["FL", "FR"], "mute":false}
Output/Audio:application.name:Thunderbird={"channelVolumes":[1.000000, 1.000000], "mute":false, "channelMap":["FL", "FR"], "volume":1.000000}
Input/Audio:application.name:Thunderbird={"channelVolumes":[1.000000], "mute":false, "channelMap":["MONO"], "volume":1.000000}
Output/Audio:media.role:Video={"mute":false, "volume":1.000000, "channelVolumes":[1.000000, 1.000000], "channelMap":["FL", "FR"]}
Output/Audio:application.name:paplay={"mute":false, "volume":1.000000, "channelVolumes":[1.000000, 1.000000], "channelMap":["FL", "FR"]}
Output/Audio:media.role:Game={"channelMap":["FL", "FR"], "volume":1.000000, "channelVolumes":[1.000000, 1.000000], "mute":false}
Input/Audio:media.role:Production={"mute":false, "channelMap":["FL", "FR"], "channelVolumes":[1.000000, 1.000000], "volume":1.000000}
Input/Video:media.role:Camera={}
Input/Audio:application.name:Vivaldi\sinput={"volume":1.000000, "channelMap":["FL", "FR"], "channelVolumes":[1.000000, 1.000000], "mute":false}
Output/Audio:application.name:PipeWire\sALSA\s\ospeaker-test\c={"channelVolumes":[1.000000], "mute":false, "volume":1.000000, "channelMap":["MONO"]}

~/.local/state/wireplumber/default-profile:

[default-profile]
alsa_card.usb-046d_Logitech_BRIO_00205037-03=input:analog-stereo

~/.config/pipewire/pipewire.conf.d/99-ca0132-ports.conf:

context.modules = [
    {
        name = libpipewire-module-adapter
        args = {
            factory = "spa-node-factory"
            node.name = "alsa_output.pci-0000_00_1f.3.analog-stereo"
            node.description = "Built-in Audio Analog Stereo"
            media.class = "Audio/Sink"
            adapter.auto-port-config = {
                mode = "dsp"
                monitor.mode = "none"
            }
        }
    }
]

~/.config/wireplumber/main.lua.d/51-ca0132-ports.conf:

-- Force enable auto-port for CA0132
rule = {
  matches = {
    {
      { "device.name", "equals", "alsa_card.pci-0000_00_1f.3" },
    },
  },
  apply_properties = {
    ["api.acp.auto-port"] = true,
    ["api.acp.profile-set"] = "output:analog-stereo+input:analog-stereo",
    ["device.profile"] = "output:analog-stereo+input:analog-stereo",
  },
}
table.insert(alsa_monitor.rules, rule)

With so many configuration files just to get sound working, what could go wrong? :person_shrugging: