after this update my audio devices completely disappeared from pavucontrol. I managed to investigate the issue and track it down to a regression in PipeWire 1.6.9 / WirePlumber 0.5.18.
Running aplay using the default PulseAudio/PipeWire plugin timed out immediately:
ALSA lib pcm_pulse.c:758:(pulse_prepare) [error.] PulseAudio: Unable to create stream: Timeout
aplay: set_params:1462: Unable to install hw params
Checking systemctl --user status pipewire showed that the daemon was throwing SPA node errors:
mod.adapter: can't load spa node: No such file or directory
mod.adapter: usage: node.name=<string>
Running WirePlumber in debug mode (WIREPLUMBER_DEBUG=3 wireplumber) revealed that WirePlumber attempts to open hardware definitions for a non-existent card index (card 2), while the system only maps Card 0 (HDMI) and Card 1 (PCH):
spa.alsa: Error opening PCM device front:2: No such file or directory
spa.alsa: Unknown PCM hdmi:2
This leads to the following errors, preventing any nodes from being created:
Hardware Verification:
I completely stopped PipeWire/WirePlumber and tested ALSA directly using the hardware layer. Audio playback worked flawlessly using:
This confirms that the kernel driver (snd-hda-intel) and the hardware are 100% fine, and the bug is isolated within the PipeWire/WirePlumber interaction layer. Tried toggling api.alsa.use-ucm = false in WirePlumber configurations, but it did not bypass the error.
Workaround / Fix:
I was able to fully restore audio by downgrading the entire PipeWire/WirePlumber stack back to the previous versions using manjaro-downgrade:
After the downgrade and clearing ~/.local/state/wireplumber/, all ALSA nodes were successfully registered again (pw-link -io) and audio is back to normal.
Hope this helps tracking down the regression! Let me know if you need any further logs from the broken state.
I highly doubt the camera lib fixes the sound It has however, pipewire as a dependency. So what probably happened was pipewire got reinstalled or updated for that user as a sideffect.
Also, not everybody has the problem. I don’t for example (xfce x11, pipewire).
I agree, there is nothing in the data to suggest PipeWire needs libcamera support, and there is another topic on CachyOS from 6 months ago where a user removed pipewire-libcamera
to get PipeWire working!
If more users have similar problems it might be considered as more than just an optional dependency by upstream maintainers, but I have no idea how to make a logical case for that
Absolutely! I think, it’s necessary to better understand the root cause of the issue before searching for a proper solution. I can do some testing if it helps!
I was very surprised as well, but it actually did!
I tried reinstalling pipewire several times but it didn’t help… Only the camera lib did for some mysterious reason…
I also use Xfce, X11 and pipewire. I think, the sound hardware is the crucial difference.
edit: Here’s how Gemini explains the issue, looks like the particular webcam causes the crash in my case (and possibly also for other users):
With recent updates (PipeWire 1.6.9 / WirePlumber 0.5.18), camera support was split into a separate package (pipewire-libcamera). However, WirePlumber’s default startup scripts attempt to enumerate camera devices using the api.libcamera.enum.manager plugin.
On systems where compatible camera hardware is detected by the kernel, WirePlumber triggers this initialization. When pipewire-libcamera is missing, this can cause the initialization thread to crash or abort. Because WirePlumber acts as the single session manager for both audio and video, this failure prevents the audio graph from building, leaving pavucontrol with no audio devices.
Installing pipewire-libcamera restores the required plugin, allowing WirePlumber to complete initialization and restore audio functionality. Systems without such camera hardware are unaffected, which is why the issue does not occur on every machine.
I can remove pipewire-libcamera and disconnect the USB webcam to test the hypothesis, if it helps. I’d expect the issue to not appear in this case.
I think what Gemini found may not be the whole story. If pipewire-libcamera is missing, enumerating the camera devices should fail gracefully, ie, it should be skipped.
Would be interesting. Don’t forget to restart - at least restart wireplumber after the changes with systemctl --user restart wireplumber.
Maybe upstream didn’t expect people to split the pipewire stack in several packages? But probably worth reporting the issue upstream then!
I can’t reproduce the issue any more by uninstalling pipewire-libcamera (and keeping the webcam plugged in)… Maybe @Teo was right when he wrote this:
But then, why installing pipewire-libcamera triggered whatever it did trigger but reinstalling all the other pipewire packages didn’t do so?
I’m really puzzled and open for ideas what I could test to further debug this issue!
edit: Maybe I need to delete the cache in ~/.cache to reproduce the issue again. Will try it tomorrow!
Seems like the camera, when connected, changes something. It probably creates several devices, if it has a microphone, and this is where it get complicated. So if this libcamera (it is a single .so file) solves it for you in this particular setup, then super.
I could understand if the camera device failed to be enumerated as a video and audio device, but the onboard audio should not have also failed unless wireplumber was affected
This comment from Gemini seems completely wrong:
No mention of this split in PipeWire changelog, and pipewire-libcamera has been mentioned in previous topics so it is not a new package
The only thing I can find that seems to relate to libcamera is in the latest version of WirePlumber, but that has only been released to Arch extra-staging branch at the moment
Added the monitor.camera.seat-monitoring feature, which makes the V4L2 and libcamera monitors enumerate cameras only while the logind session is active, so that cameras are no longer skipped when WirePlumber starts before the session gets access to them. This is enabled by default (#1049; !939)
If you cannot get back to the non-working state, it was possibly resolved by clearing ~/.local/state/wireplumber/ after the downgrade
It actually has a microphone, which might be the distinction that made the issue appear.
I’m pretty sure that I did that, but it didn’t help. What eventually helped was then to install the libcamera module.
Unfortunately, I still cannot trigger the issue, even by removing ~/.local/state/wireplumber/ and restarting the pipewire and wireplumber services. Now wireplumber reports the following:
systemd[1176]: Started Multimedia Service Session Manager.
wireplumber[6836]: wp-device: SPA handle 'api.libcamera.enum.manager' could not be loaded; is it installed?
wireplumber[6836]: s-monitors-libcamera: PipeWire's libcamera SPA plugin is missing or broken. Some camera types may not be supported.
But audio devices still correctly function.
I fear, I cannot contribute to testing in this issue any more…
Most Logitech webcams have a built-in microphone, and inxi data in original post shows Logitech HD Webcam C525 is detected as a Graphics device and Audio device. inxi data also shows 2 drivers for this device:
USB audio driver: snd-usb-audio
USB Video Class driver: uvcvideo
Since PipeWire/WirePlumber is a multimedia server (audio & video) a problem with either audio or video could have caused the issue with WirePlumber that affected the other audio devices
ArchWiki suggests removing this folder to Delete corrupted settings. It is also possible to use wpctl reset to reset PipeWire to default state and restart wireplumber.service
If the folder did contain any corrupted or mis-configured settings they are unlikely to be re-created by anything else used to get audio working.
If there is no backup copy or snapshot of the “corrupted” folder, there is no way to verify if it was a problem.
But if a similar issue happens again when WirePlumber is updated, I would suggest checking WirePlumber status and objects before reset: