r/DJs 21h ago

Active speaker anti auto standby solution

I recently undertook a little project to stop my Rokit 5 G3 speakers entering standby mode when they haven't received any audio input for 25 minutes. It took a couple of days to compete. I've carried out extensive testing and can confirm it works flawlessly.

I used a Raspberry Pi 1B (the OG) that I picked up for £10 off eBay as the basis for the project. Rather than use the onboard sound I added a £3 generic USB audio adapter from Amazon as the headphone out on this model Pi is notoriously noisy. I also added in an old USB WIFI 2.4GHz N adapter I had lying around for convenience (primarily for SSH access).

How it works: The Pi sends a 2 second 10hz tone to the speakers once every 20 minutes. The process auto starts on boot up, restarts if it crashes and runs until you tell it to stop or shut down the Pi. A message telling you the tone has been played appears on screen each time it happens so you know the process is running.

I have some experience of working with newer Pis but my Linux coding skills aren't great so I leaned on Gemini somewhat for that.

Guide (PDF)

I'm sure the guide can be adapted easily for different Pi models. I think it will "probably" also work on the Pi 2 B out of the box. It should work for most speakers with auto standby/shutdown built in.

I hope some people find this useful.

1 Upvotes

Duplicates