Added new xorg config in hdmi script to allow that to work in Arch

This commit is contained in:
Bennett-Wendorf 2022-01-09 15:44:10 -06:00
parent f256e6dcdf
commit a9b364a26b
3 changed files with 44 additions and 1 deletions

27
Arch-Linux/LCD-hdmi Executable file
View File

@ -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

View File

@ -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"

View File

@ -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