-
-
Notifications
You must be signed in to change notification settings - Fork 507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add pipewire troubleshooting notes #2236
Comments
For default audio we probably can use wireplumber, though some setups use pipewire-media-session instead (not sure how to handle that) |
From what I can tell session managers also only set pipewire properties and other applications like easyeffects manage to place themselves as the default sink with just pw, so it should be possible in just pipewire and we should definitely look into that then |
Good news: i found where are default configured audio devices are. Otherwise it looks like a huge chunk of pretty unreadable code to parse bunch of properties just to get default device, and then set it through pipewire context. Most likely even more than current code for pipewire. |
Or rather it seems that wireplumber sets the default device based on information inside of pipewire. The |
Update: I tested that key and it seems to only work if you haven't manually set a default device and pipewire is just figuring it out automatically. Now it would be epic if users had clearly defined priorities so that they just need to connect devices and it automatically picks the right one, but that isn't the case and people set default devices, so this won't work. Bummer. |
I have two proposals instead: also if we do something to set defaults, it should be done every time the device appears to ensure reliability, so a toggle to the audio settings to set the device as default automatically |
Wireplumber includes some lua scripts that can automatically modify sound route / default sink as needed. For example, when a bluetooth headset is connected, default sink is changed from the speaker to the headset, audio stream is rerouted accordingly. |
We don't really want to support more than wireplumber, since pw-media-session is effectively deprecated. And we can't really ship wp scripts because our preferred distribution route is the launcher or mobile (as in shouldn't be installed system wide) tarballs. We could create a script and ship it for the distros that actually package alvr (very few ones). I much rather think we should instead focus on actually easily providing the user with feedback on how to act, i.e.:
|
btw, to get pipewire working in the flatpak install instructions I needed to add terminal equivalent should be |
Issue because blocked on #2233, but we should mention that
A)
Pipewire error: Creation failed
likely means pipewire isn't setup as the audio server andB) no audio but no error means that the device just wasn't selected in the audio settings (potentially only as a stopgap for a default button, but idk if that's feasible and configuring the audio device is an operation that imo is kinda to be expected as a user, but if you didn't think of it the troubleshooting page could just give you a heads up)
The text was updated successfully, but these errors were encountered: