Thank you for your donation!


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


Instruction Guide 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi
Hi Paul

It sounds like you are doing everything correctly. Use the instructions/patch from the mpd_oled directory to configure Moode to set up the copy of the audion. In the mpd_oled_oled directory (mpd_oled_oled was meant to be mpd_oled_old!) just step back through the commit numbers, and when you find one that works set up your options and run the install.sh script. Your next test will be 

Code:
cd mpd_oled_oled
make clean
git checkout 2eed63d
PLAYER=MOODE make

I think though, that if this version (the last before I introduced command line options for SPI) doesn't work you then may be out of luck, as I can't think of any recent-ish changes before this that affect your display. (Also, if you go back beyond the release date of Moode 6 then the mpd_oled build will probably not complete.)

Adrian.
Reply
Hello Adrian

Thank you for the additional info. Unfortunately that didn't work either. I had had a beer or two when i was doing it so might have done it incorrectly. I'll have to retry it with a more clear head.
In my first post i said that i'd made a backup and left it in work. It turns out I didn't save the backup to the work server but to the computer i've been sent home with. Happy days!
I restored the backup, extracted the mpd_oled directory and copied it to a fresh install of Moode. After installing Cava and doing the pipe bits, it works!!
The backup is from the 270220 and was from a fresh install of moode + mpd_oled on that day.
So maybe the checkout - d964414 is the one to use?
I'll have more of a play with github and see if it works but right now i'm loving watching the GE bouncing around and the track info scrolling.

Thank you
Paul
Reply
Hi Paul

Good that you have something working! You can find out the commit number (the start of this gives the number listed at github) of the working version by changing to the mpd_oled directory of the working version and running

Code:
git log | head -n 1

Adrian.
Reply
Hello Adrian

Looks like that is the checkout I should use.
Code:
git log | head -n 1
commit d9644140ac99f76e1ebb87530e8cf117f5aa4e77



Thank you for your help with this.

Paul
Reply
used this code from Adrian to ceate asound.conf
added /etc/modules loop command... and restart mpd...

loopback works great, cava is working also with stream airplay/spotify ect.. but no more audio output on 3.5 jack RPi board... 
maybe need DAC board on i2s ?? 

Code:
pcm.!hw {
       @args [ CARD DEV SUBDEV ]
       @args.CARD {
               type string
               default {
                       @func getenv
                       vars [
                               ALSA_PCM_CARD
                               ALSA_CARD
                       ]
                       default {
                               @func refer
                               name defaults.pcm.card
                       }
               }
       }
       @args.DEV {
               type integer
               default {
                       @func igetenv
                       vars [
                               ALSA_PCM_DEVICE
                       ]
                       default {
                               @func refer
                               name defaults.pcm.device
                       }
               }
       }
       @args.SUBDEV {
               type integer
               default {
                       @func refer
                       name defaults.pcm.subdevice
               }
       }

       type plug
       slave.pcm {
               type multi
               slaves {
                       a { channels 2 pcm {
                               type hw
                               card $CARD
                               device $DEV
                               subdevice $SUBDEV
                       }
                       }  # the real device

                       b { channels 2 pcm "plughw:Loopback,0" }  # loopback driver
               }
               bindings {
                       0 { slave a channel 0 }
                       1 { slave a channel 1 }
                       2 { slave b channel 0 }
                       3 { slave b channel 1 }
               }
       }
       ttable [
               [ 1 0 1 0 ]   # left  -> a.left,  b.left
               [ 0 1 0 1 ]   # right -> a.right, b.right
       ]
       hint {
               show {
                       @func refer
                       name defaults.namehint.extended
               }
               description "Direct hardware device without any conversions"
       }
}
Reply
Hi Fabio

Post the output of
Code:
aplay -l
Adrian.
Reply
(04-13-2020, 04:48 PM)adrii Wrote: Hi Fabio

Post the output of
Code:
aplay -l
Adrian.

Code:
pi@moode:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
 Subdevices: 6/8
 Subdevice #0: subdevice #0
 Subdevice #1: subdevice #1
 Subdevice #2: subdevice #2
 Subdevice #3: subdevice #3
 Subdevice #4: subdevice #4
 Subdevice #5: subdevice #5
 Subdevice #6: subdevice #6
 Subdevice #7: subdevice #7
card 0: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
 Subdevices: 8/8
 Subdevice #0: subdevice #0
 Subdevice #1: subdevice #1
 Subdevice #2: subdevice #2
 Subdevice #3: subdevice #3
 Subdevice #4: subdevice #4
 Subdevice #5: subdevice #5
 Subdevice #6: subdevice #6
 Subdevice #7: subdevice #7
card 1: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
 Subdevices: 7/7
 Subdevice #0: subdevice #0
 Subdevice #1: subdevice #1
 Subdevice #2: subdevice #2
 Subdevice #3: subdevice #3
 Subdevice #4: subdevice #4
 Subdevice #5: subdevice #5
 Subdevice #6: subdevice #6
card 1: ALSA [bcm2835 ALSA], device 1: bcm2835 IEC958/HDMI [bcm2835 IEC958/HDMI]
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 1: ALSA [bcm2835 ALSA], device 2: bcm2835 IEC958/HDMI1 [bcm2835 IEC958/HDMI1]
 Subdevices: 1/1
 Subdevice #0: subdevice #0
Reply
The loopback device is being loaded before the onboard sound. You can follow the steps in the following message to make the loopback device load second (i.e.as  card 1)

http://moodeaudio.org/forum/showthread.p...3#pid16193
Reply
added "options snd-aloop index=1" into file /etc/modprobe.d/alsa-base.conf
now MPD have selectable "onboard audio device" but still no audio output and no more spectrum by cava.
Reply
Did you select the onboard audio device and reboot? If you still have no sound then post the output of 'aplay -l'.
Reply


Forum Jump: