I wasn't able to make it work as a system wide service, I was unable to connect to bluetooth from the systemd service running under root.
I reinstalled pulseaudio and put everything under my user; I also set lingering for my user. Now it is working fine, the only problem I'm having is that after I end my ssh session, the bluetooth gets disconnected. Do you know how could I solve this?
Also after a reboot, I have to explicitly connect to the speaker, it does not reconnect automatically on boot. It is a if lingering is not working.
Kind regards
Federico
On Sun, Oct 10, 2021 at 7:07 PM Becker Béla <bela@becker.rocks> wrote:
On 2021. október 9., saturday 0:45:51 CEST Federico Milano wrote:
> 3. If I run PA as a system wide service, then I cannot connect to
> bluetooth: PA server rejects the client connection. The pulse user is in
> the bluetooth, audio and pulse-access groups; I have also added the root
> user there too and also my personal user, but I still cannot connect to the
> bluetooth device.
You need to add permissions for the pulse user to access the Bluetooth systems via dbus
Stackexchange with explanation here:
https://raspberrypi.stackexchange.com/questions/42265/pulseaudio-a2dp-bluetooth-dont-work-in-system-mode-but-work-work-fine-under