> I guess you could do a service that could restart wireplumber, pipewire, pipewire-pulse all together. so then it would be one command to restart them if lost after booting, which should make them work.
Unfortunately restarting them doesn't do anything.
Here are the logs:
~> dinitctl catlog pipewire
~> dinitctl catlog pipewire-pulse
~> dinitctl catlog wireplumber
N 16:35:39.727110 wp-internal-comp-l ../wireplumber/lib/wp/private/internal-comp-loader.c:945:wp_internal_comp_loader_load: Loading profile 'main'
E 16:35:40.051505 default ../pipewire/spa/plugins/bluez5/upower.c:54:upower_get_percentage_properties_reply: Failed to get percentage from UPower: org.freedesktop.DBus.Error.NameHasNoOwner
N 16:35:40.067596 wp-device ../wireplumber/lib/wp/device.c:630:wp_spa_device_new_from_spa_factory: SPA handle 'api.libcamera.enum.manager' could not be loaded; is it installed?
N 16:35:40.067608 s-monitors-libcame enumerate-device.lua:30:chunk: PipeWire's libcamera SPA plugin is missing or broken. Some camera types may not be supported.
They only seem to report that the extra/pipewire-libcamera package is missing (which is true, I don't have it installed, but my camera works?).
The turnstiled log only has this which might be interesting:
srv: pam_close_session: Error in service module
I saw a glimpse of a fuller message when restarting, it included the words "elogind" and "Cannot connect to bus".
Maybe this is useful (I didn't touch it though):
> cat /etc/pam.d/turnstiled
auth sufficient pam_rootok.so
session optional pam_keyinit.so force revoke
session optional pam_umask.so usergroups umask=022
-session optional pam_elogind.so
session required pam_turnstile.so turnstiled
session required pam_limits.so
There are 5 `dbus-deamon` processes running and one `dbus-launch` which might be unusual. After enabling log-buffer for user dbus here it is (during a boot for which sound doesn't work):
~> dinitctl catlog dbus
dbus-daemon[1271]: [session uid=1000 pid=1271 pidfd=5] Activating service name='org.gtk.vfs.Daemon' requested by ':1.6' (uid=1000 pid=1282 comm="/usr/bin/wireplumber")
dbus-daemon[1271]: [session uid=1000 pid=1271 pidfd=5] Successfully activated service 'org.gtk.vfs.Daemon'
dbus-daemon[1271]: [session uid=1000 pid=1271 pidfd=5] Activating service name='org.xfce.Xfconf' requested by ':1.11' (uid=1000 pid=1311 comm="xfce4-session")
dbus-daemon[1271]: [session uid=1000 pid=1271 pidfd=5] Successfully activated service 'org.xfce.Xfconf'
dbus-daemon[1271]: [session uid=1000 pid=1271 pidfd=5] Activating service name='ca.desrt.dconf' requested by ':1.15' (uid=1000 pid=1407 comm="xfsettingsd --display :0.0 --sm-client-id 24ef0457")
dbus-daemon[1271]: [session uid=1000 pid=1271 pidfd=5] Successfully activated service 'ca.desrt.dconf'
dbus-daemon[1271]: [session uid=1000 pid=1271 pidfd=5] Activating service name='org.freedesktop.Notifications' requested by ':1.25' (uid=1000 pid=1457 comm="xfce4-power-manager --restart --sm-client-id 2ad92")
(xfce4-notifyd:1479): Gtk-WARNING **: 16:50:02.050: cannot open display:
dbus-daemon[1271]: [session uid=1000 pid=1271 pidfd=5] Activated service 'org.freedesktop.Notifications' failed: Process org.freedesktop.Notifications exited with status 1
dbus-daemon[1271]: [session uid=1000 pid=1271 pidfd=5] Activating service name='org.freedesktop.Notifications' requested by ':1.21' (uid=1000 pid=1441 comm="/usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/pa")
dbus-daemon[1271]: [session uid=1000 pid=1271 pidfd=5] Activating service name='org.xfce.Notifyd' requested by ':1.24' (uid=1000 pid=1443 comm="/usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/pa")
(xfce4-notifyd:1486): Gtk-WARNING **: 16:50:02.078: cannot open display:
dbus-daemon[1271]: [session uid=1000 pid=1271 pidfd=5] Activated service 'org.freedesktop.Notifications' failed: Process org.freedesktop.Notifications exited with status 1
(xfce4-notifyd:1489): Gtk-WARNING **: 16:50:02.097: cannot open display:
dbus-daemon[1271]: [session uid=1000 pid=1271 pidfd=5] Activating service name='org.freedesktop.impl.portal.PermissionStore' requested by ':1.8' (uid=1000 pid=1282 comm="/usr/bin/wireplumber")
dbus-daemon[1271]: [session uid=1000 pid=1271 pidfd=5] Successfully activated service 'org.freedesktop.impl.portal.PermissionStore'
dbus-daemon[1271]: [session uid=1000 pid=1271 pidfd=5] Activating service name='org.freedesktop.portal.Desktop' requested by ':1.38' (uid=1000 pid=1501 comm="flameshot")
dbus-daemon[1271]: [session uid=1000 pid=1271 pidfd=5] Activating service name='org.freedesktop.portal.Documents' requested by ':1.39' (uid=1000 pid=1546 comm="/usr/lib/xdg-desktop-portal")
dbus-daemon[1271]: [session uid=1000 pid=1271 pidfd=5] Successfully activated service 'org.freedesktop.portal.Documents'
(/usr/lib/xdg-desktop-portal:1546): xdg-desktop-portal-WARNING **: 16:50:02.290: No skeleton to export
dbus-daemon[1271]: [session uid=1000 pid=1271 pidfd=5] Successfully activated service 'org.freedesktop.portal.Desktop'
dbus-daemon[1271]: [session uid=1000 pid=1271 pidfd=5] Activating service name='org.a11y.Bus' requested by ':1.46' (uid=1000 pid=1694 comm="/opt/spotify/spotify --uri")
dbus-daemon[1271]: [session uid=1000 pid=1271 pidfd=5] Successfully activated service 'org.a11y.Bus'
Here it is when it works:
dbus-daemon[1362]: [session uid=1000 pid=1362 pidfd=5] Activating service name='org.gtk.vfs.Daemon' requested by ':1.6' (uid=1000 pid=1374 comm="/usr/bin/wireplumber")
dbus-daemon[1362]: [session uid=1000 pid=1362 pidfd=5] Successfully activated service 'org.gtk.vfs.Daemon'
dbus-daemon[1362]: [session uid=1000 pid=1362 pidfd=5] Activating service name='org.xfce.Xfconf' requested by ':1.11' (uid=1000 pid=1401 comm="xfce4-session")
dbus-daemon[1362]: [session uid=1000 pid=1362 pidfd=5] Successfully activated service 'org.xfce.Xfconf'
dbus-daemon[1362]: [session uid=1000 pid=1362 pidfd=5] Activating service name='ca.desrt.dconf' requested by ':1.15' (uid=1000 pid=1502 comm="xfsettingsd --display :0.0 --sm-client-id 24ef0457")
dbus-daemon[1362]: [session uid=1000 pid=1362 pidfd=5] Successfully activated service 'ca.desrt.dconf'
dbus-daemon[1362]: [session uid=1000 pid=1362 pidfd=5] Activating service name='org.freedesktop.Notifications' requested by ':1.22' (uid=1000 pid=1534 comm="/usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/pa")
(xfce4-notifyd:1573): Gtk-WARNING **: 16:54:03.902: cannot open display:
dbus-daemon[1362]: [session uid=1000 pid=1362 pidfd=5] Activated service 'org.freedesktop.Notifications' failed: Process org.freedesktop.Notifications exited with status 1
dbus-daemon[1362]: [session uid=1000 pid=1362 pidfd=5] Activating service name='org.xfce.Notifyd' requested by ':1.23' (uid=1000 pid=1536 comm="/usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/pa")
(xfce4-notifyd:1580): Gtk-WARNING **: 16:54:03.970: cannot open display:
dbus-daemon[1362]: [session uid=1000 pid=1362 pidfd=5] Activated service 'org.xfce.Notifyd' failed: Process org.xfce.Notifyd exited with status 1
dbus-daemon[1362]: [session uid=1000 pid=1362 pidfd=5] Activating service name='org.freedesktop.portal.Desktop' requested by ':1.32' (uid=1000 pid=1591 comm="flameshot")
dbus-daemon[1362]: [session uid=1000 pid=1362 pidfd=5] Activating service name='org.freedesktop.portal.Documents' requested by ':1.33' (uid=1000 pid=1614 comm="/usr/lib/xdg-desktop-portal")
dbus-daemon[1362]: [session uid=1000 pid=1362 pidfd=5] Activating service name='org.freedesktop.impl.portal.PermissionStore' requested by ':1.34' (uid=1000 pid=1620 comm="/usr/lib/xdg-document-portal")
dbus-daemon[1362]: [session uid=1000 pid=1362 pidfd=5] Successfully activated service 'org.freedesktop.impl.portal.PermissionStore'
dbus-daemon[1362]: [session uid=1000 pid=1362 pidfd=5] Successfully activated service 'org.freedesktop.portal.Documents'
(/usr/lib/xdg-desktop-portal:1614): xdg-desktop-portal-WARNING **: 16:54:04.238: No skeleton to export
dbus-daemon[1362]: [session uid=1000 pid=1362 pidfd=5] Successfully activated service 'org.freedesktop.portal.Desktop'
dbus-daemon[1362]: [session uid=1000 pid=1362 pidfd=5] Activating service name='org.a11y.Bus' requested by ':1.43' (uid=1000 pid=1689 comm="/opt/spotify/spotify --uri")
dbus-daemon[1362]: [session uid=1000 pid=1362 pidfd=5] Successfully activated service 'org.a11y.Bus'
Here is the turnstiled error message I see on shutdown:
turnstiled: pam_elogind(turnstiled:session): Failed to connect to system bus: No such file or directory.
There is also:
File descriptor 3 (/dev/console) leaked on vgchange invocation. Parent PID 2423: /bin/sh
though I guess that's unrelated