Thank you for your donation!


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


Solved: HDMI by default instead of USB after each reboot
#10
(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
Reply


Messages In This Thread
[SOLVED]: HDMI by default instead of USB after each reboot - by romain - 05-23-2024, 11:30 AM

Forum Jump: