# Can't get mopidy output sound (kodibuntu+mopidy)

**URL:** <https://discourse.mopidy.com/t/cant-get-mopidy-output-sound-kodibuntu-mopidy/631>\
**Category:** Misc\
**Created:** [March 20, 2015, 3:43pm UTC](https://discourse.mopidy.com/t/cant-get-mopidy-output-sound-kodibuntu-mopidy/631 "2015-03-20T15:43:23Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![svashtar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/svashtar/32/122_2.png) [@svashtar](https://discourse.mopidy.com/u/svashtar)\
**Post date:** [March 20, 2015, 3:43pm UTC](https://discourse.mopidy.com/t/cant-get-mopidy-output-sound-kodibuntu-mopidy/631/1 "2015-03-20T15:43:23Z")

</div>

Hi,

background:

- moderate linux experiance
- having xbmcbuntu instllation (recently upgraded) - meaning Ubuntu booted directly to XBMC/Kodi
- no problems whatsoever inside xbmc, sound works as expected
- no sound from mopidy

I am not entirely sure whether xbmc uses pulse or alsa, but i think it is alsa.  
I was trying different approaches, one of them running pacmd - which can’t be found.  
On the other hand alsamixer works (at least opens) and i can do aplay -l

```
****List of PLAYBACK Hardware Devices****
card 0: NVidia [HDA NVidia], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: ALC662 rev1 Digital [ALC662 rev1 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

```

In xbmc output goes to HDMI and I would also like mopidy to use HDMI.  
Now, the problem is i tried like 15 different configuration options in mopidy.conf, but there is just no sound from mopidy.

If someone is kind enough to help me out with this, i would really appreciate it.  
Is also entitled for a cup of ☕ 😄

---

<div class="post-metadata">

**Author:** ![jodal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/jodal/32/2564_2.png) [@jodal](https://discourse.mopidy.com/u/jodal)\
**Post date:** [March 20, 2015, 3:59pm UTC](https://discourse.mopidy.com/t/cant-get-mopidy-output-sound-kodibuntu-mopidy/631/2 "2015-03-20T15:59:06Z")

</div>

Try with this in your `mopidy.conf`:

```auto
[audio]
output = alsasink device=hw:0,3

```

The `0,3` is `card,device` taken from your `aplay -l` output.

---

<div class="post-metadata">

**Author:** ![svashtar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/svashtar/32/122_2.png) [@svashtar](https://discourse.mopidy.com/u/svashtar)\
**Post date:** [March 20, 2015, 4:40pm UTC](https://discourse.mopidy.com/t/cant-get-mopidy-output-sound-kodibuntu-mopidy/631/3 "2015-03-20T16:40:56Z")

</div>

OMG, i feel so extremelylame right now.  
I had so many different configs, but all more complicated than this one.  
Sometimes simplest things make wonders.

Thx 100 times jodal.  
It works perfectly now.

☕

---

<div class="post-metadata">

**Author:** ![jodal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/jodal/32/2564_2.png) [@jodal](https://discourse.mopidy.com/u/jodal)\
**Post date:** [March 20, 2015, 6:48pm UTC](https://discourse.mopidy.com/t/cant-get-mopidy-output-sound-kodibuntu-mopidy/631/4 "2015-03-20T18:48:57Z")

</div>

I like how you post separate topics for each issue. Much easier to answer, and we get lots of helpful threads for newcomers that way 🙂

---

<div class="post-metadata">

**Author:** ![svashtar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/svashtar/32/122_2.png) [@svashtar](https://discourse.mopidy.com/u/svashtar)\
**Post date:** [March 21, 2015, 4:33pm UTC](https://discourse.mopidy.com/t/cant-get-mopidy-output-sound-kodibuntu-mopidy/631/5 "2015-03-21T16:33:34Z")

</div>

I was happy too soon as it turned out.  
After some testing and playing with mopidy/kodi, i am now pretty sure that after mopidy plays some music, kodi sound stops to work. I have to restart the system for kodi to be back again.

**Edit: it is actually enough to stop mopidy service**

I had an impression this should not be a problem, but seems it is.  
Is there a way to fix this or should I maybe go with pulse?

This is a copy/paste from kodi wiki:

> Linux has two different audio systems, these are PulseAudio and Advanced Linux Sound Architecture (ALSA).  
> If you have a PC that is exclusively used for XBMC then using ALSA maybe the best solution.  
> If you have a PC runs many applications other than XBMC then using PulseAudio maybe the the best solution.

I am really not sure what to do right now.

---

<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:** [March 21, 2015, 6:26pm UTC](https://discourse.mopidy.com/t/cant-get-mopidy-output-sound-kodibuntu-mopidy/631/6 "2015-03-21T18:26:08Z")

</div>

Seeing as you boot directly to Kodi it sounds like you are option 1. I run Mopidy alongside my Xbian (XBMC on raspberry Pi) system using ALSA without issue. I think there was an option to have them share the sound device, `streamsilence` (or something ).

---

<div class="post-metadata">

**Author:** ![svashtar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/svashtar/32/122_2.png) [@svashtar](https://discourse.mopidy.com/u/svashtar)\
**Post date:** [March 21, 2015, 6:54pm UTC](https://discourse.mopidy.com/t/cant-get-mopidy-output-sound-kodibuntu-mopidy/631/7 "2015-03-21T18:54:06Z")

</div>

Streamsilence in advanced settings XML was recently removed.

---

<div class="post-metadata">

**Author:** ![svashtar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/svashtar/32/122_2.png) [@svashtar](https://discourse.mopidy.com/u/svashtar)\
**Post date:** [March 23, 2015, 9:42am UTC](https://discourse.mopidy.com/t/cant-get-mopidy-output-sound-kodibuntu-mopidy/631/8 "2015-03-23T09:42:11Z")

</div>

I am using moped as my frontend (but there is actually no difference with other frontends - related to this question). When I play something, there is a Pause button - which, well, yes, pauses the stream/music.

Is there any way to **stop** mopidy to play music, not just pausing it?  
I think this could actually be a main problem causing xbmc not be able to output sound after mopidy has played something.

So, mopidy \> stop?

---

<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:** [March 23, 2015, 9:56am UTC](https://discourse.mopidy.com/t/cant-get-mopidy-output-sound-kodibuntu-mopidy/631/9 "2015-03-23T09:56:13Z")

</div>

Might well be. You can test this by issuing a stop command with mpc (‘mpc  
stop’!). I think musicbox-webclient has a stop button but only for streams  
(due to some sort of concern over the buffering which I never really  
understood) .

---

<div class="post-metadata">

**Author:** ![svashtar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/svashtar/32/122_2.png) [@svashtar](https://discourse.mopidy.com/u/svashtar)\
**Post date:** [March 23, 2015, 7:49pm UTC](https://discourse.mopidy.com/t/cant-get-mopidy-output-sound-kodibuntu-mopidy/631/10 "2015-03-23T19:49:56Z")

</div>

Yup.  
‘mpc stop’ does the trick and releases device apparently.  
So, maybe add a pull request to moped with additional stop button would be accepted? Or maybe just add it for myself 😳

---

<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:** [March 23, 2015, 8:05pm UTC](https://discourse.mopidy.com/t/cant-get-mopidy-output-sound-kodibuntu-mopidy/631/11 "2015-03-23T20:05:41Z")

</div>

You never know until you try! Glad to know that’s the trick as I’ll likely  
need it too when I eventually upgrade to kodi.

---

<div class="post-metadata">

**Author:** ![tkem](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/tkem/32/22_2.png) [@tkem](https://discourse.mopidy.com/u/tkem)\
**Post date:** [March 24, 2015, 8:17am UTC](https://discourse.mopidy.com/t/cant-get-mopidy-output-sound-kodibuntu-mopidy/631/12 "2015-03-24T08:17:40Z")

</div>

@svashtar: Thanks for sharing this!

---

<div class="post-metadata">

**Author:** ![svashtar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/svashtar/32/122_2.png) [@svashtar](https://discourse.mopidy.com/u/svashtar)\
**Post date:** [March 24, 2015, 9:12am UTC](https://discourse.mopidy.com/t/cant-get-mopidy-output-sound-kodibuntu-mopidy/631/13 "2015-03-24T09:12:16Z")

</div>

@tkem sure, i’m glad solutions to my own problems help someone else , too 🍻

**PS** : i am actually juggling my thoughts on creating a brand new shiny mopidy web player - i need some time and beer to think it through. I am very new to mopidy and have no idea whether there is any “demand” on new players? Well, competition is always good i think, anyway. 😇
