diff options
author | Maxim Devaev <[email protected]> | 2024-04-06 23:51:41 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2024-07-19 15:25:13 +0300 |
commit | 142c4a3552d443bca1a491d1b17d53e2b126ea91 (patch) | |
tree | cbc9696856db3ae1c15aaa6dff05b88350c511dd | |
parent | 56728d5007fa0a8ea0f45cdf9cb646db2a55599c (diff) |
v4plus: config.txt for passthrough
-rw-r--r-- | configs/os/boot-config/v4plus-hdmi-rpi4.txt | 4 | ||||
-rw-r--r-- | kvmd.install | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/configs/os/boot-config/v4plus-hdmi-rpi4.txt b/configs/os/boot-config/v4plus-hdmi-rpi4.txt index 3728ab39..05821ea4 100644 --- a/configs/os/boot-config/v4plus-hdmi-rpi4.txt +++ b/configs/os/boot-config/v4plus-hdmi-rpi4.txt @@ -23,3 +23,7 @@ dtparam=i2c_arm=on # Clock dtoverlay=i2c-rtc,pcf8563,wakeup-source + +# Passthrough +dtoverlay=vc4-kms-v3d +disable_overscan=1 diff --git a/kvmd.install b/kvmd.install index a97b799d..e57d03c7 100644 --- a/kvmd.install +++ b/kvmd.install @@ -83,6 +83,15 @@ post_upgrade() { fi + if [[ "$(varcmp "$2" 3.331)" -lt 0 ]]; then + grep -q "^dtoverlay=vc4-kms-v3d" /boot/config.txt || cat << EOF >> /boot/config.txt + +# Passthrough +dtoverlay=vc4-kms-v3d +disable_overscan=1 +EOF + fi + # Some update deletes /etc/motd, WTF # shellcheck disable=SC2015,SC2166 [ ! -f /etc/motd -a -f /etc/motd.pacsave ] && mv /etc/motd.pacsave /etc/motd || true |