Project

General

Profile

Actions

Feature #950

closed

Update config.txt with HDMI configurations

Added by Hammel about 1 year ago. Updated 8 months ago.

Status:
Rejected
Priority:
Immediate
Assignee:
Category:
04 - Root File System
Target version:
Start date:
26 Mar 2023
Due date:
% Done:

100%

Estimated time:
Severity:
01 - Critical

Description

The config.txt supports include statements.

Firstboot can identify the HDMI device name from it's EDID with

$ /opt/vc/bin/tvservice -n
device_name=MPI-MPITEST

This can allow selection of a display-specific config.txt to include into config.txt. For example, the Elecrow 5in Touchscreen requires the following config.txt settings.
# elecrow 5" HDMI touchscreen
hdmi_force_hotplug=1
max_usb_current=1
hdmi_drive=1
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_cvt 800 480 60 6 0 0 0
dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900 display_rotate=0

Firstboot identifies the device as the MPI-MPITEST and copies MPI-MPITEST-config.txt to hdmiconfig.txt, which is included at the end of config.txt. This makes it easy to add new display configurations, by just getting their EDID device ID and creating a config.txt specific to them.

The display specific configs will need to be stored in the dev platform under /etc/displays/.


Related issues

Precedes PiBox - Feature #948: Support elecrow 5" hdmi touchscreen displayClosedHammel27 Mar 202327 Mar 2023

Actions
Actions

Also available in: Atom PDF