Fix black screen in Raspberry Pi with HDMI to VGA adapter

If you use an HDMI to VGA adaptor and get a black screen you may tweak the config.txt to solve the problem.

HDMI-VGA

If you open config.txt you will see that there are plenty of lines commented out that change the behavior of the HDMI output in the Raspberry Pi. This is the configuration that made my Raspberry Pi work OK using an HDMI to VGA adapter at 1920×1080 resolution:

disable_overscan=1
hdmi_group=1
hdmi_mode=16
hdmi_drive=2

hdmi_group defines the HDMI type (Not specifying the group, or setting to 0 will use the preferred group reported by the edid):

  • hdmi_group=1 – CEA
  • hdmi_group=2 – DMT

hdmi_mode defines screen resolution in CEA or DMT format.

hdmi_drive chooses between HDMI and DVI modes:

  • hdmi_drive=1 – Normal DVI mode (No sound)
  • hdmi_drive=2 – Normal HDMI mode (Sound will be sent if supported and enabled)

If you want to know which modes (hdmi_mode) are suported by your screen comment the lines for those 4 options (thus leaving all with their default values), reboot and the run those commands:

For hdmi_group=1 available modes:

sudo /opt/vc/bin/tvservice -m CEA

For hdmi_group=2 available modes:

sudo /opt/vc/bin/tvservice -m DMT

See all available options at http://elinux.org/RPi_config.txt

Source: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=76&t=33477

You might also like

Using screen to leave processes running in a terminal
If you are using an SSH connection and run a command that takes very long to process you can use nohup...
Collada-dom 3D models having black textures bug solution
I used to have a problem with Collada-dom 3D models textures. Some times they were not correctly applied...
TP-Link TL-WN725N version 2 in Raspberry Pi
Version 2 of TP-Link TL-WN725N driver doesn't come by default in Raspbian so it won't work by just plug-ining...
Make Raspbian run from an external USB hard drive or USB memory stick
Raspberry Pi can ONLY boot from the SD Card. If you want to use your Raspberry Pi from an external USB...
Leave a comment ?

8 Comments.

  1. Thanks mate. I looked at 10s of pages and wasted 1-2 hours before i found this post!! thanks.

  2. Thanks man, u saved me a lot of time….

  3. Thank you, was pulling my hair out! All other advice was useless.

  4. I got this running…but I get no sound. Any tips?

    Thanks in advance!

    J

  5. Thanks mate worked perfectly !!

Leave a Comment

Trackbacks and Pingbacks: