Posts: 6
Threads: 2
Joined: Oct 2018
Reputation:
0
Hey folks!
I'm new to the Moode community and I need your help. I've installed Moode on my RpiZero but I can't get Spotify connect to work.
Can someone help me?
- Yes I have premium
- Yes I have enabled the Spotify Service
"Gewoon boef man" - Boef
Posts: 13,350
Threads: 302
Joined: Mar 2018
Reputation:
538
To start troubleshooting, lets verify a few things via SSH.
1. Confirm that librespot is running.
2. If it is running then lets see what audio device its been configured to use.
Code: aplay -L | grep -v ALSA | grep -w default
3. Post contents of moode.log
Code: cat /var/log/moode.log
-Tim
Posts: 6
Threads: 2
Joined: Oct 2018
Reputation:
0
10-17-2018, 11:35 PM
(This post was last modified: 10-17-2018, 11:54 PM by Tim Curtis.
Edit Reason: placed log output in a code box
)
Thanks for the quick response! This is what I get:
When I do: pgrep -l librespot I get nothing.
pi@moode:~ $ aplay -L | grep -v ALSA | grep -w default
default
:CARD=Device
Code: pi@moode:~ $ cat /var/log/moode.log
20181017 162430 worker: - Start
20181017 162430 worker: Successfully daemonized
20181017 162432 worker: Session loaded
20181017 162432 worker: Debug logging (off)
20181017 162432 worker: - Platform
20181017 162434 worker: Host (moode)
20181017 162434 worker: Hdwr (Pi-Zero W 512MB v1.1)
20181017 162434 worker: Arch (armv6l)
20181017 162434 worker: Rasp (9.4)
20181017 162434 worker: Kver (4.14.72+)
20181017 162434 worker: Ktyp (Standard)
20181017 162434 worker: Gov (performance)
20181017 162434 worker: Rel (Moode 4.3 2018-09-27)
20181017 162434 worker: Upd (None)
20181017 162434 worker: MPD (0.20.20)
20181017 162434 worker: USB boot not enabled yet
20181017 162434 worker: File system not expanded yet
20181017 162434 worker: HDMI port on
20181017 162435 worker: File check ok
20181017 162435 worker: - Network
20181017 162435 worker: eth0 does not exist
20181017 162435 worker: eth0 address not assigned
20181017 162436 worker: wlan0 exists
20181017 162436 worker: wifi country (NL)
20181017 162436 worker: wlan0 trying SSID (sociaalisolement)
20181017 162436 worker: wlan0 (192.168.1.23)
20181017 162436 worker: - Audio
20181017 162436 worker: ALSA outputs unmuted
20181017 162436 worker: ALSA card number (0)
20181017 162436 worker: Audio output (On-board audio device)
20181017 162436 worker: ALSA mixer name (Speaker)
20181017 162436 worker: MPD volume control (software)
20181017 162437 worker: Hdwr volume controller exists
20181017 162437 worker: - Services
20181017 162437 worker: Reset renderer active
20181017 162439 worker: MPD started
20181017 162439 worker: MPD scheduler policy (time-share)
20181017 162439 worker: Configure MPD outputs
20181017 162439 worker: MPD output 1 ALSA default (on)
20181017 162439 worker: MPD output 2 ALSA crossfeed (off)
20181017 162439 worker: MPD output 3 ALSA parametric eq (off)
20181017 162439 worker: MPD output 4 ALSA graphic eq (off)
20181017 162439 worker: MPD output 5 ALSA bluetooth (off)
20181017 162439 worker: MPD crossfade (off)
20181017 162439 worker: Airplay receiver started
20181017 162439 worker: Airplay volume mgt (auto)
20181017 162439 worker: Spotify receiver started
20181017 162439 worker: Bluetooth controller started
20181017 162919 worker: Bluetooth controller initialized
20181017 162919 worker: - Music sources
20181017 162919 worker: USB sources (none attached)
20181017 162919 worker: NAS sources (none configured)
20181017 162919 worker: - Miscellaneous
20181017 162919 worker: Volume level (33) restored
20181017 162919 worker: Maintenance interval (21600)
20181017 162919 worker: Screen saver activation (Never)
20181017 162919 worker: Watchdog started
20181017 162919 worker: Ready
20181017 171415 worker: Job slsvc
20181017 171442 worker: Job spotifysvc
20181017 171502 worker: Job spotifysvc
20181017 171533 worker: Job spotifysvc
20181017 172132 worker: Job slsvc
20181017 172313 watchdog: MPD restart (check syslog for MPD errors)
pi@moode:~ $
"Gewoon boef man" - Boef
Posts: 13,350
Threads: 302
Joined: Mar 2018
Reputation:
538
Hi,
The output below indicates librespot crashed due to a odd audio device descriptor.
Code: When I do: pgrep -l librespot I get nothing.
pi@moode:~ $ aplay -L | grep -v ALSA | grep -w default
default
:CARD=Device
The mixer name for the analog out, on-board audio device on the Pi is 'PCM'.
Code: 20181017 162436 worker: Audio output (On-board audio device)
20181017 162436 worker: ALSA mixer name (Speaker)
Are u using an HDMI audio connection?
Posts: 6
Threads: 2
Joined: Oct 2018
Reputation:
0
10-18-2018, 05:52 AM
(This post was last modified: 10-18-2018, 08:26 AM by rudyhov.
Edit Reason: Added picture.
)
No iam using a small USB sound card.
Like this:
"Gewoon boef man" - Boef
Posts: 5,993
Threads: 175
Joined: Apr 2018
Reputation:
233
(10-18-2018, 05:52 AM)rudyhov Wrote: No iam using a small USB sound card.
Like this:
<<image deleted>>
I have a similar, StarTech-branded USB-audio adapter which is detected by Linux as
Code: pi@moode:~ $ lsusb
Bus 001 Device 007: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio Controller
...<other USB devices>...
Never used it with moOde before but I tried it just now and it works just fine with both the MPD renderer (playing radio stations, music tracks on NAS, etc) and the Spotify renderer.
Code: pi@moode:~ $ pgrep -l librespot
32190 librespot
pi@moode:~ $ aplay -L | grep -v ALSA | grep -w default
default:CARD=Device
pi@moode:~ $ grep Audio\ output /var/log/moode.log
20181015 212021 worker: Audio output (On-board audio device)
@ Tim Curtis---FYI, here's the entire aplay -L output:
Code: pi@moode:~ $ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
btaplay_dmix
alsaequal
plug_alsaequal
btstream
crossfeed
plug_bs2b
eqfa4p
plug_eqfa4p
default:CARD=ALSA
bcm2835 ALSA, bcm2835 ALSA
Default Audio Device
sysdefault:CARD=ALSA
bcm2835 ALSA, bcm2835 ALSA
Default Audio Device
dmix:CARD=ALSA,DEV=0
bcm2835 ALSA, bcm2835 ALSA
Direct sample mixing device
dmix:CARD=ALSA,DEV=1
bcm2835 ALSA, bcm2835 IEC958/HDMI
Direct sample mixing device
dsnoop:CARD=ALSA,DEV=0
bcm2835 ALSA, bcm2835 ALSA
Direct sample snooping device
dsnoop:CARD=ALSA,DEV=1
bcm2835 ALSA, bcm2835 IEC958/HDMI
Direct sample snooping device
hw:CARD=ALSA,DEV=0
bcm2835 ALSA, bcm2835 ALSA
Direct hardware device without any conversions
hw:CARD=ALSA,DEV=1
bcm2835 ALSA, bcm2835 IEC958/HDMI
Direct hardware device without any conversions
plughw:CARD=ALSA,DEV=0
bcm2835 ALSA, bcm2835 ALSA
Hardware device with all software conversions
plughw:CARD=ALSA,DEV=1
bcm2835 ALSA, bcm2835 IEC958/HDMI
Hardware device with all software conversions
default:CARD=Device
USB PnP Sound Device, USB Audio
Default Audio Device
sysdefault:CARD=Device
USB PnP Sound Device, USB Audio
Default Audio Device
front:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
Front speakers
surround21:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
Direct sample mixing device
dsnoop:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
Direct sample snooping device
hw:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
Direct hardware device without any conversions
plughw:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
Hardware device with all software conversions
Regards,
Kent
Posts: 13,350
Threads: 302
Joined: Mar 2018
Reputation:
538
10-18-2018, 01:03 PM
(This post was last modified: 10-18-2018, 01:07 PM by Tim Curtis.
Edit Reason: eta
)
(10-18-2018, 05:52 AM)rudyhov Wrote: No iam using a small USB sound card.
Like this:
The log output shows that card 0 (On-board audio) has been configured in MPD config.
Code: 20181017 162436 worker: ALSA card number (0)
20181017 162436 worker: Audio output (On-board audio device)
20181017 162436 worker: ALSA mixer name (Speaker)
Card 0 is the Pi on-board analog/HDMI out
Card 1 would be USB audio device
If its a USB device then open MPD config screen and set Audio device to "USB audio device" then APPLY.
Menu, Configure, System
Menu, About, View guide
Posts: 6
Threads: 2
Joined: Oct 2018
Reputation:
0
It doesn't show this USB device in the web UI, only my on board audio, can I also configure this via SSH?
"Gewoon boef man" - Boef
Posts: 13,350
Threads: 302
Joined: Mar 2018
Reputation:
538
On the MPD config screen if "USB audio device" is not listed in the Audio device dropdown it means that Linux was not able to recognize / configure the USB audio device for some reason.
USB audio devices are automatically managed by Linux. Linux either recognizes and configures the device or it fails. I'm not aware of any SSH methods to force configuration.
|