You are not logged in.

#1 2018-08-28 04:16:01

vuxo
Member
Registered: 2018-08-28
Posts: 8

No sound in Firefox Nightly

Hey, community!

Had a ~/.asoundrc file and it was working ok'ish. But felt it wasn't the "right way" of configure my system, it worked with Vivaldi but when other application was opened, the audio was ignored and you know, being a compulsive perfectionist I eventually snaped. The current problem is that, I'm moving away from Vivaldi to Firefox (Nightly), but there's a problem ... there's no sound. Even the trivial stuff (a.k.a YouTube) is not working!

Here's the output generated by fuser -v /dev/snd/*

[vuxo@archpc ~]$ fuser -v /dev/snd/*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  vuxo        751 F.... panel-5-mixer
/dev/snd/controlC1:  vuxo        751 F.... panel-5-mixer

Here's my /etc/asound.conf:

[vuxo@archpc ~]$ cat /etc/asound.conf 
# Use PulseAudio by default
pcm.!default {
  type pulse
  fallback "sysdefault"
  hint {
    show on
    description "Default ALSA Output (currently PulseAudio Sound Server)"
  }
}

ctl.!default {
  type pulse
  fallback "sysdefault"
}

# vim:set ft=alsaconf:

Here's my aplay -l:

[vuxo@archpc Desktop]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 0: CX20756 Analog [CX20756 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Before I forget, I think ALSA and pulse-alsa are installed.

It is worth mentioning that I'm a noob (like you wouldn't have noticed it, lol).

Thank you very much for your time, hope you can help me.

Last edited by vuxo (2018-08-30 14:54:46)

Offline

#2 2018-08-28 07:35:05

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: No sound in Firefox Nightly

vuxo wrote:
[vuxo@archpc ~]$ fuser -v /dev/snd/*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  vuxo        751 F.... panel-5-mixer
/dev/snd/controlC1:  vuxo        751 F.... panel-5-mixer

Doesn't look like pulseaudio is running. AFAIK Firefox doesn't support ALSA any more, and you need to have pulseaudio running for audio.

Last edited by ooo (2018-08-28 07:39:23)

Offline

#3 2018-08-28 23:58:18

vuxo
Member
Registered: 2018-08-28
Posts: 8

Re: No sound in Firefox Nightly

After installing pulseaudio-alsa I forgot to reboot. As soon as I did that, the problem was gone.

Thanks.


Edit:

Once I click the "MUTE" button, and press it again the sound doesn't return sad

 [vuxo@archpc ~]$ fuser -v /dev/snd/*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  vuxo        623 F.... panel-5-mixer
                     vuxo        640 F.... pulseaudio
/dev/snd/controlC1:  vuxo        623 F.... panel-5-mixer
                     vuxo        640 F.... pulseaudio
/dev/snd/pcmC1D0p:   vuxo        640 F...m pulseaudio

What Can I do?

Last edited by vuxo (2018-08-29 01:55:11)

Offline

#4 2018-08-29 07:49:35

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

Re: No sound in Firefox Nightly

Is that xfce ? Use xfce4-pulseaudio-plugin to control your volumes instead of the default volume mixer.

Offline

#5 2018-08-29 15:36:59

vuxo
Member
Registered: 2018-08-28
Posts: 8

Re: No sound in Firefox Nightly

V1del wrote:

Is that xfce ?

Indeed.

V1del wrote:

Use xfce4-pulseaudio-plugin to control your volumes instead of the default volume mixer.

I installed paprefs, pavucontrol and xfce4-pulseaudio-plugin. I'll not use paprefs since it is meant to be used for audio control over the network, but on the other hand ... pavucontrol helped me unmutting my system using its GUI but it's SOOO tedious to open the app and click the speaker everytime! (PulseAudio Volumen Control > Output devices > Click on the speaker next to Built-in Audio Analog Stereo). For xfce4-pulseaudio-plugin, I didn't know it was meant to be used as a panel on xcfe4 smile, will try that out too and post the results.


One more thing, this is pulseaudios's mute/unmute command (wiki):

pactl set-sink-mute @DEFAULT_SINK@ toggle

Works like a champ on the terminal, but fails as a keyboard shortcut

Last edited by vuxo (2018-08-30 00:24:08)

Offline

#6 2018-08-29 15:44:24

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

Re: No sound in Firefox Nightly

There's no reason for it to fail as a shortcut, which key and where did you set it? it's likely that some other application grabs the event before your shortcuthandler gets to it (and the standard volume managers/mixers all do afaik, if you start to use the pulse plugin it should also provide shortcuthandlers for these common buttons.)

Offline

#7 2018-08-30 00:36:59

vuxo
Member
Registered: 2018-08-28
Posts: 8

Re: No sound in Firefox Nightly

V1del wrote:

Use xfce4-pulseaudio-plugin to control your volumes instead of the default volume mixer.

It works! Easier than using the PulseAudio Volumen Control application.

V1del wrote:

There's no reason for it to fail as a shortcut, which key and where did you set it?

Well, after restarting Arch it magically worked. I assume there's no need to restart the system, but I don't know which demons to restart (there has to be something in the wiki, but, that's an issue for another post ).

Anyways, my problem is now solved. Thank you very much for your help, V1del.

Offline

Board footer

Powered by FluxBB