From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DAE851395E2 for ; Tue, 29 Nov 2016 07:51:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A19E7E0B80; Tue, 29 Nov 2016 07:51:31 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 000FAE084D for ; Tue, 29 Nov 2016 07:51:30 +0000 (UTC) Received: from [46.246.38.154] (anon-38-154.vpn.ipredator.se [46.246.38.154]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: zlg) by smtp.gentoo.org (Postfix) with ESMTPSA id 89FE1341063 for ; Tue, 29 Nov 2016 07:51:28 +0000 (UTC) Subject: Re: [gentoo-user] Firefox 49.0 & Youtube....Video: Yes - Audio: No... To: gentoo-user@lists.gentoo.org References: <20161015182743.GB4541@solfire> <20161016045512.GD9708@g0n.xdwgrp> <20161016064808.GA4917@solfire> <20161119061158.GA10942@g0n.xdwgrp> <6148fd18-1171-ab25-c455-541ce864bf1e@gentoo.org> <20161119092205.GB10942@g0n.xdwgrp> <20161119095952.GC10942@g0n.xdwgrp> <20161128163051.GA11387@g0n.xdwgrp> From: Daniel Campbell Message-ID: <5df9e3f5-b3fb-6290-3922-dbe2e1e3542d@gentoo.org> Date: Mon, 28 Nov 2016 23:51:06 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 In-Reply-To: <20161128163051.GA11387@g0n.xdwgrp> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="U9Hl1dRvpPBHGp9vR1TG7AEmIGC9q8BsC" X-Archives-Salt: ba4796ec-56dd-4014-85bc-75e2a7c5d903 X-Archives-Hash: a0dcaf17ef2b77b8afbffa319003eaa5 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --U9Hl1dRvpPBHGp9vR1TG7AEmIGC9q8BsC Content-Type: multipart/mixed; boundary="FGa4P8vthdwsKBpQ6xOl7gP7Q7padTqsk" From: Daniel Campbell To: gentoo-user@lists.gentoo.org Message-ID: <5df9e3f5-b3fb-6290-3922-dbe2e1e3542d@gentoo.org> Subject: Re: [gentoo-user] Firefox 49.0 & Youtube....Video: Yes - Audio: No... References: <20161015182743.GB4541@solfire> <20161016045512.GD9708@g0n.xdwgrp> <20161016064808.GA4917@solfire> <20161119061158.GA10942@g0n.xdwgrp> <6148fd18-1171-ab25-c455-541ce864bf1e@gentoo.org> <20161119092205.GB10942@g0n.xdwgrp> <20161119095952.GC10942@g0n.xdwgrp> <20161128163051.GA11387@g0n.xdwgrp> In-Reply-To: <20161128163051.GA11387@g0n.xdwgrp> --FGa4P8vthdwsKBpQ6xOl7gP7Q7padTqsk Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 11/28/2016 08:30 AM, Miroslav Rovis wrote: > I just got Firefox to play HTML5 pages (and likely other stuff as well)= , > with audio working, my system. >=20 > But let me first vent my frustration for why it was so hard... >=20 > On 161120-20:46+0100, Miroslav Rovis wrote: >> Hi Daniel! >> > ... >> On 161120-00:10-0800, Daniel Campbell wrote: >>> On 11/19/2016 01:59 AM, Miroslav Rovis wrote: >>>> On 161119-10:22+0100, Miroslav Rovis wrote: > ... >=20 > It took me such long time, well, yes, because ALSA had advanced and I > kept the old config, simply because it worked with all apps (but not th= e > Firefox, more below...)... >=20 > What other conclusion could a not very advanced user get but this one > below?: >> Just in the meantime, a (hopefully) easier question: doesn't this bug >> below mean harder to get non-pulse audio to work with Firefox: >>>>>>>>> Mozilla went pulse all the way: >>>>>>>>> Require PulseAudio on Linux >>>>>>>>> https://bugzilla.mozilla.org/show_bug.cgi?id=3D1247056 >>>>>>>>> See also: >>>>>>>>> Firefox nightly requires Pulse Audio >>>>>>>>> http://forums.debian.net/viewtopic.php?f=3D20&t=3D130028 >> and if the other info that the dev at alsa-user gave me: >> http://www.mail-archive.com/alsa-user@lists.sourceforge.net/msg31929.h= tml >> where he gave the link to: >> html5 in ff through jack >> http://lists.linuxaudio.org/pipermail/linux-audio-user/2016-June/10518= 8.html >=20 > And I've just delivered on this promise of mine: >> if that means the info in that bug page is incomplte in the sense it i= s >> misleading to users who want to stick with sans-pulse alsa... then onc= e >> I figure out how to do it, I'll post there for other users to know... > Pls. read my comment of just some half hour ago: > https://bugzilla.mozilla.org/show_bug.cgi?id=3D1247056#c171 >=20 >> [ I'll try all of your suggestions ... as I'm confident again there mu= st >> be a way to fix audio in FF without pulse... ] just as the other dev >> said, that it is there, only for Archlinux, at: >> http://www.mail-archive.com/alsa-user@lists.sourceforge.net/msg31927.h= tml > How on Earth would a non-advanced user know after reading that Mozilla > bug, that she/he don't need to get that another layer for suspicious > purposes onto their fine ALSA? >=20 > Now I'll explain what was the reason it did not work (because I promise= d > I would ;-) and you were kind to offer help)... >=20 > On 161120-00:10-0800, Daniel Campbell wrote: >> On 11/19/2016 01:59 AM, Miroslav Rovis wrote: >>> On 161119-10:22+0100, Miroslav Rovis wrote: >>>> On 161119-00:33-0800, Daniel Campbell wrote: >>> ... >>>>>> And there is a question/query/my-asking-for-advice further below. >>> ... > ... > No, jack was not needed, but according to: > https://wiki.gentoo.org/wiki/ALSA#JACK_audio_connection_kit > is far superior to pulseaudio, just to make clear. The below wasn't > needed for me to solve my issue.=20 >>>>>> [linuxaudio.org] html5 in ff through jack >>>>>> http://lists.linuxaudio.org/pipermail/linux-audio-user/2016-June/t= hread.html#105188 >>> ... >=20 > This was one of two issues that needed to be fixed/put in place/correct= ed: >>> Also: >>>>> defaults.ctl.card x; >>>>> defaults.pcm.card x; >=20 > Yeah! And what I had, the below...: >>> I every do often change my default card... I have only these two line= s >>> (if I grep out all that is commented out) in my: >>> $ cat ~/.asoundrc | grep -v '^#' =20 > This: >>> pcm.!default { type hw card 1 } >>> ctl.!default { type hw card 1 } > was wrong! > (that's old config, maybe 2-3 or more years old. It just worked all the= > time, who cared... MPlayer, Vlc, the old cinch cables --the RCA IIRC-- > could get the recordings from old/new equipment... So who cared...) >=20 > So one of my two issues was exactly this one (and the change to make): > https://wiki.gentoo.org/wiki/ALSA#Firefox_and_YouTube_have_no_audio_wit= h_custom_.asoundrc_but_other_apps_do >=20 > And after making the other change first, which is simply what Gentoo Fi= refox > Wiki says at: > https://wiki.gentoo.org/wiki/Firefox#Lack_of_sound > so after: > # emerge gst-plugins-meta:1.0 >=20 > and changing my ~/.asoundrc to: >=20 > defaults.ctl.card 0 > defaults.pcm.card 0 >=20 > (or it will be >=20 > defaults.ctl.card 1 > defaults.pcm.card 1 >=20 > sometimes, in my case) >=20 > only then did Firefox finally start to play both video and audio when I= > opened HTML5 pages. >=20 > A quick test was this page (but on my offline Apache, saying it because= > I need to propagate the change to this clone that I access online with,= > I did the changes on my maste machine, so if all keeps well when into > clone, I won't need to inform of some functionality still not there) > (doing the one-liner below worked): >=20 > $ firefox > http://www.CroatiaFidelis.hr/foss/cenz/iskon-t-com-miro-rovis/150320-17= h_T-com_davi_ugovorima.webm >=20 > (that's actually a one-liner, only wrapped in mail) >=20 >>>>> Hope this helps. >>>>> >>>>> [0]: https://wiki.gentoo.org/wiki/ALSA#Configuration >>>>> [1]: >>>>> https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architect= ure#Set_the_default_sound_card >>> It appears to be basically the same info as in your kind explanation.= =2E. >>> >>> But this is now getting way more than 15 minutes... I will try to fin= d >>> more time, still, but not hours, for this issue... >>> >>>> I don't think I even need to be back to report here if this just wor= ks >>> No, it doesn't. And the issue is not solved yet... >>> >>> Regards! >>> >> Hmm, that's strange... Your config looks sane to me (though specifying= >> something as 'type hw' can interfere with mixing sometimes; an empty o= r >> non-existent ~/.asoundrc should default to dmix internally. I doubt th= is >> is your problem though since it works on everything else) >> >> Here's an idea: try using the ALSA_CARD environment variable and run >> Firefox with it. All you'll need is the name of your card. So if your >> card is named "Onboard", you'd issue this: >=20 > This didn't help in my case: >> ALSA_CARD=3D"Onboard" firefox >=20 > No need to file a bug: >> If this persists as a problem for you, it might be worth opening a bug= >> for it, as what I've shared is as far as my personal experience goes a= nd >> other people may be experiencing the same issue. You'll need to provid= e >> 'emerge --info' and possibly 'emerge -pv firefox' output if you choose= >> to report a bug. >> >> Let me know how it goes. > I just did ;-) ! >=20 > Thanks again for caring! I like our devs, I feel fine using Gentoo. Can= > live without systemd, can even live without dbus! That's not what you > get easily at all in all the distros! >=20 It's my pleasure. I only run PA and dbus for OBS Studio. One day this system will be back to vanilla ALSA with apulse to fill in any gaps. :) I'm glad you were able to find a solution. Audio is one of those things that's almost unique to every system and problems in one system (even with the same hardware) may not match the other, so I chose to give you a handful of options to try, since it's not always clear which solution is best. If you ever get sick of manually updating the card numbers, you could probably write a script for it. Happy browsing, ~zlg --=20 Daniel Campbell - Gentoo Developer OpenPGP Key: 0x1EA055D6 @ hkp://keys.gnupg.net fpr: AE03 9064 AE00 053C 270C 1DE4 6F7A 9091 1EA0 55D6 --FGa4P8vthdwsKBpQ6xOl7gP7Q7padTqsk-- --U9Hl1dRvpPBHGp9vR1TG7AEmIGC9q8BsC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEgIn+0tMDW9PQWDLnASQOlFA54XAFAlg9M2oACgkQASQOlFA5 4XAvQg//Qw/Xai2HeeaPpT1lxwoOqZP47mZcyCsKv/oZ5ln4rhln3i4M0jNrxvJv kcWwRmRwNwVytgDhwXnz0nWcnLv7eBhB+thPFv6HY0EuX6KJWU028sNH2GFo7l+7 WuW6yC2iKWNFNRWq86flP8umrQgoRpVfaRRI6HGGrwyTq/9ODcK7ye3QUeGWCQmk 0O9Q5hVMjG/CVtNdD55JkZsFbBamRDtGZ7kOnm+FhSZRVipQsG26cogRH7OLzUm8 7zUDb/3EARJAgY5wDO0uzKiFCBk+XOKbrfugTUCiDM24mYU8ncaOBnbIDY8fmd2e w0dBWfDlUMqYAyLENHgITbIscMJXggrPzO1uJsYZo67nlFIYVzSQseD1fiD8A8uC JFX50N5irWN1II+IHfasVR6DzQQdkAPPc9zejQuEjHwNHDSzryIEv4Cf2G4G1vv8 fElYVdxl/mpj5H6CIERSDBGeyk8YTmF8m/tlu6+1VgNy2L52WZPTCzIP5WODq4nT fmOKqD26nfHg2f2XBGrO0JUGEDGAVPSE7v8quEL2ipWbFjun/oQysMBjODVTXW2K dNJkcW66K781W+8KUX/l7DNJydFa46rra5+bom+Hk/g0Gpv/iAoR2nfU93dTxKb0 xcCS6CIbUje/CcGkhnU5dad8zoRPdM6v8oEFjBmUAuFl7RZDSQM= =Ghr1 -----END PGP SIGNATURE----- --U9Hl1dRvpPBHGp9vR1TG7AEmIGC9q8BsC--