How to fix a blank screen when booting RetroPie

How To Fix A Blank Screen When Booting RetroPie

Booting up RetroPie and being presented with a blank screen is an issue I have encountered on a number of occasions. Unfortunately finding a solution proved to be a little more troublesome than I expected, so I decided to write this article in case anyone else finds themselves in this unfortunate predicament.

Depending on the display you are using to run RetroPie (and the fact that you’ve arrived at this page) it is entirely possible that you, like me, have encountered a blank screen when booting up. To be more specific what is actually occurring is your display is not detecting the signal from the Raspberry Pi and therefore is not showing any image on the screen. Instead you are seeing a black screen because the display you are using doesn’t think there is anything to show. Here we will investigate this infuriating issue in more detail and explore a few possible solutions.

Why is this happening?

The reason this issue is occuring is most likely down to your display and not your Raspberry Pi or RetroPie, however when troubleshooting it is important to eliminate the simple solutions first before getting your hands really dirty and delving into the backend code.

It is possible that the issue may have developed during software installation. Perhaps the RetroPie files became corrupted when they were downloaded, or maybe the fault occurred when you burnt RetroPie onto the micro SD card. Either way, to make sure that none of these were at fault the best thing to do is repeat the processes you performed earlier. Download RetroPie again from the RetroPie website and then Flash the image to your micro SD card. If the process was corrupted before it is likely that going through it again will fix the issue and you should be able to boot up RetroPie without any further issues.

If the problem still persists you can rest in the knowledge that it is not your software that is causing the issue. Eliminating this possibility will allow you now to concentrate on other potential issues such as your display.

Firstly, to determine whether or not it is your display that is causing the issue the best thing to do is to try your setup with another display. If the issue occurred while using a normal TV it would be advisable to try using a computer monitor. When my issue originally occurred the display I was using was a Sony Bravia KDL-32S2510 which was bought way back in 2005. Switching the display to a Dell computer monitor identified to me that it was my TV that was the issue as there were no problems running RetroPie when using the monitor.

How To Resolve the Blank Screen Issue

So, you have determined that it is your display that is causing the issue. OK, there are a number of possible solutions to this issue. Not all will be successful but hopefully at least one will be.

All these solutions will lie in amending the settings within the config.txt file, which can be found in the route of your micro SD card. This may sound a bit intimidating at first but it is really very simple. It is basically a trial and error process to determine which settings work best for your display.

First off, lets gain access to the config.txt file by following the steps below.

  1. Insert the micro SD card into your computer
  2. Using a file navigation application such as Windows Explorer, or Finder on a Mac, navigate to the micro SD card.
  3. In the route of the micro SD card you will find the config.txt file. Double click on it to open it.
  4. You can now make any amendments you need, just remember to save the changes before you exit the application.
RetroPie config file
The config.txt file is where you can amend many visual settings in RetroPie

The first thing we need to do is to get RetroPie working on your display. The surest way to do this is to enable safe mode in the config.txt file. To do this, at around line 4 you will see the code below –

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

Simply delete the hashtag that precedes ‘hdmi_safe=1’ so the text should now read as below. This is what’s called uncommenting and it allows the computer to see the line of code. Replacing the hashtag will comment the line out again meaning the computer will skip it.

# uncomment if you get no picture on HDMI for a default "safe" mode
hdmi_safe=1

Now save the file, remove the micro SD card from your computer and insert it back into the Raspberry Pi. Boot up the Raspberry Pi to make sure that you now see the RetroPie loading screen and the subsequent menu screen.

When you enable safe mode you are basically telling RetroPie to render to it’s lowest possible settings. In other words the settings you have configured are the most basic to display and if they are not now showing on your display, then you should probably look at upgrading your device.

When you do see an image on your display, you will probably notice that it is at a very low resolution (640×480 to be precise). I know it looks bad, but this is ok for the time being. We now know that your display is capable of rendering RetroPie in some way. What we now need to do now is work out the best resolution that your display is capable of rendering.

How To Work Out The Best Quality For Your Display

As I mentioned before, this will be a process of trial and error. When you activated safe mode you basically set up a specific configuration to the settings you will now be experimenting with. To put it another way activating safe mode is the same as the configuration below:

hdmi_force_hotplug=1
hdmi_drive=2
hdmi_group=1
hdmi_mode=1

So, the next thing you need to do is to turn off safe mode by reverting your previous action and commenting out the line again.

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

Next search the config.txt file for the line that reads #hdmi_force_hotplug=1. When uncommented this line tells the Raspberry Pi that an HDMI device is always attached. Uncomment this line by deleting the hashtag and try booting the Raspberry Pi again.

If the above test does not work it may be because the HDMI signal coming from the Pi is too weak. Thankfully there is an option available to boost it. In the config.txt file find the line that reads #config_hdmi_boost=4. Uncomment this line and increase the value to 9 as seen below.

config_hdmi_boost=9

This is the highest value you can set this option to, and it basically increases the strength of the hdmi signal.

If RetroPie is still not displaying for you after this test, don’t worry. There are a few more avenues to explore before we give up, and this next solution is more likely to be successful as it worked for me.

With the hdmi_force_hotplug=1 line still uncommented (no hashtag at the beginning of the line) search through the rest of the config.txt file to find the lines of code below:

#hdmi_drive=2
#hdmi_group=1
#hdmi_mode=1

Uncomment these lines of code. You may notice that your config.txt file is now configured to run as it did in safe mode (as mentioned earlier in this article). This is correct but we will be making a few more amendments before we test again. The next amendments, however will depend on your setup.

The hdmi_group specifies whether your display is DMT type (a computer monitor) or CEA type (a TV) so you will need to change the value accordingly. I needed to connect up to a TV so I configured the setting to 1. If you are using a computer monitor you should set hdmi_group to 2.

If you are using a TV

hdmi_group=1

If you are using a computer monitor

hdmi_group=2

The next setting you will need to configure is the hdmi_mode which specifies the resolution of your display. There are a plethora of options available here so the best thing to do is to select the one that corresponds best to your display.

Below you will see two tables which outline a few of the different options available to you. These tables are just a highlight of the options available and feature those settings most commonly used. If none of these match the configuration of your display you can view the full tables in the appendix at the end of this article.

hdmi_modeResolutionFrequencyScreen AspectComments
3480p60Hz16:9
4720p60Hz16:9
51080i60Hz16:9
161080p60Hz16:9
19720p50Hz16:9
201080i50Hz16:9
311080p50Hz16:9
391080i50Hz16:9reduced blanking
Common settings for TVs
hdmi_modeResolutionFrequencyScreen AspectComments
231280×76860Hz15:9
241280×76875Hz15:9
251280×76885Hz15:9
281280×80060Hz16:10
291280×80075Hz16:10
301280×80085Hz16:10
351280×102460Hz5:4
361280×102475Hz5:4
371280×102485Hz5:4
391360×76860Hz16:9
471440×90060Hz16:10
481440×90075Hz16:10
491440×90085Hz16:10
581680×105060Hz16:10
591680×105075Hz16:10
601680×105085Hz16:10
691920×120060Hz16:10
701920×120075Hz16:10
772560×160060Hz16:10
821920×108060Hz16:91080p
851280×72060Hz16:9720p
Common settings for computer monitors

Once you know which setting best suits your display you can enter that into the code. For me my TVs optimum resolution was 720p with a refresh rate of 60Hz, so the best setting for me was 4.

hdmi_mode=4

My Sony Bravia is an HD ready TV theoretically capable of rendering a resolution of 1080i, however when I configured the code to that setting (hdmi_mode=5) I got the same results as I had previously… a blank screen. Reducing the resolution to 720p (hdmi_mode=4) seemed to do the trick.

How To Remove The Black Border From Your Display

Ok, so you’ve now determined the optimum resolution which your display can render. Fantastic! This may be all you need to do. However in some cases there is the presense of an unsightly black border around your screen. If you are seeing a similar issue don’t worry, it should be easy to resolve.

The first thing to try here is to amend the disable_overscan setting in the config.txt file. Search for the line of code (this should be line 10) that reads #disable_overscan=0 and uncomment it by removing the hashtag as shown below:

disable_overscan=0

This change will disable the default values of overscan that is set by the Raspberry Pi firmware and should theoretically remove the black borders.

If this method does not work another option is to play with the overscan_left, overscan_right, overscan_top and overscan_bottom settings. The value on all four of these settings specifies the number of pixels to add or remove to the firmware default value of overscan. Using this method to remove my black borders, my code was configured as below:

overscan_left=-30
overscan_right=-30
overscan_top=-35
overscan_bottom=-35

If you are using this method to correct the black border, as opposed to the disable_overscan method, make sure the disable_overscan line is commented out as demonstrated below:

#disable_overscan=1

Related Questions

Where can I find more information on this issue? Hopefully I have manged to answer all your questions and resolve your issue, however if you feel the need to investigate this issue deeper you can find some valuable information in the sites listed below:

Appendix

Below you will find the full version of the highlight tables referenced earlier in this article.

hdmi_modeResolutionFrequencyScreen AspectComments
1VGA (640×480)60Hz4:3
2480p60Hz4:3
3480p60Hz16:9
4720p60Hz16:9
51080i60Hz16:9
6480i60Hz4:3
7480i60Hz16:9
8240p60Hz4:3
9240p60Hz16:9
10480i60Hz4:3pixel quadrupling
11480i60Hz16:9pixel quadrupling
12240p60Hz4:3pixel quadrupling
13240p60Hz16:9pixel quadrupling
14480p60Hz4:3pixel doubling
15480p60Hz16:9pixel doubling
161080p60Hz16:9
17576p50Hz4:3
18576p50Hz16:9
19720p50Hz16:9
201080i50Hz16:9
21576i50Hz4:3
22576i50Hz16:9
23288p50Hz4:3
24288p50Hz16:9
25576i50Hz4:3pixel quadrupling
26576i50Hz16:9pixel quadrupling
27288p50Hz4:3pixel quadrupling
28288p50Hz16:9pixel quadrupling
29576p50Hz4:3pixel doubling
30576p50Hz16:9pixel doubling
311080p50Hz16:9
321080p24Hz16:9
331080p25Hz16:9
341080p30Hz16:9
35480p60Hz4:3pixel quadrupling
36480p60Hz16:9pixel quadrupling
37576p50Hz4:3pixel quadrupling
38576p50Hz16:9pixel quadrupling
391080i50Hz16:9reduced blanking
401080i100Hz16:9
41720p100Hz16:9
42576p100Hz4:3
43576p100Hz16:9
44576i100Hz4:3
45576i100Hz16:9
461080i120Hz16:9
47720p120Hz16:9
48480p120Hz4:3
49480p120Hz16:9
50480i120Hz4:3
51480i120Hz16:9
52576p200Hz4:3
53576p200Hz16:9
54576i200Hz4:3
55576i200Hz16:9
56480p240Hz4:3
57480p240Hz16:9
58480i240Hz4:3
59480i240Hz16:9
60720p24Hz16:9
61720p25Hz16:9
62720p30Hz16:9
631080p120Hz16:9
641080p100Hz16:9
65Custom
66720p25Hz64:27Pi 4
67720p30Hz64:27Pi 4
68720p50Hz64:27Pi 4
69720p60Hz64:27Pi 4
70720p100Hz64:27Pi 4
71720p120Hz64:27Pi 4
721080p24Hz64:27Pi 4
731080p25Hz64:27Pi 4
741080p30Hz64:27Pi 4
751080p50Hz64:27Pi 4
761080p60Hz64:27Pi 4
771080p100Hz64:27Pi 4
781080p120Hz64:27Pi 4
791680×72024Hz64:27Pi 4
801680×72025z64:27Pi 4
811680×72030Hz64:27Pi 4
821680×72050Hz64:27Pi 4
831680×72060Hz64:27Pi 4
841680×720100Hz64:27Pi 4
851680×720120Hz64:27Pi 4
862560×72024Hz64:27Pi 4
872560×72025Hz64:27Pi 4
882560×72030Hz64:27Pi 4
892560×72050Hz64:27Pi 4
902560×72060Hz64:27Pi 4
912560×720100Hz64:27Pi 4
922560×720120Hz64:27Pi 4
932160p24Hz16:9Pi 4
942160p25Hz16:9Pi 4
952160p30Hz16:9Pi 4
962160p50Hz16:9Pi 4
972160p60Hz16:9Pi 4
984096×216024Hz256:135Pi 4
994096×216025Hz256:135Pi 4
1004096×216030Hz256:135Pi 4
1014096×216050Hz256:135Pi 4
1024096×216060Hz256:135Pi 4
1032160p24Hz64:27Pi 4
1042160p25Hz64:27Pi 4
1052160p30Hz64:27Pi 4
1062160p50Hz64:27Pi 4
1072160p60Hz64:27Pi 4
The complete list of TV settings
hdmi_modeResolutionFrequencyScreen AspectComments
1640×35085Hz
2640×40085Hz16:10
3720×40085Hz
4640×48060Hz4:3
5640×48072Hz4:3
6640×48075Hz4:3
7640×48085Hz4:3
8800×60056Hz4:3
9800×60060Hz4:3
10800×60072Hz4:3
11800×60075Hz4:3
12800×60085Hz4:3
13800×600120Hz4:3
14848×48060Hz16:9
151024×76843Hz4:3incompatible with the Raspberry Pi
161024×76860Hz4:3
171024×76870Hz4:3
181024×76875Hz4:3
191024×76885Hz4:3
201024×768120Hz4:3
211152×86475Hz4:3
221280×76860Hz15:9reduced blanking
231280×76860Hz15:9
241280×76875Hz15:9
251280×76885Hz15:9
261280×768120Hz15:9reduced blanking
271280×8006016:10reduced blanking
281280×80060Hz16:10
291280×80075Hz16:10
301280×80085Hz16:10
311280×800120Hz16:10reduced blanking
321280×96060Hz4:3
331280×96085Hz4:3
341280×960120Hz4:3reduced blanking
351280×102460Hz5:4
361280×102475Hz5:4
371280×102485Hz5:4
381280×1024120Hz5:4reduced blanking
391360×76860Hz16:9
401360×768120Hz16:9reduced blanking
411400×105060Hz4:3reduced blanking
421400×105060Hz4:3
431400×105075Hz4:3
441400×105085Hz4:3
451400×1050120Hz4:3reduced blanking
461440×90060Hz16:10reduced blanking
471440×90060Hz16:10
481440×90075Hz16:10
491440×90085Hz16:10
501440×900120Hz16:10reduced blanking
511600×120060Hz4:3
521600×120065Hz4:3
531600×120070Hz4:3
541600×120075Hz4:3
551600×120085Hz4:3
561600×1200120Hz4:3reduced blanking
571680×105060Hz16:10reduced blanking
581680×105060Hz16:10
591680×105075Hz16:10
601680×105085Hz16:10
611680×1050120Hz16:10reduced blanking
621792×134460Hz4:3
631792×134475Hz4:3
641792×1344120Hz4:3reduced blanking
651856×139260Hz4:3
661856×139275Hz4:3
671856×1392120Hz4:3reduced blanking
681920×120060Hz16:10reduced blanking
691920×120060Hz16:10
701920×120075Hz16:10
711920×120085Hz16:10
721920×1200120Hz16:10reduced blanking
731920×144060Hz4:3
741920×144075Hz4:3
751920×1440120Hz4:3reduced blanking
762560×160060Hz16:10reduced blanking
772560×160060Hz16:10
782560×160075Hz16:10
792560×160085Hz16:10
802560×1600120Hz16:10reduced blanking
811366×76860Hz16:9
821920×108060Hz16:91080p
831600×90060Hz16:9reduced blanking
842048×115260Hz16:9reduced blanking
851280×72060Hz16:9720p
861366×76860Hz16:9reduced blanking
The complete list of computer monitor settings