Thank you for your donation!


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


Problem: Moode and Bluetooth input issue
#1
Hello,

I have been following the forum for several years in the background, and I have created an account to discuss a peculiar issue I am experiencing and to seek suggestions regarding my setup.

I began using Moode to establish an audio service that allows me to connect a Firestick Lite via Bluetooth, enabling me to control the balance between voices and ambient sounds in streaming movies and series, while also connecting it to my NAS to listen to high-fidelity music. The setup consists of a Fire TV Lite connected to the Raspberry Pi via Bluetooth, which is then connected to the DAC via USB. Up to this point, everything functions as intended, more or less, but I am encountering two issues:

1. Although it initially operates correctly, after a day or two, the Raspberry Pi begins to lose synchronization between the audio and video. This issue can be resolved with a simple reboot. I am using the SBC codec, with the highest quality settings and the lowest buffer to minimize latency. I am indifferent to potential packet drops.

2. Since yesterday (before updating), while connected via Bluetooth, there was a moment when the connection dropped and then re-established. Since then, the sound has been distorted, resembling a tinny quality, with excessively pronounced highs. Even when I remove any equalization, the audio continues to sound poor. I have examined the logs but found nothing unusual. The only solution I see is to restore the system; however, I would like to know if others have experienced similar issues.

Lastly, I would appreciate advice from all users who connect to a Fire TV, Apple TV, or similar devices regarding how you have configured your setup to normalize audio and minimize latency. I may be doing something incorrectly, and there might be better methods to achieve this.

Best regards and thank you very much.
Reply
#2
Reboot and post the contents of the startup log so people can understand what your moode configuration looks like.

The log can be viewed via the SSH command moodeutl -l or downloaded via the Logs section in System Config, or via Menu, System info from any of the Config screens. The startup log will be at the end of System info output.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
(09-29-2024, 02:20 PM)Tim Curtis Wrote: Reboot and post the contents of the startup log so people can understand what your moode configuration looks like.

The log can be viewed via the SSH command moodeutl -l or downloaded via the Logs section in System Config, or via Menu, System info from  any of the Config screens. The startup log will be at the end of System info output.

Hi, thanks for your reply. This is my startup log 

https://pastebin.com/fGFvFmMK

Code:
20240929 130223 worker: --
20240929 130223 worker: -- Start moOde 9 series
20240929 130223 worker: --
20240929 130223 worker: Successfully daemonized
20240929 130223 worker: Wait for Linux startup
20240929 130223 worker: Linux startup complete
20240929 130223 worker: Boot config is ok
20240929 130224 worker: Session loaded
20240929 130234 worker: Package locks applied
20240929 130244 worker: File check complete
20240929 130244 worker: Log to RAM    on
20240929 130244 worker: Debug logging off
20240929 130244 worker: --
20240929 130244 worker: -- System
20240929 130244 worker: --
20240929 130259 worker: Host name:     moode
20240929 130259 worker: RPi model:     Pi-3B 1.2 1GB
20240929 130300 worker: moOde release: 9.1.2 2024-09-28
20240929 130300 worker: RaspiOS:       12.7 Bookworm 64-bit
20240929 130300 worker: Linux Kernel:  6.6.47 64-bit
20240929 130300 worker: MPD version:   0.23.14
20240929 130300 worker: User id:       moode
20240929 130300 worker: Home folder:   /home/moode
20240929 130300 worker: Time zone:     Europe/Madrid
20240929 130300 worker: Kbd layout:    us
20240929 130300 worker: HDMI ports(s): on
20240929 130300 worker: HDMI-CEC:      off
20240929 130300 worker: Sys LED0:      off
20240929 130300 worker: Sys LED1:      off
20240929 130300 worker: Reduce power:  n/a
20240929 130300 worker: CPU governor:  ondemand
20240929 130300 worker: Integ audio:   vc4-kms-v3d
20240929 130300 worker: --
20240929 130300 worker: -- Network
20240929 130300 worker: --
20240929 130300 worker: Eth0
20240929 130300 worker: Ethernet: adapter exists
20240929 130300 worker: Ethernet: timeout up to 90 secs
20240929 130300 worker: Ethernet: method  dhcp
20240929 130300 worker: Ethernet: address 192.168.1.102
20240929 130300 worker: Ethernet: netmask 255.255.255.0
20240929 130300 worker: Ethernet: gateway 192.168.1.1
20240929 130300 worker: Ethernet: pri DNS 192.168.2.10
20240929 130300 worker: Ethernet: domain  localdomain
20240929 130300 worker: Wlan0
20240929 130300 worker: Wireless: adapter exists
20240929 130300 worker: Wireless: country US
20240929 130300 worker: Wireless: SSID    None
20240929 130300 worker: Wireless: other   None
20240929 130300 worker: --
20240929 130300 worker: -- File sharing
20240929 130300 worker: --
20240929 130300 worker: SMB file sharing:  off
20240929 130300 worker: NFS file sharing:  off
20240929 130300 worker: DLNA file sharing: off
20240929 130300 worker: --
20240929 130300 worker: -- Special configs
20240929 130300 worker: --
20240929 130300 worker: Plexamp:          not installed
20240929 130300 worker: RoonBridge:       not installed
20240929 130300 worker: Allo Piano 2.1:   not detected
20240929 130300 worker: Allo Boss 2:      not detected, OLED script ok
20240929 130300 worker: IQaudIO AMP*:     not detected
20240929 130300 worker: --
20240929 130300 worker: -- ALSA debug
20240929 130300 worker: --
20240929 130300 worker: Cards:  0:DECODER         1:vc4hdmi         2:empty           3:empty          
20240929 130300 worker:         4:empty           5:empty           6:empty           7:empty          
20240929 130301 worker: Mixers: 0:(XMOS DSD DECODER )1:none            2:none            3:none            
20240929 130301 worker:         4:none            5:none            6:none            7:none            
20240929 130301 worker: --
20240929 130301 worker: -- Audio configuration
20240929 130301 worker: --
20240929 130301 worker: Audio device:  1:XMOS DSD DECODER
20240929 130301 worker: ALSA card:     has been reassigned to 0 from 1
20240929 130302 worker: MPD config:    updated
20240929 130303 worker: ALSA output:   USB
20240929 130303 worker: ALSA mode:     Direct (hw)
20240929 130303 worker: ALSA mixer     XMOS DSD DECODER
20240929 130303 worker: ALSA volume:   100% (0.00dB)
20240929 130303 worker: ALSA maxvol:   100%
20240929 130303 worker: ALSA loopback: off
20240929 130303 worker: MPD mixer      Fixed (0dB)
20240929 130303 worker: Audio formats: S16_LE, S32_LE, SPECIAL, DSD_U32_BE
20240929 130303 worker: CamillaDSP:    off
20240929 130303 worker: CDSP volume:   0dB
20240929 130303 worker: CDSP volrange: 60dB
20240929 130303 worker: --
20240929 130303 worker: -- MPD startup
20240929 130303 worker: --
20240929 130304 worker: MPD service:        started
20240929 130304 worker: MPD port 6600:      accepting connections
20240929 130304 worker: MPD ALSA Default:   on
20240929 130304 worker: MPD ALSA Bluetooth: off
20240929 130304 worker: MPD HTTP Server:    off
20240929 130304 worker: MPD volume:         0
20240929 130304 worker: Saved MPD vol:      -1
20240929 130304 worker: Saved SRC vol:      0
20240929 130304 worker: MPD crossfade:      off
20240929 130304 worker: MPD ignore CUE:     no
20240929 130304 worker: MPD first boot:     SDCARD scanned
20240929 130305 worker: MPD first boot:     default playlist loaded
20240929 130305 worker: MPD CDSP volsync:   off
20240929 130305 worker: --
20240929 130305 worker: -- Music sources
20240929 130305 worker: --
20240929 130305 worker: USB drives:     none
20240929 130305 worker: NVMe drives:    none
20240929 130305 worker: NAS sources:    none
20240929 130305 worker: --
20240929 130305 worker: -- Feature availability
20240929 130305 worker: --
20240929 130305 worker: Input select:    available, Source: MPD, Output: XMOS DSD DECODER
20240929 130307 worker: Bluetooth:       started, PIN: None, ALSA/CDSP maxvol: 100%/0dB, ALSA outmode: Standard
20240929 130307 worker: AirPlay:         available
20240929 130307 worker: Spotify Connect: available
20240929 130307 worker: Squeezelite:     available
20240929 130307 worker: UPnP client:     available
20240929 130307 worker: Plexamp:         not installed, ALSA maxvol: 100%
20240929 130307 worker: RoonBridge:      not installed
20240929 130307 worker: Multiroom:       available
20240929 130307 worker: GPIO buttons:    available
20240929 130307 worker: Stream recorder: n/a
20240929 130307 worker: --
20240929 130307 worker: -- Security
20240929 130307 worker: --
20240929 130307 worker: Web SSH server:    off
20240929 130307 worker: XSS detection:     on
20240929 130307 worker: HTTPS mode:        available
20240929 130307 worker: --
20240929 130307 worker: -- Peripherals
20240929 130307 worker: --
20240929 130311 worker: Local display:   off
20240929 130311 worker: HDMI 4K 60Hz:    off
20240929 130311 worker: On-screen kbd:   off
20240929 130311 worker: Rotary encoder:  off
20240929 130311 worker: USB volume knob: off
20240929 130311 worker: LCD updater:     off
20240929 130311 worker: --
20240929 130311 worker: -- Miscellaneous
20240929 130311 worker: --
20240929 130311 worker: Software update:   Automatic check on
20240929 130311 worker: Software update:   Checking for available update...
20240929 130312 worker: Software update:   Software is up to date
20240929 130312 worker: Auto-CoverView:    off
20240929 130312 worker: CoverView timeout: Never
20240929 130312 worker: Auto-shuffle:      off
20240929 130312 worker: Auto-play:         on, via playid
20240929 130312 worker: Maintenance task:  360 mins
20240929 130312 worker: Current view:      reset to Playback
20240929 130312 worker: Active flags:      at least one true
20240929 130312 worker: Reset flags:       all reset to false
20240929 130312 worker: MPD volume:        set to 0
20240929 130312 worker: Session check:     ok
20240929 130312 worker: --
20240929 130312 worker: -- Startup complete
20240929 130312 worker: --
20240929 130313 worker: Mount monitor:    started
20240929 130313 worker: Radio monitor:    off
20240929 130313 worker: Watchdog monitor: started
20240929 130313 worker: Responsiveness:   Boosted
20240929 130313 worker: Ready
20240929 130629 worker: Job alsaequal
20240929 130723 worker: Job alsaequal
20240929 132320 worker: Job alsaequal
20240929 132327 worker: Job eqfa12p
20240929 132458 worker: Job alsa_output_mode
20240929 132836 worker: Job mpdcfg
20240929 132850 worker: Job mpdcfg
20240929 132859 worker: Job mpdcfg
20240929 134519 worker: Job eqfa12p
20240929 134654 worker: Job alsaequal
20240929 134727 worker: Job alsaequal
20240929 134727 watchdog: MPD crashed and was restarted (check journal for messages)
20240929 134737 worker: Job eqfa12p
20240929 135202 watchdog: MPD crashed and was restarted (check journal for messages)
20240929 135246 watchdog: MPD crashed and was restarted (check journal for messages)
20240929 135512 watchdog: MPD crashed and was restarted (check journal for messages)
20240929 140844 worker: Job mpdcfg
20240929 140904 worker: Job mpdrestart
20240929 141206 worker: Job eqfa12p
Reply
#4
The "MPD crashed" log messages suggest some type of breakage.

Try looking in the system journal and MPD log for any error messages that might provide more information.

Code:
journalctl -u mpd

moodeutl --mpdlog
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
(09-29-2024, 06:39 PM)Tim Curtis Wrote: The "MPD crashed" log messages suggest some type of breakage.

Try looking in the system journal and MPD log for any error messages that might provide more information.

Hi and thanks for your response. This is the result:

Code:
journalctl -u mpd
Sep 25 19:02:43 moode systemd[1]: Stopping mpd.service - Music Player Daemon...                                                                              
Sep 25 19:02:43 moode systemd[1]: mpd.service: Deactivated successfully.                                                                                    
Sep 25 19:02:43 moode systemd[1]: Stopped mpd.service - Music Player Daemon.                                                                                
-- Boot 09c67be9385f47138fb496a4bee5d08e --                                                                                                                  
Sep 29 11:47:52 moode systemd[1]: Stopping mpd.service - Music Player Daemon...                                                                              
Sep 29 11:47:52 moode systemd[1]: mpd.service: Deactivated successfully.                                                                                    
Sep 29 11:47:52 moode systemd[1]: Stopped mpd.service - Music Player Daemon.                                                                                
Sep 29 11:47:53 moode systemd[1]: Starting mpd.service - Music Player Daemon...                                                                              
Sep 29 11:47:53 moode mpd[1032967]: Ignoring the 'pid_file' setting in systemd mode                                                                          
Sep 29 11:47:53 moode mpd[1032967]: Sep 29 11:47 : config: For selective_resample_mode the used audio_format should be a multiply of 48kHz.                  
Sep 29 11:47:53 moode systemd[1]: Started mpd.service - Music Player Daemon.                                                                                
Sep 29 11:48:02 moode systemd[1]: Stopping mpd.service - Music Player Daemon...                                                                              
Sep 29 11:48:02 moode systemd[1]: mpd.service: Deactivated successfully.                                                                                    
Sep 29 11:48:02 moode systemd[1]: Stopped mpd.service - Music Player Daemon.                                                                                
Sep 29 11:48:02 moode systemd[1]: Starting mpd.service - Music Player Daemon...                                                                              
Sep 29 11:48:02 moode mpd[1033185]: Ignoring the 'pid_file' setting in systemd mode                                                                          
Sep 29 11:48:02 moode mpd[1033185]: Sep 29 11:48 : config: For selective_resample_mode the used audio_format should be a multiply of 48kHz.                  
Sep 29 11:48:02 moode systemd[1]: Started mpd.service - Music Player Daemon.                                                                                
Sep 29 11:48:20 moode systemd[1]: Stopping mpd.service - Music Player Daemon...                                                                              
Sep 29 11:48:20 moode systemd[1]: mpd.service: Deactivated successfully.                                                                                    
Sep 29 11:48:20 moode systemd[1]: Stopped mpd.service - Music Player Daemon.                                                                                
Sep 29 11:48:20 moode systemd[1]: Starting mpd.service - Music Player Daemon...                                                                              
Sep 29 11:48:21 moode mpd[1033447]: Ignoring the 'pid_file' setting in systemd mode                                                                          
Sep 29 11:48:21 moode mpd[1033447]: Sep 29 11:48 : config: For selective_resample_mode the used audio_format should be a multiply of 48kHz.                  
Sep 29 11:48:21 moode systemd[1]: Started mpd.service - Music Player Daemon.                                                                                
Sep 29 11:49:21 moode systemd[1]: Stopping mpd.service - Music Player Daemon...                                                                              
Sep 29 11:49:22 moode systemd[1]: mpd.service: Deactivated successfully.                                                                                    
Sep 29 11:49:22 moode systemd[1]: Stopped mpd.service - Music Player Daemon.                                                                                
-- Boot 65815c9b19dd446a80f5c90755f33688 --                                                                                                                  
Sep 29 12:55:21 moode systemd[1]: Stopping mpd.service - Music Player Daemon...                                                                              
Sep 29 12:55:21 moode systemd[1]: mpd.service: Deactivated successfully.                                                                                    
Sep 29 12:55:21 moode systemd[1]: Stopped mpd.service - Music Player Daemon.                                                                                
Sep 29 12:55:22 moode systemd[1]: Starting mpd.service - Music Player Daemon...                                                                              
Sep 29 12:55:28 moode mpd[15169]: Ignoring the 'pid_file' setting in systemd mode                                                                            
Sep 29 12:55:28 moode systemd[1]: Started mpd.service - Music Player Daemon.                                                                                
Sep 29 12:57:09 moode systemd[1]: Stopping mpd.service - Music Player Daemon...                                                                              
Sep 29 12:57:10 moode systemd[1]: mpd.service: Deactivated successfully.                                                                                    
Sep 29 12:57:10 moode systemd[1]: Stopped mpd.service - Music Player Daemon.                                                                                
Sep 29 12:57:10 moode systemd[1]: Starting mpd.service - Music Player Daemon...                                                                              
Sep 29 12:57:10 moode mpd[16603]: Ignoring the 'pid_file' setting in systemd mode                                                                            
Sep 29 12:57:10 moode systemd[1]: Started mpd.service - Music Player Daemon.                                                                                
Sep 29 12:57:27 moode systemd[1]: Stopping mpd.service - Music Player Daemon...                                                                              
Sep 29 12:57:27 moode systemd[1]: mpd.service: Deactivated successfully.                                                                                    
Sep 29 12:57:27 moode systemd[1]: Stopped mpd.service - Music Player Daemon.                                                                                
Sep 29 12:57:27 moode systemd[1]: Starting mpd.service - Music Player Daemon...                                                                              
Sep 29 12:57:27 moode mpd[16917]: Ignoring the 'pid_file' setting in systemd mode
Sep 29 12:57:27 moode systemd[1]: Started mpd.service - Music Player Daemon.
Sep 29 12:59:08 moode systemd[1]: Stopping mpd.service - Music Player Daemon...
Sep 29 12:59:08 moode systemd[1]: mpd.service: Deactivated successfully.
Sep 29 12:59:08 moode systemd[1]: Stopped mpd.service - Music Player Daemon.
Sep 29 12:59:08 moode systemd[1]: Starting mpd.service - Music Player Daemon...
Sep 29 12:59:08 moode mpd[17536]: Ignoring the 'pid_file' setting in systemd mode
Sep 29 12:59:08 moode systemd[1]: Started mpd.service - Music Player Daemon.
Sep 29 13:01:39 moode systemd[1]: Stopping mpd.service - Music Player Daemon...
Sep 29 13:01:39 moode systemd[1]: mpd.service: Deactivated successfully.
Sep 29 13:01:39 moode systemd[1]: Stopped mpd.service - Music Player Daemon.
Sep 29 13:01:39 moode systemd[1]: Starting mpd.service - Music Player Daemon...
Sep 29 13:01:40 moode mpd[18141]: Ignoring the 'pid_file' setting in systemd mode
Sep 29 13:01:40 moode mpd[18141]: Sep 29 13:01 : config: For selective_resample_mode the used audio_format should be a multiply of 48kHz.
Sep 29 13:01:40 moode systemd[1]: Started mpd.service - Music Player Daemon.
Sep 29 13:02:07 moode systemd[1]: Stopping mpd.service - Music Player Daemon...
Sep 29 13:02:07 moode systemd[1]: mpd.service: Deactivated successfully.
Sep 29 13:02:07 moode systemd[1]: Stopped mpd.service - Music Player Daemon.
-- Boot 8f41c14b2e584003a74ac51812880310 --
Oct 01 17:42:46 moode systemd[1]: Starting mpd.service - Music Player Daemon...
Oct 01 17:42:46 moode mpd[1260]: Ignoring the 'pid_file' setting in systemd mode
Oct 01 17:42:46 moode systemd[1]: Started mpd.service - Music Player Daemon.
-- Boot d7e5030ce06e4b63a073d948188484da --
Oct 01 17:42:14 moode systemd[1]: Stopping mpd.service - Music Player Daemon...
Oct 01 17:42:14 moode systemd[1]: mpd.service: Deactivated successfully.
Oct 01 17:42:14 moode systemd[1]: Stopped mpd.service - Music Player Daemon.
Oct 01 17:42:14 moode systemd[1]: mpd.service: Consumed 17.876s CPU time.

Code:
moodeutl --mpdlog                                                                                                                            
Oct 01 17:42 : player: played "http://ice1.somafm.com/beatblender-128-aac"                                                                                  
Oct 01 17:43 : exception: Failed to open "ALSA Default" (alsa); Failed to open ALSA device "_audioout": Unknown error 524                                    
Oct 01 17:43 : exception: Failed to open "ALSA Default" (alsa); Failed to open ALSA device "_audioout": Unknown error 524                                    
Oct 01 17:43 : player: problems opening audio device while playing "SDCARD/Stereo Test/LRMonoPhase4.flac"      
Reply
#6
I don't see anything suspicious in the logs that indicates why MPD is crashing.

It's not obvious to me what might be happening.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Forum Jump: