Projects, Reviews & News

SOLVED! – HDMI not working on Raspberry Pi

raspberry-pi-hdmiIf you have ever played around with a Raspberry Pi, you have also experienced the ‘missing HDMI output’ issue.

Basically, the HDMI output of the Raspberry Pi is only activated if  a monitor or television is connected and powered up before the Raspberry Pi is turned on.

If you are using your Raspberry Pi with a television, this can be very bothersome. Fortunately, there is an easy fix which will force the HDMI output to be turned on, no matter if a screen is connected or not. By following these simple steps, you will be able to turn on your Raspberry Pi when the TV or monitor is turned off or not connected, and still get a working HDMI output when you turn on or connect a display afterwards.

Step by step solution: Force HDMI

  1. Power up your Raspberry Pi and open a terminal
  2. Open the Raspberry Pi configuration file for editing with this command:
    sudo nano /boot/config.txt
  3. Use arrows to get to the end of the file and add these 3 lines:
    #Always force HDMI output and enable HDMI sound
    hdmi_force_hotplug=1
    hdmi_drive=2
  4. Save the changes by pressing CTRL + O
  5. Exit the editor by pressing CTRL + X

You can now reboot your Rapberry Pi and enjoy the possibility of hot plugging or turning on HDMI screen whenever you want, as the HDMI is forced to be always activated.

If you are using a normal monitor instead of a television, you may want to leave out the line ‘hdmi_drive=2’, as this forces HDMI mode rather than DVI mode. The main difference here is that HDMI mode enables sound through the HDMI connectection, which DVI does not.

I hope that this helps you to get rid of the bothersome and countless forced reboots caused when unintentionally starting the original Raspberry Pi image without a live HDMI screen connected.

By at .

14 Comments

  1. Jon's Gravatar Jon
    April 25, 2017    

    I’m using recalbox I don’t know how to find the file when I’m on the computer. On the retropi 3 I open the command prompt and enter in the sudo nano command line like it says up top and it says not found. So then what?

  2. Pleasurous's Gravatar Pleasurous
    March 22, 2017    

    how about just force the display via hdmi and sound ould go through usb sound

  3. Tex's Gravatar Tex
    February 26, 2017    

    Thanks for the information, the config editor can be reached through programs/myosmc/pi Config/config editor.
    Input the text as described.

  4. Bob's Gravatar Bob
    December 22, 2016    

    Hi. My pi is doing the same, which is a raspberry pi zero. But I can’t find the config.txt file on the sd card! Please help!

  5. Pro's Gravatar Pro
    December 3, 2016    

    been trying for 3 days to get sound on my raspberry pi 0
    this worked wish i had found this 1st

    • December 4, 2016    

      Thank you for the feedback.
      Good to know that this also works for HDMI problems on the Raspberry Pi Zero.

  6. steve's Gravatar steve
    November 27, 2016    

    owe you a beer! thanks for this!!

  7. Ben's Gravatar Ben
    October 30, 2015    

    This worked a treat! the HDMI already kind of worked on my Pi2, but the audio was an issue.Not any more! I can now play arcade games with full 8 or 16 bit glorious sound!!
    Thanks!

  8. John's Gravatar John
    October 16, 2015    

    I’d love to fire up the terminal and edit the boot config. If only i had some way of seeing whats on the screen.

    • Pete's Gravatar Pete
      October 31, 2015    

      You should be able to SSH into the Pi and do this ..

      • Bro's Gravatar Bro
        January 8, 2016    

        Sorry, im a complete newbie with the raspberry. What is SSH?

    • Murkinday's Gravatar Murkinday
      November 27, 2015    

      Plug into your network and then from a terminal (putty on windows) write in ssh pi@raspberrypi enter raspberry as a password, then you have SSH access. unless you already figured this out.

  9. Racksmith's Gravatar Racksmith
    April 28, 2015    

    Thats not the only problem with the HDMI output from the PI. We have had 2 recently with no HDMI output, both had dry joints (badly soldered component legs) on the HDMI connector, luckily we have the equipment here to rework the connectors affected. This looks like it might be a common fault on the newer pcb’s.

    • April 28, 2015    

      Thanks for the heads up! May I ask from where you got these troublesome raspberry pi’s?
      Also, could you elaborate on how and where to spot the problem, in case others are in doubt if this is the issue they have?

Leave a Reply

Your email address will not be published. Required fields are marked *


*