Skip to content

Commit

Permalink
fix: set hdmi_safe=1 on Raspberry Pi for maximum HDMI compatibility
Browse files Browse the repository at this point in the history
Setting hdmi_safe to 1 will lead to "safe mode" settings being used to try to boot with
maximum HDMI compatibility.
See https://www.raspberrypi.org/documentation/configuration/config-txt/video.md

Signed-off-by: Alexey Palazhchenko <alexey.palazhchenko@gmail.com>
  • Loading branch information
AlekSi authored and talos-bot committed Feb 28, 2021
1 parent 61cb2fb commit 5ae315f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions internal/app/machined/pkg/runtime/v1alpha1/board/rpi_4/rpi_4.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package rpi4

import (
"io/ioutil"
"strings"

"github.com/talos-systems/go-procfs/procfs"

Expand All @@ -14,11 +15,16 @@ import (
"github.com/talos-systems/talos/pkg/machinery/constants"
)

var configTxt = []byte(`arm_64bit=1
// https://www.raspberrypi.org/documentation/configuration/config-txt/
var configTxt = []byte(strings.TrimSpace(`
arm_64bit=1
enable_uart=1
kernel=u-boot.bin
dtoverlay=disable-bt
`)
hdmi_safe=1
` + "\n"))

// RPi4 represents the Raspberry Pi 4 Model B.
//
Expand Down

0 comments on commit 5ae315f

Please sign in to comment.