Equalizer

Configuring and tweaking your GhostBSD System.

Equalizer

Postby Jes » Mon Sep 11, 2017 11:36 am

I don't know if the equalizer can be enabled with all sound cards. My laptop is a Thinkpad T420s and the sound module (I guess it's integrated into the kernel) is SND_HDA.

To enable the equalizer I put in /boot/loader.conf:

Code: Select all
dev.pcm.0.play.vchans=4
hint.pcm.0.eq=1
hint.pcm.0.vpc=1


Then you can control it with:

Code: Select all
mixer bass +/-value
mixer treble +/- value


Another trick to increase the volume:

Code: Select all
sysctl hw.snd.vpc_0db=10


You should be cautious with this value, if too low it can generate distortion.

If you want to go further, an small script can be used to modify the equalizer with keys. For example, with xbindkeys.

The script could be like:

Code: Select all
#!/bin/sh

WHICH=$1 # bass or treble
VALUE=$2 # +x -x

m=`/usr/sbin/mixer $WHICH $VALUE`
exec /usr/local/bin/notify-send -i "audio-volume-high-symbolic.svg" "${m}" -t 1 &


and in your ~/.xbindkeysrc:

Code: Select all
"/home/jjess/sbin/basstreble bass +5"
   Mod4 + q

"/home/jjess/sbin/basstreble bass -5"
   Mod4 + a

"/home/jjess/sbin/basstreble treble +5"
   Mod4 + w

"/home/jjess/sbin/basstreble treble -5"
   Mod4 + s


replacing 'jjess'' with your user, and 'basstreble' with the name of your script. Then you can increase/decrease equalizer values with WindowsKeys + q/a/w/s

BR

Jes
Jes
 
Posts: 35
Joined: Sun Dec 25, 2016 2:43 pm
Location: Spain
Has thanked: 13 times
Been thanked: 10 times

Equalizer


Return to Tips and Tricks

Who is online

Users browsing this forum: No registered users and 1 guest

cron