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.
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.
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.
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.