Best regards, Jürgen
Am 30. Oktober 2020 23:13:55 schrieb Matt Garman <matthew.garman@xxxxxxxxx>:
My use case is as follows: I am trying to set up a Raspberry Pi as asound server for my Linux PC. My Linux PC will use PulseAudio'snetworking capability to send the audio to the Raspberry Pi, which isconnected to a stereo system.All the examples I've found online for doing this seem to suggestrunning the PulseAudio instance on the RPi in system mode. But withall the warnings about system mode, I thought I'd try to achieve thisrunning Pulse in user mode.Furthermore, I want to have Pulse start automatically at boot time onthe RPI, and run with real time priority. I want PulseAudio to run asuser "pulse".I have this in /etc/security/limits.conf:pulse - rtprio 90pulse - nice -19And this in /etc/pulse/daemon.confrealtime-scheduling = yesrealtime-priority = 5And it seems to work as expected when launched from the CLI:# runuser -u pulse -- /usr/bin/pulseaudio --daemonize=no--disallow-module-loading --disallow-exit=yes --disable-shm=no--verbosePulse prints this when starting:I: [pulseaudio] core-util.c: Successfully gained nice level -11And looking at the process via "top" or "ps" shows that it is indeedrunning as the user "pulse".I have this in my systemd service file:[Service]User=pulseGroup=pulseType=simpleBusName=org.pulseaudio.ServerExecStartPre=/bin/mkdir -p /var/run/pulseExecStartPre=/bin/chown -R pulse:pulse /var/run/pulseExecStart=/usr/bin/pulseaudio --daemonize=no --disallow-module-loading--disallow-exit=yes --disable-shm=no --verboseRestart=alwaysAnd when I to "systemctl start pulseaudio", it starts, but not withrealtime priority, and I have this in journalctl:Oct 30 17:09:00 dietpi-music pulseaudio[1104]: I: [pulseaudio] main.c:setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permittedOct 30 17:09:00 dietpi-music pulseaudio[1104]: I: [pulseaudio] main.c:setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permittedWhat am I missing?Thanks,Matt_______________________________________________pulseaudio-discuss mailing listpulseaudio-discuss@xxxxxxxxxxxxxxxxxxxxxhttps://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
_______________________________________________ pulseaudio-discuss mailing list pulseaudio-discuss@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss