From 2208b4319df5e8493847ae5ee2a62d0406708fa5 Mon Sep 17 00:00:00 2001 From: j1nx Date: Wed, 9 Nov 2022 20:07:09 +0100 Subject: [PATCH] Add support for user pulseaudio service and switch to it --- .../raspberrypi/rootfs-overlay/usr/libexec/ovos-i2csound | 5 +++++ .../systemd/user/default.target.wants/pulseaudio.service | 1 + .../systemd/user/sockets.target.wants/pulseaudio.socket | 1 + 3 files changed, 7 insertions(+) create mode 120000 buildroot-external/rootfs-overlay/home/mycroft/.config/systemd/user/default.target.wants/pulseaudio.service create mode 120000 buildroot-external/rootfs-overlay/home/mycroft/.config/systemd/user/sockets.target.wants/pulseaudio.socket diff --git a/buildroot-external/board/raspberrypi/rootfs-overlay/usr/libexec/ovos-i2csound b/buildroot-external/board/raspberrypi/rootfs-overlay/usr/libexec/ovos-i2csound index d4365d1c..01e53035 100755 --- a/buildroot-external/board/raspberrypi/rootfs-overlay/usr/libexec/ovos-i2csound +++ b/buildroot-external/board/raspberrypi/rootfs-overlay/usr/libexec/ovos-i2csound @@ -62,6 +62,9 @@ fi if [ -f /etc/pulse/system.pa ] ; then rm /etc/pulse/system.pa fi +if [ -f /etc/pulse/default.pa ] ; then + rm /etc/pulse/default.pa +fi if [ -f /etc/pulse/daemon.conf ] ; then rm /etc/pulse/daemon.conf fi @@ -123,6 +126,8 @@ ln -s $ASOUND_STATE /var/lib/alsa/asound.state # Install pulseaudio files echo "create pulse system file" ln -s $PULSE_SYSTEM /etc/pulse/system.pa +echo "create pulse default file" +ln -s $PULSE_SYSTEM /etc/pulse/default.pa echo "create pulse daemon file" ln -s $PULSE_DAEMON /etc/pulse/daemon.conf diff --git a/buildroot-external/rootfs-overlay/home/mycroft/.config/systemd/user/default.target.wants/pulseaudio.service b/buildroot-external/rootfs-overlay/home/mycroft/.config/systemd/user/default.target.wants/pulseaudio.service new file mode 120000 index 00000000..b8bfcc31 --- /dev/null +++ b/buildroot-external/rootfs-overlay/home/mycroft/.config/systemd/user/default.target.wants/pulseaudio.service @@ -0,0 +1 @@ +../../../../../../usr/lib/systemd/user/pulseaudio.service \ No newline at end of file diff --git a/buildroot-external/rootfs-overlay/home/mycroft/.config/systemd/user/sockets.target.wants/pulseaudio.socket b/buildroot-external/rootfs-overlay/home/mycroft/.config/systemd/user/sockets.target.wants/pulseaudio.socket new file mode 120000 index 00000000..76333250 --- /dev/null +++ b/buildroot-external/rootfs-overlay/home/mycroft/.config/systemd/user/sockets.target.wants/pulseaudio.socket @@ -0,0 +1 @@ +../../../../../../usr/lib/systemd/user/pulseaudio.socket \ No newline at end of file