22

I have USB speakers connected to my Ubuntu desktop. Because of the way the cables are attached & my floor layout, I would like to reverse the left and right speaker output. Is there a way to do this?

2 Answers 2

26

Edit /etc/pulse/default.pa file and add the following lines to it:

load-module module-remap-sink sink_name=reverse-stereo master=0 channels=2 master_channel_map=front-right,front-left channel_map=front-left,front-right
set-default-sink reverse-stereo

... Then restart the pulseaudio daemon with:

$ pulseaudio -k
$ pulseaudio --start

You can also omit "set-default-sink" line above and select the reversed output in the sound settings dialog when you need it.

Reference:

4
  • 2
    Master may not always be 0 so if this doesn't work (as was the case for me) check the output of pacmd list-sinks and substitute the appropriate index.
    – midiarsi
    Aug 9, 2019 at 19:32
  • 1
    If you prefer a simple hardware solution - see the accepted answer on superuser: superuser.com/questions/22514/…
    – r0berts
    Sep 7, 2021 at 12:09
  • This worked, except I have to kill/start pulseaudio every startup to get the remapped output. How can I make this permanent?
    – J.Tho
    May 25, 2023 at 16:08
  • are you sure you use pulse? and not pipewire? if not I'd try pipewire as it is a BIG improvement
    – Rinzwind
    May 25, 2023 at 17:38
0

If you are using Pipewire, a recent solution is to use "Easy Effects" application.

I have posted a solution to this here, https://superuser.com/a/1760876/1174249

Basically after installing the application, "Stereo tools" effect has to be added from the "Effect" menu. Than swapping channels can be selected using this effect.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .