Skip to content

Instantly share code, notes, and snippets.

@yorkxin
Last active June 9, 2020 19:44
Show Gist options
  • Save yorkxin/8374084acf0b7b67eae6b59919def592 to your computer and use it in GitHub Desktop.
Save yorkxin/8374084acf0b7b67eae6b59919def592 to your computer and use it in GitHub Desktop.
Raspberry Pi with HDMI Switch

For some HDMI switches (e.g. ATEN), to make HDMI hot plugging work well with Raspberry Pi, set the following in /boot/config.txt:

hdmi_force_hotplug=1 # always output HDMI even if not plugged in
hdmi_drive=2         # always output audio to HDMI
hdmi_group=1         # use CET mode (compatible with TV)
hdmi_mode=16         # use 1080p; otherwise it may switch to SD resolution

References:

@seriussoft
Copy link

This helped when nothing else was doing the job. Thanks! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment