-
Notifications
You must be signed in to change notification settings - Fork 3
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
Pipewire support #7
Comments
Pipewire supports the pulseaudio APIs for controlling volumes, and I believe this mechanism is still recommended by the pipewire authors (see https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/FAQ#what-audio-api-do-you-recommend-to-use). I use pipewire on my system and it works for me. |
Must be a bug in either Pop-os/pipewire or rwaybar then. Ill sprinkle some I could also write up a PR adding runtime configurable tracing/logging using either the |
FYI: |
Thanks! I don't know how I missed that! Regarding documentation maybe an issue template here on GitHub is an idea. You could request each bug to be accompanied with a log. |
I was able to investigate this a little, adding some logging to: Line 534 in 1094cb6
Specifically:
I hard coded the volume to make sure I was at the part of the code where the new volume is set. I changed my volume as I usually do using pw-volume. It is a wrapper around ResultsRunning with
This shows that pulse is passing a volume of Conclusionrwaybar is recieving the change event however the data from pulseaudio does not reflect the correct volume. This could be a bug in pipewire. @danieldg you also use pipewire but without issue, how do you change your volume? Solutions
Todoinvestigate if this issue is shared with other ui's (gnome, kde etc) when setting volume through pipewire. I have no more time today but I'll see what I can do tomorrow. |
I use pulse to change volumes:
There are multiple "volume" knobs present in the pipewire (and pulse) path; I wonder if you are adjusting a different one than pulse is querying? You can scroll up and down on the default items on the bar to adjust their volumes using the pulse API. When I do so, I can observe changes in the following pipewire volume knobs:
|
Correction: the example config did not include scrolling to adjust volumes; this has now been added. |
As of Pop-os 22.04 is using Pipewire instead of Pulseaudio. While pipewire should be backwards compatible rwaybar no longer shows the volume as of Pop-os 22.04. Most distros plant upgrade to upgrade to pipewire sometime in the future.
As a first step I think rwaybar would need a clear API for the audio back-end. Then the first implementation could use a compile time feature to switch between implementation. Later it could be auto detected.
An alternative would be figuring out why the volume is not shown on Pipewire even though it should be backward compatible.
The text was updated successfully, but these errors were encountered: