Sunday, April 3, 2022

[SOLVED] is it possible to configure user and group setting in pulseaudio?

Issue

Using Yocto, a new image is created for Raspberry PI. For Bluetooth audio transmission, the pulseaudio is installed correctly with its modules. By Starting Pulseaudio when the PI starts at root prompet:

can not run as root


Solution

Solution run PulseAudio for all your users

Add bellow lines into /etc/systemd/system/pulseaudio.service file and save

[Unit]
Description=PulseAudio system server

[Service]
Type=notify
ExecStart=pulseaudio --daemonize=no --system --realtime --log-target=journal

[Install]
WantedBy=multi-user.target

Enable service

sudo systemctl --system enable pulseaudio.service
sudo systemctl --system start pulseaudio.service
sudo systemctl --system status pulseaudio.service

Edit Client conf /etc/pulse/client.conf and replace ass bellow

default-server = /var/run/pulse/native
autospawn = no

Add root to pulse group

sudo adduser root pulse-access

And finally reboot the system



Answered By - Areg Gasparyan
Answer Checked By - David Goodson (WPSolving Volunteer)