{USB, bluetooth} Audio in chroot

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.

#linux #gaming #pipewire #chroot

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.



Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

We can't live, work or learn in freedom unless the software we use is free.

Arguing that you don't care about the right to privacy because you have nothing to hide is no different from saying you don't care about free speech because you have nothing to say. – Edward Snowden