Skip to main content
Topic: Does Anyone Know how to get pipewire working for Steam as another user? (Read 1894 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Does Anyone Know how to get pipewire working for Steam as another user?

I'm launching Steam like `sudo -u steam -g steam steam`, and it seems that video is working (after `xhost +`).

However, I have no idea how to get the audio to work with pipewire. I had a hacky workaround with Xephyr and Pulseaudio, but I no longer want to use those.

Does anyone know how to get pipewire to mix audio for the `steam` user, when launched from withing a graphical session for my main user?

Re: Does Anyone Know how to get pipewire working for Steam as another user?

Reply #1
i dont know anyone who launches steam as root user
Cat Herders of Linux

 

Re: Does Anyone Know how to get pipewire working for Steam as another user?

Reply #2
My changes in pipewire-pulse.conf so any user in audio group can play sound:

Code: [Select]
...
context.exec = [
    ...
    { path = "/bin/chgrp"  args = "audio /tmp/pipewire-pulse-socket" }
    { path = "/bin/chmod"  args = "g+rwx,o-rwx /tmp/pipewire-pulse-socket" }
]
...
pulse.properties = {
    server.address = [
        "unix:/tmp/pipewire-pulse-socket"
        #"unix:native"
...

Of course, this also requires specifying in /etc/pulse/client.conf:

Code: [Select]
default-server = unix:/tmp/pipewire-pulse-socke
autospan = no

Re: Does Anyone Know how to get pipewire working for Steam as another user?

Reply #3
@dimgel I'll try that, thanks!

Re: Does Anyone Know how to get pipewire working for Steam as another user?

Reply #4
i dont know anyone who launches steam as root user
Did you actually bother to read their command?
sudo -u steam -g steam steam runs steam as "steam" user and "steam" group.
Try paying attention next time.

Re: Does Anyone Know how to get pipewire working for Steam as another user?

Reply #5
Steam on Linux by default uses user steam or at least it does when using steams compatibility layer to run windows games on linux
Cat Herders of Linux

Re: Does Anyone Know how to get pipewire working for Steam as another user?

Reply #6
Steam on Linux by default uses user steam or at least it does when using steams compatibility layer to run windows games on linux
No it doesn't. I don't recall ever having a user steam.

I do have a user 'games'. Which I used to use launching games in a separate X Display with Xinerama, to play at 5760x1080 without affecting my normal desktop.
I recall having issues with the pulseaudio sound only activating on the normal Desktop where the second display had been launched from. ie game silent on it's own Display. Switch to normal Display and I could hear the sound. I did fix it but cannot remember how exactly? Which isn't a lot of help!
My 'games' user has been defunct a long time as one day pretty much all games stopped working with Xinerama. For me at least.

Re: Does Anyone Know how to get pipewire working for Steam as another user?

Reply #7
OK fine.

enjoy.

Cat Herders of Linux

Re: Does Anyone Know how to get pipewire working for Steam as another user?

Reply #8
I originally switched to Pipewire because I could not get Pulseaudio to route sound to Xephyr.

Without using a separate X session and just launching Steam as a separate user, I was only able to get audio working by switching back to Puleaudio.

:| :| :| :| :| :| :| :|

Feels bad man, lol. Oh well. At least it's working.