# No sound with Hifiberry AMP+ and Mopidy Iris

**URL:** <https://discourse.mopidy.com/t/no-sound-with-hifiberry-amp-and-mopidy-iris/3546>\
**Category:** Misc\
**Created:** [October 25, 2019, 8:46pm UTC](https://discourse.mopidy.com/t/no-sound-with-hifiberry-amp-and-mopidy-iris/3546 "2019-10-25T20:46:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![piimps](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/piimps/32/1319_2.png) [@piimps](https://discourse.mopidy.com/u/piimps)\
**Post date:** [October 25, 2019, 8:46pm UTC](https://discourse.mopidy.com/t/no-sound-with-hifiberry-amp-and-mopidy-iris/3546/1 "2019-10-25T20:46:39Z")

</div>

Hello everyone,

I had a raspberry pi 3 2 years ago and used it with my Hifiberry AMP+ and Mopidy. All were good but I just bought a new raspberry pi 4 and I tried to install the hifiberry with mopidy but I have no sound when I use Iris to play a music.

Rasp4 + the Hifiberry module work good when I use:

1. duckduckgo and go on youtube to listen to a video
2. _aplay /usr/share/sounds/alsa/Front\_Center.wav_

I didnt forget to add mopidy to the video usergroup:  
_groups mopidy_  
_mopidy : audio video_

Iris is working good, I can access to my iris client with on my laptop in the same local network.

I followed the instructions from: [https://www.hifiberry.com/docs/software/configuring-linux-3-18-x/](https://www.hifiberry.com/docs/software/configuring-linux-3-18-x/) except the debug section.

Here is my mopidy.conf:  
_cat mopidy.conf_

_# For further information about options in this file see:_  
_# [http://docs.mopidy.com/](http://docs.mopidy.com/)_  
_#_  
_# The initial commented out values reflect the defaults as of:_  
_# Mopidy 2.3.1_  
_# Mopidy-File 2.3.1_  
_# Mopidy-HTTP 2.3.1_  
_# Mopidy-Local 2.3.1_  
_# Mopidy-M3U 2.3.1_  
_# Mopidy-MPD 2.3.1_  
_# Mopidy-SoftwareMixer 2.3.1_  
_# Mopidy-Spotify 3.1.0_  
_# Mopidy-Stream 2.3.1_  
_#_  
_# Available options and defaults might have changed since then,_  
_# run `mopidy config` to see the current effective config and_  
_# `mopidy --version` to check the current version._

_[core]_  
_#cache\_dir = $XDG\_CACHE\_DIR/mopidy_  
_#config\_dir = $XDG\_CONFIG\_DIR/mopidy_  
_#data\_dir = $XDG\_DATA\_DIR/mopidy_  
_#max\_tracklist\_length = 10000_  
_#restore\_state = false_

_[logging]_  
_#color = true_  
_#console\_format = %(levelname)-8s %(message)s_  
_#debug\_format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n %(message)s_  
_#debug\_file = mopidy.log_  
_#config\_file =_

_[audio]_  
_#mixer = software_  
_#mixer\_volume =_  
_#output = autoaudiosink_  
_#buffer\_time =_

_[proxy]_  
_#scheme =_  
_#hostname = 192.168.0.36_  
_#port = 6680_  
_#username =_  
_#password =_

_[mpd]_  
_enabled = true_  
_hostname = ::_  
_port = 6600_  
_#password =_  
_#max\_connections = 20_  
_#connection\_timeout = 60_  
_#zeroconf = Mopidy MPD server on $hostname_  
_#command\_blacklist =_  
_# listall_  
_# listallinfo_  
_#default\_playlist\_scheme = m3u_

_[http]_  
_enabled = true_  
_hostname = ::_  
_port = 6680_  
_#static\_dir =_  
_#zeroconf = Mopidy HTTP server on $hostname_  
_#allowed\_origins =_  
_#csrf\_protection = true_

_[stream]_  
_enabled = true_  
_protocols =_

- http\*  
_# https_  
_# mms_  
_# rtmp_  
_# rtmps_  
_# rtsp_  
_#metadata\_blacklist =_  
_#timeout = 5000_

_[m3u]_  
_#enabled = true_  
_#base\_dir = $XDG\_MUSIC\_DIR_  
_#default\_encoding = latin-1_  
_#default\_extension = .m3u8_  
_#playlists\_dir =_

_[softwaremixer]_  
_#enabled = true_

_[file]_  
_#enabled = true_  
_#media\_dirs =_  
_# $XDG\_MUSIC\_DIR|Music_  
_# ~/|Home_  
_#excluded\_file\_extensions =_  
_# .directory_  
_# .html_  
_# .jpeg_  
_# .jpg_  
_# .log_  
_# .nfo_  
_# .pdf_  
_# .png_  
_# .txt_  
_# .zip_  
_#show\_dotfiles = false_  
_#follow\_symlinks = false_  
_#metadata\_timeout = 1000_

_[local]_  
_#enabled = true_  
_library = sqlite_  
_#media\_dir = $XDG\_MUSIC\_DIR_  
_#scan\_timeout = 1000_  
_scan\_flush\_threshold = 100_  
_#scan\_follow\_symlinks = false_  
_#excluded\_file\_extensions =_  
_# .directory_  
_# .html_  
_# .jpeg_  
_# .jpg_  
_# .log_  
_# .nfo_  
_# .pdf_  
_# .png_  
_# .txt_  
_# .zip_

_[spotify]_  
_enabled = true_  
\*username = \*\*\*\*\*  
\*password = \*\*\*\*\*  
\*client\_id = \*\*\*\*\*  
\*client\_secret = \*\*\*\*\*

I dont know what to do more, if someone could help me!  
Thank a lot and sorry for my bad english.

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [October 25, 2019, 9:40pm UTC](https://discourse.mopidy.com/t/no-sound-with-hifiberry-amp-and-mopidy-iris/3546/2 "2019-10-25T21:40:35Z")

</div>

Are you [running as a service](https://docs.mopidy.com/en/latest/service/)? If so then use `sudo mopidyctl config` to show your configuration. Assuming you are using the service then please take a look in /varl/log/mopidy/mopidy.log for any warnings or errors, share the file if you are ensure.

---

<div class="post-metadata">

**Author:** ![piimps](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/piimps/32/1319_2.png) [@piimps](https://discourse.mopidy.com/u/piimps)\
**Post date:** [October 26, 2019, 8:13am UTC](https://discourse.mopidy.com/t/no-sound-with-hifiberry-amp-and-mopidy-iris/3546/3 "2019-10-26T08:13:35Z")

</div>

I do not, I use mopidy command to start the application. Should I run it as service?

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [October 26, 2019, 10:49am UTC](https://discourse.mopidy.com/t/no-sound-with-hifiberry-amp-and-mopidy-iris/3546/4 "2019-10-26T10:49:03Z")

</div>

No that’s not necessary if you don’t want to. It certainly makes debugging easier to not run it as a service (I only asked since adding the mopidy user to the video group is only strictly necessary when running as a service).

When you run `mopidy` are there any errors or warning in the output at startup and when you select a song in iris? Can you confirm you disabled the onboard audio and provide the output of `aplay -l`. When you select a song, does playback appear to start in iris i.e. does the current position increase?

---

<div class="post-metadata">

**Author:** ![piimps](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/piimps/32/1319_2.png) [@piimps](https://discourse.mopidy.com/u/piimps)\
**Post date:** [October 26, 2019, 11:10am UTC](https://discourse.mopidy.com/t/no-sound-with-hifiberry-amp-and-mopidy-iris/3546/5 "2019-10-26T11:10:05Z")

</div>

Here is what I have when I start Mopidy and when I play a music from Iris:

_pi@raspberrypi:~ $ mopidy_  
_INFO Starting Mopidy 2.3.1_  
_INFO Loading config from builtin defaults_  
_INFO Loading config from /home/pi/.config/mopidy/mopidy.conf_  
_INFO Loading config from command line options_  
_INFO Enabled extensions: iris, mpd, http, stream, spotify, local-sqlite, musicbox\_webclient, softwaremixer, file, local-images, local, m3u_  
_INFO Disabled extensions: none_  
_INFO Starting Mopidy mixer: SoftwareMixer_  
_INFO Starting Mopidy audio_  
_INFO Starting Mopidy backends: StreamBackend, M3UBackend, FileBackend, LocalBackend, SpotifyBackend_  
_INFO Audio output set to “autoaudiosink”_  
_INFO Loaded 0 local tracks using sqlite_  
_INFO Starting Mopidy core_  
_INFO Starting Mopidy frontends: IrisFrontend, MpdFrontend, HttpFrontend_  
_INFO Starting Iris 3.41.2_  
_INFO MPD server running at [::]:6600_  
_INFO HTTP server running at [::]:6680_  
_INFO Starting GLib mainloop_  
_INFO Logged in to Spotify in online mode_

The music bar moves forward on the web interface but as you can see above, there is nothing telling I played a song or change with another song.

What do you mean by " Can you confirm you disabled the onboard audio and provide the output of `aplay -l` "?

I did this, I dont know if this is what you mean?

Create /etc/asound.conf with the following content:

```auto
pcm.!default {
  type hw card 0
}
ctl.!default {
  type hw card 0
}

```

Here is what I have when I do aplay -l:

\*\*\*\* Liste des Périphériques Matériels PLAYBACK \*\*\*\*  
carte 0: sndrpihifiberry [snd\_rpi\_hifiberry\_amp], périphérique 0: HifiBerry AMP HiFi tas5713.1-001b-0 [HifiBerry AMP HiFi tas5713.1-001b-0]  
Sous-périphériques: 1/1  
Sous-périphérique #0: subdevice #0
