You are not logged in.
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
Please post the output of
$ systemctl status --user pulseaudio.service
Offline
Please post the output of
$ systemctl status --user pulseaudio.service
It just says
Failed to connect to bus: No such file or directory
Offline
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
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
Same thing happened to me when I installed Firefox yesterday.. after installing pavucontrol I had to click on the application and unmute it.
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
@joanmanel, what's the output of "loginctl session-status" and "loginctl show-session"?
Offline
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
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
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
b) so what is the service status and/or do you still have the FF sound problem?
Offline
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
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
Why be sorry if you can be happy instead
You should just mark the thread as solved then to clarify the state for everyone.
Offline
@seth have you confused kgtuning and joanmanel?
Offline
LOL - sorry ;-)
Offline
@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
Why do you run those commands as root?
Offline
Also loginctl show-session needs to be `loginctl show-session $XDG_SESSION_ID`
Offline
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
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
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
How do you log into what desktop session?
Last edited by seth (2017-09-03 11:44:40)
Offline
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
What about your /etc/pam.d/nodm ?
https://wiki.archlinux.org/index.php/Nodm
Offline