You are not logged in.

#1 2016-11-02 19:19:04

mullins
Member
From: Prague, Czech Republic
Registered: 2016-11-02
Posts: 10

[SOLVED] No sound in Opera, Firefox and native Web browser

Hello,

I have a fresh Arch install and no sound from web. Initially, I had no sound at all, but after loading kernel modules snd-seq-oss, snd-pcm-oss and snd-mixer-oss, I can hear music and movies in mplayer fine.

What I've tried so far:

  • muting/unmuting the channels in alsamixer, rebooting

  • different browsers: Opera, Firefox, the native Arch web browser

  • renaming /etc/asound.conf to /etc/asound.backup (is this the same as deleting the file ?)

  • installing gst-plugins-ugly, ffmpeg

  • adding ~/.asoundrc (see below)

  • running fuser -v /dev/snd/*

~/.asoundrc

pcm.pulse { type pulse }
ctl.pulse { type pulse }
pcm.!default { type pulse }
ctl.!default { type pulse }

alsa-info details:
http://www.alsa-project.org/db/?f=163b0 … abf2779795

I went through following topics:
https://bbs.archlinux.org/viewtopic.php?id=181615
https://bbs.archlinux.org/viewtopic.php?id=150615
https://bbs.archlinux.org/viewtopic.php?id=100150
https://www.reddit.com/r/archlinux/comm … _no_sound/
https://ubuntuforums.org/showthread.php?t=1455816
of course googling and serching multimedia and newbie corner and wiki, but to no avail.

Last edited by mullins (2016-11-03 08:03:05)

Offline

#2 2016-11-02 22:40:08

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,645

Re: [SOLVED] No sound in Opera, Firefox and native Web browser

Loading snd-oss modules doesn't sound like something you'd want to do. Remove your .asoundrc and install pulseaudio-alsa instead. Post the outputs of

uname -a
sudo fuser -v /dev/snd/*
pacmd list-cards
pacmd list-sinks
pacmd list-sink-inputs #While playing something

Offline

#3 2016-11-02 22:44:44

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] No sound in Opera, Firefox and native Web browser

mullins wrote:

different browsers: Opera, Firefox, the native Arch web browser

Are you sure you're running Arch? It doesn't have a native web browser.

Last edited by Slithery (2016-11-02 22:45:11)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#4 2016-11-03 00:30:26

mullins
Member
From: Prague, Czech Republic
Registered: 2016-11-02
Posts: 10

Re: [SOLVED] No sound in Opera, Firefox and native Web browser

slithery wrote:

Are you sure you're running Arch? It doesn't have a native web browser.

Ah, so it's probably native to Gnome. My bad. But I am running Arch anyway (you can check the link alsa-info details in OP).

Loading snd-oss modules is what allowed me to hear sound at least from mplayer. I followed advice from here (OSS compatibility was my case):
https://wiki.archlinux.org/index.php/Ad … stallation

I had pulseaudio-alsa installed. Now I checked again - it is up-to-date.
Anyway:

uname -a
Linux mullins-PC 4.8.4-1-ARCH #1 SMP PREEMPT Sat Oct 22 18:26:57 CEST 2016 x86_64 GNU/Linux

sudo fuser -v /dev/snd/*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  gdm         407 F.... pulseaudio
                     mullins     590 F.... pulseaudio

pacmd list-cards:
http://pastebin.com/MaN4yzkz

pacmd list-sinks
http://pastebin.com/z8my3zx3

pacmd list-sink-inputs #While playing something from Mplayer (I hear it)
0 sink input(s) available.

..but I get this when I play it from Opera (hear nothing)
pacmd list-sink-inputs #While playing something from Opera (I hear nothing)
http://pastebin.com/BNf5yRxW

Thank you

Offline

#5 2016-11-03 01:24:31

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,645

Re: [SOLVED] No sound in Opera, Firefox and native Web browser

Your pulse sink is set to play to the digital output, which is unlikely to be what you want use

pacmd set-card-profile alsa_card.pci-0000_00_1b.0 output:analog-stereo+input:analog-stereo

and/or install pavucontrol to have a GUI to visualize that. (And make mplayer output to an ALSA or pulseaudio sink, using the oss emulation will break if you want audio at the same time from different sources)

Offline

#6 2016-11-03 08:02:18

mullins
Member
From: Prague, Czech Republic
Registered: 2016-11-02
Posts: 10

Re: [SOLVED] No sound in Opera, Firefox and native Web browser

Great, it works! Thank you.

Offline

Board footer

Powered by FluxBB