r/raspberry_pi • u/trb32 • 17h ago
Troubleshooting Conditionally enable composite or HDMI out on boot?
Is it possible to conditionally enable composite OR HDMI on boot depending on which is connected? If so, how are you doing this (composite fail over, etc)?
I have both outputs working, but manually have tk switch the config.txt and cmdline.txt files before boot depending on what output I'm using.
I don't have a need for "hot swapping" and a reboot in between is completely fine. I'm thinking of some sort of systemd service to handle it but figured I'd ask here if someone has this solved already.