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

From: chris <[email-masked]>
Date: Wed, 17 Jan 2024 01:49:26 -0800

On  1月17日 水, Sergey Trofimov wrote:
> 
> 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---

Sergey,

Thanks for this help. Running `$(guix build pipewire)` returned the same path shown in your example, so I tried simply copy-pasting your example to ~/.config/alsa/asoundrc and restarting my system

Sound did not work, but messages in the qutebrowser process output were slightly different. foreign text translates as: "host dropped",
```
[1588:1588:0117/013614.549773:ERROR:alsa_util.cc(204)] PcmOpen: default,ホストが落ちています
[1588:1588:0117/013614.559451:ERROR:alsa_util.cc(204)] PcmOpen: plug:default,ホストが落ちています
[1588:1588:0117/013614.575316:ERROR:alsa_util.cc(204)] PcmOpen: default,ホストが落ちています
[1588:1588:0117/013614.588043:ERROR:alsa_util.cc(204)] PcmOpen: plug:default,ホストが落ちています
```

These messages differ from the earlier messages that basically said "file not found".

Thanks for helping me. I will sleep now and maybe try more things tomorrow,

Chris