How can you reverse left and right speakers from a control panel?

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?


Solution 1:

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:

  • Cousjava @ ubuntuforums.org