Raspberry Pi

How to Configure HDMI on Raspberry Pi

If you are a Raspberry Pi user and you are using Raspberry Pi OS with HDMI port then you will surely need to configure the HDMI to get the proper screen view for your Raspberry Pi system. Usually, basic screen configuration is asked at the first boot of the system but sometimes users don’t know the exact configuration due to which they mess up the entire display.

Follow this tutorial to correctly configure HDMI on Raspberry Pi. 

Configure HDMI on Raspberry Pi

Before I start configuring HDMI let me show you that my HDMI looks something as shown below, you can see that the display is so large that it does not fit on my laptop screen and I have to keep scrolling up and down to get a full view of the screen. So, let’s solve this kind of issue by configuring HDMI.

To correctly configure HDMI, follow the below-mentioned steps:

Step 1: For configuring HDMI for Raspberry Pi, the boot/config file is used. Just use the below-written command to open the required boot/config file using the nano editor:

$ sudo nano /boot/config.txt

Step 2: Now into the boot/config file try to find #hdmi_safe=1 argument by scrolling up through the file:


Step 3: Once you have found the hdmi_safe=1 argument, just remove the “#” symbol from the left of it to uncomment the argument and as soon as # is removed the color of the argument will change to white:

Note: Ensure that hdmi_safe is equal to 1 if there is any other number just change it to 1.

Step 4: Now scroll up little bit more in the boot/config file and search for the #config_hdmi_boost=4 argument in the file:


Step 5: After finding #config_hdmi_boost=4, uncomment this line too by removing “#” from the left: 

Once you are done, save the file by pressing Ctrl+X and Y keys.

Step 6: The final step is to reboot the system so that it can restart with the new HDMI configuration.

$ sudo reboot

After rebooting you can see in the image below that now my screen is well-fitted and I can see full screen view:


To configure HDMI on Raspberry Pi, just open the /boot/config file by using the nano editor then uncomment #hdmi_safe=1 and #config_hdmi_boost=4 by removing “#” from both arguments and save the file. Finally, reboot the system so that it can restart with the new HDMI configuration.

About the author

Zahra Zamir

An Electronics graduate who loves to learn and share the knowledge, my passion for my field has helped me grasp complex electronics concepts and now I am here to share them with others.