Unable to force sound to headphone jack RPI 4

Having issues with your DietPi installation or found a bug? Post it here.
gofireworks
Posts: 7
Joined: Wed Jul 29, 2020 3:17 am

Re: Unable to force sound to headphone jack RPI 4

Post by gofireworks »

I switched to root user with sudo su, and then entered the following commands

Code: Select all

G_CONFIG_INJECT 'hdmi_drive:0=' 'hdmi_drive:0=1' /boot/config.txt
G_CONFIG_INJECT 'hdmi_drive:1=' 'hdmi_drive:1=1' /boot/config.txt
reboot
cat /proc/asound/cards
I had to switch the backticks on hdmi_drive:0=1 to single quotes because I was getting an error of bash: hdmi_drive:0=1: command not found.

The output of cat /proc/asound/cards doesn't seem to have changed, but the output is here

Code: Select all

root@Kodi:/home/joshl# cat /proc/asound/cards
 0 [b1             ]: bcm2835_hdmi - bcm2835 HDMI 1
                      bcm2835 HDMI 1
 1 [Headphones     ]: bcm2835_headphonbcm2835 Headphones - bcm2835 Headphones
                      bcm2835 Headphones
Post Reply