Amplifier Switch Plugin

Try installing the beta version of my gpio_control plugin, that supports Pi5 :slight_smile:

Try installing GPIO_control plulugin but I have no dac HAT on GPIO, your plugins maybe effected to external hardware (DAC, Amplifier.) ?

I have no DAC HAT either :slight_smile:

And now the Amplifier Switch plugin dissapered on Plugins Management.

Thats because you have it installed

No Sir, after failing to active your plugin, I reinstalled Volumio now I have no Amplifier Switch plugin in my Pi5.

Oh, in that case. I’m not sure what has happened :confused:. Installing a plugin shouldn’t remove another one :thinking:

Thank you for your reply. And now it disappeared by itself, the problem is belong to Volumio.

I have the beta version of volumio. Installed plugin visible Enabled but inactive.
raspberry pi 4
volumio 3.766

info: Enabling plugin ampswitch
info: Loading plugin “ampswitch”…
info: Applying required configuration parameters for plugin ampswitch
info: PLUGIN START: ampswitch
info: Error: Error: EINVAL: invalid argument, write
export_store: invalid GPIO 27

Hey @SanKen,

I don’t think plug-in for kernel 6.6.56 on which beta Volumio OS 3.766 is ready yet:

Kind Regards,

Maybe someone has some skills to fix it? I’d be happy to test it.

My plugin gpio_control is being reviewed and should be made official soon. V1.10 of the plugin that’s in beta can still be installed.

Hi Volumio Community,

I’m using Volumio on a Raspberry Pi with a DAC connected via an Amplifier Switch. The issue I’m facing is that when I press “Play,” I get an error because the DAC isn’t ready (it doesn’t initialize quickly enough). I have to press “Play” again, and then it works fine.

My setup:

  • Raspberry Pi with Volumio (latest version)
  • DAC connected via an Amplifier Switch
  • Amplifier Switch turns on when “Play” is pressed

What I need:

  1. The DAC to initialize properly before Volumio starts sending audio.
  2. A 2-second delay in playback after the Amplifier Switch is turned on.

I’ve explored the API and WebSocket options, but I’m looking for a way to delay the playback itself without affecting other functionality. Does anyone know where in the code I can intercept the “Play” command before audio actually starts? Or are there any other suggestions to solve this issue?

Thank you in advance for your help!

You can install FusionDsp and set a delay (even if you don’t use any other effect.

Thank you for the response! This sounds like a simple and effective solution. I will try installing FusionDsp and adjust the delay as suggested. If I encounter any issues, I’ll reach out again. Thanks again for the help!

Thank you for the suggestion to install FusionDsp and set a delay. I tried this, but unfortunately, it didn’t solve the issue. Even with the delay, it seems that Volumio still calls ALSA before the Raspberry Pi has finished initializing the DAC.

Hi Elbirk!
My solution could be interesting for you?

You could try my plugin gpio control which has a configurable delay?

Thanks for the suggestion! However, I’m looking for something a bit different. I need a delay that doesn’t work on the GPIO pins but instead affects playback or the ALSA call after pressing play. Essentially, it’s the opposite of the delay in GPIO control plugin.

Ah ok! That sounds a bit tricky to do :disappointed_relieved: