Mise à jour : Raspi OS 10.6
Sous Raspi OS, le chargement des pilotes nécessaires à certains
matériels (video, périphériques i2S, i2C, ....) doit
nécessairement s'effectuer au démarrage du système. Les
informations nécessaires pour déterminer les pilotes à charger
sont contenues dans un fichier de configuration à paramétrer par
l'utilisateur.
Ce document présente
Sommaire
La configuration définie dans le fichier /boot/config.txt
initial permet de démarrer le système et d'utiliser des
périphériques matériels de base (voir en Annexe le contenu
du fichier initial).
Si l'on ne retient que les lignes non commentées, le fichier se réduit à
$ cat /boot/config.txt
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
La première configuration concerne le chargement du pilote
audio associé à la carte son du Pi (sortie jack)
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
Documentation : https://www.raspberrypi.org/documentation/configuration/config-txt/video.md
Référence : écran tactile SHCHV http://www.lcdwiki.com/7inch_HDMI_Display-C
- Résolution 1024-600 - Connexion HDMI
Le fabriquant recommande les paramètres suivant :
max_usb_current=1 hdmi_force_hotplug=1 config_hdmi_boost=7 hdmi_group=2 hdmi_mode=87
hdmi_drive=1 display_rotate=0 hdmi_cvt 1024 600 60 6 0 0 0
hdmi_force_hotplug=1 force la sortie hdmi même en l'absence de signal de présence d'un moniteur hdmi
$ vcgencmd get_config framebuffer_depth
framebuffer_depth=0
$ fbset -i |head -3
mode "1024x600"
geometry 1024 600 1024 600 16
[hdmi:0]
# Set hdmi signal boost to the default value
config_hdmi_boost=5
# Set monitor mode to DMT
hdmi_group=2
# Set monitor resolution to 1920x1080 / 60 Hz /
ratio 16:9
hdmi_mode=87
hdmi_cvt 1024 600 60 6 0 0 0
# Don't set audio on hdmi
hdmi_drive=1 display_hdmi_rotate=0
[hdmi:1]# Set monitor mode to DMT hdmi_group=2
# Set monitor resolution to 1920x1080 / 60 Hz /3
ratio 16:9
hdmi_mode=87
hdmi_cvt=1920 1080 60
dtparam=i2s=on
dtoverlay=hifiberry-dacplus
# dtparam=audio=on
$ cat /boot/config.txt
[hdmi:0]
# Ecran tactile 7 pouces sans audio
hdmi_group=2
hdmi_mode=87
hdmi_drive=1
hdmi_cvt 1024 600 60 6 0 0 0
[hdmi:1]
# Ecran avec audiohdmi_group=2
3
hdmi_mode=87
hdmi_cvt=1920 1080 60
[all]
# Carte audio i2s hifiberry
dtparam=i2s=on
dtoverlay=hifiberry-dacplus
[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
[all]
# Optionnel : pour empêcher le lancement du mode graphique
start_x=0
$ cat /boot/config.txt
# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16
# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720
# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1
# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2
# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4
# uncomment for composite PAL
#sdtv_mode=2
#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800
# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on
# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18
# Additional overlays and parameters are documented /boot/overlays/README
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
[all]
#dtoverlay=vc4-fkms-v3d