Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Audio: Way to disable HDMI or set USB as default?
#29
Hi all

I have exactly the same problem, and I have found a way to disable hdmi audio. I have RPI 5, if you have other version some things might change. I did not want to disable hdmi video.

1) Backup your config file
Code:
sudo cp /boot/firmware/config.txt /boot/firmware/save_config.txt

2) open the file /boot/firmware/config.txt via some editor and change manually
Code:
dtoverlay=vc4-kms-v3d    ->  dtoverlay=vc4-kms-v3d,noaudio=on  #disable hdmi audio
hdmi_force_edid_audio=1  ->  hdmi_force_edid_audio=0           #disable hdmi audio in case your tv/monitor ask specifically for it via EDID
dtparam=audio=on         ->  dtparam=audio=off                 #disable on board related audio if any

3) Or use the followings on the ssh console
Code:
sudo sed -i -e 's/dtoverlay=vc4-kms-v3d/dtoverlay=vc4-kms-v3d,noaudio=on/' /boot/firmware/config.txt
sudo sed -i -e 's/hdmi_force_edid_audio=1/hdmi_force_edid_audio=0/' /boot/firmware/config.txt
sudo sed -i -e 's/dtparam=audio=on/dtparam=audio=off/' /boot/firmware/config.txt

4) Reboot

Code:
sudo reboot


Note that update of moOde might change things later, since the file is managed by it. So we might have to execute the steps again after an update. It would be beautiful if moOde could disable hdmi audio via some config.

By the way another more robust solution is to use card names instead of ALSA index'es but it needs to be fiddled with mpd conf and renderer's php files. Mpd can be handled with custom.conf file but others are hard coded to _audioout and that file is also overwritten.

Regards, and thanks for the phenomenal work on moOde.

@li
Reply


Messages In This Thread
RE: Audio: Way to disable HDMI or set USB as default? - by hatenick - 04-12-2025, 01:09 PM

Forum Jump: