From a9b364a26bb2a7c2cf5d9c028193e34d44336129 Mon Sep 17 00:00:00 2001 From: Bennett-Wendorf Date: Sun, 9 Jan 2022 15:44:10 -0600 Subject: [PATCH] Added new xorg config in hdmi script to allow that to work in Arch --- Arch-Linux/LCD-hdmi | 27 +++++++++++++++++++++++++++ Arch-Linux/usr/99-fbdev.conf | 2 +- Arch-Linux/usr/99-fbdev.conf-HDMI | 16 ++++++++++++++++ 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100755 Arch-Linux/LCD-hdmi create mode 100755 Arch-Linux/usr/99-fbdev.conf-HDMI diff --git a/Arch-Linux/LCD-hdmi b/Arch-Linux/LCD-hdmi new file mode 100755 index 0000000..fe3f985 --- /dev/null +++ b/Arch-Linux/LCD-hdmi @@ -0,0 +1,27 @@ +#!/bin/bash + +# Change directory to get easy access to scripts from the main directory + +#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 ./Arch-Linux/usr/99-fbdev.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbdev.conf +#sudo cp ./boot/config-nomal.txt /boot/config.txt +#if [ -b /dev/mmcblk0p7 ]; then +#sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt +#else +#sudo cp ./usr/cmdline.txt /boot/ +#fi +#sudo cp ./usr/inittab /etc/ +echo "reboot now" +sudo reboot diff --git a/Arch-Linux/usr/99-fbdev.conf b/Arch-Linux/usr/99-fbdev.conf index 0188ffe..4a2f1b7 100755 --- a/Arch-Linux/usr/99-fbdev.conf +++ b/Arch-Linux/usr/99-fbdev.conf @@ -4,7 +4,7 @@ # # When troubleshooting, check /var/log/Xorg.0.log for the debugging # output and error messages. -# Run "man fbturbo" to get additional information about the extra +# Run "man fbdev" to get additional information about the extra # configuration options for tuning the driver. Section "Device" diff --git a/Arch-Linux/usr/99-fbdev.conf-HDMI b/Arch-Linux/usr/99-fbdev.conf-HDMI new file mode 100755 index 0000000..b2ad1e1 --- /dev/null +++ b/Arch-Linux/usr/99-fbdev.conf-HDMI @@ -0,0 +1,16 @@ +# This is a minimal sample config file, which can be copied to +# /etc/X11/xorg.conf in order to make the Xorg server pick up +# and load xf86-video-fbdev driver installed in the system. +# +# When troubleshooting, check /var/log/Xorg.0.log for the debugging +# output and error messages. +# Run "man fbturbo" to get additional information about the extra +# configuration options for tuning the driver. + +Section "Device" + Identifier "Allwinner A10/A13/A20 FBDEV" + Driver "fbdev" + Option "fbdev" "/dev/fb0" + + Option "SwapbuffersWait" "true" +EndSection