Setting Up an 800X480 5inch HDMI LCD for Raspberry Pi

10,988

74

10

About: I make things, sometimes they brake

When using the 800X480 5inch HDMI LCD for the first time with the Raspberry Pi the display does not cover the entire 5 inch display. This tutorial will show you how to get rid of the black border on the display .

I will show 2 ways :One editing a file by sticking the micro SD card onto your laptop, the second how to change the file via the Pi's Terminal.

Questions,Concerns, Compliments or Comments all welcome :

@NemesisContrer8

Step 1: Accessing the Config File From Your Laptop

  1. Place your micro SD card into it's adapter and stick it in your laptop
  2. Click on the boot image that appears on your desktop
  3. Click on the file named Config.txt

Step 2: Accessing the Config File From Your Laptop (continued)

  1. Find the comment that says #Uncomment to force a specific HDMI Mode
  2. Add the following lines bellow the comment :
hdmi_group=2

hdmi_mode=1

hdmi_mode=87

hdmi_cvt=800 480 60 6 0 0 0

3. Press Control+S to save the file

4. Close the page

5. Right Click in your boot image again and select "Eject Volume"

6. Pop the card back into your Raspberry Pi

Step 3: Editing the Config File From the Pi's Terminal

  1. Open the Pi's Terminal (via SSH , Monitor etc)
  2. We need to access a folder named boot which is hidden so type:
cd /boot

3. If you would like to see the files inside the boot folder list them by typing :

ls

4. We need to access a file named config.txt to be able to edit this file type:

sudo nano config.txt

Step 4: Editing the Config File From the Pi's Terminal (continued)

When the config.txt file opens look for the comment saying #Uncomment to force a specific HDMI Mode
1. Right bellow that line should copy and paste or type the following- we will force the resolution of our screen out
hdmi_group=2
hdmi_mode =1 
hdmi_mode=87
hdmi_cvt=800 480 60 6 0 0 0

2. Save the file by pressing --> Control+X then Y and finally Enter

3. Type

cd

4. Finally check if it worked by rebooting your pi with:

sudo reboot

Share

    Recommendations

    • Comfort Food Challenge

      Comfort Food Challenge
    • Safe and Secure Challenge

      Safe and Secure Challenge
    • Faux-Real Contest

      Faux-Real Contest

    10 Discussions

    0
    None
    EveMcWinston

    3 months ago

    Awesome!

    Thank you for your help!

    0
    None
    maryoush

    1 year ago

    Thanks man, that really helped me to sort it out!

    0
    None
    X-wired

    1 year ago

    Thanks, that worked well.

    0
    None
    lcraig09

    1 year ago

    Hi is the second way from step 3? Or should you do the first two before doing step 3 and 4.

    0
    None
    HeinzB6

    1 year ago

    Thanks a lot.

    -- Heinz

    0
    None
    WushNemesisC

    Reply 2 years ago

    my config file is protected, and the system won't let me edit it. How can I change the file's properties so that I can edit it?

    0
    None
    NemesisCWush

    Reply 2 years ago

    Hey Wush !

    Did you use the sudo command to access the file? Sudo just tells the pi you are the super user that has access to any file.

    sudo nano config.txt?

    0
    None
    WushNemesisC

    Reply 2 years ago

    thanks Nemesis, I'm very new to this, that worked. Thanks