Author Topic: No Sound Web Browser (other apps ok) [Solved]  (Read 2216 times)

Offline hal8000

  • Sr. Member
  • ****
  • Posts: 346
No Sound Web Browser (other apps ok) [Solved]
« on: January 17, 2012, 04:47:03 AM »
I'm using PCLiuxOS 2011.09 ISO all updated.

I have no sound using Firefox or Chromium. All other sounds KDE , vlc, mplayer etc work.
Main sound card is built into my Gigabyte motherboard and uses the snd_hda_intel driver.
However my graphics card is an ATI 5770 with HDMI Audio and I'm  sure all sound from the web browser is being directed to the HDMI port.

So far, I've enabled and disabled pulse audio, changed output device preferences in Phonon and edited /etc/modprobe.conf  as per this post by Tex:

http://www.pclinuxos.com/forum/index.php/topic,66982.0.html


So far all my efforts have failed to create sound. I'm using iPlayer for reference.
Some hardware details:


[root@orac ~]# lspcidrake -v | fgrep -i AUDIO
snd_hda_intel   : ATI Technologies Inc|Juniper HDMI Audio [Radeon HD 5700 Series] (vendor:1002 device:aa58 subv:1682 subd:aa58)
snd_hda_intel   : Intel Corporation|5 Series/3400 Series Chipset High Definition Audio (vendor:8086 device:3b56 subv:1458 subd:a002) (rev: 06)


Top line is the HDMI connector on my ATI graphics card, bottom line sound built into motherboard.


cat /etc/modprobe.conf
install scsi_hostadapter /sbin/modprobe pata_it8213; /sbin/modprobe ahci; /sbin/modprobe ata_piix; /bin/true
install ide-controller /sbin/modprobe ide_generic; /bin/true
install usb-interface /sbin/modprobe ehci_hcd; /sbin/modprobe uhci_hcd; /bin/true
alias pci:v000010ECd00008168sv00001458sd0000E000bc02sc00i00 r8169
alias eth0 r8169
alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd_hda_intel
options snd_hda_intel index=1


Sound modules loaded by kernel:
[root@orac ~]# lsmod | grep snd
snd_usb_audio          70631  0
snd_usbmidi_lib        15440  1 snd_usb_audio
snd_rawmidi            15287  1 snd_usbmidi_lib
snd_hda_codec_hdmi     20480  1
snd_hda_codec_realtek   226487  1
snd_hda_intel          19109  5
snd_hda_codec          66310  3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep               4820  2 snd_usb_audio,snd_hda_codec
snd_seq_dummy           1135  0
snd_seq_oss            25264  0
snd_seq_midi_event      4648  1 snd_seq_oss
snd_seq                42136  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          4457  4 snd_rawmidi,snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss            33854  0
snd_pcm                60446  5 snd_usb_audio,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_timer              15383  2 snd_seq,snd_pcm
snd_mixer_oss          12981  1 snd_pcm_oss
snd                    43189  25 snd_usb_audio,snd_usbmidi_lib,snd_rawmidi,snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
soundcore               5025  1 snd
snd_page_alloc          5877  2 snd_hda_intel,snd_pcm
usbcore               117639  8 snd_usb_audio,snd_usbmidi_lib,usblp,usbhid,xhci_hcd,uhci_hcd,ehci_hcd

output of /dev/snd -l
[root@orac snd]# ls -l /dev/snd
total 0
drwxr-xr-x  2 root root       80 Jan 17 11:17 by-path/[root@orac snd]# ls -l /dev/snd
total 0
drwxr-xr-x  2 root root       80 Jan 17 11:17 by-path/
crw-rw----+ 1 root audio 116, 11 Jan 17 11:17 controlC0
crw-rw----+ 1 root audio 116,  8 Jan 17 11:17 controlC1
crw-rw----+ 1 root audio 116, 10 Jan 17 11:17 hwC0D0
crw-rw----+ 1 root audio 116,  7 Jan 17 11:17 hwC1D2
crw-rw----+ 1 root audio 116,  9 Jan 17 11:17 pcmC0D3p
crw-rw----+ 1 root audio 116,  6 Jan 17 11:17 pcmC1D0c
crw-rw----+ 1 root audio 116,  5 Jan 17 11:18 pcmC1D0p
crw-rw----+ 1 root audio 116,  4 Jan 17 11:17 pcmC1D1c
crw-rw----+ 1 root audio 116,  3 Jan 17 11:17 pcmC1D1p
crw-rw----+ 1 root audio 116,  2 Jan 17 11:17 pcmC1D2c
crw-rw----+ 1 root audio 116,  1 Jan 17 11:17 seq
crw-rw----+ 1 root audio 116, 33 Jan 17 11:17 timer

crw-rw----+ 1 root audio 116, 11 Jan 17 11:17 controlC0
crw-rw----+ 1 root audio 116,  8 Jan 17 11:17 controlC1
crw-rw----+ 1 root audio 116, 10 Jan 17 11:17 hwC0D0
crw-rw----+ 1 root audio 116,  7 Jan 17 11:17 hwC1D2
crw-rw----+ 1 root audio 116,  9 Jan 17 11:17 pcmC0D3p
crw-rw----+ 1 root audio 116,  6 Jan 17 11:17 pcmC1D0c
crw-rw----+ 1 root audio 116,  5 Jan 17 11:18 pcmC1D0p
crw-rw----+ 1 root audio 116,  4 Jan 17 11:17 pcmC1D1c
crw-rw----+ 1 root audio 116,  3 Jan 17 11:17 pcmC1D1p
crw-rw----+ 1 root audio 116,  2 Jan 17 11:17 pcmC1D2c
crw-rw----+ 1 root audio 116,  1 Jan 17 11:17 seq
crw-rw----+ 1 root audio 116, 33 Jan 17 11:17 timer


I have not yet tried an alternate desktop (to see if its just related to KDE) but open to suggestions,
thanks in advance.
« Last Edit: January 23, 2012, 11:29:08 AM by hal8000 »

Offline arkanabar

  • Full Member
  • ***
  • Posts: 200
  • Ain't I a Stinker?
    • Arkanabar's Eclectic Rants
Re: No Sound Web Browser (other apps ok)
« Reply #1 on: January 20, 2012, 12:06:51 PM »
I>'m having the same issue with a Radeon HD 4700 and an Abit KN8 Ultra v1.1 mobo (which is what I always use for sound).  I tried >Texstar's trick from the thread referenced above.

output from lspcidrake -v | fgrep -i AUDIO was
Code: [Select]
snd_intel8x0    : nVidia Corporation|CK804 AC'97 Audio Controller [MULTIMEDIA_AUDIO] (vendor:10de device:0059 subv:147b subd:1c1a) (rev: a2)
As a side note, avoid Rosewill RK101 PS/2 keyboards.  In linux, holding down the left shift key causes extra "greater than" characters to be inserted into input, very distressing when entering passwords.

edit:  more output.
/etc/modprobe.conf
Code: [Select]
install scsi_hostadapter /sbin/modprobe sata_nv; /sbin/modprobe pata_amd; /bin/true
install ide-controller /sbin/modprobe ide_generic; /bin/true
install usb-interface /sbin/modprobe ehci_hcd; /sbin/modprobe ohci_hcd; /bin/true
alias sound-slot-1 snd_intel8x0
alias eth0 forcedeth
alias snd-card-0 snd_hda_intel
alias sound-slot-0 snd-hda-intel
options snd_hda_inted index=1
lsmod | grep snd
Code: [Select]
snd_usb_audio          70631  0
snd_usbmidi_lib        15440  1 snd_usb_audio
snd_rawmidi            15287  1 snd_usbmidi_lib
snd_intel8x0           22574  2
snd_ac97_codec         90143  1 snd_intel8x0
ac97_bus                 850  1 snd_ac97_codec
snd_hda_codec_hdmi     20480  1
snd_hda_intel          19109  2
snd_hda_codec          66310  2 snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep               4820  2 snd_usb_audio,snd_hda_codec
snd_seq_dummy           1135  0
snd_seq_oss            25264  0
snd_seq_midi_event      4648  1 snd_seq_oss
snd_seq                42136  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          4457  4 snd_rawmidi,snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss            33854  0
snd_pcm                60446  7 snd_usb_audio,snd_intel8x0,snd_ac97_codec,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_timer              15383  2 snd_seq,snd_pcm
snd_mixer_oss          12981  1 snd_pcm_oss
snd                    43189  24 snd_usb_audio,snd_usbmidi_lib,snd_rawmidi,snd_intel8x0,snd_ac97_codec,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
soundcore               5025  1 snd
snd_page_alloc          5877  3 snd_intel8x0,snd_hda_intel,snd_pcm
usbcore               117639  8 snd_usb_audio,snd_usbmidi_lib,usbhid,uas,usb_storage,ohci_hcd,ehci_hcd
« Last Edit: January 20, 2012, 12:13:45 PM by arkanabar »

Offline Vorteggs

  • Hero Member
  • *****
  • Posts: 2425
Re: No Sound Web Browser (other apps ok)
« Reply #2 on: January 20, 2012, 12:13:56 PM »
I am experiencing alternative block-outs:

If I play sound in browser there's no sound in some players.

If I play sound in a player there's no sound in some browsers.

Since that some is not general I still can find the sound in both cases.

-------------------
But there's some problem I think. May be PulseAudio<->Alsa discrepancies?


Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10696
  • MLUs Forever!
Re: No Sound Web Browser (other apps ok)
« Reply #3 on: January 20, 2012, 01:09:56 PM »
hal8000,
                with Pulse Audio installed and working, launch (install if necessary) pavucontrol.
On its configuration tab select the HDMI drop-down list and disable the HDMI.

All sounds should now be directed elsewhere.

If you wish to leave it enabled for some uses ......  say a particular application which you use to play video put the HDMI port, then on the Playback tab, with an app playing a sound you cannot hear, select the drop-down for that app and direct the sound stream to other than the HDMI port.

It works very well here.

All settings are remembered on a per-application basis.

MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline arkanabar

  • Full Member
  • ***
  • Posts: 200
  • Ain't I a Stinker?
    • Arkanabar's Eclectic Rants
Re: No Sound Web Browser (other apps ok)
« Reply #4 on: January 20, 2012, 03:10:44 PM »
Just18,
pulseaudio worked for me.  I may disable amplification, cos stuff is REALLY loud.

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10696
  • MLUs Forever!
Re: No Sound Web Browser (other apps ok)
« Reply #5 on: January 20, 2012, 04:09:46 PM »
Just18,
pulseaudio worked for me.  I may disable amplification, cos stuff is REALLY loud.

Try using the sliders in pavucontrol to set things ......  or maybe the sliders in Kmix might suffice ......  launch the mixer.

Glad to know it helped with your problem  ;)
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline hal8000

  • Sr. Member
  • ****
  • Posts: 346
Re: No Sound Web Browser (other apps ok)
« Reply #6 on: January 22, 2012, 05:53:39 AM »
hal8000,
                with Pulse Audio installed and working, launch (install if necessary) pavucontrol.
On its configuration tab select the HDMI drop-down list and disable the HDMI.

All sounds should now be directed elsewhere.


Hi Just18, I think your solution may work for me, but now I have a new problem pavucontrol does not start - says connection refused. A quick google and I see I am not alone with this error either.

If I start the terminal in KDE, and try pulse-audio I get

[anc@orac $ pulseaudio
E: main.c: Daemon startup without any loaded modules, refusing to work.


So now I know no pulse audio hasn't loaded modules.
If I try pulse-enable:

[anc@orac ]$ pulse-enable
update-alternatives: unable to open /var/lib/rpm/alternatives/soundprofile.rpm-new for write: Permission denied
update-alternatives: unable to open /var/lib/rpm/alternatives/soundprofile.rpm-new for write: Permission denied
update-alternatives: unable to open /var/lib/rpm/alternatives/soundprofile.rpm-new for write: Permission denied
Can't remove /etc/sysconfig/pulseaudio: Permission denied, skipping file.
Pulse Audio has been enabled. Please reboot your system now.

If I cd to   /var/lib/rpm/alternatives

I only have 1 file, soundprofile, not soundprofile.rpm-new.
I may try creating the file manually, but for now the contents of soundprofile are below:

cat soundprofile
auto
/etc/sound/profiles/current

/etc/sound/profiles/pulse
20


Not sure if 20 is referring to the script order.
Wonder if you could post me contents of your
soundprofile and soundprofile.rpm-new

file if they are on your system. Sound is working, just the annoying no sound from browser
which is redirected to HDMI audio.
Thanks for your help so far.



/etc/sound/profiles/pulse
20



Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10696
  • MLUs Forever!
Re: No Sound Web Browser (other apps ok)
« Reply #7 on: January 22, 2012, 06:13:37 AM »
Quote
Hi Just18, I think your solution may work for me, but now I have a new problem pavucontrol does not start - says connection refused.

First of all make sure that you have installed PulseAudio using the meta package in the repo .....  task-pulseaudio in Synaptic.

The only time this has happened here is when PulseAudio is not running ......  so the connection cannot be made.

I think if you approach the problem from that angle you may solve it ......  maybe initially turn it off in PCC and reboot, then turn it on again in PCC and reboot.
Do NOT do anything before those reboots.
When turning on/off PA ensure you have no apps running.

After rebooting with PA turned on again, try launching pavucontrol.

If this does not work then I suggest you remove PA (task-pulseaudio-remove), reboot, and reinstall and turn it on, then reboot again.

regards.

Quote
[anc@orac ]$ pulse-enable

I would imagine you need to be root for this ..... hence permission denied
« Last Edit: January 22, 2012, 06:18:03 AM by Just18 »
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline hal8000

  • Sr. Member
  • ****
  • Posts: 346
Re: No Sound Web Browser (other apps ok) [Solved]
« Reply #8 on: January 23, 2012, 11:30:19 AM »
Hi Just18,
Thanks for all your help. I did not have task-pulseaudio installed.
Removed all , rebooted reinstalled and now sound works, thank
you for the support.

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10696
  • MLUs Forever!
Re: No Sound Web Browser (other apps ok) [Solved]
« Reply #9 on: January 23, 2012, 12:27:59 PM »
Hi Just18,
Thanks for all your help. I did not have task-pulseaudio installed.
Removed all , rebooted reinstalled and now sound works, thank
you for the support.

Glad you got it sorted  ;)
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline cpufrier

  • Full Member
  • ***
  • Posts: 72
Re: No Sound Web Browser (other apps ok) [Solved]
« Reply #10 on: July 03, 2012, 07:31:58 PM »
Just18, Thanks for the Pulse Audio tip. I am dual booting Win7 and PCLOS on my new Acer Aspire 5560G and had the same no Firefox or Clementine Sound and crippled Kmixer. I got Clementine going by changing the output settings in Clementine but only your tip on installing, enabling, pulses audio, then unenabling and removing Pulse audio via KCC and Syanaptic then all back in again fixed it all. Settings in Pulse audio needed tweaking by setting the capture to monitor of analog speakers vs analog speakers. It also took me a while to figure out a program, like Audacity,  had to be running before Pulse audio would see a recording stream.  Now as far as I can tell, this Laptop is 100% functional in PCLOS. 

Off topic, PCLOS 2012.4 did not initially recognize the Broadcom wifi but the very first update fixed it.
Thanks guys

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10696
  • MLUs Forever!
Re: No Sound Web Browser (other apps ok) [Solved]
« Reply #11 on: July 03, 2012, 10:34:06 PM »
Glad it helped cpufrier  ;)

***

There are also a lot of other functions available in PulseAudio, such as
recording
loopback mixing
sending & receiving audio on the LAN
etc

For some items there are extra pulseaudio-modules to be installed, while for others the functions are there but you may have to discover them.


I have posted some of my musings, while trying to understand PulseAudio in this thread ...

http://www.pclinuxos.com/forum/index.php/topic,105160.0.html

You may find something of interest ...... for instance I posted a (very very simple) PA-recording script which allows you to record from any device that PA can handle.

;)
« Last Edit: July 03, 2012, 10:37:51 PM by Just18 »
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT