You are not logged in.

#1 2011-12-27 04:05:23

slimg00dy
Member
Registered: 2011-12-27
Posts: 50

[Solved] Unable to get audio in browsers.

Hi, I just installed arch linux for the first time yesterday, I got most of it working (kde, network, nvidia, video, audio-just not in flash).

Everything went smoothly thanks to the documentation except for one thing.

Problem: no sound in browsers (at least when using flash).

Browsers:
Opera (installed through source from opera.com, then removed, then installed from pacman).
Konqurer

installed pulseaudio and alsa backend.

I've installed flash from adobe (libflashplayer) in /usr/lib/mozilla/plugins (pointed the plugins folder for both browsers to that directory).

Removed that and installed flashplugin through pacman.

still nothing.

Sound works in everything else except browsers.

Last edited by slimg00dy (2011-12-30 05:08:19)

Offline

#2 2011-12-27 04:14:09

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Unable to get audio in browsers.

Are you using 32 or 64 bits?
What sound modules are being loaded? I may be wrong on this one, but try loading snd-pcm-oss.

Offline

#3 2011-12-27 04:23:35

slimg00dy
Member
Registered: 2011-12-27
Posts: 50

Re: [Solved] Unable to get audio in browsers.

Here are the modules I have available.

Linux myhost 3.1.5-1-ARCH #1 SMP PREEMPT Sat Dec 10 14:43:09 CET 2011 x86_64 AMD FX(tm)-8120 Eight-Core Processor AuthenticAMD GNU/Linux
[slimg00dy@myhost opera-11.60-1185.x86_64.linux]$ 
[slimg00dy@myhost opera-11.60-1185.x86_64.linux]$ lsmod
Module                  Size  Used by
ipv6                  288122  22 
fuse                   66858  2 
snd_usb_audio          93005  3 
snd_usbmidi_lib        18697  1 snd_usb_audio
snd_rawmidi            19458  1 snd_usbmidi_lib
snd_seq_device          5300  1 snd_rawmidi
joydev                  9895  0 
hid_logitech           12552  0 
ff_memless              4739  1 hid_logitech
usbhid                 35352  1 hid_logitech
hid                    82435  2 hid_logitech,usbhid
nvidia              12069499  42 
snd_hda_codec_realtek   282272  1 
usb_storage            44487  0 
evdev                   9530  6 
mxm_wmi                 1425  0 
snd_hda_intel          22410  3 
serio_raw               4294  0 
uas                     8088  0 
snd_hda_codec          81242  2 snd_hda_codec_realtek,snd_hda_intel
edac_core              37552  0 
snd_hwdep               6357  2 snd_usb_audio,snd_hda_codec
firewire_ohci          29650  0 
pcspkr                  1819  0 
snd_pcm                74368  5 snd_usb_audio,snd_hda_intel,snd_hda_codec
fam15h_power            2406  0 
firewire_core          50872  1 firewire_ohci
k10temp                 2883  0 
edac_mce_amd           13215  0 
snd_timer              19544  1 snd_pcm
snd                    58362  20 snd_usb_audio,snd_usbmidi_lib,snd_rawmidi,snd_seq_device,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
r8169                  45411  0 
crc_itu_t               1363  1 firewire_core
mii                     4059  1 r8169
soundcore               6210  1 snd
snd_page_alloc          7153  2 snd_hda_intel,snd_pcm
sp5100_tco              4568  0 
i2c_piix4               8224  0 
ata_generic             3327  0 
button                  4470  0 
processor              24224  8 
i2c_core               20460  2 nvidia,i2c_piix4
wmi                     8475  1 mxm_wmi
ext4                  375413  4 
mbcache                 5881  1 ext4
jbd2                   70667  1 ext4
crc16                   1359  1 ext4
sr_mod                 14951  0 
cdrom                  36553  1 sr_mod
sd_mod                 28275  8 
ohci_hcd               21714  0 
pata_atiixp             3928  0 
ahci                   20005  5 
libahci                19559  1 ahci
pata_acpi               3376  0 
libata                166724  5 ata_generic,pata_atiixp,ahci,libahci,pata_acpi
ehci_hcd               40762  0 
scsi_mod              132826  5 usb_storage,uas,sr_mod,sd_mod,libata
xhci_hcd               71631  0 
usbcore               144432  9 snd_usb_audio,snd_usbmidi_lib,usbhid,usb_storage,uas,ohci_hcd,ehci_hcd,xhci_hcd

Offline

#4 2011-12-27 07:42:58

Nanashi
Member
Registered: 2011-12-24
Posts: 16

Re: [Solved] Unable to get audio in browsers.

Have you tried installing gstreamer? Thats what helped me with my audio problems.

Offline

#5 2011-12-27 07:50:56

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: [Solved] Unable to get audio in browsers.

Flash doesn't need Gstreamer to work properly...

Edit: Neither it should need OSS. Type alsamixer in konsole, and check if all sound sources are enabled.

Last edited by bohoomil (2011-12-27 07:53:33)


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#6 2011-12-27 11:34:33

Pieter-Jan
Member
Registered: 2011-11-20
Posts: 9

Re: [Solved] Unable to get audio in browsers.

https://wiki.archlinux.org/index.php/Browser_Plugins

+Flash blocks sound and/or delayed playback

+No sound in Flash

Offline

#7 2011-12-27 19:24:25

slimg00dy
Member
Registered: 2011-12-27
Posts: 50

Re: [Solved] Unable to get audio in browsers.

Hi, thanks for the suggestions however I'm at work right now so I'll have to wait a bit until I'm home.

I'm pretty sure I have gstreamer already installed as I can play anything but flash sound.

As you can see I don't have snd_pcm_oss loaded cause I was planning on using pulseaudio/alsa for my sound.

Also I don't believe I have alsamixer installed yet.  If I'm not mistaken I may need to install alsa-utils still.

I've already been on https://wiki.archlinux.org/index.php/Browser_Plugins for the solution but I believe I wasn't able to use "aplay -l" which might also be a package that comes with alsa-utils

I do have multiple sound cards, one is a USB headset (USB sound card), the other is the onboard, so I'll have to give this a shot again tonight.

edit:  Also please do keep in mind this is my first time using arch.  I've always been using fedora, centos, and ubuntu for the past couple of years, so this is my first advanced linux distro.

Cheers

-slimg00dy-

Last edited by slimg00dy (2011-12-27 19:27:07)

Offline

#8 2011-12-27 19:38:24

urza9814
Member
Registered: 2010-06-05
Posts: 28

Re: [Solved] Unable to get audio in browsers.

Try installing these two packages too if you're using pulseaudio:

lib32-alsa-plugins
lib32-libcanberra-pulse

Last edited by urza9814 (2011-12-27 19:38:47)

Offline

#9 2011-12-27 20:07:41

slimg00dy
Member
Registered: 2011-12-27
Posts: 50

Re: [Solved] Unable to get audio in browsers.

I hope that's in the normal core, extra, or multilib repo.

Offline

#10 2011-12-27 20:13:34

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Unable to get audio in browsers.

slimg00dy wrote:

I hope that's in the normal core, extra, or multilib repo.

Both are in multilib.

Offline

#11 2011-12-28 06:05:39

slimg00dy
Member
Registered: 2011-12-27
Posts: 50

Re: [Solved] Unable to get audio in browsers.

[slimg00dy@myhost opera-11.60-1185.x86_64.linux]$ sudo pacman -S alsa-utils
Password: 
resolving dependencies...
looking for inter-conflicts...

Targets (2): dialog-1.1_20111020-1  alsa-utils-1.0.24.2-3

Total Download Size:    1.06 MB
Total Installed Size:   3.36 MB

Proceed with installation? [Y/n] y
:: Retrieving packages from core...
 dialog-1.1_20111020-1-x86_64                                                       161.7K  185.9K/s 00:00:01 [##################################################################] 100%
:: Retrieving packages from extra...
 alsa-utils-1.0.24.2-3-x86_64                                                       924.2K  622.1K/s 00:00:01 [##################################################################] 100%
(2/2) checking package integrity                                                                              [##################################################################] 100%
(2/2) checking for file conflicts                                                                             [##################################################################] 100%
(1/2) installing dialog                                                                                       [##################################################################] 100%
(2/2) installing alsa-utils                                                                                   [##################################################################] 100%
[slimg00dy@myhost opera-11.60-1185.x86_64.linux]$ pacman -S lib32-alsa-plugins
error: you cannot perform this operation unless you are root.
[slimg00dy@myhost opera-11.60-1185.x86_64.linux]$ sudo pacman -S lib32-alsa-plugins
warning: lib32-alsa-plugins-1.0.24-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Targets (1): lib32-alsa-plugins-1.0.24-1

Total Download Size:    0.00 MB
Total Installed Size:   0.16 MB

Proceed with installation? [Y/n] y
(1/1) checking package integrity                                                                              [##################################################################] 100%
(1/1) checking for file conflicts                                                                             [##################################################################] 100%
(1/1) upgrading lib32-alsa-plugins                                                                            [##################################################################] 100%
[slimg00dy@myhost opera-11.60-1185.x86_64.linux]$ ^Cdo lib32-libcanberra-pulse
[slimg00dy@myhost opera-11.60-1185.x86_64.linux]$ sudo pacman -S lib32-libcanberra-pulse
warning: lib32-libcanberra-pulse-0.28-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Targets (1): lib32-libcanberra-pulse-0.28-1

Total Download Size:    0.00 MB
Total Installed Size:   0.03 MB

Proceed with installation? [Y/n] y
(1/1) checking package integrity                                                                              [##################################################################] 100%
(1/1) checking for file conflicts                                                                             [##################################################################] 100%
(1/1) upgrading lib32-libcanberra-pulse                                                                       [##################################################################] 100%
[slimg00dy@myhost opera-11.60-1185.x86_64.linux]$

Looks like I already had those.

Pulse doesn't seem to detect any streams from flash at all.

Last edited by slimg00dy (2011-12-28 06:06:14)

Offline

#12 2011-12-28 19:53:15

slimg00dy
Member
Registered: 2011-12-27
Posts: 50

Re: [Solved] Unable to get audio in browsers.

Also I used alsamixer and everytime I go to the default card it chooses the USB sound card which is card 1, not card 0.

Offline

#13 2011-12-29 19:12:20

slimg00dy
Member
Registered: 2011-12-27
Posts: 50

Re: [Solved] Unable to get audio in browsers.

For the sake of marking this as solved and putting it out there for other people.  I had to go to the AUR (arch unofficial repo) and get http://aur.archlinux.org/packages.php?ID=13384.

Once I extracted the tarball and ran makepkg on the extracted file, then did pacman -U on the .xz file...........

Point is flash sound now works.

Thanks!

Offline

#14 2011-12-29 19:19:32

slimg00dy
Member
Registered: 2011-12-27
Posts: 50

Re: [Solved] Unable to get audio in browsers.

Need to mark this as solved, not sure how to do that big_smile

Offline

#15 2011-12-29 19:37:03

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Unable to get audio in browsers.

slimg00dy wrote:

Need to mark this as solved, not sure how to do that big_smile

Please read the forum rules https://bbs.archlinux.org/viewtopic.php?id=130309 :-)

Offline

#16 2011-12-30 05:08:31

slimg00dy
Member
Registered: 2011-12-27
Posts: 50

Re: [Solved] Unable to get audio in browsers.

karol wrote:
slimg00dy wrote:

Need to mark this as solved, not sure how to do that big_smile

Please read the forum rules https://bbs.archlinux.org/viewtopic.php?id=130309 :-)


Thanks!

Offline

Board footer

Powered by FluxBB