Contact

Mail: Please enable JavaScript.
Phone number within Sweden: Please enable JavaScript.
Phone number internationally: Please enable JavaScript.

Ubuntu / Debian - System-wide equalizer for PulseAudio pulseaudio-equalizer

For Ubuntu:

Found this tip at:
http://askubuntu.com/questions/363741/system-wide-equalizer-for-ubuntu-13-10

Do the following:
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install pulseaudio-equalizer

You then have an application named PulseAudio Equalizer.



For Debian - tested on Debian Jessie 8 (also works for Debian Stretch 9, but it contains it's own equalizer, see a bit down in this document).

The above does currently not work with Debian Jessie 8.

A workaround is the follwing:

Install dependencies:
apt-get install swh-plugins ladspa-sdk python-gnome2

Visit http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu/pool/main/p/pulseaudio-equalizer/?C=M;O=A

Download the latest package you can find - Ubuntu package pulseaudio-equalizer_2.7.0.2-5~webupd8~xenial0_all.deb worked for Debian Jessie 8 and Debian Stretch 9.

Install this package:
dpkg -i pulseaudio-equalizer_2.7.0.2-5~webupd8~xenial0_all.deb (or the package you downloaded)

Try to enable the equalizer:

pulseaudio-equalizer enable

You now should have the equalizer available in the sound settings as an output and a graphical interface to control it in the program list.

Source: http://forums.debian.net/viewtopic.php?f=6&t=102973



pulseaudio-equalizer - Bug: Muted sound on preset change

Edit the source file script, find the line that begins with PA_CURRENT_VOLUME=$(pacmd list , replace with:

PA_CURRENT_VOLUME=$(pacmd list | grep -A20 "<$PA_CURRENT_SINK>" | grep -m1 'volume: front-left: ' | cut -f1 -d'%' | awk '{print $NF}')

Source: https://bugzilla.redhat.com/show_bug.cgi?id=1046589



Debian Stretch 9 - Native qpaeq - NOTE, due to stuttering sound I don't recommend this, scroll down to next tip.

You can follow the install procedure mentioned for Debian Jessie 8 also on Debian Stretch 9. It does however mark the pulseaudio-equalizer package as held back then.

A more native solution is to use the built in equalizer, source for this:
https://wiki.archlinux.org/index.php/PulseAudio#Load_equalizer_sink_and_dbus-protocol_module

apt-get install pulseaudio-equalizer

To start it:
pactl load-module module-equalizer-sink
pactl load-module module-dbus-protocol
qpaeq

Run:
pacmd list-sinks | grep -e 'name:' -e 'index
to find out the name of the outputs.

Run:
pacmd list-sources | grep -e 'name:' -e 'index'
to find name of the inputs.

To load on every boot, edit /etc/pulse/default.pa (or ~/.config/pulse/default.pa) and add this to the end of it:

# set the original source output (if you have two or more soundcards):
set-default-sink <name of original source output from pacmd list-sinks from above>

# set source (input), optional
set-default-source <name of original source input from pacmd list-sinks from above>

# enable equalizer
load-module module-equalizer-sink
load-module module-dbus-protocol

# set the output to the equalizer
set-default-sink <name of equalizer output from pacmd list-sinks from above>

Equalizer GUI is started using qpaeq



Debian Stretch 9 - Stuttering sound

I found that the native equalizer produces stuttering sound and did not cope with Winamp in Wine like the old equalizer in Debian Jessie 8 did.

I found this: https://github.com/kernelOfTruth/pulseaudio-equalizer

This is a fork of the 2.7 pulseaudio-equalizer I used in Jessie 8, much better.

So, I installed this instead:

(apt-get install swh-plugins ladspa-sdk python-gnome2)

apt-get purge pulseaudio-equalizer

git clone (the link from github download link)
cd pulseaudio-equalizer
mv ./bin/* /usr/bin/
mv ./share/pulseaudio-equalizer /usr/share/
mv ./applications/pulseaudio-equalizer.desktop /usr/share/applications/

Then back with the old script to enable it on startup in Startup applications in MATE.

The script (place it somewhere):

#!/bin/bash
sleep 60
# set output to the preferred soundcard
# find your output sink by running: pacmd list-sinks | grep -e 'name:' -e 'index'
# and replace <output-sink> with the name of the sink
pacmd set-default-sink <output sink>
# set source (input) - optional if you want to set the input source too
# find your input sink by running: pacmd list-sources | grep -e 'name:' -e 'index'
# and replace <input sink> with the source you want
pacmd set-default-source <input sink>
# enable equalizer
. /usr/bin/pulseaudio-equalizer enable

In MATE 1.16, go to System -> Personal -> Startup applications and create a new item there.
Fill it with:
Name: Pulseaudio defaults and load equalizer
Command: /bin/bash /path/to/the/file/above.sh &
Comment: Set Pulseaudio defaults and load equalizer

This is a personal note. Last updated: 2017-08-17 22:11:10.



LinkedIn
Klebe.se

Don't forget to pay my friend a visit too. Joakim