Another pulse equaliser - qpaeq

I mentioned this in the can’t get the pulse audio equalizer post. Think it’s worth posting a bit more info as it’s a considerable improvement.

Best obtained from git kinked to here as this one does show the db adjustment

https://sites.google.com/site/nevion/projects/qpaeq

Some help is needed to get it going other than in the readme. That is here

Install Pulseaudio With Built-In System-Wide Equalizer In Ubuntu ~ Web Upd8: Ubuntu / Linux blog

I had an error message loading one of the pulse modules. I suspect this is because the python dbus interface was already loaded.

It’s unusual as the frequency resolution changes as the width of the window is increased. This for instance is the bass end of the fully expanded view. Just having an adjustment at 50Hz isn’t much use to me,

http://www.23hq.com/ajohnw/photo/13521925/original

The settings are retained even when the window with is reduced.

To use it on KDE I had to use the GTk Gnome volume control so that I could select it as the audio output. KDE / Phonon doesn’t seem to be able to cope. Curiously it’s running from one of the directories off my home. Now that I have run it like that I am not sure that it can be run from the suggested location without a reboot.

I have since removed the odd values above 50Hz. The dB resolution is 0.1Db

John

I have a few queries on using this set up.

I need to add these commands to a start up files some where so that they always run? Taken from one of the links I posted the sequence as a normal user is, numbers added for reference is


1 pulseaudio -k
2 pulseaudio &
3 pactl load-module module-equalizer-sink
4 pactl load-module module-dbus-protocol

Then if the equaliser is to be loaded


qpaeq.py

Command 1 doesn’t generate an error
Command 2 generates


john@linux-448o:~> E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() failed.

Command 3 runs ok and command 4 fails. That looks to be because the module is already loaded. This happened the 1st time I used this sequence as well and it still worked.

Then comes a problem. I can switch output streams as needed by using the GTK Gnome volume control but there doesn’t seem to be any way of doing this with kde. Before the Gnome utility is run system setting - multimedia - phonon shows all audio sources but doesn’t show pulse sound server. After the Gnome utility is run it just shows the pulse sound server. The task bar volume control shows 4 pulse audio volume control peak detects and an unknown equaliser stream which the Gnom utility correctly names. Also volume controls for hdmi on the video card, built in analogue stereo and event sounds but not the sound card that is installed.

Trying to summarise

Where to put the module loads?
I assume the pulseaudio -k and & aren’t needed if the rest are done automatically some where during startup but it would be nice to know what needs to be done on OpenSuse?
How to get kde to include the pulse sound server.
How to switch sources in KDE and hopefully get the correct volume controls to show.
What do the pulse peak detect volume controls do?

John

Hi,

You can just copy your /etc/pulse/default.pa to ~/.pulse, from there you’ll want to add lines:### Load DBus protocol
.ifexists module-dbus-protocol.so
load-module module-dbus-protocol
.endif

load-module module-equalizer-sink sink_name=equalized

set-default-sink equalized

regarding your error… that is due to pulseaudio autospawning after you kill it but before you start it… this is an option in the client.conf that defaults to yes. You never needed to do that but the modules will be loaded at pulseaudio start now anyway.

My file here for reference: #!/usr/bin/pulseaudio -nF # # This file is part of PulseAudio. # # PulseAudi - Pastebin.com](http://pastebin.com/HHk5EiFa)
You may also want to disable tsched (as I’ve done) by finding:load-module module-udev-detect

withload-module module-udev-detect tsched=0

This fixes some performance problems I’ve noted over years with the equalizer on pulseaudio. Another tip is don’t have flash using the equalizer with anything else… else you’ll get frequent popping. I’ve set flash to default open to the normal sink using pulseaudio’s official mixer control: pavucontrol which largely gets rid of the annoyance although now most of the time when I watch flash, it has too much bass as a result.

I’m not sure where kde development is at wrt the equalizer, but I get by just with pavucontrol and qpaeq.