Audio

CM4 speaker enable: devterm-audio-patch and GPIO 523

On a CM4 the speaker amplifier is switched on by the devterm-audio-patch package; if it goes quiet, reinstall the package or drive GPIO 523 high from rc.local.

Compatibility
CM4
Difficulty
Easy
Status
Available
Author
Minaz
Added
Source
ClockworkPi forum

What it takes

  • Config change

Difficulty 1 of 3 — easy.

Details

Minaz's speakers died after a Kodi/VLC install while the headphone jack kept working; Rex's fix was sudo apt reinstall devterm-audio-patch and a reboot, which another owner confirmed. The package is what raises the amplifier enable line at boot.

The manual equivalent, from libbkmz's CM5 thread: echo 523 > /sys/class/gpio/export, set its direction to out and its value to 1, run from /etc/rc.local — useful on images without the ClockworkPi packages. On the CM5 the same pin is GPIO 580 and the audio also needs a dtoverlay; see the CM5 entry.

Open at Forum thread
  • audio
  • speaker
  • CM4
  • GPIO

← Back to Audio