Sound controls stop working

Sound controls stop working if I switch to another output device and switch back. I cannot mute or increase/decrease volume anymore. It’s fixed if I open pavucontrol, go to configuration tab and change the profile to something else (or even select that very profile again i.e. Analog Stereo Duplex). I think this might be due to a missing config file or something. Please help out.

inxi -Fazy
System:
  Kernel: 5.11.6-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.11-x86_64 
  root=UUID=fe64fafd-1c2a-4b55-846f-c264196ff166 rw nomce "acpi_osi=Windows 
  2018" quiet resume=UUID=4517ac81-4ac6-42a0-8e7a-a5870b5f98df 
  Desktop: KDE Plasma 5.21.3 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 
  dm: GDM 3.38.2.1, SDDM Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Laptop System: HP product: HP Pavilion Laptop 14-bf1xx 
  v: Type1ProductConfigId serial: <filter> Chassis: type: 10 serial: <filter> 
  Mobo: HP model: 83CE v: 59.38 serial: <filter> UEFI: Insyde v: F.31 
  date: 10/30/2017 
Battery:
  ID-1: BAT1 charge: 42.3 Wh (100.0%) condition: 42.3/42.3 Wh (100.0%) 
  volts: 13.2 min: 11.6 model: Hewlett-Packard PABAS0241231 type: Li-ion 
  serial: <filter> status: Full 
CPU:
  Info: Quad Core model: Intel Core i7-8550U bits: 64 type: MT MCP 
  arch: Kaby Lake note: check family: 6 model-id: 8E (142) stepping: A (10) 
  microcode: E0 cache: L2: 8 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 bogomips: 32012 
  Speed: 800 MHz min/max: 400/1800 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 
  4: 800 5: 800 6: 800 7: 800 8: 800 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX unsupported 
  Type: l1tf mitigation: PTE Inversion 
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: srbds mitigation: Microcode 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel UHD Graphics 620 vendor: Hewlett-Packard driver: i915 
  v: kernel bus-ID: 00:02.0 chip-ID: 8086:5917 class-ID: 0300 
  Device-2: NVIDIA GM108M [GeForce 940MX] vendor: Hewlett-Packard 
  driver: nvidia v: 460.56 alternate: nouveau,nvidia_drm bus-ID: 01:00.0 
  chip-ID: 10de:134d class-ID: 0302 
  Device-3: Chicony HP Wide Vision HD Camera type: USB driver: uvcvideo 
  bus-ID: 1-5:7 chip-ID: 04f2:b5d6 class-ID: 0e02 
  Display: x11 server: X.Org 1.20.10 compositor: kwin_x11 driver: 
  loaded: modesetting,nvidia display-ID: :0 screens: 1 
  Screen-1: 0 s-res: 1920x1080 s-dpi: 115 s-size: 424x238mm (16.7x9.4") 
  s-diag: 486mm (19.1") 
  Monitor-1: eDP-1 res: 1920x1080 hz: 60 dpi: 158 size: 309x173mm (12.2x6.8") 
  diag: 354mm (13.9") 
  OpenGL: renderer: Mesa Intel UHD Graphics 620 (KBL GT2) v: 4.6 Mesa 20.3.4 
  direct render: Yes 
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Hewlett-Packard 
  driver: snd_hda_intel v: kernel alternate: snd_soc_skl bus-ID: 00:1f.3 
  chip-ID: 8086:9d71 class-ID: 0403 
  Sound Server-1: ALSA v: k5.11.6-1-MANJARO running: yes 
  Sound Server-2: sndio v: N/A running: no 
  Sound Server-3: JACK v: 0.125.0 running: no 
  Sound Server-4: PulseAudio v: 14.2 running: no 
  Sound Server-5: PipeWire v: 0.3.23 running: yes 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Hewlett-Packard driver: r8168 v: 8.048.03-NAPI modules: r8169 
  port: 3000 bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200 
  IF: eno1 state: down mac: <filter> 
  Device-2: Intel Wireless 7265 driver: iwlwifi v: kernel port: 3000 
  bus-ID: 03:00.0 chip-ID: 8086:095a class-ID: 0280 
  IF: wlo1 state: up mac: <filter> 
Bluetooth:
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8 
  bus-ID: 1-4:3 chip-ID: 8087:0a2a class-ID: e001 
  Report: This feature requires one of these tools: hciconfig/bt-adapter 
Drives:
  Local Storage: total: 1.03 TiB used: 611.9 GiB (58.2%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/sda maj-min: 8:0 vendor: Seagate model: ST1000LM035-1RK172 
  size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
  rotation: 5400 rpm serial: <filter> rev: RSM7 scheme: GPT 
  ID-2: /dev/sdb maj-min: 8:16 vendor: SanDisk model: SD8SN8U-128G-1006 
  size: 119.24 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
  rotation: SSD serial: <filter> rev: 0006 scheme: GPT 
Partition:
  ID-1: / raw-size: 50 GiB size: 48.72 GiB (97.43%) used: 28.58 GiB (58.7%) 
  fs: ext4 dev: /dev/sdb5 maj-min: 8:21 
  ID-2: /boot/efi raw-size: 277 MiB size: 276.4 MiB (99.80%) 
  used: 280 KiB (0.1%) fs: vfat dev: /dev/sdb1 maj-min: 8:17 
  ID-3: /home raw-size: 60.87 GiB size: 59.67 GiB (98.02%) 
  used: 49.36 GiB (82.7%) fs: ext4 dev: /dev/sdb2 maj-min: 8:18 
Swap:
  Kernel: swappiness: 5 (default 60) cache-pressure: 50 (default 100) 
  ID-1: swap-1 type: partition size: 8.1 GiB used: 2.8 MiB (0.0%) priority: -2 
  dev: /dev/sdb3 maj-min: 8:19 
Sensors:
  System Temperatures: cpu: 46.0 C mobo: 29.8 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 330 Uptime: 1h 22m wakeups: 7 Memory: 7.69 GiB 
  used: 4.65 GiB (60.4%) Init: systemd v: 247 tool: systemctl Compilers: 
  gcc: 10.2.0 clang: 11.1.0 Packages: 2109 pacman: 2108 lib: 469 flatpak: 1 
  Shell: fish v: 3.1.2 running-in: tmux: inxi: 3.3.03 

Your system data is showing Pipewire running instead of PulseAudio

  Sound Server-4: PulseAudio v: 14.2 running: no 
  Sound Server-5: PipeWire v: 0.3.23 running: yes 

I suggest you remove the pulseaudio tag from this topic and replace it with pipewire

And post information about the systemd sockets and services for Pipewire

systemctl --user -l -no-pager status pipewire*

AFAIK there are 3 services - pipewire.service; pipewire-pulse.service and pipewire-media-session.service

I changed the tags and here’s the info :

● pipewire-pulse.socket - PipeWire PulseAudio
     Loaded: loaded (/usr/lib/systemd/user/pipewire-pulse.socket; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2021-03-23 12:48:53 IST; 4h 38min ago
   Triggers: ● pipewire-pulse.service
     Listen: /run/user/1000/pulse/native (Stream)
     CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/pipewire-pulse.socket

Mar 23 12:48:53 sintan-pc systemd[1261]: Listening on PipeWire PulseAudio.

● pipewire.socket - Multimedia System
     Loaded: loaded (/usr/lib/systemd/user/pipewire.socket; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2021-03-23 12:48:53 IST; 4h 38min ago
   Triggers: ● pipewire.service
     Listen: /run/user/1000/pipewire-0 (Stream)
     CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/pipewire.socket

Mar 23 12:48:53 sintan-pc systemd[1261]: Listening on Multimedia System.

● pipewire.service - Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; disabled; vendor preset: enabled)
     Active: active (running) since Tue 2021-03-23 12:48:58 IST; 4h 38min ago
TriggeredBy: ● pipewire.socket
   Main PID: 1901 (pipewire)
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
             └─1901 /usr/bin/pipewire

Mar 23 13:57:59 sintan-pc pipewire[1901]: (alsa_output.pci-0000_00_1f.3.pro-output-0-84) XRun! rate:1024/48000 count:1 time:4166818572 delay:16532477 max:16532477
Mar 23 14:03:37 sintan-pc pipewire[1901]: 2 events suppressed
Mar 23 14:03:40 sintan-pc pipewire[1901]: alsa-pcm front:0: snd_pcm_status error: Broken pipe
Mar 23 14:03:40 sintan-pc pipewire[1901]: 1 events suppressed
Mar 23 14:03:41 sintan-pc pipewire[1901]: alsa-pcm front:0: snd_pcm_status error: Broken pipe
Mar 23 14:03:43 sintan-pc pipewire[1901]: 3 events suppressed
Mar 23 14:04:07 sintan-pc pipewire[1901]: 1 events suppressed
Mar 23 14:04:07 sintan-pc pipewire[1901]: alsa-pcm front:0: snd_pcm_status error: Broken pipe
Mar 23 14:04:07 sintan-pc pipewire[1901]: 2 events suppressed
Mar 23 14:07:07 sintan-pc pipewire[1901]: 1 events suppressed

● pipewire-media-session.service - Multimedia Service Session Manager
     Loaded: loaded (/usr/lib/systemd/user/pipewire-media-session.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2021-03-23 12:48:58 IST; 4h 38min ago
   Main PID: 1904 (pipewire-media-)
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire-media-session.service
             └─1904 /usr/bin/pipewire-media-session

Mar 23 12:48:58 sintan-pc systemd[1261]: Started Multimedia Service Session Manager.
Mar 23 12:48:58 sintan-pc pipewire-media-session[1904]: oFono: Registering Profile /Profile/ofono failed

● pipewire-pulse.service - PipeWire PulseAudio
     Loaded: loaded (/usr/lib/systemd/user/pipewire-pulse.service; disabled; vendor preset: enabled)
     Active: active (running) since Tue 2021-03-23 12:48:58 IST; 4h 38min ago
TriggeredBy: ● pipewire-pulse.socket
   Main PID: 1879 (pipewire-pulse)
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire-pulse.service
             └─1879 /usr/bin/pipewire-pulse

Mar 23 14:03:27 sintan-pc pipewire-pulse[1879]: pulse-server 0x563e6aaf60d0: [PulseAudio Volume Control] ERROR command:87 (EXTENSION) tag:12 error:19 (Operation not supported)
Mar 23 14:03:27 sintan-pc pipewire-pulse[1879]: pulse-server 0x563e6aaf60d0: [PulseAudio Volume Control] ERROR command:87 (EXTENSION) tag:13 error:19 (Operation not supported)
Mar 23 14:03:27 sintan-pc pipewire-pulse[1879]: pulse-server 0x563e6aaf60d0: [PulseAudio Volume Control] ERROR command:87 (EXTENSION) tag:14 error:19 (Operation not supported)
Mar 23 14:03:27 sintan-pc pipewire-pulse[1879]: pulse-server 0x563e6aaf60d0: [PulseAudio Volume Control] ERROR command:87 (EXTENSION) tag:15 error:19 (Operation not supported)
Mar 23 14:03:27 sintan-pc pipewire-pulse[1879]: pulse-server 0x563e6aaf60d0: [PulseAudio Volume Control] ERROR command:87 (EXTENSION) tag:17 error:19 (Operation not supported)
Mar 23 14:07:02 sintan-pc pipewire-pulse[1879]: pulse-server 0x563e6aa17600: [PulseAudio Volume Control] ERROR command:87 (EXTENSION) tag:12 error:19 (Operation not supported)
Mar 23 14:07:02 sintan-pc pipewire-pulse[1879]: pulse-server 0x563e6aa17600: [PulseAudio Volume Control] ERROR command:87 (EXTENSION) tag:13 error:19 (Operation not supported)
Mar 23 14:07:02 sintan-pc pipewire-pulse[1879]: pulse-server 0x563e6aa17600: [PulseAudio Volume Control] ERROR command:87 (EXTENSION) tag:14 error:19 (Operation not supported)
Mar 23 14:07:02 sintan-pc pipewire-pulse[1879]: pulse-server 0x563e6aa17600: [PulseAudio Volume Control] ERROR command:87 (EXTENSION) tag:15 error:19 (Operation not supported)
Mar 23 14:07:02 sintan-pc pipewire-pulse[1879]: pulse-server 0x563e6aa17600: [PulseAudio Volume Control] ERROR command:87 (EXTENSION) tag:17 error:19 (Operation not supported)