Last active
April 30, 2023 10:01
-
-
Save curz46/1ce42f9c59136cc812b7518963d770b4 to your computer and use it in GitHub Desktop.
astro a50 pulseaudio /etc/pulse/default.pa
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pulseaudio defaults to only detecting Astro A50 voice and microphone, not game | |
# this is what i had to do to fix it, hopefully it saves someone some time | |
# index:subdevice may be different for you | |
# resources: | |
# https://wiki.archlinux.org/index.php/PulseAudio/Examples at "module-alsa-sink" | |
# https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/#index6h3 | |
.nofail | |
load-module module-alsa-sink device=hw:3,0 sink_name=voice | |
update-sink-proplist voice device.description="Astro A50 Voice" | |
# it also incorrectly orders the channel map, i believe this is relatively correct (at least not unbalanced) | |
load-module module-alsa-sink device=hw:3,1 sink_name=game channel_map=left,right,fro | |
nt-center,rear-center,rear-left,rear-right | |
update-sink-proplist game device.description="Astro A50 Game" | |
load-module module-alsa-source device=hw:3,0 |
@FennyFatal - thanks for your script, much appreciated!
HWID=
aplay -l | grep 'A50' | cut -d" " -f2 | head -1 | cut -d":" -f1
should be changed to:
HWID=$(aplay -l | grep 'A50' | cut -d" " -f2 | head -1 | cut -d":" -f1)
for it to run through shellcheck :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@YannikSc which version of PA is that? It should be shown by
pulseaudio --version
. I've just checked, and the configuration from my gist works on Ubuntu 20.04 with pulseaudio 13.99.1.It's also interesting you have a six channel channel-map - I though the surround support was only for DTS, can you actually use all those channels?
If you can run PA 14, this profile is already upstream. Even the new pipewire daemon has picked it up, so future looks bright for this headset :-)
Edit: we could also move the discussion of problems with my code to my gist, so we don't confuse the discussion here.