Following is a repost of a github posting from yesterday
Hi,
I have a raspberry pi connected to a NFC reader, with mpc-mopidy-spotify installed and working.
The NFC reader reads in the spotify URI from a NFC card, and sends it to MPC to play the specific song.
With the command ‘mpc status’, I can see that the specific song is playing with volume set to 100%.
I have raspi-config set to force audio output to the 3.5mm ear jack, and have a speaker connected to the raspberry-pi’s ear jack. The speaker successfully outputs sound when I play youtube, but there is no sound coming from the speaker when MPC is running.
Following is my mopidy.conf :
[audio] #mixer = softwar #mixer_volume = 80 #output = autoaudiosink device=hw:1,0 #buffer_time =
When I run the following command, I can hear an audible tone:
$ gst-launch-1.0 audiotestsrc ! audioresample ! autoaudiosink
My MPC/Mopidy-Spotify is all up to date.
Furthermore, following is the output from the command “sudo mopidyctl config”
Are you running as a user or as a service?
The section from mopidy.conf above shows the relevant sections with # next to them which would mean they are not used, so none of the items on there are on your mopidyctl config.
Perhaps try amending the relevant mopidy.conf depending on how you are using mopidy.
Do you have an hdmi lead plugged in - if the monitor or tv is sound enabled does the sound come through there?
If you do have hdmi cable, try with it removed.
I am running mopidy as a service, and have a monitor connected to raspberry pi via HDMI cable. When I plug in the 3.5mm jack to the monitor’s 3.5mm plug, it works perfectly - magic!
However, even with the HDMI cable removed, the song does not output from the raspberry pi via 3.5mm plug.
How can I force the output to 3.5mm jack? I have forced 3.5mm output via raspi-config and also edited my mopidy.conf as follows, but the sound is still going through HDMI cable.
I would have expected that to stop hdmi output working too but worth checking anyway.
If the above doesn’t work then my guess is that it’s something about how the raspbian gui switches between audio devices. We’ve seen it before where the gui sets per-user control files which override the system settings. Can you compare the contents of /etc/asound.conf with /home/pi/.asoundrc ?
Hi, I know this isn’t really helpful but I think what your doing with NFC is super cool. I’m really curious how you’re doing it, and believe that it could help me with a project I’m working on. also I know someone’s has already said this, but just so I’m contributing in some way those “#” signs shouldn’t be there.
Hi @donghoon-lee - did you ever resolve this issue? I’m encountering a very similar problem: I’m using a Raspberry Pi, running Mopidy as a service but can’t get output from the Pi’s 3.5mm jack.
Thanks!