LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-22-2014, 10:40 PM   #1
harkonen
Member
 
Registered: May 2007
Distribution: slackware
Posts: 46

Rep: Reputation: 16
No Sound in Firefox (not a Flash question!)


Chromium and Opera play sound.
Firefox does not. (Nor does SeaMonkey.)

I have a System76 Gazelle Pro, which has an HDMI output as card0 and PCH as card1.


Things I have tried so far:

- I have created an ~/.asoundrc file defining the default sound card. This worked for Chromium and Opera but has no effect on Firefox.

- I have reset Firefox to default settings.

- I have created an /etc/asound.conf file

- I have set default sound device in KDE through System Settings


Nothing seems to be getting Firefox to give me sound!
 
Old 02-23-2014, 03:21 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
What web pages have you tried and failed to get sound when using Firefox? I don't really understand what you're trying to do without seeing some examples.
jdk
 
Old 02-23-2014, 01:48 PM   #3
harkonen
Member
 
Registered: May 2007
Distribution: slackware
Posts: 46

Original Poster
Rep: Reputation: 16
Any webpage. It is not a site-specific issue. Sites I've tried: youtube.com, revision3.com, tuxradar.com, lots more; anything that I play in Firefox renders no sound.

There is sound from all sites when browsing in Chromium or Opera.


I am attempting to configure either my system or Firefox so that I get sound from Firefox, as it is my preferred browser.
 
Old 02-23-2014, 01:51 PM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
This is still very vague. Can you post a url involving sound which fails to play. And what makes you think that it's not a flash issue? Is the flash plugin installed and functioning properly?
jdk
 
Old 02-23-2014, 04:42 PM   #5
harkonen
Member
 
Registered: May 2007
Distribution: slackware
Posts: 46

Original Poster
Rep: Reputation: 16
http://www.youtube.com/watch?v=FN6Q--zqroM
http://tuxradar.com/content/podcast-season-6-episode-1
https://archive.org/details/UNIX1985

All of these play both video and sound in Chromium and Opera.
All of these play video ONLY, with no sound, in Firefox and SeaMonkey.

Flash is definitely not involved, as I do not have Flash installed on my computer. I don't use Flash for philosophical reasons. (I stated in the topic that it was not a Flash issue only because every internet search I've done in an attempt to remedy this problem seems to always assume it's Flash-related.)

Last edited by harkonen; 02-23-2014 at 04:55 PM.
 
Old 02-23-2014, 11:41 PM   #6
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Your second link, http://tuxradar.com/content/podcast-season-6-episode-1, doesn't appear to involve video and the audio uses the ogg format which FireFox can handle unless you have a very old version (older than 3.5) of Firefox. Some youtube videos use the htlm5 player which is included with recent versions of Firefox. What version of Firefox are you using?
jdk
 
Old 02-24-2014, 12:05 AM   #7
harkonen
Member
 
Registered: May 2007
Distribution: slackware
Posts: 46

Original Poster
Rep: Reputation: 16
Firefox 24.3 ESR

It works fine on my other computers, just not on this one.

I am pretty sure it's a soundcard config thing. I have ~/.asoundrc

# Setting default device
defaults.ctl.card 1
defaults.pcm.card 1
defaults.timer.card 1

pcm.!default {
type hw
card 1
device 0
}

ctl.!default {
type hw
card 1
device 0
}

# Enable mixing
pcm.dsp {
type plug
slave.pcm "dmix"


and if I do `aplay -l`
card 0: MID [HDA Intel MID], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: MID [HDA Intel MID], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: MID [HDA Intel MID], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: VT1802 Analog [VT1802 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 2: VT1802 Alt Analog [VT1802 Alt Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
 
Old 02-24-2014, 03:08 AM   #8
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
I don't have ~/.asoundrc on my system so I can't help there. What sound system are you using? alsa? pulseaudio? oss? something else? Have you checked that nothing is muted?
jdk
 
Old 02-24-2014, 12:23 PM   #9
harkonen
Member
 
Registered: May 2007
Distribution: slackware
Posts: 46

Original Poster
Rep: Reputation: 16
Alsa, no pulse. Nothing is muted in alsamixer. Besides, I know of no Firefox-specific sound output that I could mute that would render Firefox sound-less but Opera and Chromium with sound.

It's a puzzle!
 
Old 03-02-2014, 01:37 AM   #10
harkonen
Member
 
Registered: May 2007
Distribution: slackware
Posts: 46

Original Poster
Rep: Reputation: 16
I figured it out.

Using the kernel argument:

snd-hda-intel.index=1,0

I was able to override the way the sound card was getting mapped, so my analog output is now being mapped to card0 and the HDMI to card1

I removed .asoundrc so now I am no longer remapping sound in userland.

And now everything works, including the HTML5 video and audio in Firefox.

I'm not running Gentoo, but this was my references, and it was correct:
http://wiki.gentoo.org/wiki/ALSA#HTM...irefox_browser

None of this explains why Firefox and other Mozilla applications are ignoring the user's preferences of which sound card to prefer, but I guess that's an issue for Mozilla's bug reporting.

Last edited by harkonen; 03-02-2014 at 01:39 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No sound in flash, Firefox ChiVampir Linux - Software 9 08-26-2010 06:41 AM
[SOLVED] No sound in firefox flash 2handband Slackware 34 06-22-2010 09:37 PM
No sound in Firefox (flash) dude998866 Linux - Software 1 12-08-2007 12:38 PM
No sound in Flash 9 Firefox 1.5.0.7 Stormscape Linux - Software 3 11-04-2006 11:23 AM
sound in flash (firefox) darkleaf Linux - Software 1 06-14-2005 08:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration