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?
Edit /etc/pulse/default.pa
and the following lines ...
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:
-
Master may not always be
0
so if this doesn't work (as was the case for me) check the output ofpacmd list-sinks
and substitute the appropriate index. – midiarsi Aug 9 '19 at 19:32