Thank you for your donation!


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


DSD play noise, dtoverlay, GPIO setting commands
#1
Hi,

I have recently started to use Moode, it is an amazing software, thanks to all contributors.
I have faced a few problems and I would appreciate I you help me to solve them.

·         When I play DSD audio, together with music I hear a strong hissing, white noise. This happens to any file whatever the DSD format, or its origin. I get the same noise either to the output of the USB connected DAC or to the HDMI port. I have seen the member jcucurull has mentioned the same problem on an older post, but I haven’t found any solution.

·         I want to add a circuit to Start/Shutdown my device with a button, so I added to the config.txt file the following commands
dtoverlay=gpio-poweroff,gpiopin=22
dtoverlay=gpio-shutdown
Although the circuit has been effectively works with other Raspberry Pi projects, it does nothing with Moode. So, I am wondering if Overlays can be loaded via /boot/config.txt and considered as part of the base device tree or not.

·         I have not found anywhere a list of the commands for the “GPIO control” settings on the configuration menu, although the same question was asked by Ale2.0 on an older post. Could you please give a list.

All the best
George_L
Reply
#2
For audio issues its best to post the startup log to give people some idea of your configuration.

Code:
Reboot and then post the entire contents of the startup log.

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.

For GPIO try:

- Menu > Configure > Peripherals
- Turn on GPIO buttons
- EDIT GPIO pin mappings
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
@George_L

A typical reason for strong white noise during DSD playback is the use of software volume control or other PCM-based signal processing upstream of the DAC. 

Recent releases of moOde prevent the volume control issue. See the WARNING under the Volume type setting in moOde's Audio config panel

Quote:WARNING: DSD format will output 0db when using software volume

Are you using some other upstream signal processing?

FYI, some DACs support hardware volume control from moOde during DSD playback but many don't. My Khadas Tone1 board (USB) and my Inno-maker DAC Pro (HAT) do not.

Regards,
Kent
Reply
#4
(06-01-2025, 10:47 AM)Tim Curtis Wrote: For audio issues its best to post the startup log to give people some idea of your configuration.

Code:
Reboot and then post the entire contents of the startup log.

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.

For GPIO try:

- Menu > Configure > Peripherals
- Turn on GPIO buttons
- EDIT GPIO pin mappings

For the DSD noise
I have attached the log file if would like to check

For the GPIO
I have seen that there is an editing function for the GPIO buttons, but I don’t know which are the available commands to write on the cmd window, start , stop, shutdown, smile or what else.

Code:
20250601 181909 worker: --
20250601 181909 worker: -- Start moOde 9 series
20250601 181909 worker: --
20250601 181909 worker: Daemonize:     complete
20250601 181910 worker: Linux startup: complete
20250601 181910 worker: Boot config:   ok
20250601 181910 worker: Boot folder:   ok
20250601 181910 worker: Radio table:   ok
20250601 181911 worker: PHP session:   cleaned
20250601 181911 worker: PHP session:   loaded
20250601 181913 worker: Package locks: applied
20250601 181914 worker: File check:    complete
20250601 181914 worker: Log to RAM:    on
20250601 181914 worker: Tmp to RAM:    on
20250601 181914 worker: Debug logging: off
20250601 181914 worker: --
20250601 181914 worker: -- System
20250601 181914 worker: --
20250601 181915 worker: Host name:     moode
20250601 181915 worker: RPi model:     Pi-4B 1.2 2GB
20250601 181915 worker: moOde release: 9.3.5 2025-05-25
20250601 181915 worker: RaspiOS:       12.11 Bookworm 64-bit
20250601 181915 worker: Linux Kernel:  6.12.25 64-bit
20250601 181915 worker: MPD version:   0.24.4
20250601 181915 worker: User id:       george
20250601 181915 worker: Home folder:   /home/george
20250601 181915 worker: Time zone:     Europe/Athens
20250601 181915 worker: Kbd layout:    us
20250601 181915 worker: HDMI ports(s): on
20250601 181915 worker: HDMI-CEC:      off
20250601 181915 worker: Sys LED0:      on
20250601 181915 worker: Sys LED1:      on
20250601 181915 worker: Reduce power:  n/a
20250601 181915 worker: Fan control:   n/a
20250601 181915 worker: CPU governor:  ondemand
20250601 181915 worker: --
20250601 181915 worker: -- Network
20250601 181915 worker: --
20250601 181915 worker: Eth0
20250601 181915 worker: Ethernet: adapter exists
20250601 181915 worker: Ethernet: timeout off
20250601 181915 worker: Ethernet: address not assigned
20250601 181915 worker: Wlan0
20250601 181915 worker: Wireless: adapter exists
20250601 181915 worker: Wireless: country GR
20250601 181915 worker: Wireless: SSID    Tiglin-416
20250601 181915 worker: Wireless: other   None
20250601 181915 worker: Wireless: timeout up to 90 secs
20250601 181915 worker: Wireless: connect to Tiglin-416
20250601 181915 worker: Wireless: method  dhcp
20250601 181916 worker: Wireless: address 192.168.181.9
20250601 181916 worker: Wireless: netmask 255.255.255.0
20250601 181916 worker: Wireless: gateway 192.168.181.1
20250601 181916 worker: Wireless: pri DNS 192.168.181.1
20250601 181916 worker: Wireless: domain  none found
20250601 181916 worker: mDNS
20250601 181916 worker: Discover: IPv4 and IPv6
20250601 181916 worker: --
20250601 181916 worker: -- File sharing
20250601 181916 worker: --
20250601 181916 worker: SMB file sharing:  off
20250601 181916 worker: SMB password:      none
20250601 181916 worker: NFS file sharing:  off
20250601 181916 worker: DLNA file sharing: off
20250601 181916 worker: --
20250601 181916 worker: -- Special configs
20250601 181916 worker: --
20250601 181916 worker: Plexamp:          not installed
20250601 181916 worker: RoonBridge:       not installed
20250601 181916 worker: Allo Boss 2:      not detected, OLED script ok
20250601 181916 worker: Allo Piano 2.1:   not detected
20250601 181916 worker: IQaudIO DigiAMP+: not detected
20250601 181916 worker: RPi DigiAMP+:     not detected
20250601 181916 worker: Bluetooth:        session vars ok
20250601 181916 worker: --
20250601 181916 worker: -- ALSA debug
20250601 181916 worker: --
20250601 181916 worker: Cards:  0:b1              1:b2              2:Headphones      3:Device          
20250601 181916 worker:         4:vc4hdmi0        5:vc4hdmi1        6:empty           7:empty          
20250601 181916 worker: Mixers: 0:(PCM)           1:(PCM)           2:(PCM)           3:(PCM)          
20250601 181916 worker:         4:none            5:none            6:none            7:none            
20250601 181916 worker: --
20250601 181916 worker: -- Audio configuration
20250601 181916 worker: --
20250601 181916 worker: Audio device:  3:USB PnP Sound Device
20250601 181916 worker: ALSA card:     has not been reassigned
20250601 181916 worker: MPD config:    update not needed
20250601 181916 worker: ALSA output:   USB
20250601 181916 worker: ALSA mode:     Default (plughw)
20250601 181916 worker: ALSA mixer:    PCM
20250601 181916 worker: ALSA volume:   100% (-0.06dB)
20250601 181916 worker: ALSA maxvol:   100%
20250601 181916 worker: ALSA loopback: off
20250601 181916 worker: MPD mixer      Fixed (0dB)
20250601 181916 worker: Integ audio:   vc4-kms-v3d
20250601 181917 worker: Audio formats: S16_LE
20250601 181917 worker: CamillaDSP:    off
20250601 181917 worker: CDSP volume:   0dB
20250601 181917 worker: CDSP volrange: 60dB
20250601 181917 worker: --
20250601 181917 worker: -- MPD startup
20250601 181917 worker: --
20250601 181917 worker: MPD service:        started
20250601 181917 worker: MPD port 6600:      accepting connections
20250601 181917 worker: MPD ALSA Default:   on
20250601 181917 worker: MPD ALSA Bluetooth: off
20250601 181917 worker: MPD HTTP Server:    off
20250601 181917 worker: MPD volume:         82
20250601 181917 worker: Saved MPD vol:      -1
20250601 181917 worker: Saved SRC vol:      0
20250601 181917 worker: MPD crossfade:      off
20250601 181917 worker: MPD ignore CUE:     no
20250601 181917 worker: MPD CDSP volsync:   off
20250601 181917 worker: --
20250601 181917 worker: -- Music sources
20250601 181917 worker: --
20250601 181917 worker: USB drive:      FC09-A766 (vfat)
20250601 181917 worker: NVMe drives:    none
20250601 181917 worker: SATA drives:    none
20250601 181917 worker: NAS sources:    none
20250601 181917 worker: --
20250601 181917 worker: -- Feature availability
20250601 181917 worker: --
20250601 181917 worker: Input select:    available, Source: MPD, Output: USB PnP Sound Device
20250601 181917 worker: Bluetooth:       available, PIN: None, ALSA/CDSP maxvol: 100%/0dB, ALSA outmode: Standard
20250601 181917 worker: AirPlay:         available
20250601 181917 worker: Spotify Connect: available
20250601 181917 worker: Deezer Connect:  n/a
20250601 181917 worker: Squeezelite:     available
20250601 181917 worker: UPnP client:     available
20250601 181917 worker: Plexamp:         not installed, ALSA maxvol: 100%
20250601 181917 worker: RoonBridge:      not installed
20250601 181917 worker: Multiroom:       available
20250601 181917 worker: GPIO buttons:    started
20250601 181917 worker: Stream recorder: n/a
20250601 181917 worker: --
20250601 181917 worker: -- Security
20250601 181917 worker: --
20250601 181917 worker: Web SSH server:    off
20250601 181917 worker: XSS detection:     off
20250601 181917 worker: HTTPS mode:        available
20250601 181917 worker: --
20250601 181917 worker: -- Peripherals
20250601 181917 worker: --
20250601 181919 worker: Local display:   on
20250601 181919 worker: Chromium ver:    126.0.6478.164-rpt1
20250601 181919 worker: Chromium cfg:    directory ok
20250601 181919 worker: Screen blank     600
20250601 181919 worker: On-screen kbd:   off
20250601 181919 worker: Disable GPU:     off
20250601 181919 worker: HDMI orient:     landscape
20250601 181919 worker: HDMI 4K 60Hz:    off
20250601 181919 worker: DSI scn type:    none
20250601 181919 worker: DSI port:        1
20250601 181919 worker: DSI brightness:  255
20250601 181919 worker: DSI rotate:      0
20250601 181919 worker: Rotary encoder:  off
20250601 181919 worker: Triggerhappy:    off
20250601 181919 worker: LCD updater:     off
20250601 181919 worker: --
20250601 181919 worker: -- Miscellaneous
20250601 181919 worker: --
20250601 181919 worker: Software update:   Automatic check off
20250601 181919 worker: Auto-CoverView:    off
20250601 181919 worker: CoverView timeout: Never
20250601 181919 worker: Auto-shuffle:      off
20250601 181919 worker: Auto-play:         off
20250601 181919 worker: Maintenance task:  360 mins
20250601 181919 worker: Current view:      reset to Playback
20250601 181919 worker: Active flags:      all false
20250601 181919 worker: Reset flags:       skipped
20250601 181919 worker: Session check:     ok
20250601 181919 worker: --
20250601 181919 worker: -- Startup complete
20250601 181919 worker: --
20250601 181919 worker: Mount monitor:    started
20250601 181919 worker: Radio monitor:    off
20250601 181919 worker: Watchdog monitor: started
20250601 181919 worker: Responsiveness:   Default
20250601 181919 worker: Ready
Reply
#5
(06-01-2025, 03:40 PM)George_L Wrote:
(06-01-2025, 10:47 AM)Tim Curtis Wrote: For audio issues its best to post the startup log to give people some idea of your configuration.

Code:
Reboot and then post the entire contents of the startup log.

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.

For GPIO try:

- Menu > Configure > Peripherals
- Turn on GPIO buttons
- EDIT GPIO pin mappings

For the DSD noise
I have attached the log file if would like to check

For the GPIO
I have seen that there is an editing function for the GPIO buttons, but I don’t know which are the available commands to write on the cmd window, start , stop, shutdown, smile or what else.

Code:
20250601 181909 worker: --
20250601 181909 worker: -- Start moOde 9 series
20250601 181909 worker: --
20250601 181909 worker: Daemonize:     complete
20250601 181910 worker: Linux startup: complete
20250601 181910 worker: Boot config:   ok
20250601 181910 worker: Boot folder:   ok
20250601 181910 worker: Radio table:   ok
20250601 181911 worker: PHP session:   cleaned
20250601 181911 worker: PHP session:   loaded
20250601 181913 worker: Package locks: applied
20250601 181914 worker: File check:    complete
20250601 181914 worker: Log to RAM:    on
20250601 181914 worker: Tmp to RAM:    on
20250601 181914 worker: Debug logging: off
20250601 181914 worker: --
20250601 181914 worker: -- System
20250601 181914 worker: --
20250601 181915 worker: Host name:     moode
20250601 181915 worker: RPi model:     Pi-4B 1.2 2GB
20250601 181915 worker: moOde release: 9.3.5 2025-05-25
20250601 181915 worker: RaspiOS:       12.11 Bookworm 64-bit
20250601 181915 worker: Linux Kernel:  6.12.25 64-bit
20250601 181915 worker: MPD version:   0.24.4
20250601 181915 worker: User id:       george
20250601 181915 worker: Home folder:   /home/george
20250601 181915 worker: Time zone:     Europe/Athens
20250601 181915 worker: Kbd layout:    us
20250601 181915 worker: HDMI ports(s): on
20250601 181915 worker: HDMI-CEC:      off
20250601 181915 worker: Sys LED0:      on
20250601 181915 worker: Sys LED1:      on
20250601 181915 worker: Reduce power:  n/a
20250601 181915 worker: Fan control:   n/a
20250601 181915 worker: CPU governor:  ondemand
20250601 181915 worker: --
20250601 181915 worker: -- Network
20250601 181915 worker: --
20250601 181915 worker: Eth0
20250601 181915 worker: Ethernet: adapter exists
20250601 181915 worker: Ethernet: timeout off
20250601 181915 worker: Ethernet: address not assigned
20250601 181915 worker: Wlan0
20250601 181915 worker: Wireless: adapter exists
20250601 181915 worker: Wireless: country GR
20250601 181915 worker: Wireless: SSID    Tiglin-416
20250601 181915 worker: Wireless: other   None
20250601 181915 worker: Wireless: timeout up to 90 secs
20250601 181915 worker: Wireless: connect to Tiglin-416
20250601 181915 worker: Wireless: method  dhcp
20250601 181916 worker: Wireless: address 192.168.181.9
20250601 181916 worker: Wireless: netmask 255.255.255.0
20250601 181916 worker: Wireless: gateway 192.168.181.1
20250601 181916 worker: Wireless: pri DNS 192.168.181.1
20250601 181916 worker: Wireless: domain  none found
20250601 181916 worker: mDNS
20250601 181916 worker: Discover: IPv4 and IPv6
20250601 181916 worker: --
20250601 181916 worker: -- File sharing
20250601 181916 worker: --
20250601 181916 worker: SMB file sharing:  off
20250601 181916 worker: SMB password:      none
20250601 181916 worker: NFS file sharing:  off
20250601 181916 worker: DLNA file sharing: off
20250601 181916 worker: --
20250601 181916 worker: -- Special configs
20250601 181916 worker: --
20250601 181916 worker: Plexamp:          not installed
20250601 181916 worker: RoonBridge:       not installed
20250601 181916 worker: Allo Boss 2:      not detected, OLED script ok
20250601 181916 worker: Allo Piano 2.1:   not detected
20250601 181916 worker: IQaudIO DigiAMP+: not detected
20250601 181916 worker: RPi DigiAMP+:     not detected
20250601 181916 worker: Bluetooth:        session vars ok
20250601 181916 worker: --
20250601 181916 worker: -- ALSA debug
20250601 181916 worker: --
20250601 181916 worker: Cards:  0:b1              1:b2              2:Headphones      3:Device          
20250601 181916 worker:         4:vc4hdmi0        5:vc4hdmi1        6:empty           7:empty          
20250601 181916 worker: Mixers: 0:(PCM)           1:(PCM)           2:(PCM)           3:(PCM)          
20250601 181916 worker:         4:none            5:none            6:none            7:none            
20250601 181916 worker: --
20250601 181916 worker: -- Audio configuration
20250601 181916 worker: --
20250601 181916 worker: Audio device:  3:USB PnP Sound Device
20250601 181916 worker: ALSA card:     has not been reassigned
20250601 181916 worker: MPD config:    update not needed
20250601 181916 worker: ALSA output:   USB
20250601 181916 worker: ALSA mode:     Default (plughw)
20250601 181916 worker: ALSA mixer:    PCM
20250601 181916 worker: ALSA volume:   100% (-0.06dB)
20250601 181916 worker: ALSA maxvol:   100%
20250601 181916 worker: ALSA loopback: off
20250601 181916 worker: MPD mixer      Fixed (0dB)
20250601 181916 worker: Integ audio:   vc4-kms-v3d
20250601 181917 worker: Audio formats: S16_LE
20250601 181917 worker: CamillaDSP:    off
20250601 181917 worker: CDSP volume:   0dB
20250601 181917 worker: CDSP volrange: 60dB
20250601 181917 worker: --
20250601 181917 worker: -- MPD startup
20250601 181917 worker: --
20250601 181917 worker: MPD service:        started
20250601 181917 worker: MPD port 6600:      accepting connections
20250601 181917 worker: MPD ALSA Default:   on
20250601 181917 worker: MPD ALSA Bluetooth: off
20250601 181917 worker: MPD HTTP Server:    off
20250601 181917 worker: MPD volume:         82
20250601 181917 worker: Saved MPD vol:      -1
20250601 181917 worker: Saved SRC vol:      0
20250601 181917 worker: MPD crossfade:      off
20250601 181917 worker: MPD ignore CUE:     no
20250601 181917 worker: MPD CDSP volsync:   off
20250601 181917 worker: --
20250601 181917 worker: -- Music sources
20250601 181917 worker: --
20250601 181917 worker: USB drive:      FC09-A766 (vfat)
20250601 181917 worker: NVMe drives:    none
20250601 181917 worker: SATA drives:    none
20250601 181917 worker: NAS sources:    none
20250601 181917 worker: --
20250601 181917 worker: -- Feature availability
20250601 181917 worker: --
20250601 181917 worker: Input select:    available, Source: MPD, Output: USB PnP Sound Device
20250601 181917 worker: Bluetooth:       available, PIN: None, ALSA/CDSP maxvol: 100%/0dB, ALSA outmode: Standard
20250601 181917 worker: AirPlay:         available
20250601 181917 worker: Spotify Connect: available
20250601 181917 worker: Deezer Connect:  n/a
20250601 181917 worker: Squeezelite:     available
20250601 181917 worker: UPnP client:     available
20250601 181917 worker: Plexamp:         not installed, ALSA maxvol: 100%
20250601 181917 worker: RoonBridge:      not installed
20250601 181917 worker: Multiroom:       available
20250601 181917 worker: GPIO buttons:    started
20250601 181917 worker: Stream recorder: n/a
20250601 181917 worker: --
20250601 181917 worker: -- Security
20250601 181917 worker: --
20250601 181917 worker: Web SSH server:    off
20250601 181917 worker: XSS detection:     off
20250601 181917 worker: HTTPS mode:        available
20250601 181917 worker: --
20250601 181917 worker: -- Peripherals
20250601 181917 worker: --
20250601 181919 worker: Local display:   on
20250601 181919 worker: Chromium ver:    126.0.6478.164-rpt1
20250601 181919 worker: Chromium cfg:    directory ok
20250601 181919 worker: Screen blank     600
20250601 181919 worker: On-screen kbd:   off
20250601 181919 worker: Disable GPU:     off
20250601 181919 worker: HDMI orient:     landscape
20250601 181919 worker: HDMI 4K 60Hz:    off
20250601 181919 worker: DSI scn type:    none
20250601 181919 worker: DSI port:        1
20250601 181919 worker: DSI brightness:  255
20250601 181919 worker: DSI rotate:      0
20250601 181919 worker: Rotary encoder:  off
20250601 181919 worker: Triggerhappy:    off
20250601 181919 worker: LCD updater:     off
20250601 181919 worker: --
20250601 181919 worker: -- Miscellaneous
20250601 181919 worker: --
20250601 181919 worker: Software update:   Automatic check off
20250601 181919 worker: Auto-CoverView:    off
20250601 181919 worker: CoverView timeout: Never
20250601 181919 worker: Auto-shuffle:      off
20250601 181919 worker: Auto-play:         off
20250601 181919 worker: Maintenance task:  360 mins
20250601 181919 worker: Current view:      reset to Playback
20250601 181919 worker: Active flags:      all false
20250601 181919 worker: Reset flags:       skipped
20250601 181919 worker: Session check:     ok
20250601 181919 worker: --
20250601 181919 worker: -- Startup complete
20250601 181919 worker: --
20250601 181919 worker: Mount monitor:    started
20250601 181919 worker: Radio monitor:    off
20250601 181919 worker: Watchdog monitor: started
20250601 181919 worker: Responsiveness:   Default
20250601 181919 worker: Ready

I have found a solution to DSD white noise. 
On "Configure" I changed the "ALSA Options" "Output Mode" from Default to Direct and then the white noise disappeared.

So, now there are remaining two more issues to solve.


Attached Files Thumbnail(s)
   
Reply
#6
(06-01-2025, 09:42 AM)George_L Wrote: Hi,

I have recently started to use Moode, it is an amazing software, thanks to all contributors.
I have faced a few problems and I would appreciate I you help me to solve them.

·         When I play DSD audio, together with music I hear a strong hissing, white noise. This happens to any file whatever the DSD format, or its origin. I get the same noise either to the output of the USB connected DAC or to the HDMI port. I have seen the member jcucurull has mentioned the same problem on an older post, but I haven’t found any solution.

·         I want to add a circuit to Start/Shutdown my device with a button, so I added to the config.txt file the following commands
dtoverlay=gpio-poweroff,gpiopin=22
dtoverlay=gpio-shutdown
Although the circuit has been effectively works with other Raspberry Pi projects, it does nothing with Moode. So, I am wondering if Overlays can be loaded via /boot/config.txt and considered as part of the base device tree or not.

·         I have not found anywhere a list of the commands for the “GPIO control” settings on the configuration menu, although the same question was asked by Ale2.0 on an older post. Could you please give a list.

All the best
George_L
I was hoping someone more knowledgeable than me would answer.

If you don't want to use moode's internal GPIO mapping (or it doesn't work somehow)

it's still possible to add overlays in config.txt (in newer versions under boot/firmware/ ).
As I understand it, you can't start it with any GPIO pin, it has to be GPIO3, (if you have other I2C components this can be problematic). For all other GPIOs it has to be a momentary (Push Button) and you have to define the parameters (like in moode)

Try this:
(except GPIO2, GPIO3) only shutdown

[gpio]
#Power Button moode shutdown
dtoverlay=gpio-shutdown,gpio_pin=xx(put your Pin number in),active_low=1,gpio_pull=up

for a Locking Button (GPIO3/Ground)
dtoverlay=gpio-shutdown

should do the job

I can't help you with all the possible commands
Like I said, my experience is not as great as yours, so take it with a grain of salt.
Reply


Forum Jump: