Narf03
Posts: 243
Joined: Mon Jun 11, 2012 3:44 pm
Location: Malaysia

Force pi to Analog/Digital output

Wed Nov 21, 2012 8:12 am

Hi all,

Assuming I have all HDMI/composite/3.5mm jack all plug in and the HDMI can take both audio and video. How do i force the Audio/Video to HDMI/Composite/3.5mm jack and disable all auto-detect ?

I did some testing, i manage to force both audio and video to HDMI by putting these setting in /boot/config.txt

Code: Select all

hdmi_safe=1
hdmi_force_edid_audio=1
hdmi_drive=2
how to i do for forcing
[Video -> HDMI][Audio -> 3.5mm jack]

and
[Video -> Composite][Audio -> 3.5mm jack]

thanks.

User avatar
Burngate
Posts: 6536
Joined: Thu Sep 29, 2011 4:34 pm
Location: Berkshire UK Tralfamadore

Re: Force pi to Analog/Digital output

Wed Nov 21, 2012 12:35 pm

http://elinux.org/RPi_config.txt

For [Video -> Composite][Audio -> 3.5mm jack]
hdmi_ignore_hotplug Pretends HDMI hotplug signal is not asserted so it appears a HDMI display is not attached

Code: Select all

hdmi_ignore_hotplug=1 Use composite mode even if HDMI monitor is detected
For [Video -> HDMI][Audio -> 3.5mm jack]
hdmi_drive chooses between HDMI and DVI modes

Code: Select all

hdmi_drive=1 Normal DVI mode (No sound)
hdmi_drive=2 Normal HDMI mode (Sound will be sent if supported and enabled)
- that's the nearest I can find

Narf03
Posts: 243
Joined: Mon Jun 11, 2012 3:44 pm
Location: Malaysia

Re: Force pi to Analog/Digital output

Wed Nov 21, 2012 12:54 pm

Thanks, composite + 3.5mm jack worked.

And for the other, which I want video go hdmi and audio go analog doesn't work.

I use hdmi_drive=1 which is DVI mode, no sound go to both hdmi and analog.

JSAMcFarlane
Posts: 5
Joined: Thu Nov 28, 2013 12:02 am

Re: Force pi to Analog/Digital output

Thu Nov 28, 2013 12:04 am

As suggested here, try:

Code: Select all

hdmi_ignore_edid_audio=1

klricks
Posts: 8429
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA

Re: Force pi to Analog/Digital output

Thu Nov 28, 2013 2:49 pm

For audio do these commands:

Default mode auto sound:
sudo amixer cset numid=3 0

To force sound out the audio jack:
sudo amixer cset numid=3 1

To force sound out with the HDMI:
sudo amixer cset numid=3 2

Note that there is a space before the last number in each command....... numid=3[space]0
Unless specified otherwise my response is based on the latest and fully updated RPi OS Bullseye w/ Desktop OS.

User avatar
Burngate
Posts: 6536
Joined: Thu Sep 29, 2011 4:34 pm
Location: Berkshire UK Tralfamadore

Re: Force pi to Analog/Digital output

Thu Nov 28, 2013 5:16 pm

Wow! 372 days between posts! Is this a record?

texy
Forum Moderator
Forum Moderator
Posts: 5173
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Force pi to Analog/Digital output

Fri Nov 29, 2013 1:49 pm

First post too :o

Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

Return to “General discussion”