From 9ef44446484976496a69410ab723488098dcc21f Mon Sep 17 00:00:00 2001 From: David Carley Date: Sat, 6 Mar 2021 09:16:48 -0800 Subject: [PATCH] Allow rPi to use full screen resolution --- scripts/install.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/install.sh b/scripts/install.sh index 024b836..797a13e 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -36,6 +36,15 @@ fi #./scripts/edit-boot-config gpu_mem=16 #chmod ug+s /usr/lib/xorg/Xorg +# Use the full screen resolution +grep "^framebuffer_width=1280$" /boot/config.txt >/dev/null +if [ $? -ne 0 ]; then + mount -o remount,rw /boot && + sed -i 's/^\(framebuffer_.*\)$/#\1/g' /boot/config.txt + mount -o remount,ro /boot + REBOOT=true +fi + # Fix camera grep dwc_otg.fiq_fsm_mask /boot/cmdline.txt >/dev/null if [ $? -ne 0 ]; then