Switching to HDMI
January 1, 2020 | Creoqode Team
Retropie image you have downloaded in the second chapter is pre-configured for Lyra. One of these configurations is to export the video through DPI interface to the 5" display of Lyra. To change this configuration and export video through HDMI port, we have to change a few lines of code.
Let's start by taking out the micro SD card of Lyra and plugging it to our PC. When you click on the SD card from your file manager, you will see a file named 'config.txt'. Open this file with any text editor like Notepad. You should see the lines below at the top of this config.txt file:
# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details
#disable_overscan=1
#hdmi_group=1
#hdmi_mode=16
#hdmi_drive=2
# uncomment if you get no picture on HDMI for a default "safe" mode...
The symbol '#' is used when you do not want the computer to perceive a piece of text as a command. Any piece of text that comes after '#' in each line is considered to be a 'comment' and not a 'command'. Your computer will skip these lines without any iterations.
Now, we want Lyra to export the video through HDMI port. To do so, delete the hashtags from the below lines as such:
disable_overscan=1
hdmi_group=1
hdmi_mode=16
hdmi_drive=2
Then, put hashtags before each line after ...### DPI DISPLAY ###... It should look like below after you put the hashtags and comment these lines:
################# DPI DISPLAY #################
#dtoverlay=hifiberry-dac
#dtoverlay=i2s-mmap
#dtoverlay=i2s-gpio28-31
#audio_pwm_mode=0
# Disable spi and i2c, we need these pins.
#dtparam=spi=off
#dtparam=i2c_arm=off
# Set screen size and any overscan required
#dtoverlay=dpi24
#overscan_left=0
#overscan_right=0
#overscan_top=0
#overscan_bottom=0
#framebuffer_width=800
#framebuffer_height=480
# enable the DPI display
#enable_dpi_lcd=1
#display_default_lcd=1
# set up the size to 800x480
#dpi_group=2
#dpi_mode=87
# set up the hsync/vsync/clock polarity and format
#dpi_output_format=0x6f002
# set up the size to 800x480
#hdmi_timings=800 0 40 48 88 480 0 13 3 32 0 0 0 60 0 32000000 6
Save the file and exit. Now, plug the micro SD card back to your Lyra and connect it to your TV via HDMI. When you turn on Lyra, video should be available via HDMI. Enjoy!
