Subject: bug#68512: Qutebrowser 3, no sound from pipewire-only system

From: Sergey Trofimov <[email-masked]>
Date: Wed, 17 Jan 2024 07:58:20 +0100

chris <[email-masked]> writes:

> On  1月16日 火, Sergey Trofimov wrote:
>
>> How is pipewire configured on your system? The thing is that 
>> qtwebengine@5
>> is linked with PulseAudio and ALSA libraries, but @6 is linked 
>> only with
>> alsa. You probably miss pipewire-alsa compatibility 
>> configuration. Do you
>> use home-pipewire-service-type? It sets both pulse/alsa shims 
>> and it works
>> for me this way.
>
> This system does not use dbus and pipewire was configured about 
> a year ago when
> there were few options for using pipewire out of the box in any 
> sort of way.
>
> Guix home is configured to write a pipewire and three 
> wireplumber config files,
> as described at this link
> https://wiki.alpinelinux.org/wiki/PipeWire#Configuration
>
> .config/pipewire/pipewire.conf
> .config/wireplumber/wireplumber.conf
> .config/wireplumber/main.lua.d/80-disable-dbus.lua
> .config/wireplumber/bluetooth.lua.d/80-disable-logind.lua
>
> With with those files in place, pipewire and wireplumber are 
> started
> sequentially to get working sound. I use this in my 
> .config/sway/config
> (possibly this is copy-pasted from unmatched-paren)
> ```
> exec_always killall -wqr "(pipewire|wireplumber)" \
>   || sleep 1 && ((pipewire &); sleep 2 && (wireplumber &))
> ```

Well, qtwebengine doesn't link with PipeWire anyway, you have to 
use either PulseAudio or ALSA. Here is an example 
~/.config/alsa/asoundrc on my system, created by 
home-pipewire-service-type. If you add such file to your setup - 
qutebrowser should be able to use alsa lib to output audio through 
pipewire.

--8<---------------cut here---------------start------------->8---
</gnu/store/a331f91m9g8898lccyj7fniqsyv406y9-pipewire-1.0.0/share/alsa/alsa.conf.d/50-pipewire.conf>
</gnu/store/a331f91m9g8898lccyj7fniqsyv406y9-pipewire-1.0.0/share/alsa/alsa.conf.d/99-pipewire-default.conf>
pcm_type.pipewire {
  lib 
  "/gnu/store/a331f91m9g8898lccyj7fniqsyv406y9-pipewire-1.0.0/lib/alsa-lib/libasound_module_pcm_pipewire.so"
}
ctl_type.pipewire {
  lib 
  "/gnu/store/a331f91m9g8898lccyj7fniqsyv406y9-pipewire-1.0.0/lib/alsa-lib/libasound_module_ctl_pipewire.so"
}
--8<---------------cut here---------------end--------------->8---