Plexamp does not reconnect to audio device

I have Plexamp running on an always-on computer (Linux Ubuntu 24.04). The DAC (SMSL SU-X) disables USB when changing inputs or turning off. The USB device is brought up when the DAC input is set to USB.

Plexamp refuses to play until the input is manually changed from Settings → Playback → Audio Output → Audio Device (e.g., from Default to SMSL USB, or the other way around).

It sounds like Plexamp should reconnect to the audio device if it cannot play on the previously open device, which went away and came back.

Relevant details:

# cat /proc/asound/cards
 0 [AUDIO          ]: USB-Audio - SMSL USB AUDIO
                      SMSL SMSL USB AUDIO at usb-0000:00:14.0-4, high speed
# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 008: ID 152a:85dd Thesycon Systemsoftware & Consulting GmbH SMSL USB AUDIO
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Plexamp.log

Feb 04, 2025 14:57:36.298 [0x05e006c0] INFO - BASS: Resume.
Feb 04, 2025 14:57:36.298 [0x05e006c0] DEBUG - BASS: Ensuring we're not idle.
Feb 04, 2025 14:57:36.298 [0x05e006c0] INFO - BASS: Resuming audio output (started: 0)
Feb 04, 2025 14:57:36.298 [0x9fc006c0] ERROR - BASS: Device died a painful death.
Feb 04, 2025 14:57:36.298 [0x05e006c0] DEBUG - BASS: Sliding volume to 100.0 over 0 ms.
Feb 04, 2025 14:57:36.298 [0x05e006c0] INFO - BASS: We're gaplessly connecting the two streams 242208 -> 242209.
Feb 04, 2025 14:57:36.298 [0x05e006c0] DEBUG - BASS: Taking mixer pause flag off channel.
Feb 04, 2025 14:57:36.298 [0x05e006c0] DEBUG - BASS: Sliding volume to 100.0 over 0 ms.
Feb 04, 2025 14:57:36.298 [0x05e006c0] DEBUG - BASS: Resumed in 0 ms.
Feb 04, 2025 14:57:36.298 [0x9fc006c0] ERROR - BASS: Device died a painful death.

Server Version#: 1.41.3.9314
Player Version#: Plexamp-Linux-headless-v4.11.5

that’s interesting, i didn’t know that some dacs disable the usb interface while using other inputs (toslink etc)

with my hardware, i can’t reproduce the exact issue you’re describing … but with headless plexamp i’ve had occasional problems when the audio devices change during use

if you post the full plexamp logs from the headless device, the devs might see better what’s going on

Thank you.

Steps to reproduce on any DAC are:

  1. Plexamp plays a song.
  2. Unplug the DAC (Plexamp pauses playback).
  3. Re-plug the DAC, wait 10 seconds or so for the USB connection to settle.
  4. Plexamp “play” / “next” won’t work.

To fix it:

  1. Go to the Plexamp Settings page
  2. Change the audio device to anything else, then change it back.

(restarting Plexamp works as well)

I have provided a log snippet above, please let me know if more are needed.

thanks, i can reproduce it now

i guess switching from usb to another input on your dac is equivalent to unplugging the usb cable entirely

i don’t know if this is common behavior for dacs with usb inputs … but agree it’s a use case that plexamp could probably handle better … hopefully devs can address in a future release

in the meantime, only suggestion i have is to wait at least 10 seconds (after pausing or stopping plexamp playback) before switching away from your dac’s usb input … and then switching back to the usb input before resuming plexamp playback

Right, if Plexamp voluntarily closes the DAC device then it re-opens it correctly when playback resumes.

Sounds like an easy fix, let’s wait for a dev, thank you.

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