The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: Can't turn off Bluetooth!
#1
Edit: Eventually solved this!

---

I've got a Pi Zero W system up and running perfectly with wired headphones, and then I decided to try and get my bluetooth headphones working.  That was find too, but now I find I cannot switch back to wired headphones.   I'm using the Apple USB -> 3.5mm dongle.  When I try and play music now, my mpg log file says:

ALSA lib ../../../src/asound/bluealsa-pcm.c:897Sad_snd_pcm_bluealsa_open) Couldn't get BlueALSA PCM: The name org.bluealsa was not provided by any .service files
Jul 11 12:14 : exception: Failed to open "ALSA Default" (alsa); Failed to open ALSA device "_audioout": No such device
Jul 11 12:14 : exception: Failed to open "ALSA Default" (alsa); Failed to open ALSA device "_audioout": No such device
Jul 11 12:14 : player: problems opening audio device while playing "SDCARD/music/Electronic/01 - Sexual Harrassment In The Workplace.flac"

For each track.   I get a popup from the web interface too:

MPD error
Failed to open "ALSA Default" (alsa); Failed to open ALSA device "_audioout": No such device

When I got into the mpd page in the web interface it says:

MPD settings cannot be changed when Audio output is set to Bluetooth.

Although if that means the Output Device under Audio Output, bluetooth is not an option there (just the USB one and  HDMI).  I don't see much in the way of Bluetooth options except for on the Audio Config page where Bluetooth, pairing agent etc is all turned off.   I also tried turning off "Integrated BT adapter" on the System Config page. 


Here's the moodeutl -l output:

20210711 121314 worker: -- Start
20210711 121314 worker: Successfully daemonized
20210711 121315 worker: Integrity check (passed)
20210711 121319 worker: File check (OK)
20210711 121322 worker: Session vacuumed
20210711 121322 worker: Session loaded
20210711 121322 worker: Debug logging (OFF)
20210711 121322 worker: -- Audio debug
20210711 121322 worker: ALSA cards: (0:b1 | 1:A | 2:empty | 3:empty
20210711 121322 worker: MPD config: (1:USB-C to 3.5mm Headphone Jack A | mixerSadHeadphone) | card:1)
20210711 121322 worker: ALSA mixer actual (Headphone)
20210711 121322 worker: ALSA Headphone volume set to (0%)
20210711 121322 worker: -- System
20210711 121327 worker: Host     (PortablePi)
20210711 121327 worker: moOde    (7.3.0 2021-06-25)
20210711 121327 worker: RaspiOS  (10.6)
20210711 121327 worker: Kernel   (5.4.77+ #1371)
20210711 121327 worker: Platform (Pi-Zero W 1.1 512MB)
20210711 121327 worker: ARM arch (armv6l, 32-bit kernel)
20210711 121327 worker: MPD ver  (0.22.8_p0x3)
20210711 121327 worker: CPU gov  (ondemand)
20210711 121327 worker: USB boot not available
20210711 121327 worker: File system expanded
20210711 121342 worker: HDMI port on
20210711 121342 worker: -- Network
20210711 121342 worker: eth0 does not exist
20210711 121342 worker: eth0 address not assigned
20210711 121342 worker: wlan0 exists
20210711 121342 worker: wifi country (GB)
20210711 121342 worker: wlan0 trying SSID (Network24)
20210711 121342 worker: IP addr (192.168.1.155)
20210711 121343 worker: Netmask (255.255.255.0)
20210711 121343 worker: Gateway (192.168.1.1)
20210711 121343 worker: Pri DNS (192.168.1.1)
20210711 121343 worker: Domain  (None)
20210711 121343 worker: Pi integrated wlan0 power save disabled
20210711 121343 worker: -- Audio config
20210711 121343 worker: ALSA card number (1)
20210711 121343 worker: MPD audio output (USB-C to 3.5mm Headphone Jack A)
20210711 121344 worker: Audio formats (S16_LE, S24_3LE)
20210711 121344 worker: ALSA mixer name (Headphone)
20210711 121344 worker: MPD volume control (software)
20210711 121345 worker: Hdwr volume controller exists
20210711 121345 worker: Max ALSA volume (100%)
20210711 121345 worker: ALSA output mode (Default: plughw)
20210711 121345 worker: ALSA loopback (Off)
20210711 121345 worker: Reset renderer active flags
20210711 121345 worker: CamillaDSP (off)
20210711 121345 worker: -- MPD startup
20210711 121345 worker: MPD started
20210711 121347 worker: MPD accepting connections
20210711 121347 worker: MPD output 1 ALSA Default (off)
20210711 121347 worker: MPD output 2 ALSA Bluetooth (on)
20210711 121347 worker: MPD output 3 HTTP Server (off)
20210711 121347 worker: MPD crossfade (off)
20210711 121347 worker: MPD ignore CUE files (yes)
20210711 121347 worker: -- Feature availability
20210711 121347 worker: Source select (available)
20210711 121347 worker: Source select (source: MPD)
20210711 121348 worker: Source select (output: USB-C to 3.5mm Headphone Jack A)
20210711 121348 worker: Bluetooth (available)
20210711 121348 worker: Airplay renderer (available)
20210711 121348 worker: Spotify renderer (available)
20210711 121348 worker: Squeezelite (available)
20210711 121348 worker: RoonBridge renderer (not installed)
20210711 121348 worker: UPnP renderer (available)
20210711 121348 worker: DLNA server (available)
20210711 121348 worker: UPnP browser (available)
20210711 121348 worker: GPIO button handler (available)
20210711 121348 worker: Stream recorder (n/a)
20210711 121348 worker: -- Music sources
20210711 121348 worker: USB sources (none attached)
20210711 121348 worker: NAS and UPnP sources (none configured)
20210711 121348 worker: -- Other
20210711 121348 worker: USB volume knob (Off)
20210711 121348 worker: Shellinabox SSH started
20210711 121348 worker: USB auto-mounter (udisks-glue)
20210711 121348 worker: LED0 (On)
20210711 121348 worker: LED1 (sysclass does not exist)
20210711 121348 worker: Saved MPD vol level (0)
20210711 121348 worker: Preamp volume level (0)
20210711 121349 worker: MPD volume level (54) restored
20210711 121349 worker: ALSA Headphone volume (100%)
20210711 121349 worker: Auto-play (Off)
20210711 121349 worker: Maintenance interval (3 hours)
20210711 121349 worker: Screen saver activation (Never)
20210711 121349 worker: Session permissions (OK)
20210711 121349 worker: Watchdog started
20210711 121349 worker: Ready
20210711 122054 worker: Job mpdrestart


This looks wrong:
20210711 121347 worker: MPD output 1 ALSA Default (off)
20210711 121347 worker: MPD output 2 ALSA Bluetooth (on)
20210711 121347 worker: MPD output 3 HTTP Server (off)

I've used M.A.L.P. (Android mpd client) on my other Moode (Pi 4) system with no problem; when using that on this one I've selected Alsa Default as the output.  I don't see bluetooth enabled anywhere.  Is there a config file somewhere that's got into an odd state?

Edit: When I try and set mpd output to "local" in the bluez config page it hangs the web interface.

Edit: Upon reboot I could then set the output to the USB.
Reply


Messages In This Thread
Can't turn off Bluetooth! - by Sehnsucht - 07-11-2021, 11:40 AM

Forum Jump: