Posts: 159
Threads: 19
Joined: Mar 2020
Reputation:
3
05-20-2024, 07:11 PM
(This post was last modified: 05-23-2024, 02:37 PM by romain.)
Hello,
as this was alreday the case with 9.0.0~pre4 version installed, each time I reboot my pi 5, the output device reverts to PI HDMI 1 instead of keeping my SMSL SU-9 PRO USB DAC selection.
DAC is powered and on.
I had never encoutered this problem with the 8.x.x series.
Any suggestions please ?
Thanks
Posts: 13,376
Threads: 303
Joined: Mar 2018
Reputation:
539
I'm not able to repro this with my Revolution USB DAC.
A revert to HDMI only happens if the configured USB device is not detected by Linux/ALSA during startup. This is usually because its unplugged or turned off.
The moode log would show this. Below is an example of what happens after turning off my DAC and then rebooting.
Code: 20240520 161655 worker: --
20240520 161655 worker: -- Audio configuration
20240520 161655 worker: --
20240520 161655 worker: Audio device: Allo Revolution DAC
20240520 161655 worker: ALSA card: is empty, reconfigure to HDMI 1
20240520 161656 worker: MPD config: updated
Posts: 159
Threads: 19
Joined: Mar 2020
Reputation:
3
@ Tim Curtis, my SMSL USB DAC hasn't changed since moode has been upgraded to v9 so this would rather induce a change into the way moode (or Alsa) detects my USB device upon startup.
Also, just after moode has started, my DAC is present in the scrolling list when I go to audio configuration and I can select it manually.
Would it be possible to force the DAC selection upon startup by a shell script in /etc/rc.local for example ?
Thanks
Posts: 13,376
Threads: 303
Joined: Mar 2018
Reputation:
539
(05-21-2024, 08:26 AM)romain Wrote: @Tim Curtis, my SMSL USB DAC hasn't changed since moode has been upgraded to v9 so this would rather induce a change into the way moode (or Alsa) detects my USB device upon startup.
Also, just after moode has started, my DAC is present in the scrolling list when I go to audio configuration and I can select it manually.
Would it be possible to force the DAC selection upon startup by a shell script in /etc/rc.local for example ?
Thanks
Thats odd that it show up in Audio Config but during startup its not yet assigned a card by ALSA.
Choose the DAC in Audio Config, reboot and then post the startup log.
Posts: 159
Threads: 19
Joined: Mar 2020
Reputation:
3
05-21-2024, 11:13 AM
(This post was last modified: 05-21-2024, 11:16 AM by romain.)
(05-20-2024, 08:20 PM)Tim Curtis Wrote: I'm not able to repro this with my Revolution USB DAC.
A revert to HDMI only happens if the configured USB device is not detected by Linux/ALSA during startup. This is usually because its unplugged or turned off.
The moode log would show this. Below is an example of what happens after turning off my DAC and then rebooting.
Code: 20240520 161655 worker: --
20240520 161655 worker: -- Audio configuration
20240520 161655 worker: --
20240520 161655 worker: Audio device: Allo Revolution DAC
20240520 161655 worker: ALSA card: is empty, reconfigure to HDMI 1
20240520 161656 worker: MPD config: updated
The whole startup log as requested
Code: 20240521 014310 worker: --
20240521 014310 worker: -- Start moOde 9 series
20240521 014310 worker: --
20240521 014310 worker: Successfully daemonized
20240521 014310 worker: Wait for Linux startup
20240521 014316 worker: Linux startup complete
20240521 014316 worker: Boot config is ok
20240521 014316 worker: Session loaded
20240521 014317 worker: Package locks applied
20240521 014317 worker: File check complete
20240521 014317 worker: Debug logging off
20240521 014317 worker: --
20240521 014317 worker: -- System
20240521 014317 worker: --
20240521 014318 worker: Host name: salon
20240521 014318 worker: RPi model: Pi-5B 1.0 8GB
20240521 014318 worker: moOde release: 9.0.0 2024-05-17
20240521 014318 worker: RaspiOS: 12.5 Bookworm 64-bit
20240521 014318 worker: Linux Kernel: 6.6.28 64-bit
20240521 014318 worker: MPD version: 0.23.14
20240521 014318 worker: User id: tux
20240521 014318 worker: Home folder: /home/tux
20240521 014318 worker: Time zone: Europe/Paris
20240521 014318 worker: Kbd layout: fr
20240521 014318 worker: HDMI ports(s): on
20240521 014318 worker: Sys LED0: off
20240521 014318 worker: Sys LED1: on
20240521 014318 worker: Reduce power: on
20240521 014318 worker: CPU governor: ondemand
20240521 014318 worker: Integ audio: vc4-kms-v3d
20240521 014318 worker: --
20240521 014318 worker: -- Network
20240521 014318 worker: --
20240521 014318 worker: Eth0
20240521 014318 worker: Ethernet: adapter exists
20240521 014318 worker: Ethernet: timeout up to 90 secs
20240521 014318 worker: Ethernet: method static
20240521 014318 worker: Ethernet: address 192.168.1.12
20240521 014318 worker: Ethernet: netmask 255.255.255.255
20240521 014318 worker: Ethernet: gateway 192.168.1.254
20240521 014318 worker: Ethernet: pri DNS fd0f:ee:b0::1
20240521 014318 worker: Ethernet: domain none found
20240521 014318 worker: Wlan0
20240521 014318 worker: Wireless: adapter does not exist
20240521 014318 worker: --
20240521 014318 worker: -- File sharing
20240521 014318 worker: --
20240521 014319 worker: SMB file sharing: on
20240521 014319 worker: NFS file sharing: on
20240521 014319 worker: DLNA file sharing: off
20240521 014319 worker: --
20240521 014319 worker: -- Special configs
20240521 014319 worker: --
20240521 014319 worker: RoonBridge: not installed
20240521 014319 worker: Allo Piano 2.1: not detected
20240521 014319 worker: Allo Boss 2: not detected, OLED script ok
20240521 014319 worker: IQaudIO AMP*: not detected
20240521 014319 worker: --
20240521 014319 worker: -- ALSA debug
20240521 014319 worker: --
20240521 014319 worker: Cards: 0:AUDIO 1:vc4hdmi0 2:vc4hdmi1 3:empty
20240521 014319 worker: 4:empty 5:empty 6:empty 7:empty
20240521 014319 worker: Mixers: 0:none 1:none 2:none 3:none
20240521 014319 worker: 4:none 5:none 6:none 7:none
20240521 014319 worker: --
20240521 014319 worker: -- Audio configuration
20240521 014319 worker: --
20240521 014319 worker: Audio device: SMSL USB AUDIO
20240521 014319 worker: ALSA card: is empty, reconfigure to HDMI 1
20240521 014320 worker: MPD config: updated
20240521 014320 worker: ALSA output: HDMI
20240521 014320 worker: ALSA mode: IEC958 (iec958)
20240521 014320 worker: ALSA mixer PCM
20240521 014323 worker: ALSA volume: controller not detected
20240521 014323 worker: ALSA maxvol: 100%
20240521 014323 worker: ALSA loopback: off
20240521 014323 worker: MPD mixer Hardware
20240521 014323 worker: Audio formats: IEC958_SUBFRAME_LE
20240521 014323 worker: CamillaDSP: off
20240521 014323 worker: CDSP volume: 0.0dB
20240521 014323 worker: CDSP volrange: 60dB
20240521 014323 worker: --
20240521 014323 worker: -- MPD startup
20240521 014323 worker: --
20240521 014323 worker: MPD service: started
20240521 014323 worker: MPD port 6600: accepting connections
20240521 014323 worker: MPD ALSA Default: on
20240521 014323 worker: MPD ALSA Bluetooth: off
20240521 014323 worker: MPD HTTP Server: off
20240521 014323 worker: MPD volume: 30
20240521 014323 worker: Saved MPD vol: -1
20240521 014323 worker: Saved SRC vol: 0
20240521 014323 worker: MPD crossfade: off
20240521 014323 worker: MPD ignore CUE: no
20240521 014323 worker: MPD CDSP volsync: off
20240521 014323 worker: --
20240521 014323 worker: -- Music sources
20240521 014323 worker: --
20240521 014323 worker: USB drive: USB
20240521 014323 worker: NAS sources: no music sources defined
20240521 014323 worker: --
20240521 014323 worker: -- Feature availability
20240521 014323 worker: --
20240521 014323 worker: Input select: available, Source: MPD, Output: Pi HDMI 1
20240521 014325 worker: Bluetooth: started, PIN: None, ALSA/CDSP maxvol: 100%/0dB, ALSA outmode: Standard
20240521 014325 worker: AirPlay: started
20240521 014325 worker: Spotify Connect: available
20240521 014325 worker: Squeezelite: available
20240521 014325 worker: RoonBridge: not installed
20240521 014325 worker: Multiroom: available
20240521 014325 worker: UPnP client: available
20240521 014325 worker: GPIO buttons: available
20240521 014325 worker: HTTPS mode: available
20240521 014325 worker: Stream recorder: n/a
20240521 014325 worker: --
20240521 014325 worker: -- Peripherals
20240521 014325 worker: --
20240521 014325 worker: Local display: on
20240521 014325 worker: On-screen kbd: off
20240521 014325 worker: HDMI 4K 60Hz: off
20240521 014325 worker: Rotary encoder: off
20240521 014325 worker: USB volume knob: off
20240521 014325 worker: LCD updater: off
20240521 014325 worker: --
20240521 014325 worker: -- Miscellaneous
20240521 014325 worker: --
20240521 014325 worker: Software update: Automatic check on
20240521 014325 worker: Software update: Checking for available update...
20240521 014325 worker: Software update: Invalid remote release date
20240521 014325 worker: Auto-CoverView: on
20240521 014325 worker: CoverView timeout: Never
20240521 014325 worker: Auto-shuffle: off
20240521 014325 worker: Auto-play: off
20240521 014325 worker: Web SSH server: off
20240521 014325 worker: Maintenance task: 360 mins
20240521 014325 worker: Current view: reset to Playback
20240521 014325 worker: Active flags: all false
20240521 014325 worker: Reset flags: skipped
20240521 014325 worker: Session check: ok
20240521 014325 worker: --
20240521 014325 worker: -- Startup complete
20240521 014325 worker: --
20240521 014325 worker: Mount monitor: off
20240521 014325 worker: Radio monitor: off
20240521 014325 worker: Watchdog monitor: started
20240521 014325 worker: Responsiveness: Boosted
20240521 014325 worker: Ready
I get "1: Pi HDMI" 1 as default output after startup and I still can select "0: SMSL USB AUDIO" from the scrolling menu
Posts: 13,376
Threads: 303
Joined: Mar 2018
Reputation:
539
Interesting.
The ALSA card id is "AUDIO" but the device name is "SMSL USB AUDIO". They normally are the same. I'll investigate the detection routines.
Btw, for your static IP address shouldn't the net mask be 255.255.255.0 ? You can select it from the dropdown in Network Config.
Posts: 159
Threads: 19
Joined: Mar 2020
Reputation:
3
(05-21-2024, 11:40 AM)Tim Curtis Wrote: Btw, for your static IP address shouldn't the net mask be 255.255.255.0 ? You can select it from the dropdown in Network Config. Yes, didn't pay attention to the netmask
Posts: 13,376
Threads: 303
Joined: Mar 2018
Reputation:
539
05-22-2024, 06:59 PM
(This post was last modified: 05-22-2024, 07:00 PM by Tim Curtis.)
Just a bump to let you know I'm still trying to figure out a way how to simulate this so I can possibly come up with a fix.
"The ALSA card id is "AUDIO" but the aplay device name is "SMSL USB AUDIO". They normally are the same. I'll investigate the detection routines."
Posts: 13,376
Threads: 303
Joined: Mar 2018
Reputation:
539
I instrumented one of the detection routines to see what might be going on.
1. DAC plugged in, turned on and configured in Audio Config
2. Turn on Debug logging in System Config
3. Run the command block below to install the updated files
4. Reboot
5. Post the startup log (moodeutl -l)
Code: sudo bash -c '
wget -q https://raw.githubusercontent.com/moode-player/moode/develop/www/daemon/worker.php -O /var/www/daemon/worker.php;
wget -q https://raw.githubusercontent.com/moode-player/moode/develop/www/inc/alsa.php -O /var/www/inc/alsa.php'
Posts: 159
Threads: 19
Joined: Mar 2020
Reputation:
3
05-23-2024, 11:30 AM
(This post was last modified: 05-23-2024, 02:36 PM by romain.)
(05-23-2024, 10:44 AM)Tim Curtis Wrote: I instrumented one of the detection routines to see what might be going on.
1. DAC plugged in, turned on and configured in Audio Config
2. Turn on Debug logging in System Config
3. Run the command block below to install the updated files
4. Reboot
5. Post the startup log (moodeutl -l)
Code: sudo bash -c '
wget -q https://raw.githubusercontent.com/moode-player/moode/develop/www/daemon/worker.php -O /var/www/daemon/worker.php;
wget -q https://raw.githubusercontent.com/moode-player/moode/develop/www/inc/alsa.php -O /var/www/inc/alsa.php'
@ Tim Curtis
here it is
Code: 20240523 132844 worker: --
20240523 132844 worker: -- Start moOde 9 series
20240523 132844 worker: --
20240523 132844 worker: Successfully daemonized
20240523 132844 worker: Wait for Linux startup
20240523 132850 worker: Linux startup complete
20240523 132850 worker: Boot config is ok
20240523 132850 worker: Session loaded
20240523 132851 worker: Package locks applied
20240523 132852 worker: File check complete
20240523 132852 worker: Debug logging on
20240523 132852 worker: --
20240523 132852 worker: -- System
20240523 132852 worker: --
20240523 132852 worker: Host name: salon
20240523 132852 worker: RPi model: Pi-5B 1.0 8GB
20240523 132852 worker: moOde release: 9.0.0 2024-05-17
20240523 132852 worker: RaspiOS: 12.5 Bookworm 64-bit
20240523 132852 worker: Linux Kernel: 6.6.28 64-bit
20240523 132852 worker: MPD version: 0.23.14
20240523 132852 worker: User id: tux
20240523 132852 worker: Home folder: /home/tux
20240523 132852 worker: Time zone: Europe/Paris
20240523 132852 worker: Kbd layout: fr
20240523 132852 worker: HDMI ports(s): on
20240523 132852 worker: Sys LED0: off
20240523 132852 worker: Sys LED1: on
20240523 132852 worker: Reduce power: on
20240523 132852 worker: CPU governor: ondemand
20240523 132852 worker: Integ audio: vc4-kms-v3d
20240523 132852 worker: --
20240523 132852 worker: -- Network
20240523 132852 worker: --
20240523 132852 worker: Eth0
20240523 132852 worker: Ethernet: adapter exists
20240523 132852 worker: Ethernet: timeout up to 90 secs
20240523 132852 worker: Ethernet: method static
20240523 132852 worker: Ethernet: address 192.168.1.12
20240523 132852 worker: Ethernet: netmask 255.255.255.0
20240523 132852 worker: Ethernet: gateway 192.168.1.254
20240523 132852 worker: Ethernet: pri DNS fd0f:ee:b0::1
20240523 132852 worker: Ethernet: domain none found
20240523 132852 worker: Wlan0
20240523 132852 worker: Wireless: adapter does not exist
20240523 132852 worker: --
20240523 132852 worker: -- File sharing
20240523 132852 worker: --
20240523 132853 worker: SMB file sharing: on
20240523 132853 worker: NFS file sharing: on
20240523 132853 worker: DLNA file sharing: off
20240523 132853 worker: --
20240523 132853 worker: -- Special configs
20240523 132853 worker: --
20240523 132853 worker: RoonBridge: not installed
20240523 132853 worker: Allo Piano 2.1: not detected
20240523 132853 worker: Allo Boss 2: not detected, OLED script ok
20240523 132853 worker: IQaudIO AMP*: not detected
20240523 132853 worker: --
20240523 132853 worker: -- ALSA debug
20240523 132853 worker: --
20240523 132853 worker: Cards: 0:AUDIO 1:vc4hdmi0 2:vc4hdmi1 3:empty
20240523 132853 worker: 4:empty 5:empty 6:empty 7:empty
20240523 132853 worker: Mixers: 0:none 1:none 2:none 3:none
20240523 132853 worker: 4:none 5:none 6:none 7:none
20240523 132853 worker: --
20240523 132853 worker: -- Audio configuration
20240523 132853 worker: --
20240523 132853 worker: Audio device: 0:SMSL USB AUDIO
20240523 132853 getArrayIndex(): needle="SMSL USB AUDIO", haystack[0]=""
20240523 132853 getArrayIndex(): needle="SMSL USB AUDIO", haystack[1]="Pi HDMI 1"
20240523 132853 getArrayIndex(): needle="SMSL USB AUDIO", haystack[2]="Pi HDMI 2"
20240523 132853 getArrayIndex(): needle="SMSL USB AUDIO", haystack[3]="empty"
20240523 132853 getArrayIndex(): needle="SMSL USB AUDIO", haystack[4]="empty"
20240523 132853 getArrayIndex(): needle="SMSL USB AUDIO", haystack[5]="empty"
20240523 132853 getArrayIndex(): needle="SMSL USB AUDIO", haystack[6]="empty"
20240523 132853 getArrayIndex(): needle="SMSL USB AUDIO", haystack[7]="empty"
20240523 132853 worker: ALSA card: is empty, reconfigure to HDMI 1
20240523 132853 getArrayIndex(): needle="Pi HDMI 1", haystack[0]=""
20240523 132853 getArrayIndex(): needle="Pi HDMI 1", haystack[1]="Pi HDMI 1"
20240523 132854 worker: MPD config: updated
20240523 132854 worker: ALSA output: HDMI
20240523 132854 worker: ALSA mode: IEC958 (iec958)
20240523 132854 worker: ALSA mixer PCM
20240523 132857 worker: ALSA volume: controller not detected
20240523 132857 worker: ALSA maxvol: 100%
20240523 132857 worker: ALSA loopback: off
20240523 132857 worker: MPD mixer Hardware
20240523 132857 worker: Audio formats: IEC958_SUBFRAME_LE
20240523 132857 worker: CamillaDSP: off
20240523 132857 worker: CDSP volume: 0.0dB
20240523 132857 worker: CDSP volrange: 60dB
20240523 132857 worker: --
20240523 132857 worker: -- MPD startup
20240523 132857 worker: --
20240523 132857 worker: MPD service: started
20240523 132857 worker: MPD port 6600: accepting connections
20240523 132857 worker: MPD ALSA Default: on
20240523 132857 worker: MPD ALSA Bluetooth: off
20240523 132857 worker: MPD HTTP Server: off
20240523 132857 worker: MPD volume: 60
20240523 132857 worker: Saved MPD vol: -1
20240523 132857 worker: Saved SRC vol: 0
20240523 132857 worker: MPD crossfade: off
20240523 132857 worker: MPD ignore CUE: no
20240523 132857 worker: MPD CDSP volsync: off
20240523 132857 worker: --
20240523 132857 worker: -- Music sources
20240523 132857 worker: --
20240523 132857 worker: USB drive: USB
20240523 132857 worker: NAS sources: no music sources defined
20240523 132857 worker: --
20240523 132857 worker: -- Feature availability
20240523 132857 worker: --
20240523 132857 worker: Input select: available, Source: MPD, Output: Pi HDMI 1
20240523 132859 worker: Bluetooth: started, PIN: None, ALSA/CDSP maxvol: 100%/0dB, ALSA outmode: Standard
20240523 132859 startAirPlay(): (/usr/bin/shairport-sync -v -a "Moode AirPlay (salon)" -- -d _audioout > /var/log/moode_shairport-sync.log 2>&1 &)
20240523 132859 worker: AirPlay: started
20240523 132859 worker: Spotify Connect: available
20240523 132859 worker: Squeezelite: available
20240523 132859 worker: RoonBridge: not installed
20240523 132859 worker: Multiroom: available
20240523 132859 worker: UPnP client: available
20240523 132859 worker: GPIO buttons: available
20240523 132859 worker: HTTPS mode: available
20240523 132859 worker: Stream recorder: n/a
20240523 132859 worker: --
20240523 132859 worker: -- Peripherals
20240523 132859 worker: --
20240523 132859 worker: Local display: on
20240523 132859 worker: On-screen kbd: off
20240523 132859 worker: HDMI 4K 60Hz: off
20240523 132859 worker: Rotary encoder: off
20240523 132859 worker: USB volume knob: off
20240523 132859 worker: LCD updater: off
20240523 132859 worker: --
20240523 132859 worker: -- Miscellaneous
20240523 132859 worker: --
20240523 132859 worker: Software update: Automatic check on
20240523 132859 worker: Software update: Checking for available update...
20240523 132859 worker: Software update: Software is up to date
20240523 132859 worker: Auto-CoverView: on
20240523 132859 worker: CoverView timeout: Never
20240523 132859 worker: Auto-shuffle: off
20240523 132859 worker: Auto-play: off
20240523 132859 worker: Web SSH server: off
20240523 132859 worker: Maintenance task: 360 mins
20240523 132859 worker: Current view: reset to Playback
20240523 132859 worker: Active flags: all false
20240523 132859 worker: Reset flags: skipped
20240523 132900 worker: Session check: ok
20240523 132900 worker: --
20240523 132900 worker: -- Startup complete
20240523 132900 worker: --
20240523 132900 worker: Mount monitor: off
20240523 132900 worker: Radio monitor: off
20240523 132900 worker: Watchdog monitor: started
20240523 132900 worker: Responsiveness: Boosted
20240523 132900 worker: Sleep intervals: worker=1.5, waitworker=0.75, watchdog=6, mountmon=30, mpdmon=6, gpiobuttons=1
20240523 132900 worker: Ready
20240523 132912 waitWorker(): Start sys-config, w_active=0
20240523 132912 waitWorker(): End sys-config, w_active=0
Thanks for your support
|