From 44375406decb1ffff429e15a1acabff2c0e7a621 Mon Sep 17 00:00:00 2001 From: goodtft Date: Tue, 9 Jul 2019 17:51:27 +0800 Subject: [PATCH] Update LCD-hdmi --- LCD-hdmi | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/LCD-hdmi b/LCD-hdmi index e5764de..cf7c665 100755 --- a/LCD-hdmi +++ b/LCD-hdmi @@ -1,12 +1,17 @@ #!/bin/bash -dev=`grep -rn "Option" /usr/share/X11/xorg.conf.d/99-fbturbo.conf | grep "fbdev" |awk -F\" '{printf $4}'` -if test "$dev" = "/dev/fb0";then -echo "The system is already output for HDMI and does not need to be set up any more" -exit -fi +#dev=`grep -rn "Option" /usr/share/X11/xorg.conf.d/99-fbturbo.conf | grep "fbdev" |awk -F\" '{printf $4}'` +#if test "$dev" = "/dev/fb0";then +#echo "The system is already output for HDMI and does not need to be set up any more" +#exit +#fi sudo ./system_backup.sh +sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak +sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak +sudo cp -rf ./boot/config.txt.bak /boot/config.txt +sudo sync +sudo sync #sudo cp -rf ./usr/modules-HDMI /etc/modules #sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf #sudo cp ./boot/config-nomal.txt /boot/config.txt