Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Willdrick/3f220dbac39ca7d7b8f290b3fb741ff6 to your computer and use it in GitHub Desktop.
Save Willdrick/3f220dbac39ca7d7b8f290b3fb741ff6 to your computer and use it in GitHub Desktop.
Enable 2.1 audio output in PulseAudio

Enable 2.1 audio output in PulseAudio

I'm using a 2.1 speakers kit from Logitec but most of the time it is always detected as 2.0... 😒

So I decided to make some research and found a solution that works everytimes (on Ubuntu based distribs).

Before patching

As you can see, my audio output is not patched.

Audio Ouput

actual-audio-output

Audio Test

actual-audio-test

The patch

To fix the problem easily, I wrote a small script to run as root or using sudo.

sudo bash pulse-audio-2.1-patch.sh

You will need to reboot to apply the changes.

After patching

Now you can see the result of the patch, for the best result, set your principal audio output volume close to the max then select the new audio output entry as shown below and set the volume you want. 😁

Patched Audio Ouput

patched-audio-output

Patched Audio Test

patched-audio-test

Enjoy!

Now you can enjoy a much better and cleaner audio output. 😉 🤘

TODO

Add search references.

#!/bin/bash
# Patch config
sudo sed -i 's/; enable-lfe-remixing = no/enable-lfe-remixing = yes/g' /etc/pulse/daemon.conf
echo 'default-sample-channels = 3' | sudo tee -a /etc/pulse/daemon.conf
echo 'default-channel-map = front-left,front-right,lfe' | sudo tee -a /etc/pulse/daemon.conf
# Patch modules
echo -e '### Test subwoofer\nload-module module-combine channels=3 channel_map=front-left,front-right,lfe\n' | sudo tee -a /etc/pulse/default.pa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment