An equaliser that works with MPD and ALSA

A few months ago I was looking for a way to lower the amplification of the lower frequencies while listening to music on extremely bass-heavy in-ear headphones. The only way to accomplish that, seemed to be using JACK. Since that seemed overkill to me, I gave up.

Today I found a solution that does not require JACK: Charles Eidsness’ ALSAEQUAL. This is how you get it working with MPD on Gentoo:

  1. `emerge alsaequal`
  2. Create an .asoundrc file in the home directory of the user that runs MPD on your system (see `grep "^user" /etc/mpd.conf`) with the following content:

    ctl.equal {
      type equal;
    }
    
    pcm.plugequal {
      type equal;
      slave.pcm "plug:dmix";
    }
    
    pcm.equal {
      # Or if you want the equalizer to be your
      # default soundcard uncomment the following
      # line and comment the above line.
    # pcm.!default {
      type plug;
      slave.pcm plugequal;
    }
    

    (copied from the ALSAEQUAL website – modified so that dmix is being used, which allows playing multiple audio sources simultaneously)

  3. Find the audio_output section in your /etc/mpd.conf where you currently configure MPD to use ALSA’s default device. Change it so that it looks like
    audio_output {
      type    "alsa"
      name    "equal"
      device  "plug:plugequal"
    }
    
  4. `/etc/init.d/alsasound restart && /etc/init.d/mpd restart`
  5. Play a track with MPD, then run `alsamixer -D equal`*. Modify any of the frequency band sliders and observe the effect.

Other applications will be unaffected by the equaliser, if you don’t change the .asoundrc according to the comment, and if you don’t configure them to use the ‘equal’ ALSA device.

*) Note that alsamixer needs to be run as the user that runs mpd. See Ian’s comment for details.

Update (2012-06-16): Having the .asoundrc in place causes Skype to crash after a few seconds (see also this Gentoo Forums post).

KDE 4.2.0 on my netbook

It’s just great! Update from 4.1.4 went smoothly, thanks to Gentoo’s KDE maintainers, great work!

Screenshot KDE 4.2.0 on my netbook
Screenshot KDE 4.2.0 on my netbook
(the left and bottom panels are usually set to ‘auto-hide’, and the right one (which currently only contains the System Tray plasmoid) can be covered by windows, so I have the full screen available for applications)

KDE 4.2.0 brought the following features that I missed a lot since KDE 3.5:

  • The Task Manager plasmoid (the taskbar that shows a button
    for each running program) can finally have multiple rows, buttons can be grouped
  • The Digital Clock plasmoid can show other timezones on hovering with the mouse
  • Global keyboard shortcuts work
  • Some dialogue windows have been resized to fit on smaller displays

… and I’m still exploring 🙂

Many thanks to all KDE developers for this great piece of Free Software!

My Dell Mini setup

Jürgen and Michael started this (it seems like everybody is getting a netbook these days), and so I continue by posting my netbook setup as well.

I could get all hardware components except the built-in Bluetooth chip to work with very little trouble. The bluetooth chip is supposed to work in Ubuntu Intrepid, so I guess that should also be solved, soon. I’m using a USB bluetooth dongle for now. For details, please have a look at the page I filled out in the Linux Laptop Wiki or the Dell Mini article in my Wiki.

I’m using Gentoo Linux (~x86) on the netbook just as on my other computers (why would I choose something else?). To help with the compiling, I set up distcc in a VM on my company desktop. Even without that, the small machine is astoundingly fast. The 16 GB SSD’s low access latency kicks ass: for example system startup, where many small files scattered throughout the “disk” need to be read, takes a mere 20 seconds (from grub to KDM being ready to receive the password for login). Suspend to RAM also just works (with gentoo-sources, but probably also with vanilla-sources), and the system resumes automatically when opening the lid. The battery lasts quite long, too (see my small battery consumption test) and the device is completely silent at all times – so all in all, I’m very satisfied with this little device.

Last week I bought two additional no-name el cheapo power supplies for a total of 180¥ (20€ / $26) and put them into the places where I spend most of my time, so I never need to carry the bulky thing around 🙂

Well, and here is the obligatory screenshot: