Skip to content

Conversation

@kjkuan
Copy link

@kjkuan kjkuan commented Jul 4, 2021

In addition to the XDG_RUNTIME_DIR, I've found that with a clean base install of voidlinux, if I follow the handbook to add audio support by choosing the pipewire-puse route, I need to also add my user to the audio group, otherwise, pactl info would show pipewire is being used and everything appears to be correct, but just no sound.

@ericonr
Copy link
Member

ericonr commented Jul 4, 2021

That's interesting, I wonder if it needs elogind and/or polkit otherwise? I'm not in audio group and things work ok.

@kjkuan
Copy link
Author

kjkuan commented Jul 4, 2021

oh? weird. I'll double check, but I don't have elogind nor polkit installed.

@kjkuan
Copy link
Author

kjkuan commented Jul 5, 2021

I can confirm that if I remove myself from the audio group, I get no sound with pipewire + pipewire-pulse; however, if I add myself back with the audio group, I have sound. Also, I don't have elogind nor polkit installed.

@ericonr
Copy link
Member

ericonr commented Sep 11, 2021

Ok, so I think we should document the requirement with the note that having elogind makes it unnecessary.

@st3r4g
Copy link
Contributor

st3r4g commented Oct 3, 2021

I need to also add my user to the audio group, otherwise, pactl info would show pipewire is being used and everything appears to be correct, but just no sound.

But isn't this true also for e.g. alsamixer? regular users have no permissions to access /dev/snd/hw* by default. This has nothing to do with pipewire-pulse, it's pipewire (more precisely libspa-alsa.so) failing to open the sound card.

@ericonr
Copy link
Member

ericonr commented Nov 15, 2021

Yup, that's very much the case. I recently tried out a session without elogind, and pipewire didn't have devices until I added myself to audio group.

I think this is noted in the page about groups, a more specific call out here might be worth it.

ericonr added a commit to ericonr/void-docs that referenced this pull request Nov 29, 2021
elogind will use posix attributes to give logged in users access to
devices tagged as uaccess (such as audio and joystick input devices).
Without it, it's necessary to be in the audio group to access them.

Closes void-linux#587
@ericonr ericonr closed this in #625 Nov 29, 2021
ericonr added a commit that referenced this pull request Nov 29, 2021
elogind will use posix attributes to give logged in users access to
devices tagged as uaccess (such as audio and joystick input devices).
Without it, it's necessary to be in the audio group to access them.

Closes #587
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants