Pi Musicbox volume control (for Amp hat) not working with Spotify Connect


#21

Sum up :

  • Save/copy the current etc/asound.sh somewhere

  • Use “aplay -l” to get a list of the devices on your system. The hw:X,Y comes from this mapping of your hardware – in this case, X is the card number, while Y is the device number.(https://superuser.com/a/53977)

  • Edit /opt/musicbox/startup.sh to comment out line 39 :

#. /opt/musicbox/setsound.sh

  • Edit etc/asound.sh to remplace by ( change X and Y by your values ) :
pcm.!default {
    type plug
    slave.pcm  "softvol"
}
ctl.!default {
    type hw
    card X

}

pcm.softvol {
    type            softvol
    slave {
        pcm         "hw: X, Y"  
    }
    control {
        name        "PCM"
        card         X
    }
}
  • Use the following command to set the global volume (xx = desired volume). You can add it to a script that run at the startup.

amixer set PCM xx%


ANNOUNCEMENT: Pi Musicbox v0.7.0RC5
#22

Yes, all works ! YOU are fantastic ! :wink:


#23

Thanks for trying this out, I’ll see what I can do to integrate this into the release. See https://github.com/pimusicbox/pimusicbox/issues/248


#24

Volumio with spotify connect plugin is good too (sorry)

-------- Oprindelig besked --------


#25

I just hope you are saying the same thing over on their user forums.


#26

Naturally. Both apps have advantages and disadvantages.
For Spotify Connect users, I assume it comes down to which application has the latest Spotify Connect plugin version (most stable, least errors).