You are not logged in.

#1 2017-08-27 10:36:41

joanmanel
Member
Registered: 2012-11-06
Posts: 248

[solved] Since a few months ago I don't have Audio in Firefox

When I try to listen to something in Firefox, I get a message saying "to play audio, you may need to install the required PulseAudio software".

it used to work fine until a few months ago, but then it just stopped working with this error message.

I have installed Pulseaudio, and followed some guides, but no success.

Audio in Chromium or Smplayer work fine.

Following some advice I installed "pavucontrol" but it just says forever "Establishing connection to PulseAudio, please wait..." no error in term or anything.

I can continue usin Chrome and it works fine, but I would like to go back to Firefox.

Thanks!

Last edited by joanmanel (2017-09-05 11:37:56)

Offline

#2 2017-08-27 10:51:57

loqs
Member
Registered: 2014-03-06
Posts: 18,604

Re: [solved] Since a few months ago I don't have Audio in Firefox

Please post the output of

$ systemctl status --user pulseaudio.service

Offline

#3 2017-08-27 17:28:13

joanmanel
Member
Registered: 2012-11-06
Posts: 248

Re: [solved] Since a few months ago I don't have Audio in Firefox

loqs wrote:

Please post the output of

$ systemctl status --user pulseaudio.service

It just says

Failed to connect to bus: No such file or directory

Offline

#4 2017-08-27 17:34:23

loqs
Member
Registered: 2014-03-06
Posts: 18,604

Re: [solved] Since a few months ago I don't have Audio in Firefox

joanmanel wrote:

It just says

Failed to connect to bus: No such file or directory

https://bbs.archlinux.org/viewtopic.php?id=57855  That is the full output from that command?
Is the session valid?

Offline

#5 2017-08-27 17:51:06

kgtuning
Member
From: New Hampshire
Registered: 2015-09-30
Posts: 59

Re: [solved] Since a few months ago I don't have Audio in Firefox

joanmanel wrote:

When I try to listen to something in Firefox, I get a message saying "to play audio, you may need to install the required PulseAudio software".

it used to work fine until a few months ago, but then it just stopped working with this error message.

I have installed Pulseaudio, and followed some guides, but no success.

Audio in Chromium or Smplayer work fine.

Following some advice I installed "pavucontrol" but it just says forever "Establishing connection to PulseAudio, please wait..." no error in term or anything.

I can continue usin Chrome and it works fine, but I would like to go back to Firefox.

Thanks!

Same thing happened to me when I installed Firefox yesterday.. after installing pavucontrol I had to click on the application and unmute it.

Offline

#6 2017-08-27 18:04:35

loqs
Member
Registered: 2014-03-06
Posts: 18,604

Re: [solved] Since a few months ago I don't have Audio in Firefox

kgtuning wrote:

Same thing happened to me when I installed Firefox yesterday.. after installing pavucontrol I had to click on the application and unmute it.

joanmanel  wrote:

Following some advice I installed "pavucontrol" but it just says forever "Establishing connection to PulseAudio, please wait..." no error in term or anything.

How could you unmute anything if pavcontrol never connects to the pulse server kgtuning?

$ systemctl status --user pulseaudio.service
Failed to connect to bus: No such file or directory

Dis this match the output you on your affected system kgtuning?

Offline

#7 2017-08-27 19:46:44

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 68,369

Re: [solved] Since a few months ago I don't have Audio in Firefox

@joanmanel, what's the output of "loginctl session-status" and "loginctl show-session"?

Offline

#8 2017-08-27 20:53:09

kgtuning
Member
From: New Hampshire
Registered: 2015-09-30
Posts: 59

Re: [solved] Since a few months ago I don't have Audio in Firefox

loqs wrote:
kgtuning wrote:

Same thing happened to me when I installed Firefox yesterday.. after installing pavucontrol I had to click on the application and unmute it.

joanmanel  wrote:

Following some advice I installed "pavucontrol" but it just says forever "Establishing connection to PulseAudio, please wait..." no error in term or anything.

How could you unmute anything if pavcontrol never connects to the pulse server kgtuning?

$ systemctl status --user pulseaudio.service
Failed to connect to bus: No such file or directory

Dis this match the output you on your affected system kgtuning?

Ha sorry about that, I posted by mobile and didn't include that I had to reboot. Once I rebooted, the server connects.
But now I think about it I could have probably just restarted the service.

Last edited by kgtuning (2017-08-27 20:57:57)

Offline

#9 2017-08-28 06:01:44

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 68,369

Re: [solved] Since a few months ago I don't have Audio in Firefox

a) Why did you have to reboot??
b) so what is the service status and/or do you still have the FF sound problem?

Offline

#10 2017-08-28 10:17:41

kgtuning
Member
From: New Hampshire
Registered: 2015-09-30
Posts: 59

Re: [solved] Since a few months ago I don't have Audio in Firefox

seth wrote:

a) Why did you have to reboot??
b) so what is the service status and/or do you still have the FF sound problem?

Well... honestly, I was so use to windows, I was thinking " oh I'll just reboot". I've only been using linux for 3 months or so but overall 3 years on and off.

Offline

#11 2017-08-28 14:11:37

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 68,369

Re: [solved] Since a few months ago I don't have Audio in Firefox

seth wrote:

b) so what is the service status and/or do you still have the FF sound problem?

Offline

#12 2017-08-28 14:56:24

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: [solved] Since a few months ago I don't have Audio in Firefox

Firefox requires PulseAudio and does not work by default with ALSA system. Have you installed PulseAudio? (note that pavucontrol cited by others is of no use in pure ALSA system).

You can, however, use apulse from the AUR (which is a library providing PulseAudio emulation) if you don't want to use PulseAudio. You need to enable one flag in Firefox, see https://github.com/i-rinat/apulse (particularly the section "Access errors in do_connect_pcm"). Then launch Firefox as "apulse firefox" or add the corresponding LIBRARY_PATH at the top of the Firefox launch script or patch one of the Firefox files. See the page cited previously for more informations.

Last edited by olive (2017-08-28 15:02:49)

Offline

#13 2017-08-28 18:21:19

kgtuning
Member
From: New Hampshire
Registered: 2015-09-30
Posts: 59

Re: [solved] Since a few months ago I don't have Audio in Firefox

seth wrote:
seth wrote:

b) so what is the service status and/or do you still have the FF sound problem?

I'm sorry Seth, I am not having a problem.

Offline

#14 2017-08-28 18:58:17

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 68,369

Re: [solved] Since a few months ago I don't have Audio in Firefox

Why be sorry if you can be happy instead smile
You should just mark the thread as solved then to clarify the state for everyone.

Offline

#15 2017-08-28 18:59:44

loqs
Member
Registered: 2014-03-06
Posts: 18,604

Re: [solved] Since a few months ago I don't have Audio in Firefox

@seth have you confused kgtuning and joanmanel?

Offline

#16 2017-08-28 19:35:33

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 68,369

Re: [solved] Since a few months ago I don't have Audio in Firefox

LOL - sorry ;-)

Offline

#17 2017-09-02 17:52:10

joanmanel
Member
Registered: 2012-11-06
Posts: 248

Re: [solved] Since a few months ago I don't have Audio in Firefox

seth wrote:

@joanmanel, what's the output of "loginctl session-status" and "loginctl show-session"?

[root@thinkpad juanma]# systemctl status --user pulseaudio.service
Failed to connect to bus: No such file or directory
[root@thinkpad juanma]# loginctl session-status
Could not get properties: No such device or address
[root@thinkpad juanma]# loginctl show-session
EnableWallMessages=no
NAutoVTs=6
KillUserProcesses=no
RebootToFirmwareSetup=no
IdleHint=yes
IdleSinceHint=0
IdleSinceHintMonotonic=0
InhibitDelayMaxUSec=5s
HandlePowerKey=poweroff
HandleSuspendKey=suspend
HandleHibernateKey=hibernate
HandleLidSwitch=suspend
HandleLidSwitchDocked=ignore
HoldoffTimeoutUSec=30s
IdleAction=ignore
IdleActionUSec=30min
PreparingForShutdown=no
PreparingForSleep=no
Docked=no
RemoveIPC=yes
RuntimeDirectorySize=806105088
InhibitorsMax=8192
NCurrentInhibitors=0
SessionsMax=8192
NCurrentSessions=0
UserTasksMax=10813

Offline

#18 2017-09-02 18:59:01

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 68,369

Re: [solved] Since a few months ago I don't have Audio in Firefox

Why do you run those commands as root?

Offline

#19 2017-09-02 19:05:42

loqs
Member
Registered: 2014-03-06
Posts: 18,604

Re: [solved] Since a few months ago I don't have Audio in Firefox

Also loginctl show-session needs to be `loginctl show-session $XDG_SESSION_ID`

Offline

#20 2017-09-02 20:00:50

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 68,369

Re: [solved] Since a few months ago I don't have Audio in Firefox

Nope, actually not. Relevant parts are covered by "session-status".
The interesting bit in "show session" is

NCurrentSessions=0

but we now need to figure why.

Offline

#21 2017-09-02 20:13:54

loqs
Member
Registered: 2014-03-06
Posts: 18,604

Re: [solved] Since a few months ago I don't have Audio in Firefox

What is the output of

$ systemctl --state=failed
$ systemctl status user*
$ printenv DBUS_SESSION_BUS_ADDRESS

@seth I was trying to get all the output from loginctl show-session

Offline

#22 2017-09-03 09:12:50

joanmanel
Member
Registered: 2012-11-06
Posts: 248

Re: [solved] Since a few months ago I don't have Audio in Firefox

Same commands as non-root

[juanma@thinkpad ~]$ systemctl status --user pulseaudio.service
Failed to connect to bus: No such file or directory
[juanma@thinkpad ~]$ loginctl session-status
Could not get properties: No such device or address
[juanma@thinkpad ~]$ loginctl show-session
EnableWallMessages=no
NAutoVTs=6
KillUserProcesses=no
RebootToFirmwareSetup=no
IdleHint=yes
IdleSinceHint=0
IdleSinceHintMonotonic=0
InhibitDelayMaxUSec=5s
HandlePowerKey=poweroff
HandleSuspendKey=suspend
HandleHibernateKey=hibernate
HandleLidSwitch=suspend
HandleLidSwitchDocked=ignore
HoldoffTimeoutUSec=30s
IdleAction=ignore
IdleActionUSec=30min
PreparingForShutdown=no
PreparingForSleep=no
Docked=no
RemoveIPC=yes
RuntimeDirectorySize=806105088
InhibitorsMax=8192
NCurrentInhibitors=0
SessionsMax=8192
NCurrentSessions=0
UserTasksMax=10813

And the commands loqs is asking for

[juanma@thinkpad ~]$ systemctl --state=failed
0 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
[juanma@thinkpad ~]$ systemctl status user*
● user.slice - User and Session Slice
   Loaded: loaded (/usr/lib/systemd/system/user.slice; static; vendor preset: disabled)
   Active: active since Sun 2017-09-03 10:06:19 BST; 7min ago
     Docs: man:systemd.special(7)
    Tasks: 0
   CGroup: /user.slice

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
[juanma@thinkpad ~]$ printenv DBUS_SESSION_BUS_ADDRESS
[juanma@thinkpad ~]$ 

Offline

#23 2017-09-03 11:44:25

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 68,369

Re: [solved] Since a few months ago I don't have Audio in Firefox

How do you log into what desktop session?

Last edited by seth (2017-09-03 11:44:40)

Offline

#24 2017-09-03 17:28:49

joanmanel
Member
Registered: 2012-11-06
Posts: 248

Re: [solved] Since a few months ago I don't have Audio in Firefox

seth wrote:

How do you log into what desktop session?

I use i3wm.

I use nodm to log in. This is my nodm.conf

# nodm configuration file

# Controls the user that is used to automatically log in
NODM_USER='juanma'

# Options to pass to the X server (for example: "vt7 -nolisten tcp")
NODM_X_OPTIONS='vt7 -nolisten tcp'

# Minimum time (in seconds) that a session should last in order for nodm to
# decide that it has not quit too soon.  If an X session will run for less than
# this time, nodm will wait an increasing bit of time before restarting it.
NODM_MIN_SESSION_TIME=60

# Restart session after it ending?
NODM_RESTART_SESSION=0

# Path to the xinit program
NODM_XINIT='/usr/bin/xinit'

# Path to the X session script (useful if using xinit instead of startx).
# NOTE: This file needs to be executable!
NODM_XSESSION='/home/juanma/.xinitrc'

my .xinitrc basically "exec i3"

Offline

#25 2017-09-03 18:13:00

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 68,369

Re: [solved] Since a few months ago I don't have Audio in Firefox

What about your /etc/pam.d/nodm ?
https://wiki.archlinux.org/index.php/Nodm

Offline

Board footer

Powered by FluxBB