Skip to content

Commit a276aa7

Browse files
committed
v4plus: config.txt for passthrough
1 parent 8b71966 commit a276aa7

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

configs/os/boot-config/v4plus-hdmi-rpi4.txt

+4
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,7 @@ dtparam=i2c_arm=on
2323

2424
# Clock
2525
dtoverlay=i2c-rtc,pcf8563,wakeup-source
26+
27+
# Passthrough
28+
dtoverlay=vc4-kms-v3d
29+
disable_overscan=1

kvmd.install

+9
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,15 @@ post_upgrade() {
8383
8484
fi
8585

86+
if [[ "$(varcmp "$2" 3.331)" -lt 0 ]]; then
87+
grep -q "^dtoverlay=vc4-kms-v3d" /boot/config.txt || cat << EOF >> /boot/config.txt
88+
89+
# Passthrough
90+
dtoverlay=vc4-kms-v3d
91+
disable_overscan=1
92+
EOF
93+
fi
94+
8695
# Some update deletes /etc/motd, WTF
8796
# shellcheck disable=SC2015,SC2166
8897
[ ! -f /etc/motd -a -f /etc/motd.pacsave ] && mv /etc/motd.pacsave /etc/motd || true

0 commit comments

Comments
 (0)