[arch-general] pulseaudio, systemd --user and session problems
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. -- Karsten
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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWJ559AAoJEJHJh+RMQi5CYDYP/AvO1iVfRwSxJw5uIGkM5b+2 VEBOy7xywOvTfvmSmJwooskUIR1iivhgkd3e0GFSiQawlHVJj2YW4qtoAuwo1HKC Rq8B+8Yan6jeTrPdrwSOsju2w82K9Wv1Kifd1n7icOahlhq3mWVOdvkF/QpucNZc UjiRZ2+8h/qkHpUPDE6QXF0QSt+j2YqdhJzm5SfJ5E8mbnz8oCtdp8ei0Oq/iwpK 9mpUCxBZx3PZs5F+czJxbPJJUkZUDEC7//OKSaDuG1GDmACuga4VHVZc/HSGZCQa mMERjZIPwpiTCOqgGRHaWTnl/AxQ/HW7I1v3hw7l6ItsVezQoErceCsFkmOmcXjI rhJQjZEwckGugngOjR+rpb/z7DZwYzoXpDs8j8YALOzCzvfe6bpcj+tyGPCuofja ND1aSI+qj299tUlVsZnJhwC8/lfeO/+KyL/qMm/v70b13nockEeKNtCDeDjr12Xr SPbS8BshMgOA6AdPmMsAXqz/qlzBACuv3FgTD2TMGgjfAqXXe6QoV0katXLF7orI tRYEJC3gucVJewiGgKmfT1wrEG89EEjJ5H0IthZlUNPHIcxWfleluTpOidgL+p0L BOFp8Pv9RsD6qFEiwedBtrv6HEV6OHbVnvCPkuj0HL6SWIe+zpMyaHiSjHKQfcCk rcLD1reb0mTtWJgMMman =ZVos -----END PGP SIGNATURE-----
participants (3)
-
Dennis Anderson
-
Karsten Rode
-
Maarten de Vries