On 2021-06-22 1:22 p.m., Mark Hounschell wrote:
On 6/22/21 2:20 PM, Bengt Gördén wrote:
On 2021-06-22 20:18, Mark Hounschell wrote:
You can't even run those commands as root. Try it.
# pactl list cards;pactl list sinks Connection failure: Connection refused pa_context_connect() failed: Connection refused Connection failure: Connection refused pa_context_connect() failed: Connection refused
After "su" ing to root:
# pactl list cards XDG_RUNTIME_DIR (/run/user/5076) is not owned by us (uid 0), but by uid 5076! (This could e.g. happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.) Connection failure: Connection refused pa_context_connect() failed: Connection refused
# pactl list sinks XDG_RUNTIME_DIR (/run/user/5076) is not owned by us (uid 0), but by uid 5076! (This could e.g. happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.) Connection failure: Connection refused pa_context_connect() failed: Connection refused
Mark How many times does it have to be said? Pulse runs in /user space/ not in system space. That means it is running in your account, but when you su to root, there is no pulse there. But if you were to log out of the desktop and log back in as root, then you would have pulse running -- unless, of course, the system designers decided that the system administrator should be working, not listening to music. ;)