From 4174112fc6f04ee439b9b01d454dd43cc0716839 Mon Sep 17 00:00:00 2001 From: David Carley Date: Sun, 17 Jul 2022 09:31:52 -0700 Subject: [PATCH] Auto-adapt HDMI resolution --- scripts/config-screen | 32 -------------------------------- scripts/install.sh | 3 +-- setup.py | 1 - 3 files changed, 1 insertion(+), 35 deletions(-) delete mode 100644 scripts/config-screen diff --git a/scripts/config-screen b/scripts/config-screen deleted file mode 100644 index 364c150..0000000 --- a/scripts/config-screen +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash - -if [ $# != 3 ]; then - echo "Usage: $0 " - exit 1 -fi - -WIDTH="$1" -HEIGHT="$2" -ROTATION="$3" - -if [[ ! "$WIDTH" =~ ^[0-9]+$ ]]; then - echo "Invalid width '$WIDTH'." - exit 1 -fi - -if [[ ! "$HEIGHT" =~ ^[0-9]+$ ]]; then - echo "Invalid height '$HEIGHT'." - exit 1 -fi - -if [[ ! "$ROTATION" =~ ^[0-3]$ ]]; then - echo "Invalid rotation '$ROTATION'." - exit 1 -fi - - -OPTIONS="framebuffer_width=$WIDTH " -OPTIONS+="framebuffer_height=$HEIGHT " -OPTIONS+="display_rotate=$ROTATION" - -edit-boot-config $OPTIONS diff --git a/scripts/install.sh b/scripts/install.sh index 2f565b2..a13d7ed 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -29,8 +29,7 @@ if $UPDATE_AVR; then fi # Update config.txt -./scripts/edit-boot-config max_usb_current=1 -./scripts/edit-boot-config config_hdmi_boost=8 +./scripts/edit-boot-config max_usb_current=1 config_hdmi_boost=8 hdmi_force_hotplug=1 hdmi_group=2 hdmi_mode=82 # TODO Enable GPU #./scripts/edit-boot-config dtoverlay=vc4-kms-v3d diff --git a/setup.py b/setup.py index 8e7dbdf..d57ae67 100755 --- a/setup.py +++ b/setup.py @@ -34,7 +34,6 @@ setup( 'scripts/sethostname', 'scripts/reset-video', 'scripts/config-wifi', - 'scripts/config-screen', 'scripts/edit-config', 'scripts/edit-boot-config', 'scripts/browser',