{USB, bluetooth} Audio in chroot

2023-02-20 (Updated 2023-06-10)

I use steam in a arch linux chroot to avoid gentoo's x86 depencency hell, although ALSA inside the chroot works, it doesn't support advanced features like bluetooth, usb output and more.

In this article, I talk about how to configure pipewire in chroot to achieve features mentioned above.

The philosophy

My host system runs pipewire, which is a client-server model software. So, we only have to install pipewire as a client in the chroot, and make the client connect to pipewire daemon on host OS.

Chroot-side

Just install required software according to the wiki for your distro, in my case, it's at arch wiki

follow the steps and you should be fine.

Host side

I use gentoo as host, and they have detailed explanation here, which seems applicable for most linux distros.

And that's all, to test that, run wpctl status as a normal user in chroot, and you should see that by changing the setting in host side, it also changes settings in chroot.