# Plexamp on Raspberry PI won't "release" MPD

**URL:** <https://forums.plex.tv/t/plexamp-on-raspberry-pi-wont-release-mpd/803459>\
**Category:** Plex Labs\
**Tags:** plexamp, server-linux-arm\
**Created:** [August 6, 2022, 2:04pm UTC](https://forums.plex.tv/t/plexamp-on-raspberry-pi-wont-release-mpd/803459 "2022-08-06T14:04:35Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![pietervo](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@pietervo](https://forums.plex.tv/u/pietervo)\
**Post date:** [August 6, 2022, 2:04pm UTC](https://forums.plex.tv/t/plexamp-on-raspberry-pi-wont-release-mpd/803459/1 "2022-08-06T14:04:35Z")

</div>

I’m currently running Plexamp headless on a Raspberry PI in parallel with a Moode OS installation. For now I’d like to stick to Moode as well for Spotify Connect and Airplay.

In v4.2.0, this was working flawlessly and I could easily switch between playback in Plexamp or Moode because both systems would “release” MPD around 10 to 15 seconds after playback is paused (this is also visible on the screen of my DAC). However, in Plexamp 4.3.0, this behaviour has changed and after pausing playback, Plexamp won’t release MPD. Is there a setting for this which can be changed?

I’d add some logs if someone could point out where to find them when running the ARM Plexamp headless version.

The Raspberry Pi has a HifiBerry Digi+ Pro hat for connection to my DAC through optical cable.

---

<div class="post-metadata">

**Author:** ![tgp-2](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tgp-2/32/276306_2.png) [@tgp-2](https://forums.plex.tv/u/tgp-2)\
**Post date:** [August 6, 2022, 2:24pm UTC](https://forums.plex.tv/t/plexamp-on-raspberry-pi-wont-release-mpd/803459/2 "2022-08-06T14:24:08Z")

</div>

I didn’t think to check this on 4.3.0 until you posted … I am seeing the same thing here with plexamp and roonbridge running on a standard rasperry pi OS lite install … plexamp not releasing the audio device after playback pause/stop

---

<div class="post-metadata">

**Author:** ![jerome\_oflaherty\_icloud\_com](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@jerome\_oflaherty\_icloud\_com](https://forums.plex.tv/u/jerome_oflaherty_icloud_com)\
**Post date:** [August 6, 2022, 2:56pm UTC](https://forums.plex.tv/t/plexamp-on-raspberry-pi-wont-release-mpd/803459/3 "2022-08-06T14:56:53Z")

</div>

Yes, seeing the same with Volumio !!

---

<div class="post-metadata">

**Author:** ![tgp-2](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tgp-2/32/276306_2.png) [@tgp-2](https://forums.plex.tv/u/tgp-2)\
**Post date:** [August 6, 2022, 4:25pm UTC](https://forums.plex.tv/t/plexamp-on-raspberry-pi-wont-release-mpd/803459/4 "2022-08-06T16:25:12Z")

</div>

@elan what is “Device 0” in 4.3.0 ?

Logs comparison below, Plexamp.1.log is from 4.2.2, Plexamp.3.log is from 4.3.0 on same Pi

```auto
odroid@odroid:~/.cache/Plexamp/log$ grep "BASS: Device\|Suspending quiescent\|Pausing audio output" Plexamp.1.log
Aug 06, 2022 08:01:16.668 [0x9125f0e0] INFO - BASS: Device 1: Default - enabled default - sample rates: () - active 0/0
Aug 06, 2022 08:01:16.668 [0x9125f0e0] INFO - BASS: Device 2: ODROID-HDMI: - enabled - sample rates: () - active 0/0
Aug 06, 2022 08:01:16.668 [0x9125f0e0] INFO - BASS: Device 3: ODROID-HIFI: - enabled - sample rates: () - active 0/0
Aug 06, 2022 08:02:05.077 [0x92a8f0e0] INFO - BASS: Device 3 opened and sample rate is 44100 (preferred was 44100, best was 44100, range is 0 - 0), latency is 45ms (period: 30ms).
Aug 06, 2022 08:02:05.081 [0x92a8f0e0] INFO - BASS: Device 3 opened and sample rate is 44100 (preferred was 44100, best was 44100, range is 0 - 0), latency is 45ms (period: 30ms).
Aug 06, 2022 08:02:32.184 [0x227cf0e0] INFO - BASS: Pausing audio output (after delay: 1)
Aug 06, 2022 08:02:43.299 [0x296cf0e0] DEBUG - BASS: Suspending quiescent device.
odroid@odroid:~/.cache/Plexamp/log$ grep "BASS: Device\|Suspending quiescent\|Pausing audio output" Plexamp.3.log
Aug 06, 2022 07:39:06.892 [0xa126f0e0] INFO - BASS: Device 1: Default - enabled default - sample rates: () - active 0/0
Aug 06, 2022 07:39:06.892 [0xa126f0e0] INFO - BASS: Device 2: ODROID-HDMI: - enabled - sample rates: () - active 0/0
Aug 06, 2022 07:39:06.892 [0xa126f0e0] INFO - BASS: Device 3: ODROID-HIFI: - enabled - sample rates: () - active 0/0
Aug 06, 2022 07:39:06.956 [0xa0a5f0e0] INFO - BASS: Device 0 opened and sample rate is 44100 (preferred was 44100, best was 44100, range is 0 - 0), latency is 15ms (period: 30ms).
Aug 06, 2022 07:39:49.445 [0xa1a7f0e0] INFO - BASS: Device 3 opened and sample rate is 44100 (preferred was 44100, best was 44100, range is 0 - 0), latency is 45ms (period: 30ms).
Aug 06, 2022 07:40:23.955 [0x327cf0e0] INFO - BASS: Pausing audio output (after delay: 1)
Aug 06, 2022 07:40:35.063 [0x337ef0e0] DEBUG - BASS: Suspending quiescent device.
Aug 06, 2022 07:40:35.063 [0x337ef0e0] INFO - BASS: Device 0 opened and sample rate is 44100 (preferred was 44100, best was 44100, range is 0 - 0), latency is 15ms (period: 30ms).

```

---

<div class="post-metadata">

**Author:** ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)\
**Post date:** [August 6, 2022, 7:32pm UTC](https://forums.plex.tv/t/plexamp-on-raspberry-pi-wont-release-mpd/803459/5 "2022-08-06T19:32:11Z")

</div>

> [@tgp-2](#):
>
> what is “Device 0” in 4.3.0 ?

That should be the “no sound” device which _should_ release the real audio device, but perhaps not.

---

<div class="post-metadata">

**Author:** ![vinothsubramanian](https://avatars.discourse-cdn.com/v4/letter/v/8e7dd6/32.png) [@vinothsubramanian](https://forums.plex.tv/u/vinothsubramanian)\
**Post date:** [August 7, 2022, 6:08pm UTC](https://forums.plex.tv/t/plexamp-on-raspberry-pi-wont-release-mpd/803459/6 "2022-08-07T18:08:49Z")

</div>

Same issue exists in Cubox-I running Archlinux.

---

<div class="post-metadata">

**Author:** ![pietervo](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@pietervo](https://forums.plex.tv/u/pietervo)\
**Post date:** [August 8, 2022, 10:41am UTC](https://forums.plex.tv/t/plexamp-on-raspberry-pi-wont-release-mpd/803459/7 "2022-08-08T10:41:00Z")

</div>

Here’s what’s happening in my case:

```auto
pi@moode:~/.cache/Plexamp/log $ grep "BASS: Device\|Suspending quiescent\|Pausing audio output" Plexamp.log
Aug 08, 2022 12:39:22.135 [0xa8b08180] INFO - BASS: Device -1 opened and sample rate is 44100 (preferred was 44100, best was 44100, range is 0 - 0), latency is 45ms (period: 30m
s).                                                                                                                                                                              
Aug 08, 2022 12:39:46.156 [0x377fe180] INFO - BASS: Pausing audio output (after delay: 1)
Aug 08, 2022 12:39:57.263 [0x3dffb180] DEBUG - BASS: Suspending quiescent device.
Aug 08, 2022 12:39:57.264 [0x3dffb180] INFO - BASS: Device 0 opened and sample rate is 44100 (preferred was 44100, best was 44100, range is 0 - 0), latency is 15ms (period: 30ms
).

```

Also, is it normal that when I just open the logs in a text editor, I get a continuous stream of this? 🙂

```auto
Aug 08, 2022 03:15:39.739 [Javascript] INFO - WebSocket: Connection closed to ws://127.0.0.1:2000/jsonrpc                                                                        
Aug 08, 2022 03:15:44.740 [Javascript] INFO - WebSocket: Connection error to ws://127.0.0.1:2000/jsonrpc                                                                         
Aug 08, 2022 03:15:44.740 [Javascript] INFO - WebSocket: Connection closed to ws://127.0.0.1:2000/jsonrpc                                                                        
Aug 08, 2022 03:15:49.743 [Javascript] INFO - WebSocket: Connection error to ws://127.0.0.1:2000/jsonrpc                                                                         
Aug 08, 2022 03:15:49.743 [Javascript] INFO - WebSocket: Connection closed to ws://127.0.0.1:2000/jsonrpc                                                                        
Aug 08, 2022 03:15:54.746 [Javascript] INFO - WebSocket: Connection error to ws://127.0.0.1:2000/jsonrpc                                                                         
Aug 08, 2022 03:15:54.746 [Javascript] INFO - WebSocket: Connection closed to ws://127.0.0.1:2000/jsonrpc   

```

---

<div class="post-metadata">

**Author:** ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)\
**Post date:** [August 8, 2022, 10:52am UTC](https://forums.plex.tv/t/plexamp-on-raspberry-pi-wont-release-mpd/803459/8 "2022-08-08T10:52:07Z")

</div>

it’ll be fixed in the next release.

---

<div class="post-metadata">

**Author:** ![pietervo](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@pietervo](https://forums.plex.tv/u/pietervo)\
**Post date:** [August 8, 2022, 12:24pm UTC](https://forums.plex.tv/t/plexamp-on-raspberry-pi-wont-release-mpd/803459/9 "2022-08-08T12:24:29Z")

</div>

Great to hear you’re already on top of things! Do you have a rough estimate when we can expect the update? Just to see if it’s worth the effort to roll back to 4.2.0 for the time being. Thank you!

---

<div class="post-metadata">

**Author:** ![jerome\_oflaherty\_icloud\_com](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@jerome\_oflaherty\_icloud\_com](https://forums.plex.tv/u/jerome_oflaherty_icloud_com)\
**Post date:** [August 8, 2022, 3:42pm UTC](https://forums.plex.tv/t/plexamp-on-raspberry-pi-wont-release-mpd/803459/10 "2022-08-08T15:42:08Z")

</div>

```auto
it’ll be fixed in the next release.

```

Thanks, quick question - do you guys have any event callback / script triggered when you stop playback? As I have a workaround for my current setup - when I am finished listening using plexamp and want to use a different audio system, I restart the plexamp service which solves the problem without requiring a reboot.

So I was thinking if there was a something like a onPlaybackStopped.sh - I could get it to just restart the plexamp service - a bit drastic 😛 but it would probably work for most people.

---

<div class="post-metadata">

**Author:** ![pietervo](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@pietervo](https://forums.plex.tv/u/pietervo)\
**Post date:** [August 8, 2022, 4:08pm UTC](https://forums.plex.tv/t/plexamp-on-raspberry-pi-wont-release-mpd/803459/11 "2022-08-08T16:08:36Z")

</div>

Happy to report that this issue has already been solved in v4.3.1 beta which can be found here:

> [@Issue with pause control](https://forums.plex.tv/t/issue-with-pause-control/803146/17):
>
> I am having the same problem. Once I initiate a stream to the PlexAmp headless, the PlexAmp controller (on an android phone) no longer reacts to play or pause. This \<\> to coincide with the 4.3 upgrade, as prior it worked flawlessly. I hope this bit of info helps: I have PlexAmp installed on my desktop (Fedora 36), and when I control the application via PlexAmp on the phone (by connecting to it) - play and pause works fine. This is not headless! The PlexAmp on the Raspberry Pi is headless, an…

---

<div class="post-metadata">

**Author:** ![jerome\_oflaherty\_icloud\_com](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@jerome\_oflaherty\_icloud\_com](https://forums.plex.tv/u/jerome_oflaherty_icloud_com)\
**Post date:** [August 8, 2022, 4:08pm UTC](https://forums.plex.tv/t/plexamp-on-raspberry-pi-wont-release-mpd/803459/12 "2022-08-08T16:08:42Z")

</div>

Yes, I tried the latest beta and it fixes the problem and releases the sound device.

---

<div class="post-metadata">

**Author:** ![vinothsubramanian](https://avatars.discourse-cdn.com/v4/letter/v/8e7dd6/32.png) [@vinothsubramanian](https://forums.plex.tv/u/vinothsubramanian)\
**Post date:** [August 9, 2022, 6:20pm UTC](https://forums.plex.tv/t/plexamp-on-raspberry-pi-wont-release-mpd/803459/13 "2022-08-09T18:20:22Z")

</div>

I checked with [4.3.1.beta5](https://plexamp.plex.tv/headless/Plexamp-Linux-headless-v4.3.1-beta.5.tar.bz2) version and the issue seems to be resolved.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [November 7, 2022, 6:20pm UTC](https://forums.plex.tv/t/plexamp-on-raspberry-pi-wont-release-mpd/803459/14 "2022-11-07T18:20:53Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
