:: Re: [DNG] Firefox, sudo and apulse …
Pàgina inicial
Delete this message
Reply to this message
Autor: Dr. Nikolaus Klepp
Data:  
A: dng
Assumpte: Re: [DNG] Firefox, sudo and apulse (was Re: Steam, Mumble, Valheim, Alsa and shared audio)
Anno domini 2021 Tue, 31 Aug 10:21:31 -0500
hal scripsit:
> On 8/28/21 13:24, g4sra via Dng wrote:
> > Install 'apulse' which are a sort of pulseaudio compatability libraries.
>
> apulse hasn't been working for me with Firefox for at least a year now. I don't know if I messed it up or if it was some software change, but it just stopped working once. Firefox doesn't seem to have FOSS in the focus so much anymore so always thought maybe they did something (again).
>
> I just tried ff now running as my LXDE logged in user[1] and using sudo[2]. Both generated some apulse complaints I have to look into. my "default" dev is the onboard sound chip which might be in use with another application I have open.
>
> Maybe I need to make "default" one of my dmix devices and not the "raw device", or I need to specify a playback rate in /etc/asound.conf like I've seen in some ALSA examples? hmm..
>
> ::::::: apulse errors :::::::
> [apulse] [error] do_connect_pcm: can't get initial hw parameters for playback device "default". Error code 1 (Operation not permitted)
>
> [apulse] [error] do_connect_pcm: failed to open ALSA device. Apulse does no resampling or format conversion, leaving that task to ALSA plugins. Ensure that selected device is capable of playing a particular sample format at a particular rate. They have to be supported by either hardware directly, or by "plug" and "dmix" ALSA plugins which will perform required conversions on CPU.
>
>
> ::::::: cards/devices :::::::
> $ cat /proc/asound/cards
>   0 [PCH            ]: HDA-Intel - HDA Intel PCH
>                        HDA Intel PCH at 0xfbff8000 irq 37

>
>
> ::::::: snipped /etc/asound.conf :::::::
> $ cat /etc/asound.conf
> ...
> pcm.!default {
>      type plug
>      slave.pcm "duplex"
> }
> ctl.!default {
>      type hw
>      card 0
> }


apulse works here like a charm. But my /etc/asound.conf is different (I use soundcard 2 aka index 1 as default):

defaults.pcm.card 1
defaults.ctl.card 1
defaults.timer.card 1


Nik



>
>
>
> > This may (and I do mean 'may') be your Desktop not releasing the audio devices, google that for your specific desktop to find out how to make it release them when you launch steam.
> >
>
>
> [1] $ /usr/bin/apulse /home/apps/firefox/firefox -ProfileManager
> [2] $ sudo -u webuser /usr/bin/apulse /home/apps/firefox/firefox -ProfileManager
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>




--
Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ...