You are not logged in.

#1 2017-01-09 11:25:19

pashazz
Member
Registered: 2014-11-10
Posts: 10

[SOLVED] PulseAudio: sharing audio devices between different users

I have two users logged in at the same time.
The first logged in user has all the devices available:
s_1483960605_1543074_1d15c2c72f.png

The second user no devices:
s_1483960811_7565870_83f045b6c5.png

besides the first  user's disabled device:

s_1483961045_7575792_04a293732f.png
"Выключено" is russian for "Disabled"

Is there any way to share devices between users?

Last edited by pashazz (2017-01-09 12:03:28)

Offline

#2 2017-01-09 12:03:11

pashazz
Member
Registered: 2014-11-10
Posts: 10

Re: [SOLVED] PulseAudio: sharing audio devices between different users

OK guys, the solution is fairly simple as I found:
The idea is that the first user creates an UNIX socket, the  rest are connected to that.

/etc/pulse/default.pa:

load-module module-native-protocol-unix auth-anonymous=1 socket=/tmp/pulseaudio-socket

/etc/pulse/client.conf

default-server = unix:/tmp/pulseaudio-socket

(one could use any filename)

I wonder why it is not a default behaviour as default certainly breaks things on a multi-user system.

Offline

#3 2020-06-26 14:42:13

megatux
Member
Registered: 2020-06-26
Posts: 2

Re: [SOLVED] PulseAudio: sharing audio devices between different users

Use paprefs. It's a nice GUI. Enable the network access.
I found that reading the /etc/pulse/default.pa  file.
Worked for me with Steam

Offline

Board footer

Powered by FluxBB