Hi,
I have a problem I think is related to the startup of a systemd user session. I noticed lately that pulseaudio does not automatically start, although I can start it form the command line later with
$ pulseaudio --start
After digging around I found that pulseaudio should be started by the systemd user session, so as a first test I did
$ systemctl --user
which gave
Failed to list units: Process org.freedesktop.systemd1 exited with status 1
From what I recall, there are some conditions that has to be met in order for user sessions to work, and the output of
$ loginctl show-session $XDG_SESSION_ID
contains (among other things): Remote=no Service=lightdm Desktop=xfce Scope=session-c2.scope Leader=1118 Audit=0 Type=x11 Class=user Active=yes
Does anybody have an idea of where o look for further information ? As you can see above I use lightdm as the display manager.
On 21 October 2015 at 14:57, Karsten Rode karsten.rode@gmail.com wrote:
Hi,
I have a problem I think is related to the startup of a systemd user session. I noticed lately that pulseaudio does not automatically start, although I can start it form the command line later with
$ pulseaudio --start
After digging around I found that pulseaudio should be started by the systemd user session, [...]
Unless this changed, pulseaudio is started automatically by libpulse when a client needs the daemon. This can be controlled
by the autospawn option in /etc/pulse/client.conf or ~/.config/pulse/client.conf (see man pulse-client.conf).
You could disable autospawn there (even if it seems to be broken already) and use systemd user sessions. For that you would have to enable either the pulseaudio.service or pulseaudio.socket unit in your user session (systemctl --user enable ....).
Either way, normally it should just work without systemd user sessions. So if you didn't change the autospawn setting something seems to be broken. Keep in mind that libpulse also delays starting the daemon until someone tries to use it. So maybe you're just observing this.
-- Maarten
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 10/21/2015 05:57 AM, Karsten Rode wrote:
Hi,
I have a problem I think is related to the startup of a systemd user session. I noticed lately that pulseaudio does not automatically start, although I can start it form the command line later with
$ pulseaudio --start
After digging around I found that pulseaudio should be started by the systemd user session, so as a first test I did
$ systemctl --user
which gave
Failed to list units: Process org.freedesktop.systemd1 exited with status 1
From what I recall, there are some conditions that has to be met in order for user sessions to work, and the output of
$ loginctl show-session $XDG_SESSION_ID
contains (among other things): Remote=no Service=lightdm Desktop=xfce Scope=session-c2.scope Leader=1118 Audit=0 Type=x11 Class=user Active=yes
Does anybody have an idea of where o look for further information ? As you can see above I use lightdm as the display manager.
I think the wiki page should get you going.
https://wiki.archlinux.org/index.php/Systemd/User
arch-general@lists.archlinux.org