CM5 speaker static got you down?

So I’ve had enough of the static from the speakers when the battery is low. I was dealing with it manually but I just put a script together and packaged it up for everyone to use. It even has a App Menu entry in Debian under System Tools.

Now this script doesn’t fix the issue but shoves it deep down where we hide our feelings. :stuck_out_tongue:

This script will stop the audio service that detects headphones then routes the audio into the headphone port. The speakers are now disabled and the audio and static are on the headphone jack.

Everything will be re-enabled on reboot.

The package is called clockworkpi-audio-disable
To install run sudo apt update && sudo apt install clockworkpi-audio-disable for any of my Debian based images.

Like I said it’s not a fix, just a bandaid. It is better then hearing the static though.

Questions or Comments post them below!

12 Likes

Question: Have you tried using a bigger hammer?

And excellent work as always :wink:

1 Like

Just tested with a bigger hammer, it did stop the static but that method… Let’s just say it introduced some new bugs. :joy:

2 Likes

Why not just charge the battery? :wink:

1 Like

The reason I have it in the first place is to use it on the go outside working where I don’t have access to power. In those situations I don’t need audio.

Is there a separate command to run this script? I installed it but the static is still there

there is a menu entry or use the command audio-disable

2 Likes

thanks Rex, this static noise is driving me crazy sometimes. Why is it happening anyway?

1 Like

not 100% sure but it’s a power problem, well lack of power.

it cries when hungry :pleading_face:

2 Likes

More than likely the buck/boost converter to boost the voltage to 5v to run the pi, is working harder when the battery voltage is low. This will create a lot of high frequency noise throughout the PCB.

try this: Audio noise when low power workaround
fixed for me.

1 Like