This commit is contained in:
lcdwiki 2019-06-05 03:48:26 +01:00
parent 16e6e618be
commit 1dd11e6259
7 changed files with 33 additions and 3 deletions

View File

@ -7,7 +7,7 @@ sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
sudo echo "dtparam=i2c_arm=on" >> ./boot/config.txt.bak sudo echo "dtparam=i2c_arm=on" >> ./boot/config.txt.bak
sudo echo "dtparam=spi=on" >> ./boot/config.txt.bak sudo echo "dtparam=spi=on" >> ./boot/config.txt.bak
sudo echo "enable_uart=1" >> ./boot/config.txt.bak sudo echo "enable_uart=1" >> ./boot/config.txt.bak
sudo echo "display_rotate=3" >> ./boot/config.txt.bak sudo echo "display_rotate=0" >> ./boot/config.txt.bak
sudo echo "max_usb_current=1" >> ./boot/config.txt.bak sudo echo "max_usb_current=1" >> ./boot/config.txt.bak
sudo echo "config_hdmi_boost=7" >> ./boot/config.txt.bak sudo echo "config_hdmi_boost=7" >> ./boot/config.txt.bak
sudo echo "hdmi_group=2" >> ./boot/config.txt.bak sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
@ -29,9 +29,9 @@ sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.con
if [ ! -d /etc/X11/xorg.conf.d ]; then if [ ! -d /etc/X11/xorg.conf.d ]; then
sudo mkdir /etc/X11/xorg.conf.d sudo mkdir /etc/X11/xorg.conf.d
fi fi
sudo cp -rf ./usr/99-calibration.conf-5-270 /etc/X11/xorg.conf.d/99-calibration.conf sudo cp -rf ./usr/99-calibration.conf-5-0 /etc/X11/xorg.conf.d/99-calibration.conf
sudo touch ./.have_installed sudo touch ./.have_installed
echo "hdmi:resistance:5:270:800:480" > ./.have_installed echo "hdmi:resistance:5:0:800:480" > ./.have_installed
nodeplatform=`uname -n` nodeplatform=`uname -n`
kernel=`uname -r` kernel=`uname -r`
version=`uname -v` version=`uname -v`

6
usr/99-calibration.conf-5-180 Executable file
View File

@ -0,0 +1,6 @@
Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
Option "Calibration" "3951 140 3998 261"
Option "SwapAxes" "0"
EndSection

6
usr/99-calibration.conf-5-270 Executable file
View File

@ -0,0 +1,6 @@
Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
Option "Calibration" "3998 261 140 3951"
Option "SwapAxes" "1"
EndSection

6
usr/99-calibration.conf-5-90 Executable file
View File

@ -0,0 +1,6 @@
Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
Option "Calibration" "261 3998 3951 140"
Option "SwapAxes" "1"
EndSection

View File

@ -0,0 +1,6 @@
Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
Option "Calibration" "3951 140 261 3998"
Option "SwapAxes" "0"
EndSection

View File

@ -0,0 +1,6 @@
Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
Option "Calibration" "140 3951 3998 261"
Option "SwapAxes" "0"
EndSection