# Phatbeat configuration for mopidy

**URL:** <https://forums.pimoroni.com/t/phatbeat-configuration-for-mopidy/17914>\
**Category:** Support\
**Created:** [September 15, 2021, 4:18pm UTC](https://forums.pimoroni.com/t/phatbeat-configuration-for-mopidy/17914 "2021-09-15T16:18:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fry](https://avatars.discourse-cdn.com/v4/letter/f/278dde/32.png) [@fry](https://forums.pimoroni.com/u/fry)\
**Post date:** [September 15, 2021, 4:18pm UTC](https://forums.pimoroni.com/t/phatbeat-configuration-for-mopidy/17914/1 "2021-09-15T16:18:05Z")

</div>

Hi, I followed this guide ([Streaming Spotify to your Pi](https://learn.pimoroni.com/article/streaming-spotify-to-your-pi)) to install Mopidy on Pirate Radio.  
The default volume level was very (very!) loud so I opened the config file (/etc/mopidy/mopidy.conf) and found an error as it was using the ‘software’ mixer instead of ‘alsamixer’.  
My config file now is:

```auto
[audio]
mixer = alsamixer

[alsamixer]
enabled = true
card = 0
control = Master

```

Now the output volume level is in sync with ALSA and I can change it with alsamixer in ssh.  
The problem is that now I can’t find the name of the ALSA control to use inside mopidy.

```auto
Sep 15 17:30:51 pirateradio mopidy[493]: ERROR [MainThread] mopidy.commands Mixer (AlsaMixer) initialization error: Could not find ALSA mixer control Master on card 0. Known mixers on card 0 include:

```

As you can see known mixers on card 0 are none! If I run this command (according to [GitHub - mopidy/mopidy-alsamixer: Mopidy extension for ALSA volume control](https://github.com/mopidy/mopidy-alsamixer)):

```auto
pi@pirateradio:~ $ amixer scontrols
Simple mixer control 'Master',0
Simple mixer control 'Capture',0

```

Maybe the problem is that I’m using Pulseaudio?

---

<div class="post-metadata">

**Author:** ![fry](https://avatars.discourse-cdn.com/v4/letter/f/278dde/32.png) [@fry](https://forums.pimoroni.com/u/fry)\
**Post date:** [September 21, 2021, 9:31am UTC](https://forums.pimoroni.com/t/phatbeat-configuration-for-mopidy/17914/2 "2021-09-21T09:31:20Z")

</div>

I answer to myself… The problem is that the index for ‘sndrpihifiberry’ in alsa is ‘-1’ but is not a valid integer for the mopidy\_alsamixer plugin.  
So I’ve modified line 21 in /usr/lib/python3/dist-packages/mopidy\_alsamixer/\_\_init\_\_.py to:  
`schema["card"] = config.Integer(minimum=-1)`  
now I can use the right config in /etc/mopidy/mopidy.conf:

```auto
[audio]
mixer = alsamixer

[alsamixer]
enabled = true
card = -1
control = Master

```

Now I finally can set the right volume from iris and from the side buttons!
