SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-11-14 00:32:09

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,432

Alsa Equal and MPD (finally solved)

audio_output {
        type            "alsa"
        name            "My ALSA EQ"
        device          "plug:plugequal"
}

Last edited by ivanovnegro (2011-11-19 23:41:40)

Offline

Help fund CrunchBang, donate to the project!

#2 2011-11-14 00:41:57

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,826
Website

Re: Alsa Equal and MPD (finally solved)

Offline

#3 2011-11-14 01:02:25

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,432

Re: Alsa Equal and MPD (finally solved)

Thank you for helping, but step 3 is not working as previously. I restart MPD and then I cannot play anything. GMPC is saying:

problems opening audio device

Last edited by ivanovnegro (2011-11-14 01:09:19)

Offline

#4 2011-11-14 02:55:09

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,826
Website

Re: Alsa Equal and MPD (finally solved)

audio_output {
    type        "alsa"
    name        "My ALSA EQ"
    device        "plug:plugequal"
    format        "44100:16:2"    # optional
    mixer_device    "default"    # optional
    mixer_control    "PCM"        # optional
    mixer_index    "0"        # optional
}

like this?

Offline

#5 2011-11-14 03:11:43

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,432

Re: Alsa Equal and MPD (finally solved)

Yes, exactly. I cannot help myself. I just cannot figure this out, it drives me nuts.

Offline

#6 2011-11-14 04:09:46

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,826
Website

Re: Alsa Equal and MPD (finally solved)

You don't accidentally have other audio_outputs defined in mpdconf?

And you edit the 'right' mpdconf? (No pun, I made the mistake once, using mpd.conf instead of .mpdconf, or something like this)

Offline

#7 2011-11-14 04:27:02

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,432

Re: Alsa Equal and MPD (finally solved)

I use only one audio output and am really editing the correct config file. Everything works also perfectly here, just cannot configure it to work with the EQ.

This is my actual audio output section and that of course works but if I change that I am out of business:

audio_output {
    type        "alsa"
    name        "My ALSA Device"
    device        "hw:0,0"
    mixer_device    "default"       # optional
        mixer_control   "PCM"           # optional
        mixer_index     "0"             # optional
}

MPD is really a big headache always. When I first wanted to set things up in the early days, I could not and now this. That I cannot use the EQ is a kick in the a** because it works so good with my bunch of music and I am an audiophile, I cannot use this crappy Alsa sound forever. smile

Offline

#8 2011-11-14 06:43:29

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,826
Website

Re: Alsa Equal and MPD (finally solved)

Meh @alsa

What about .asoundrc, does it look like

  ctl.equal {
      type equal;
    }

    pcm.plugequal {
      type equal;
      # Modify the line below if you don't
      # want to use sound card 0.
      slave.pcm "plug:dmix";
    }

this (partly)?

Offline

#9 2011-11-14 07:13:29

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,432

Re: Alsa Equal and MPD (finally solved)

Yes, it looks like this, otherwise the EQ would not work at all but it works system wide.

Offline

#10 2011-11-14 07:24:18

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,826
Website

Re: Alsa Equal and MPD (finally solved)

do you run mpd as root? If yes, run alsamixer -D equal as root, too. Can't think of anything else.

Offline

#11 2011-11-14 07:33:59

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,432

Re: Alsa Equal and MPD (finally solved)

Offline

#12 2011-11-19 23:39:57

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,432

Re: Alsa Equal and MPD (finally solved)

Ok, I solved it finally. There is always a solution, you have just to find it.

So, here is what I did.

I changed first again the mpd.conf with the alsaequal output instead of default Alsa:

audio_output {
    type        "alsa"
    name        "My ALSA EQ"
    device        "plug:plugequal"
    format        "44100:16:2"    # optional
    mixer_device    "default"    # optional
    mixer_control    "PCM"        # optional
    mixer_index    "0"        # optional
}

Of course I had no sound again but this time I had no connection error to audio device with a client.
But to be possible to actually here the music, I had to change something trivial. As root:

usermod -aG audio mpd

This will add MPD to the audio group, where my user is also.

cat /etc/group | grep audio

This command showed me that MPD is also in the audio group.
Pressed play on whatever client and I have sound and alsaequal is working now with MPD.

This workaround in my case is when you set to use MPD as your user and not as root.

Now I think I am an MPD Pro or not. big_smile

Offline

#13 2011-11-20 01:51:34

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,826
Website

Re: Alsa Equal and MPD (finally solved)

Good morning @HerrIvanov big_smile MPD is like a very hot lady - hard to get, but if you get her, she rubs you the right way tongue Anyway, glad you solved it! Now you can pull up everything to 11 cool

Offline

#14 2013-09-04 20:29:44

Clind
New Member
Registered: 2013-09-04
Posts: 1

Re: Alsa Equal and MPD (finally solved)

ivanovnegro
Thank you so much, you made my day!
My MPD started to need this out of the blue, before it always well worked with alsaequal without needing any output declared before, so with autodetect, so this was really unexpected but I found your thread rather quickly smile thanks for the solution !

Last edited by Clind (2013-09-04 20:30:14)

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo