Regarding the following, written by "Lucio Crusca" on 2021-08-19 at 16:05 Uhr +0200:
lucio@t470:~ $ su - u
...
u@t470:~ $ pactl info Connection failure: Connection refused pa_context_connect() failed: Connection refused
Pulse and systemd need a dbus session, and su
will not get you that. If you want to use either, you need to ensure that you're properly logged in as the user, or configure your system to set up the dbus session accordingly.
An easy way to do this is to use ssh
with X-forwarding:
ssh -X u@localhost
and then try it again.
If that doesn't work, confirm that "u" can use Pulse when logged in with a regular desktop session, i.e. at the graphical login screen.
Hope this helps,
.
'http://people.debian.org/~madduck
- Debian - when you have better things to do than fixing systems"the problem with america is stupidity. i'm not saying there should
be a capital punishment for stupidity, but why don't we just take
the safety labels off of everything and let the problem solve
itself?"
-- seen on irc