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: USB Volume Knob breaks output
#1
I'm stumped about usb volume knobs. I bought this one:
https://www.amazon.com/dp/B0CQFY1CDN?psc...ct_details

It seems to work with Linux / the Pi in that I can plug it in and see all the commands being read properly. It even controls the moOde volume visually as one would expect.

I used the command to modify the triggerhappy media.conf file:

Code:
pi@moode:~ $ cat /etc/triggerhappy/triggers.d/media.conf
KEY_VOLUMEUP     1 /var/www/vol.sh -up 1
KEY_VOLUMEDOWN   1 /var/www/vol.sh -dn 1
KEY_MUTE         1 /var/www/vol.sh -mute
KEY_PLAYPAUSE    1 /usr/bin/mpc toggle
KEY_NEXTSONG     1 /usr/bin/mpc next
KEY_PREVIOUSSONG 1 /usr/bin/mpc prev
KEY_STOPCD       1 /usr/bin/mpc stop

and it works as you'd expect. or did. maybe.

when I plug in the volume knob, the output to my DACs becomes inaudible.
if I unplug it, the output returns, but extremely distorted and loud.

THAT is my issue. everything works great without the knob connected.
Everything fails to work with it connected. 

I would love some help with this. Controlling volume with a knob makes this thing way more useable for me.
Thanks!



Here's my setup: 
https://moodeaudio.org/forum/showthread....8#pid52868

RELEASE INFORMATION
Release: 8.3.9 2024-02-23
Maintainer: Tim Curtis © 2014
Documentation: View release notes, View setup guide
Contributors: View contributors
License: View GPLv3
PLATFORM INFORMATION
RaspiOS: 11.9 Bullseye 64-bit
Linux kernel: 6.1.21 64-bit
Pi model: Pi-4B 1.2 4GB
MPD version: 0.23.14

Code:
20240311 182910 worker: --
20240311 182910 worker: -- Start moOde 8 series
20240311 182910 worker: --
20240311 182910 worker: Successfully daemonized
20240311 182910 worker: Wait for Linux startup...
20240311 182922 worker: Linux startup complete
20240311 182922 worker: Boot config backed up
20240311 182923 worker: Session loaded
20240311 182925 worker: Package holds applied
20240311 182926 worker: File check complete
20240311 182926 worker: Debug logging off
20240311 182926 worker: Reduced logging off
20240311 182926 worker: --
20240311 182926 worker: -- Audio debug
20240311 182926 worker: --
20240311 182926 worker: ALSA cards:   0:b1 | 1:Headphones | 2:AudioHIGH | 3:AudioMID
20240311 182926 worker: MPD config:   0:Pi HDMI 1 | mixer:PCM | cardnum:0
20240311 182926 worker: Mixer name:   [PCM]
20240311 182926 worker: Hdwr volume:  set to 0%
20240311 182926 worker: Volume knob:  6
20240311 182926 worker: --
20240311 182926 worker: -- System
20240311 182926 worker: --
20240311 182927 worker: Host:     moode
20240311 182927 worker: Model:    Pi-4B 1.2 4GB
20240311 182927 worker: moOde:    8.3.9 2024-02-23
20240311 182927 worker: RaspiOS:  11.9 Bullseye 64-bit
20240311 182927 worker: Kernel:   6.1.21 64-bit
20240311 182927 worker: MPD ver:  0.23.14
20240311 182927 worker: CPU gov:  ondemand
20240311 182927 worker: Userid:   pi
20240311 182927 worker: Homedir:  /home/pi
20240311 182927 worker: Timezone: America/New_York
20240311 182927 worker: Keyboard: us
20240311 182927 worker: USB boot: enabled
20240311 182927 worker: File sys: expanded
20240311 182927 worker: HDMI out: on
20240311 182928 worker: Sys LED0: on
20240311 182928 worker: Sys LED1: on
20240311 182928 worker: --
20240311 182928 worker: -- Network
20240311 182928 worker: --
20240311 182928 worker: Eth: adapter exists
20240311 182928 worker: Eth: timeout off
20240311 182928 worker: Eth: address not assigned
20240311 182928 worker: Wlan: adapter exists
20240311 182928 worker: Wlan: country US
20240311 182928 worker: Wlan: SSID    secretwifissid
20240311 182928 worker: Wlan: other   none
20240311 182928 worker: Wlan: router  off
20240311 182928 worker: Wlan: timeout up to 90 secs
20240311 182928 worker: Wlan: connect to secretwifissid
20240311 182928 worker: Wlan: sleep   disabled
20240311 182928 worker: Wlan: method  dhcp
20240311 182928 worker: Wlan: address 192.168.1.203
20240311 182928 worker: Wlan: netmask 255.255.255.0
20240311 182928 worker: Wlan: gateway 192.168.1.1
20240311 182928 worker: Wlan: pri DNS 192.168.1.10
20240311 182928 worker: Wlan: domain  secretdomain.com
20240311 182928 worker: --
20240311 182928 worker: -- Software update
20240311 182928 worker: --
20240311 182928 worker: Automatic check off
20240311 182928 worker: --
20240311 182928 worker: -- File sharing
20240311 182928 worker: --
20240311 182928 worker: SMB file sharing:  off
20240311 182928 worker: NFS file sharing:  off
20240311 182928 worker: DLNA file sharing: off
20240311 182928 worker: --
20240311 182928 worker: -- Audio config
20240311 182928 worker: --
20240311 182928 worker: MPD config:    updated
20240311 182929 worker: Audio device:  Pi HDMI 1
20240311 182929 worker: Formats:       U8, S16_LE
20240311 182929 worker: Mixer type     CamillaDSP
20240311 182929 worker: Mixer name     PCM
20240311 182929 worker: Hdwr volume:   controller detected
20240311 182929 worker: ALSA max vol:  100%
20240311 182929 worker: ALSA card:     0
20240311 182929 worker: ALSA mode:     Default
20240311 182929 worker: ALSA loopback: off
20240311 182929 worker: CamillaDSP:    newfir
20240311 182929 worker: Renderers:     active flags reset
20240311 182929 worker: --
20240311 182929 worker: -- MPD startup
20240311 182929 worker: --
20240311 182929 worker: MPD service:        started
20240311 182929 worker: MPD port 6600:      accepting connections
20240311 182929 worker: MPD ALSA Default:   on
20240311 182929 worker: MPD ALSA Bluetooth: off
20240311 182929 worker: MPD HTTP Server:    off
20240311 182929 worker: MPD crossfade:      off
20240311 182929 worker: MPD ignore CUE:     no
20240311 182929 worker: MPD CDSP volsync:   on
20240311 182929 worker: MPD CDSP volrange:  60 dB
20240311 182929 worker: --
20240311 182929 worker: -- Music sources
20240311 182929 worker: --
20240311 182929 worker: USB auto-mount: udisks-glue
20240311 182929 worker: USB drives:     no drives found
20240311 182929 worker: NAS source:     AllMusic
20240311 182930 worker: NAS mount:      mount all submitted
20240311 182930 worker: --
20240311 182930 worker: -- Feature availability
20240311 182930 worker: --
20240311 182930 worker: Input select:    available, src MPD, out Pi HDMI 1
20240311 182930 worker: Bluetooth:       available, ALSA mode Default
20240311 182930 worker: AirPlay:         available
20240311 182930 worker: Spotify Connect: available
20240311 182930 worker: Squeezelite:     available
20240311 182930 worker: RoonBridge:      not installed
20240311 182930 worker: Multiroom:       available
20240311 182930 worker: UPnP client:     available
20240311 182930 worker: GPIO buttons:    available
20240311 182930 worker: HTTPS mode:      available
20240311 182930 worker: Stream recorder: n/a
20240311 182930 worker: --
20240311 182930 worker: -- Volume levels
20240311 182930 worker: --
20240311 182930 worker: Volume knob:   6
20240311 182930 worker: Saved MPD vol: -1
20240311 182930 worker: Saved SRC vol: 0
20240311 182930 worker: Mixer type:    null
20240311 182930 worker: Hdwr volume:   96%
20240311 182930 worker: CDSP volume:   -58.4dB
20240311 182930 worker: --
20240311 182930 worker: -- Peripherals
20240311 182930 worker: --
20240311 182931 worker: Local display:   off
20240311 182931 worker: On-screen kbd:   off
20240311 182931 worker: Rotary encoder:  off
20240311 182931 worker: USB volume knob: on
20240311 182931 worker: LCD updater:     off
20240311 182931 worker: --
20240311 182931 worker: -- Miscellaneous
20240311 182931 worker: --
20240311 182931 worker: Auto-CoverView:    off
20240311 182931 worker: CoverView timeout: Never
20240311 182931 worker: Auto-shuffle:      off
20240311 182931 worker: Auto-play:         off
20240311 182931 worker: Web SSH server:    off
20240311 182931 worker: Maintenance task:  360 mins
20240311 182931 worker: Current view:      reset to Playback
20240311 182931 worker: Session check:     ok
20240311 182931 worker: --
20240311 182931 worker: -- Startup complete
20240311 182931 worker: --
20240311 182931 worker: Mount monitor:    off
20240311 182931 worker: Radio monitor:    off
20240311 182931 worker: Watchdog monitor: started
20240311 182931 worker: Responsiveness:   Default
20240311 182931 worker: Ready
20240311 185834 worker: Job usb_volknob
20240311 185915 worker: Job btsvc
20240311 185935 worker: Job pairing_agent
20240311 185941 worker: Job airplaysvc
20240311 185945 worker: Job spotifysvc
20240311 190006 worker: Job airplaysvc
20240311 190551 worker: Job spotifysvc
20240311 190640 worker: Job spotifysvc
Reply


Messages In This Thread
USB Volume Knob breaks output - by fixjunk - 03-12-2024, 05:41 PM
RE: USB Volume Knob breaks output - by Tim Curtis - 03-12-2024, 08:47 PM
RE: USB Volume Knob breaks output - by fixjunk - 03-12-2024, 09:49 PM
RE: USB Volume Knob breaks output - by Tim Curtis - 03-12-2024, 10:10 PM
RE: USB Volume Knob breaks output - by fixjunk - 03-12-2024, 11:09 PM
RE: USB Volume Knob breaks output - by Tim Curtis - 03-13-2024, 02:34 AM
RE: USB Volume Knob breaks output - by fixjunk - 03-13-2024, 02:43 AM
RE: USB Volume Knob breaks output - by nullstring - 03-13-2024, 12:15 AM
RE: USB Volume Knob breaks output - by fixjunk - 03-13-2024, 10:33 PM
RE: USB Volume Knob breaks output - by fixjunk - 03-14-2024, 02:51 PM

Forum Jump: