Skip to content

Instantly share code, notes, and snippets.

@LimeBlast
Last active October 5, 2021 01:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LimeBlast/1574e0e141e4be43b37e to your computer and use it in GitHub Desktop.
Save LimeBlast/1574e0e141e4be43b37e to your computer and use it in GitHub Desktop.
Configuring the TV Service on Raspberry Pi

Taken from Raspberry Pi 2 User Guide by Vilros

If you connect your Pi to a television using an HDMI cable, Raspbian automatically selects a screen size that it decides will be the best for your setup. However, this is not always the highest resolution.

The configuration setting that controls how Raspbian selects the screen size is in the file /boot/config.txt and you can adjust this setting with a text editor:

  1. On the Application Launcher, click LXTerminal.

  2. Type the following command and then press Enter:

tvservice -d edid
  1. Type the following command and then press Enter: edidparser edid

  2. Find the video mode that you want to use, and make note of the mode number and whether it says “DMT mode” or “CEA mode”.

  3. Type the following command and press Enter: sudo nano /boot/config.txt

  4. Press the Down Arrow key until you find the lines that begin with

#hdmi_group=
#hdmi_mode=
  1. Remove the # from the start of both of those lines.

  2. If the video mode is DMT, change the hdmi_group to 2:

hdmi_group=2
  1. If the video mode is CEA, change the hdmi_group to 1:
hdmi_group=1
  1. Type the mode number after hdmi_mode=, for example:
hdmi_mode=16
  1. Find the line that reads disable_overscan=0 and change it to:
disable_overscan=1
  1. Press Ctrl + X.

  2. Press Y, and then press Enter.

  3. Restart the Raspberry Pi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment