Where is the source for the
devterm-audio-patch package? I cannot see it on GitHub. There’s a reference to it in the apt repo under the ClockworkPi organisation, and it appears several times in the wiki, but there’s no obvious source repository.
I’ve made two local modifications, both minor:
/etc/systemd/system/devterm-audio-patch.serviceto run python3 instead of python2. Python 2.x is obsolete and there’s no reason for it to be part of the running system here.
- remove the redundant comment at the top of
/usr/local/bin/audio_3.5_patch.py(referring to Raspberry Pi fan control!)
I’m not convinced that what it is doing is implemented “the right way” - it looks like it checks a GPIO pin every second to see if the 3.5mm headphone port has something connected and to disable the speaker if so, but polling every second is a bit ugly…