Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'll start by saying thank you so much for sharing this awesome project.
I recently acquired a Valve Index and was thrilled to find useful tools like this.
The bluetooth base station functionality worked perfectly for me.
While enabling audio works, I had some errors running
move-sink-input
, and it silently fails to restore audio when runningoff
or the daemon exits.I'm an arch linux user with pactl version 14.2, and whatever modules it came with barring suspend-on-idle module because it regularly skips audio at the start of playback due to activation latency.
In my case I only ever have a single sink.
Changing the port via
set-card-profile
appears to be what works for me, which I was testing from this script before I found your tool:https://gist.github.com/frostworx/2a1a84ea8098ddc207cc9f54793f5446
Oddly, when the profile changes the sink name also changes to match, and the default sink too (though unreliably if I have other devices connected, which I'm guessing is why empty string for the normal regex is not recommended).
Additionally, my sink-inputs appear to automatically switch to the new sink, which combined with the sink name changing makes
move-sink-input
unnecessary.To avoid breaking existing functionality I added a new config that supports finding the normal profile by device name the same way it finds the
Index HMD
, and I added a profile change toswitch_to_normal
.To avoid the errors that occur due to the sink name change I added a pre-flight-check to
set_sink_for_all_sink_inputs
, which makes sure the sink name still exists before attempting to runmove-sink-input
.Please let me know if these changes are usable.
I may try adding a similar audio toggle for microphones tomorrow.