1 |
On 11/19/2016 01:59 AM, Miroslav Rovis wrote: |
2 |
> On 161119-10:22+0100, Miroslav Rovis wrote: |
3 |
>> On 161119-00:33-0800, Daniel Campbell wrote: |
4 |
> ... |
5 |
>>>> And there is a question/query/my-asking-for-advice further below. |
6 |
> ... |
7 |
>>>>>> If jackd is to do with alsa, then it could be the following. |
8 |
>>>>>> |
9 |
>>>>>> Mozilla went pulse all the way: |
10 |
>>>>>> Require PulseAudio on Linux |
11 |
>>>>>> https://bugzilla.mozilla.org/show_bug.cgi?id=1247056 |
12 |
>>>>>> See also: |
13 |
>>>>>> Firefox nightly requires Pulse Audio |
14 |
>>>>>> http://forums.debian.net/viewtopic.php?f=20&t=130028 |
15 |
>>>>>> |
16 |
>>>>>>> Hmmm... |
17 |
>>>>>>> |
18 |
>>>>>>> Is there any fix for that? |
19 |
>>>>>> Not familiar with jackd. But as far as alsa (which I stick to, like |
20 |
>>>>>> other discontented users), I don't have sound since months ago. The |
21 |
>>>>>> only way to get it would be to compile alsa myself, I'm afraid. |
22 |
>>>>>> |
23 |
> ... |
24 |
>>>> In that thred on alsa-user archive that I linked to, I got this link: |
25 |
>>>> |
26 |
>>>> [linuxaudio.org] html5 in ff through jack |
27 |
>>>> http://lists.linuxaudio.org/pipermail/linux-audio-user/2016-June/thread.html#105188 |
28 |
> ... |
29 |
>> So it's only this, probably (and I had given links that, indirectly, |
30 |
>> mislead another Gentoo user...): |
31 |
> ( No, it's not only this: ) |
32 |
>>> Generally if you run into this problem, it's one of two things: |
33 |
> I've looked all options of my alsamixer, and it doesn't appear to me |
34 |
> that is's muted. I can play anything with MPlayer, and I can play an |
35 |
> HTML video by giving the url to Vlc... |
36 |
>>> 1. `alsamixer` hasn't been used to unmute the levels. After configuring |
37 |
>>> it, be sure to run 'alsactl store' as root and make sure the 'alsasound' |
38 |
>>> service is in the default run-level (`rc-update add alsasound default` |
39 |
>>> as root), or... |
40 |
>>> 2. Try adding these to your user's ~/.asoundrc file: |
41 |
> |
42 |
> Also: |
43 |
>>> defaults.ctl.card x; |
44 |
>>> defaults.pcm.card x; |
45 |
> I every do often change my default card... I have only these two lines |
46 |
> (if I grep out all that is commented out) in my: |
47 |
> $ cat ~/.asoundrc | grep -v '^#' |
48 |
> |
49 |
> pcm.!default { type hw card 1 } |
50 |
> ctl.!default { type hw card 1 } |
51 |
> |
52 |
> and sometimes I need to set it to 0, sometimes to 1 (depending of the |
53 |
> update of the system and where the old Hauppauge HVR3000's audio, or the |
54 |
> MBO's Intel HD Audio end up... |
55 |
> |
56 |
> So this below is what I somehow practice since long: |
57 |
>>> Replace 'x' with the numeric index of your card (which you can view in |
58 |
>>> alsamixer using F6). |
59 |
> That does give the option to choose the card. But it's only one of the |
60 |
> two, the Hauppauge or the Intel HD... |
61 |
> |
62 |
> Starting alsamixer and hitting F3 should be where to look for. And I |
63 |
> don't see anything the changing of which gives me audio to work in |
64 |
> Firefox... |
65 |
>>> If the order of your cards changes on boot, you'll |
66 |
>>> need to tell the module controlling your sound (snd_hda_intel is common) |
67 |
>>> to set its index in a file like /etc/modprobe.d/alsa-base.conf, with |
68 |
>>> lines like `options snd_hda_intel index=1` or something similar. |
69 |
> I have all built in the kernel. I do have audio, such as with MPlayer or |
70 |
> with Vlc, just I don't have audio in Firefox. |
71 |
> |
72 |
>>> Others have done a far better job explaining this than me. Our own guide |
73 |
>>> on our wiki [0] and Arch's wiki [1] should be adequate to get you going |
74 |
>>> fairly quickly. Just Ctrl+F "default" to find what you need. Assuming |
75 |
>>> you don't have exotic hardware, this can be fixed in 15 minutes or less. |
76 |
>>> |
77 |
>>> Hope this helps. |
78 |
>>> |
79 |
>>> [0]: https://wiki.gentoo.org/wiki/ALSA#Configuration |
80 |
>>> [1]: |
81 |
>>> https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture#Set_the_default_sound_card |
82 |
> It appears to be basically the same info as in your kind explanation... |
83 |
> |
84 |
> But this is now getting way more than 15 minutes... I will try to find |
85 |
> more time, still, but not hours, for this issue... |
86 |
> |
87 |
>> I don't think I even need to be back to report here if this just works |
88 |
> No, it doesn't. And the issue is not solved yet... |
89 |
> |
90 |
> Regards! |
91 |
> |
92 |
Hmm, that's strange... Your config looks sane to me (though specifying |
93 |
something as 'type hw' can interfere with mixing sometimes; an empty or |
94 |
non-existent ~/.asoundrc should default to dmix internally. I doubt this |
95 |
is your problem though since it works on everything else) |
96 |
|
97 |
Here's an idea: try using the ALSA_CARD environment variable and run |
98 |
Firefox with it. All you'll need is the name of your card. So if your |
99 |
card is named "Onboard", you'd issue this: |
100 |
|
101 |
ALSA_CARD="Onboard" firefox |
102 |
|
103 |
in a terminal, go to Youtube, and check stdout in the terminal. |
104 |
|
105 |
You can check for your card names with this pipeline: |
106 |
|
107 |
aplay -l | awk '/^card/{print$3}' | sort | uniq |
108 |
|
109 |
For me, my primary card is "SB", which is onboard Intel HDA. |
110 |
|
111 |
If you can get $ALSA_CARD to work, then we know firefox itself can play |
112 |
sound, but somehow isn't defaulting to the device you want it to. Back |
113 |
when I used ALSA + apulse (and intend to do so again some time in the |
114 |
future...), I used $ALSA_CARD for some programs that misbehaved and |
115 |
things were okay. |
116 |
|
117 |
If this persists as a problem for you, it might be worth opening a bug |
118 |
for it, as what I've shared is as far as my personal experience goes and |
119 |
other people may be experiencing the same issue. You'll need to provide |
120 |
'emerge --info' and possibly 'emerge -pv firefox' output if you choose |
121 |
to report a bug. |
122 |
|
123 |
Let me know how it goes. |
124 |
-- |
125 |
Daniel Campbell - Gentoo Developer |
126 |
OpenPGP Key: 0x1EA055D6 @ hkp://keys.gnupg.net |
127 |
fpr: AE03 9064 AE00 053C 270C 1DE4 6F7A 9091 1EA0 55D6 |