[NOT RECOMENDED!] Plugin and Tweaks Adventures on Buster Betas

  • Installed Volumiobuster-3.051-2021-03-06-pi.img
  • Set audio output to headphones
  • Copied mp3 over to internal memory
  • Played mp3 OK
  • Copied over latest plugin from @balbuze zip
  • Installed plugin
  • Enabled plugin
  • Configured plugin: custom CAVA alsa,hw:Loopback,1 and changed OLED screen type
  • Saved - screen works
  • Hit play button and received an error message

Error Failed to open "alsa" (alsa); Error opening ALSA device "volumio"; snd_pcm_hw_params_set_buffer_time_near() failed: Invalid argument

  • Disabled plugin
  • Played mp3 OK
  • Enabled plugin
  • Tried to play mp3 but it will not play
  • Restarted device
  • Tried to play mp3 but get

Error Failed to open "alsa" (alsa); Error opening ALSA device "volumio"; snd_pcm_hw_params_set_buffer_time_near() failed: Invalid argument

@supercrab
weird. Can you share /etc/asound.conf?
what aplay -L returns?
my asound.conf

cat /etc/asound.conf 
pcm.!default {
    type             copy
    slave.pcm       "volumio"
}

pcm.volumio {
    type             copy
    slave.pcm       "volumioalsa"
}


pcm.volumioalsa {
  type plug
  route_policy "duplicate"
  slave.channels 4
  slave.format "unchanged"
  slave.rate "unchanged"

  slave.pcm {
    type multi;

    slaves.a.pcm postmalsa
    slaves.a.channels 2;

    slaves.b.pcm reformat
    slaves.b.channels 2;

    bindings.0.slave a;
    bindings.0.channel 0;
    bindings.1.slave a;
    bindings.1.channel 1;

    bindings.2.slave b
    bindings.2.channel 0
    bindings.3.slave b
    bindings.3.channel 1
    }
}

pcm.reformat {
  type plug 
slave {
    pcm "toLoopback"
    format "S16_LE" 
    rate 44100 
    channels 2
  }
}

pcm.toLoopback {
  type hw
  card 'Loopback'
}

pcm.postmalsa {
  type copy
  slave.pcm "postalsa"
}

pcm.postalsa {
    type             copy
    slave.pcm       "volumioOutput"
}


# There is always a plug before the hardware to be safe
pcm.volumioOutput {
    type plug
    slave.pcm "volumioHw"
}

pcm.volumioHw {
    type hw
    card "Headphones"
}

edit : please update to v3.054

a problem I see, after a boot, before playing, a clock with a wrong hour is displayed, no IP adress. Maybe the trick is to delayed (few seconds) the display when volumio boot
When disabling the plugin, the display remains on , but stuck

I have observed that when disable or enable mpd oled or peppy I hear some cracks in speakers. I think it is with pepy but I will check…

I just noticed I’m not on v3.054 - I’ll upgrade to that version. I thought I was on that version.

\etc\asounc.conf

pcm.!default {
    type             copy
    slave.pcm       "volumio"
}

pcm.volumio {
    type             copy
    slave.pcm       "volumioalsa"
}


pcm.volumioalsa {
  type plug
  route_policy "duplicate"
  slave.channels 4
  slave.format "unchanged"
  slave.rate "unchanged"

  slave.pcm {
    type multi;

    slaves.a.pcm postmalsa
    slaves.a.channels 2;

    slaves.b.pcm reformat
    slaves.b.channels 2;

    bindings.0.slave a;
    bindings.0.channel 0;
    bindings.1.slave a;
    bindings.1.channel 1;

    bindings.2.slave b
    bindings.2.channel 0
    bindings.3.slave b
    bindings.3.channel 1
    }
}

pcm.reformat {
  type plug 
slave {
    pcm "toLoopback"
    format "S16_LE" 
    rate 44100 
    channels 2
  }
}

pcm.toLoopback {
  type hw
  card 'Loopback'
}

pcm.postmalsa {
  type copy
  slave.pcm "postalsa"
}

pcm.postalsa {
    type             copy
    slave.pcm       "volumioOutput"
}


# There is always a plug before the hardware to be safe
pcm.volumioOutput {
    type plug
    slave.pcm "volumioHw"
}

pcm.volumioHw {
    type hw
    card "Headphones"
}

aplay -L

volumio@volumio3:~$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
jack
    JACK Audio Connection Kit
pulse
    PulseAudio Sound Server
default
    Playback/recording through the PulseAudio sound server
volumio
volumioalsa
reformat
toLoopback
postmalsa
postalsa
volumioOutput
volumioHw
sysdefault:CARD=b1
    bcm2835 HDMI 1, bcm2835 HDMI 1
    Default Audio Device
dmix:CARD=b1,DEV=0
    bcm2835 HDMI 1, bcm2835 HDMI 1
    Direct sample mixing device
dsnoop:CARD=b1,DEV=0
    bcm2835 HDMI 1, bcm2835 HDMI 1
    Direct sample snooping device
hw:CARD=b1,DEV=0
    bcm2835 HDMI 1, bcm2835 HDMI 1
    Direct hardware device without any conversions
plughw:CARD=b1,DEV=0
    bcm2835 HDMI 1, bcm2835 HDMI 1
    Hardware device with all software conversions
usbstream:CARD=b1
    bcm2835 HDMI 1
    USB Stream Output
sysdefault:CARD=Headphones
    bcm2835 Headphones, bcm2835 Headphones
    Default Audio Device
dmix:CARD=Headphones,DEV=0
    bcm2835 Headphones, bcm2835 Headphones
    Direct sample mixing device
dsnoop:CARD=Headphones,DEV=0
    bcm2835 Headphones, bcm2835 Headphones
    Direct sample snooping device
hw:CARD=Headphones,DEV=0
    bcm2835 Headphones, bcm2835 Headphones
    Direct hardware device without any conversions
plughw:CARD=Headphones,DEV=0
    bcm2835 Headphones, bcm2835 Headphones
    Hardware device with all software conversions
usbstream:CARD=Headphones
    bcm2835 Headphones
    USB Stream Output
sysdefault:CARD=Loopback
    Loopback, Loopback PCM
    Default Audio Device
front:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    Front speakers
surround21:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
dmix:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    Direct sample mixing device
dmix:CARD=Loopback,DEV=1
    Loopback, Loopback PCM
    Direct sample mixing device
dsnoop:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    Direct sample snooping device
dsnoop:CARD=Loopback,DEV=1
    Loopback, Loopback PCM
    Direct sample snooping device
hw:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    Direct hardware device without any conversions
hw:CARD=Loopback,DEV=1
    Loopback, Loopback PCM
    Direct hardware device without any conversions
plughw:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    Hardware device with all software conversions
plughw:CARD=Loopback,DEV=1
    Loopback, Loopback PCM
    Hardware device with all software conversions
usbstream:CARD=Loopback
    Loopback
    USB Stream Output

I can’t find the download link for 3.054 :frowning:

I’m looking at this page for the beta:

hum, and it doesn’t work? asound seems correct.
To update, go to IP/dev as described here : System updates - Volumio Documentation

3.051 is the latest version for me?

Enter in test mode from, volumioip/dev then go to system update and do the update. Or a factory reset if integrity check fails and try again.

have you enable test mode as explained in the link above ?(scroll down)

I have now! I didn’t know about test mode, upgrading now. Exciting…

1 Like

The error message when playing mp3s has gone but the analyser still doesnt work. :frowning:

I have noticed that when using spotify mpd oled does not show bit rate in upper right corner like on we radio. On qobuz it was shown when I had s subscription on volumio2

yes, you’re right. II tested Spotify and Spotify connect ans spectrum is working fine though :grinning:

1 Like

Pls give me a link to install the spotify connect.

1 Like

from my repo : https://github.com/balbuze/volumio-plugins/raw/alsa_modular/plugins/music_service/volspotconnect2/volspotconnect2.zip

Because last time when I had install, it was not working and astephy said to add some code… But I will instalk it again. Thanks

Bah :’(

No bit rate is probably because spotify does not use MPD.
Bitrate info comes from MPD.

Then but why spectrum can be shown? I know that in volumio2 the spectrum is not shown because of the specific daeomn used for spotify, but in volumio3 the spectrum is shown with this alsa implementation