Compare commits
179 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1cd5ea1b53 | ||
|
|
d948fbf06e | ||
|
|
68fb29a93d | ||
|
|
27550d5a4a | ||
|
|
dd0ae2e942 | ||
|
|
97bc095bce | ||
|
|
0f62eb1b5d | ||
|
|
7d1d3a34d7 | ||
|
|
cf8b53541d | ||
|
|
443024f56e | ||
|
|
726f51df97 | ||
|
|
7702aba501 | ||
|
|
5fde0ac5e9 | ||
|
|
256181deee | ||
|
|
1b21b7447b | ||
|
|
27a58b190c | ||
|
|
af1be2b080 | ||
|
|
e1629eae0d | ||
|
|
5136eafc73 | ||
|
|
f46aeb1b29 | ||
|
|
957fa6c2bf | ||
|
|
e9fde0db4e | ||
|
|
d2b4b434cd | ||
|
|
f2c8d54eed | ||
|
|
fdc3021a61 | ||
|
|
8da799f672 | ||
|
|
115f376858 | ||
|
|
f65866310d | ||
|
|
91797371f6 | ||
|
|
ab812f2882 | ||
|
|
60580940bf | ||
|
|
0cf3187617 | ||
|
|
b2583756ed | ||
|
|
0c9ed6716c | ||
|
|
9a3fef148c | ||
|
|
821280e139 | ||
|
|
a64289cbcc | ||
|
|
97f0ba7d77 | ||
|
|
aa3925675d | ||
|
|
1cfbb6cb68 | ||
|
|
cfd602e665 | ||
|
|
cd6befd132 | ||
|
|
964ba7196b | ||
|
|
0f1be15f23 | ||
|
|
4ec94ef008 | ||
|
|
3f50cfafad | ||
|
|
53dc0f5b0e | ||
|
|
71aa326d33 | ||
|
|
ed93f405ce | ||
|
|
02917e4537 | ||
|
|
1bba9d97a4 | ||
|
|
f700e5a049 | ||
|
|
3e05b21722 | ||
|
|
44e6d579bd | ||
|
|
3df55aaaeb | ||
|
|
e37ad6bf28 | ||
|
|
5d376c56f6 | ||
|
|
380e711ee1 | ||
|
|
5ba129578c | ||
|
|
82667a3dac | ||
|
|
52dd7eeaf5 | ||
|
|
24a56d9b06 | ||
|
|
d9b3378f93 | ||
|
|
5f6b8086e5 | ||
|
|
1103dc3283 | ||
|
|
0b0062f4b6 | ||
|
|
5557831b93 | ||
|
|
c8d498f0b6 | ||
|
|
3db7bc9e79 | ||
|
|
53dd0bfa8c | ||
|
|
36a0340691 | ||
|
|
9832468255 | ||
|
|
a8de38f415 | ||
|
|
5a6f609dba | ||
|
|
557fd021a4 | ||
|
|
05a40bd006 | ||
|
|
ca1c8cfff2 | ||
|
|
7efb45dcd9 | ||
|
|
c849de8223 | ||
|
|
8f8abd6050 | ||
|
|
44375406de | ||
|
|
444c91beea | ||
|
|
60e3c9a3de | ||
|
|
854864e08e | ||
|
|
4296433c5e | ||
|
|
dde040d8cf | ||
|
|
1e9ef1104a | ||
|
|
770d1bb1f0 | ||
|
|
0c09bb8de9 | ||
|
|
d6b1858494 | ||
|
|
7789af7e3b | ||
|
|
55eb559940 | ||
|
|
6dab58d0dc | ||
|
|
c232908ecc | ||
|
|
db84b84e46 | ||
|
|
042a601cb6 | ||
|
|
be473743e0 | ||
|
|
f1fd0a930d | ||
|
|
4d26effc5c | ||
|
|
ebbb446a89 | ||
|
|
87b22cb1ed | ||
|
|
ec24a3fdd3 | ||
|
|
6ec569e64d | ||
|
|
467612ac26 | ||
|
|
42c2f13e61 | ||
|
|
cb66de429b | ||
|
|
ce520141ce | ||
|
|
330cf973e2 | ||
|
|
55b9fff8b1 | ||
|
|
11cb3a05e2 | ||
|
|
c42f96e06e | ||
|
|
e7e062d8b8 | ||
|
|
28d2c9ae9b | ||
|
|
9df907590c | ||
|
|
9857453548 | ||
|
|
e0e3244cd8 | ||
|
|
a139cf9a92 | ||
|
|
9d58d5a062 | ||
|
|
ce16fafdbf | ||
|
|
b75c3df257 | ||
|
|
8199878134 | ||
|
|
a63c77086f | ||
|
|
60f50b9e21 | ||
|
|
82103b8482 | ||
|
|
65aa0ffcc4 | ||
|
|
c6d3e7ff1a | ||
|
|
fcc566121c | ||
|
|
70ff1dfcfb | ||
|
|
005a634f1b | ||
|
|
43b173ae37 | ||
|
|
b136e2ea29 | ||
|
|
7f764580e9 | ||
|
|
4a0ab0ad7f | ||
|
|
4dfd97e067 | ||
|
|
6d473857d5 | ||
|
|
fe57221506 | ||
|
|
bebfb53b78 | ||
|
|
218a662aaf | ||
|
|
10ee4846bf | ||
|
|
03c8854b83 | ||
|
|
038655d39b | ||
|
|
7f97a911fa | ||
|
|
98e880e22b | ||
|
|
8ae0126917 | ||
|
|
febc07828f | ||
|
|
48ed268a2f | ||
|
|
8b708187f6 | ||
|
|
8686532a02 | ||
|
|
9d0dee79df | ||
|
|
dc6c80f577 | ||
|
|
56a5272c16 | ||
|
|
f4d9e5d337 | ||
|
|
62db4d6b8d | ||
|
|
ed71c794b1 | ||
|
|
38bbcd62dd | ||
|
|
e42ff90e22 | ||
|
|
3b92235436 | ||
|
|
7e8177cd5e | ||
|
|
99a900b655 | ||
|
|
adc89799ff | ||
|
|
e862766106 | ||
|
|
b11e7668d2 | ||
|
|
8ca4bf019a | ||
|
|
706466781c | ||
|
|
f26fad01c9 | ||
|
|
6292bfffee | ||
|
|
0058a8b802 | ||
|
|
2133810914 | ||
|
|
1b4f6c0d5b | ||
|
|
d6cc231648 | ||
|
|
14c444066e | ||
|
|
85219e6cc8 | ||
|
|
3a5b8522fb | ||
|
|
94a82d1de9 | ||
|
|
03a1890cac | ||
|
|
d0079bf359 | ||
|
|
67c6d107f7 | ||
|
|
5bb46540e8 | ||
|
|
b8c10906a8 |
38
DPI5_7_800_480-show
Executable file
38
DPI5_7_800_480-show
Executable file
@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
source ./system_config.sh
|
||||
sudo echo "dtoverlay=qddpi18" >> ./boot/config.txt.bak
|
||||
sudo echo "enable_dpi_lcd=1" >> ./boot/config.txt.bak
|
||||
sudo echo "display_default_lcd=1" >> ./boot/config.txt.bak
|
||||
sudo echo "dpi_group=2" >> ./boot/config.txt.bak
|
||||
sudo echo "dpi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "dpi_output_format=0x6f016" >> ./boot/config.txt.bak
|
||||
sudo echo "dpi_timings=800 0 210 1 46 480 0 22 1 23 0 0 0 60 0 33000000 6" >> ./boot/config.txt.bak
|
||||
sudo echo "disable_overscan=1" >> ./boot/config.txt.bak
|
||||
sudo echo "dtoverlay=i2c5,pins_10_11" >> ./boot/config.txt.bak
|
||||
sudo echo "dtoverlay=goodix_dpi,interrupt=26,reset=18" >> ./boot/config.txt.bak
|
||||
#sudo echo "gpio=19=op,dh" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
|
||||
sudo cp ./usr/qddpi18.dtb /boot/overlays/qddpi18.dtbo
|
||||
sudo cp ./usr/goodix_dpi.dtb /boot/overlays/goodix_dpi.dtbo
|
||||
|
||||
sudo touch ./.have_installed
|
||||
#echo "hdmi:capacity:7C-1024x600:0:1024:600" > ./.have_installed
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
if [ $# -eq 1 ]; then
|
||||
sudo ./rotate.sh $1
|
||||
elif [ $# -gt 1 ]; then
|
||||
echo "Too many parameters"
|
||||
fi
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
|
||||
|
||||
|
||||
35
DPI7_1024_600-show
Executable file
35
DPI7_1024_600-show
Executable file
@ -0,0 +1,35 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
source ./system_config.sh
|
||||
sudo echo "dtoverlay=qddpi18" >> ./boot/config.txt.bak
|
||||
sudo echo "enable_dpi_lcd=1" >> ./boot/config.txt.bak
|
||||
sudo echo "display_default_lcd=1" >> ./boot/config.txt.bak
|
||||
sudo echo "dpi_group=2" >> ./boot/config.txt.bak
|
||||
sudo echo "dpi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "dpi_output_format=0x6f016" >> ./boot/config.txt.bak
|
||||
sudo echo "dpi_timings=1024 0 160 20 140 600 0 12 3 20 0 0 0 60 0 45000000 3" >> ./boot/config.txt.bak
|
||||
sudo echo "disable_overscan=1" >> ./boot/config.txt.bak
|
||||
sudo echo "dtoverlay=i2c5,pins_10_11" >> ./boot/config.txt.bak
|
||||
sudo echo "dtoverlay=goodix_dpi,interrupt=26,reset=18" >> ./boot/config.txt.bak
|
||||
#sudo echo "gpio=19=op,dh" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
|
||||
sudo cp ./usr/qddpi18.dtb /boot/overlays/qddpi18.dtbo
|
||||
sudo cp ./usr/goodix_dpi.dtb /boot/overlays/goodix_dpi.dtbo
|
||||
|
||||
sudo touch ./.have_installed
|
||||
#echo "hdmi:capacity:7C-1024x600:0:1024:600" > ./.have_installed
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
if [ $# -eq 1 ]; then
|
||||
sudo ./rotate.sh $1
|
||||
elif [ $# -gt 1 ]; then
|
||||
echo "Too many parameters"
|
||||
fi
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
34
LCD-hdmi
Normal file → Executable file
34
LCD-hdmi
Normal file → Executable file
@ -1,10 +1,26 @@
|
||||
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
|
||||
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/
|
||||
#!/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
|
||||
sudo ./system_backup.sh
|
||||
source ./system_config.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
|
||||
#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
|
||||
|
||||
52
LCD101H-show
Executable file
52
LCD101H-show
Executable file
@ -0,0 +1,52 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
#root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
#if test "$root_dev" = "/dev/mmcblk0p7";then
|
||||
#sudo cp -rf ./boot/config-noobs-nomal.txt ./boot/config.txt.bak
|
||||
#else
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
#sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
#fi
|
||||
|
||||
source ./system_config.sh
|
||||
sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_force_edid_audio=1" >> ./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 "enable_uart=1" >> ./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 "config_hdmi_boost=7" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_timings=1024 1 200 18 200 600 1 50 3 50 0 0 0 60 0 51200000 3" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
#sudo cp -rf ./boot/config-7C-1024x600.txt /boot/config.txt
|
||||
#if test "$root_dev" = "/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/
|
||||
sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
|
||||
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo mkdir /etc/X11/xorg.conf.d
|
||||
fi
|
||||
sudo cp ./usr/40-libinput.conf-0 /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
sudo touch ./.have_installed
|
||||
echo "hdmi:capacity:101H-1024x600:0:1024:600" > ./.have_installed
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
if [ $# -eq 1 ]; then
|
||||
sudo ./rotate.sh $1
|
||||
elif [ $# -gt 1 ]; then
|
||||
echo "Too many parameters"
|
||||
fi
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
50
LCD101S-show
Executable file
50
LCD101S-show
Executable file
@ -0,0 +1,50 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
#root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
#if test "$root_dev" = "/dev/mmcblk0p7";then
|
||||
#sudo cp -rf ./boot/config-noobs-nomal.txt ./boot/config.txt.bak
|
||||
#else
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
#sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
#fi
|
||||
|
||||
source ./system_config.sh
|
||||
sudo sed -i -e 's/#dtoverlay=vc4-fkms-v3d/dtoverlay=vc4-fkms-v3d/' ./boot/config.txt.bak
|
||||
sudo sed -i -e 's/#dtoverlay=vc4-kms-v3d/dtoverlay=vc4-fkms-v3d/' ./boot/config.txt.bak
|
||||
sudo echo "max_usb_current=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_force_hotplug=1" >> ./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_mode=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_cvt 1280 800 60 6 0 0 0" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
#sudo cp -rf ./boot/config-7C-1024x600.txt /boot/config.txt
|
||||
#if test "$root_dev" = "/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/
|
||||
sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
|
||||
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo mkdir /etc/X11/xorg.conf.d
|
||||
fi
|
||||
sudo cp ./usr/40-libinput.conf-0 /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
sudo touch ./.have_installed
|
||||
echo "hdmi:capacity:101H-1280x800:0:1280:800" > ./.have_installed
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
if [ $# -eq 1 ]; then
|
||||
sudo ./rotate.sh $1
|
||||
elif [ $# -gt 1 ]; then
|
||||
echo "Too many parameters"
|
||||
fi
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
52
LCD101TMP-show
Executable file
52
LCD101TMP-show
Executable file
@ -0,0 +1,52 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
#root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
#if test "$root_dev" = "/dev/mmcblk0p7";then
|
||||
#sudo cp -rf ./boot/config-noobs-nomal.txt ./boot/config.txt.bak
|
||||
#else
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
#sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
#fi
|
||||
|
||||
source ./system_config.sh
|
||||
sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_force_edid_audio=1" >> ./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 "enable_uart=1" >> ./boot/config.txt.bak
|
||||
sudo echo "display_rotate=3" >> ./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 "hdmi_group=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_timings=800 1 50 10 50 1280 1 10 3 9 0 0 0 60 0 70000000 3" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
#sudo cp -rf ./boot/config-7C-1024x600.txt /boot/config.txt
|
||||
#if test "$root_dev" = "/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/
|
||||
sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
|
||||
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo mkdir /etc/X11/xorg.conf.d
|
||||
fi
|
||||
sudo cp ./usr/40-libinput.conf-270 /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
sudo touch ./.have_installed
|
||||
echo "hdmi:capacity:101TMP-1280x800:270:1280:800" > ./.have_installed
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
if [ $# -eq 1 ]; then
|
||||
sudo ./rotate.sh $1
|
||||
elif [ $# -gt 1 ]; then
|
||||
echo "Too many parameters"
|
||||
fi
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
51
LCD101Y-show
Executable file
51
LCD101Y-show
Executable file
@ -0,0 +1,51 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
#root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
#if test "$root_dev" = "/dev/mmcblk0p7";then
|
||||
#sudo cp -rf ./boot/config-noobs-nomal.txt ./boot/config.txt.bak
|
||||
#else
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
#sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
#fi
|
||||
|
||||
source ./system_config.sh
|
||||
sudo echo "hdmi_force_hotplug=1" >> ./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 "enable_uart=1" >> ./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 "config_hdmi_boost=7" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_drive=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_cvt 1280 800 60 6 0 0 0" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
#sudo cp -rf ./boot/config-7C-1024x600.txt /boot/config.txt
|
||||
#if test "$root_dev" = "/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/
|
||||
sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
|
||||
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo mkdir /etc/X11/xorg.conf.d
|
||||
fi
|
||||
sudo cp ./usr/40-libinput.conf-0 /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
sudo touch ./.have_installed
|
||||
echo "hdmi:capacity:101Y-1280x800:0:1280:800" > ./.have_installed
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
if [ $# -eq 1 ]; then
|
||||
sudo ./rotate.sh $1
|
||||
elif [ $# -gt 1 ]; then
|
||||
echo "Too many parameters"
|
||||
fi
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
150
LCD154-show
Executable file
150
LCD154-show
Executable file
@ -0,0 +1,150 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
|
||||
sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
fi
|
||||
#if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||
#sudo mkdir -p /etc/X11/xorg.conf.d
|
||||
#fi
|
||||
#sudo cp ./usr/mhs35-overlay.dtb /boot/overlays/
|
||||
#sudo cp ./usr/mhs35-overlay.dtb /boot/overlays/mhs35.dtbo
|
||||
|
||||
#root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
#if test "$root_dev" = "/dev/mmcblk0p7";then
|
||||
#sudo cp -rf ./boot/config-noobs-nomal.txt ./boot/config.txt.bak
|
||||
#else
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
#sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
#fi
|
||||
|
||||
source ./system_config.sh
|
||||
sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_cvt 300 300 60 1 0 0 0" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "display_rotate=0" >> ./boot/config.txt.bak
|
||||
sudo echo "gpio=6,19,5,26,13,21,20,16=pu" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
|
||||
#sudo cp -rf ./usr/99-calibration.conf-mhs35-90 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
#sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
#if test "$root_dev" = "/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/
|
||||
#sudo cp ./boot/config-mhs35.txt /boot/config.txt
|
||||
sudo touch ./.have_installed
|
||||
echo "gpio:resistance:LCD154:90:300:300" > ./.have_installed
|
||||
|
||||
#FBCP install
|
||||
if [ -d ./fbcp-ili9341 ]; then
|
||||
sudo rm -rf ./fbcp-ili9341
|
||||
fi
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 https://github.com
|
||||
if [ $? -eq 0 ]; then
|
||||
#sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
sudo apt-get install cmake 2> error_output.txt
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "^E:" ./error_output.txt && exit
|
||||
#sudo rm -rf rpi-fbcp
|
||||
sudo git clone https://github.com/juj/fbcp-ili9341.git
|
||||
sudo mkdir ./fbcp-ili9341/build
|
||||
cd ./fbcp-ili9341/build/
|
||||
sudo cmake -DSPI_BUS_CLOCK_DIVISOR=10 -DWAVESHARE_ST7789VW_HAT=ON -DBACKLIGHT_CONTROL=OFF -DSTATISTICS=0 -DUSE_DMA_TRANSFERS=OFF ..
|
||||
sudo make -j
|
||||
sudo install fbcp-ili9341 /usr/local/bin/fbcp
|
||||
cd - > /dev/null
|
||||
sudo cp -rf ./etc/rc.local /etc/rc.local
|
||||
else
|
||||
type fbcp > /dev/null 2>&1
|
||||
if [ $? -eq 1 ]; then
|
||||
sudo cp -rf ./usr/fbcp-ili9341 ./
|
||||
sudo mkdir ./fbcp-ili9341/build
|
||||
cd ./fbcp-ili9341/build/
|
||||
sudo cmake -DSPI_BUS_CLOCK_DIVISOR=10 -DWAVESHARE_ST7789VW_HAT=ON -DBACKLIGHT_CONTROL=OFF -DSTATISTICS=0 -DUSE_DMA_TRANSFERS=OFF ..
|
||||
sudo make -j
|
||||
sudo install fbcp-ili9341 /usr/local/bin/fbcp
|
||||
cd - > /dev/null
|
||||
sudo cp -rf ./etc/rc.local /etc/rc.local
|
||||
fi
|
||||
fi
|
||||
|
||||
#KEY install
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo apt-get install python-xlib 2> error_output.txt
|
||||
else
|
||||
dpkg -l | grep python-xlib
|
||||
if [ $? -eq 1 ]; then
|
||||
sudo dpkg -i -B ./python-xlib_0.23-2_all.deb 2> error_output.txt
|
||||
fi
|
||||
fi
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "^E:" ./error_output.txt && exit
|
||||
grep -q "error:" ./error_output.txt && exit
|
||||
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 https://pypi.org
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo pip install PyMouse 2> error_output.txt
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "^E:" ./error_output.txt && exit
|
||||
grep -q "error:" ./error_output.txt && exit
|
||||
else
|
||||
pip list | grep PyMouse
|
||||
if [ $? -eq 1 ]; then
|
||||
sudo tar xvzf ./PyMouse-1.0.tar.gz
|
||||
sudo python PyMouse-1.0/setup.py install
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! -d ~/.config/autostart ]; then
|
||||
sudo mkdir -p ~/.config/autostart
|
||||
fi
|
||||
|
||||
if [ ! -f ~/.config/autostart/local.desktop ]; then
|
||||
sudo cp -rf ./usr/local.desktop ~/.config/autostart
|
||||
fi
|
||||
#evdev install
|
||||
#nodeplatform=`uname -n`
|
||||
#kernel=`uname -r`
|
||||
#version=`uname -v`
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
#version=${version##* }
|
||||
#version=${version#*#}
|
||||
#echo $version
|
||||
#if test $version -lt 2017;then
|
||||
#echo "reboot"
|
||||
#else
|
||||
#echo "need to update touch configuration"
|
||||
#sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
|
||||
#sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
|
||||
#result=`cat ./error_output.txt`
|
||||
#echo -e "\033[31m$result\033[0m"
|
||||
#grep -q "error:" ./error_output.txt && exit
|
||||
#sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
#echo "reboot"
|
||||
#fi
|
||||
#else
|
||||
#echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
if [ $# -eq 1 ]; then
|
||||
sudo ./rotate.sh $1
|
||||
elif [ $# -gt 1 ]; then
|
||||
echo "Too many parameters"
|
||||
fi
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
137
LCD24-3A+-show
Executable file
137
LCD24-3A+-show
Executable file
@ -0,0 +1,137 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
|
||||
sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
fi
|
||||
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo mkdir -p /etc/X11/xorg.conf.d
|
||||
fi
|
||||
sudo cp ./usr/tft9341-overlay.dtb /boot/overlays/
|
||||
sudo cp ./usr/tft9341-overlay.dtb /boot/overlays/tft9341.dtbo
|
||||
#root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
#if test "$root_dev" = "/dev/mmcblk0p7";then
|
||||
#sudo cp -rf ./boot/config-noobs-nomal.txt ./boot/config.txt.bak
|
||||
#else
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
#sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
#fi
|
||||
|
||||
source ./system_config.sh
|
||||
sudo echo "hdmi_force_hotplug=1" >> ./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 "enable_uart=1" >> ./boot/config.txt.bak
|
||||
sudo echo "dtoverlay=tft9341:rotate=90" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_cvt 480 360 60 6 0 0 0" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
sudo cp -rf ./usr/99-calibration.conf-32-90 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
#if test "$root_dev" = "/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/
|
||||
#sudo cp ./boot/config-32.txt /boot/config.txt
|
||||
sudo touch ./.have_installed
|
||||
echo "gpio:resistance:32:90:480:360" > ./.have_installed
|
||||
|
||||
sudo apt-get update
|
||||
#FBCP install
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 https://cmake.org/
|
||||
if [ $? -eq 0 ]; then
|
||||
#sudo apt-get update
|
||||
sudo apt-get install cmake -y 2> error_output.txt
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "^E:" ./error_output.txt
|
||||
type cmake > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo rm -rf rpi-fbcp
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 https://github.com
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo git clone https://github.com/tasanakorn/rpi-fbcp
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "download fbcp failed, copy native fbcp!!!"
|
||||
sudo cp -r ./usr/rpi-fbcp .
|
||||
fi
|
||||
else
|
||||
echo "bad network, copy native fbcp!!!"
|
||||
sudo cp -r ./usr/rpi-fbcp .
|
||||
fi
|
||||
sudo mkdir ./rpi-fbcp/build
|
||||
cd ./rpi-fbcp/build/
|
||||
sudo cmake ..
|
||||
sudo make
|
||||
sudo install fbcp /usr/local/bin/fbcp
|
||||
cd - > /dev/null
|
||||
type fbcp > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
sudo cp -rf ./etc/rc.local /etc/rc.local
|
||||
fi
|
||||
else
|
||||
echo "install cmake error!!!!"
|
||||
fi
|
||||
else
|
||||
echo "bad network, can't install cmake!!!"
|
||||
fi
|
||||
|
||||
#evdev install
|
||||
#nodeplatform=`uname -n`
|
||||
#kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
input_result=0
|
||||
version=${version##* }
|
||||
#version=${version#*#}
|
||||
echo $version
|
||||
if test $version -lt 2017;then
|
||||
echo "reboot"
|
||||
else
|
||||
echo "need to update touch configuration"
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
else
|
||||
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
|
||||
dpkg -l | grep xserver-xorg-input-evdev > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
fi
|
||||
fi
|
||||
if [ $input_result -eq 1 ]; then
|
||||
if [ $hardware_arch -eq 32 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
|
||||
elif [ $hardware_arch -eq 64 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-2_arm64.deb 2> error_output.txt
|
||||
fi
|
||||
fi
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "error:" ./error_output.txt && exit
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
#echo "reboot"
|
||||
fi
|
||||
#else
|
||||
#echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
if [ $# -eq 1 ]; then
|
||||
sudo ./rotate.sh $1
|
||||
elif [ $# -gt 1 ]; then
|
||||
echo "Too many parameters"
|
||||
fi
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
145
LCD24-show
Normal file → Executable file
145
LCD24-show
Normal file → Executable file
@ -1,40 +1,137 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
|
||||
sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
sudo mkdir /etc/X11/xorg.conf.d
|
||||
fi
|
||||
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo mkdir -p /etc/X11/xorg.conf.d
|
||||
fi
|
||||
sudo cp ./usr/tft9341-overlay.dtb /boot/overlays/
|
||||
sudo cp ./usr/tft9341-overlay.dtb /boot/overlays/tft9341.dtbo
|
||||
sudo cp -rf ./usr/99-calibration.conf-24 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/
|
||||
if [ -b /dev/mmcblk0p7 ]; then
|
||||
sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt
|
||||
else
|
||||
sudo cp ./usr/cmdline.txt /boot/
|
||||
fi
|
||||
#root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
#if test "$root_dev" = "/dev/mmcblk0p7";then
|
||||
#sudo cp -rf ./boot/config-noobs-nomal.txt ./boot/config.txt.bak
|
||||
#else
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
#sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
#fi
|
||||
|
||||
source ./system_config.sh
|
||||
sudo echo "hdmi_force_hotplug=1" >> ./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 "enable_uart=1" >> ./boot/config.txt.bak
|
||||
sudo echo "dtoverlay=tft9341:rotate=270" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_cvt 480 360 60 6 0 0 0" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
sudo cp -rf ./usr/99-calibration.conf-32-270 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
#if test "$root_dev" = "/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/
|
||||
sudo cp ./boot/config-28.txt /boot/config.txt
|
||||
nodeplatform=`uname -n`
|
||||
kernel=`uname -r`
|
||||
#sudo cp ./boot/config-32.txt /boot/config.txt
|
||||
sudo touch ./.have_installed
|
||||
echo "gpio:resistance:32:270:480:360" > ./.have_installed
|
||||
|
||||
sudo apt-get update
|
||||
#FBCP install
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 https://cmake.org/
|
||||
if [ $? -eq 0 ]; then
|
||||
#sudo apt-get update
|
||||
sudo apt-get install cmake -y 2> error_output.txt
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "^E:" ./error_output.txt
|
||||
type cmake > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo rm -rf rpi-fbcp
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 https://github.com
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo git clone https://github.com/tasanakorn/rpi-fbcp
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "download fbcp failed, copy native fbcp!!!"
|
||||
sudo cp -r ./usr/rpi-fbcp .
|
||||
fi
|
||||
else
|
||||
echo "bad network, copy native fbcp!!!"
|
||||
sudo cp -r ./usr/rpi-fbcp .
|
||||
fi
|
||||
sudo mkdir ./rpi-fbcp/build
|
||||
cd ./rpi-fbcp/build/
|
||||
sudo cmake ..
|
||||
sudo make
|
||||
sudo install fbcp /usr/local/bin/fbcp
|
||||
cd - > /dev/null
|
||||
type fbcp > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
sudo cp -rf ./etc/rc.local /etc/rc.local
|
||||
fi
|
||||
else
|
||||
echo "install cmake error!!!!"
|
||||
fi
|
||||
else
|
||||
echo "bad network, can't install cmake!!!"
|
||||
fi
|
||||
|
||||
#evdev install
|
||||
#nodeplatform=`uname -n`
|
||||
#kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
if test "$nodeplatform" = "raspberrypi";then
|
||||
echo "this is raspberrypi kernel"
|
||||
version=${version%% *}
|
||||
version=${version#*#}
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
input_result=0
|
||||
version=${version##* }
|
||||
#version=${version#*#}
|
||||
echo $version
|
||||
if test $version -lt 970;then
|
||||
if test $version -lt 2017;then
|
||||
echo "reboot"
|
||||
else
|
||||
echo "need to update touch configuration"
|
||||
if test $version -ge 1023;then
|
||||
echo "install xserver-xorg-input-evdev_2.10.5-1"
|
||||
sudo dpkg -i -B xserver-xorg-input-evdev_2.10.5-1_armhf.deb
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
else
|
||||
echo "install xserver-xorg-input-evdev_1%3a2.10.3-1"
|
||||
sudo dpkg -i -B xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb
|
||||
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
|
||||
dpkg -l | grep xserver-xorg-input-evdev > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
fi
|
||||
fi
|
||||
if [ $input_result -eq 1 ]; then
|
||||
if [ $hardware_arch -eq 32 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
|
||||
elif [ $hardware_arch -eq 64 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-2_arm64.deb 2> error_output.txt
|
||||
fi
|
||||
fi
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "error:" ./error_output.txt && exit
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
echo "reboot"
|
||||
#echo "reboot"
|
||||
fi
|
||||
else
|
||||
echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#else
|
||||
#echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
if [ $# -eq 1 ]; then
|
||||
sudo ./rotate.sh $1
|
||||
elif [ $# -gt 1 ]; then
|
||||
echo "Too many parameters"
|
||||
fi
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
|
||||
145
LCD28-show
Normal file → Executable file
145
LCD28-show
Normal file → Executable file
@ -1,40 +1,137 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
|
||||
sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
sudo mkdir /etc/X11/xorg.conf.d
|
||||
fi
|
||||
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo mkdir -p /etc/X11/xorg.conf.d
|
||||
fi
|
||||
sudo cp ./usr/tft9341-overlay.dtb /boot/overlays/
|
||||
sudo cp ./usr/tft9341-overlay.dtb /boot/overlays/tft9341.dtbo
|
||||
sudo cp -rf ./usr/99-calibration.conf-28 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/
|
||||
if [ -b /dev/mmcblk0p7 ]; then
|
||||
sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt
|
||||
else
|
||||
sudo cp ./usr/cmdline.txt /boot/
|
||||
fi
|
||||
#root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
#if test "$root_dev" = "/dev/mmcblk0p7";then
|
||||
#sudo cp -rf ./boot/config-noobs-nomal.txt ./boot/config.txt.bak
|
||||
#else
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
#sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
#fi
|
||||
|
||||
source ./system_config.sh
|
||||
sudo echo "hdmi_force_hotplug=1" >> ./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 "enable_uart=1" >> ./boot/config.txt.bak
|
||||
sudo echo "dtoverlay=tft9341:rotate=270" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_cvt 480 360 60 6 0 0 0" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
sudo cp -rf ./usr/99-calibration.conf-32-270 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
#if test "$root_dev" = "/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/
|
||||
sudo cp ./boot/config-28.txt /boot/config.txt
|
||||
nodeplatform=`uname -n`
|
||||
kernel=`uname -r`
|
||||
#sudo cp ./boot/config-32.txt /boot/config.txt
|
||||
sudo touch ./.have_installed
|
||||
echo "gpio:resistance:32:270:480:360" > ./.have_installed
|
||||
|
||||
sudo apt-get update
|
||||
#FBCP install
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 https://cmake.org/
|
||||
if [ $? -eq 0 ]; then
|
||||
#sudo apt-get update
|
||||
sudo apt-get install cmake -y 2> error_output.txt
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "^E:" ./error_output.txt
|
||||
type cmake > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo rm -rf rpi-fbcp
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 https://github.com
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo git clone https://github.com/tasanakorn/rpi-fbcp
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "download fbcp failed, copy native fbcp!!!"
|
||||
sudo cp -r ./usr/rpi-fbcp .
|
||||
fi
|
||||
else
|
||||
echo "bad network, copy native fbcp!!!"
|
||||
sudo cp -r ./usr/rpi-fbcp .
|
||||
fi
|
||||
sudo mkdir ./rpi-fbcp/build
|
||||
cd ./rpi-fbcp/build/
|
||||
sudo cmake ..
|
||||
sudo make
|
||||
sudo install fbcp /usr/local/bin/fbcp
|
||||
cd - > /dev/null
|
||||
type fbcp > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
sudo cp -rf ./etc/rc.local /etc/rc.local
|
||||
fi
|
||||
else
|
||||
echo "install cmake error!!!!"
|
||||
fi
|
||||
else
|
||||
echo "bad network, can't install cmake!!!"
|
||||
fi
|
||||
|
||||
#evdev install
|
||||
#nodeplatform=`uname -n`
|
||||
#kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
if test "$nodeplatform" = "raspberrypi";then
|
||||
echo "this is raspberrypi kernel"
|
||||
version=${version%% *}
|
||||
version=${version#*#}
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
input_result=0
|
||||
version=${version##* }
|
||||
#version=${version#*#}
|
||||
echo $version
|
||||
if test $version -lt 970;then
|
||||
if test $version -lt 2017;then
|
||||
echo "reboot"
|
||||
else
|
||||
echo "need to update touch configuration"
|
||||
if test $version -ge 1023;then
|
||||
echo "install xserver-xorg-input-evdev_2.10.5-1"
|
||||
sudo dpkg -i -B xserver-xorg-input-evdev_2.10.5-1_armhf.deb
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
else
|
||||
echo "install xserver-xorg-input-evdev_1%3a2.10.3-1"
|
||||
sudo dpkg -i -B xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb
|
||||
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
|
||||
dpkg -l | grep xserver-xorg-input-evdev > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
fi
|
||||
fi
|
||||
if [ $input_result -eq 1 ]; then
|
||||
if [ $hardware_arch -eq 32 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
|
||||
elif [ $hardware_arch -eq 64 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-2_arm64.deb 2> error_output.txt
|
||||
fi
|
||||
fi
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "error:" ./error_output.txt && exit
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
echo "reboot"
|
||||
#echo "reboot"
|
||||
fi
|
||||
else
|
||||
echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#else
|
||||
#echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
if [ $# -eq 1 ]; then
|
||||
sudo ./rotate.sh $1
|
||||
elif [ $# -gt 1 ]; then
|
||||
echo "Too many parameters"
|
||||
fi
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
|
||||
145
LCD32-show
Normal file → Executable file
145
LCD32-show
Normal file → Executable file
@ -1,40 +1,137 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
|
||||
sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
sudo mkdir /etc/X11/xorg.conf.d
|
||||
fi
|
||||
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo mkdir -p /etc/X11/xorg.conf.d
|
||||
fi
|
||||
sudo cp ./usr/tft9341-overlay.dtb /boot/overlays/
|
||||
sudo cp ./usr/tft9341-overlay.dtb /boot/overlays/tft9341.dtbo
|
||||
sudo cp -rf ./usr/99-calibration.conf-32 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/
|
||||
if [ -b /dev/mmcblk0p7 ]; then
|
||||
sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt
|
||||
else
|
||||
sudo cp ./usr/cmdline.txt /boot/
|
||||
fi
|
||||
#root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
#if test "$root_dev" = "/dev/mmcblk0p7";then
|
||||
#sudo cp -rf ./boot/config-noobs-nomal.txt ./boot/config.txt.bak
|
||||
#else
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
#sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
#fi
|
||||
|
||||
source ./system_config.sh
|
||||
sudo echo "hdmi_force_hotplug=1" >> ./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 "enable_uart=1" >> ./boot/config.txt.bak
|
||||
sudo echo "dtoverlay=tft9341:rotate=270" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_cvt 480 360 60 6 0 0 0" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
sudo cp -rf ./usr/99-calibration.conf-32-270 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
#if test "$root_dev" = "/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/
|
||||
sudo cp ./boot/config-32.txt /boot/config.txt
|
||||
nodeplatform=`uname -n`
|
||||
kernel=`uname -r`
|
||||
#sudo cp ./boot/config-32.txt /boot/config.txt
|
||||
sudo touch ./.have_installed
|
||||
echo "gpio:resistance:32:270:480:360" > ./.have_installed
|
||||
|
||||
sudo apt-get update
|
||||
#FBCP install
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 https://cmake.org/
|
||||
if [ $? -eq 0 ]; then
|
||||
#sudo apt-get update
|
||||
sudo apt-get install cmake -y 2> error_output.txt
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "^E:" ./error_output.txt
|
||||
type cmake > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo rm -rf rpi-fbcp
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 https://github.com
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo git clone https://github.com/tasanakorn/rpi-fbcp
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "download fbcp failed, copy native fbcp!!!"
|
||||
sudo cp -r ./usr/rpi-fbcp .
|
||||
fi
|
||||
else
|
||||
echo "bad network, copy native fbcp!!!"
|
||||
sudo cp -r ./usr/rpi-fbcp .
|
||||
fi
|
||||
sudo mkdir ./rpi-fbcp/build
|
||||
cd ./rpi-fbcp/build/
|
||||
sudo cmake ..
|
||||
sudo make
|
||||
sudo install fbcp /usr/local/bin/fbcp
|
||||
cd - > /dev/null
|
||||
type fbcp > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
sudo cp -rf ./etc/rc.local /etc/rc.local
|
||||
fi
|
||||
else
|
||||
echo "install cmake error!!!!"
|
||||
fi
|
||||
else
|
||||
echo "bad network, can't install cmake!!!"
|
||||
fi
|
||||
|
||||
#evdev install
|
||||
#nodeplatform=`uname -n`
|
||||
#kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
if test "$nodeplatform" = "raspberrypi";then
|
||||
echo "this is raspberrypi kernel"
|
||||
version=${version%% *}
|
||||
version=${version#*#}
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
input_result=0
|
||||
version=${version##* }
|
||||
#version=${version#*#}
|
||||
echo $version
|
||||
if test $version -lt 970;then
|
||||
if test $version -lt 2017;then
|
||||
echo "reboot"
|
||||
else
|
||||
echo "need to update touch configuration"
|
||||
if test $version -ge 1023;then
|
||||
echo "install xserver-xorg-input-evdev_2.10.5-1"
|
||||
sudo dpkg -i -B xserver-xorg-input-evdev_2.10.5-1_armhf.deb
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
else
|
||||
echo "install xserver-xorg-input-evdev_1%3a2.10.3-1"
|
||||
sudo dpkg -i -B xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb
|
||||
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
|
||||
dpkg -l | grep xserver-xorg-input-evdev > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
fi
|
||||
fi
|
||||
if [ $input_result -eq 1 ]; then
|
||||
if [ $hardware_arch -eq 32 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
|
||||
elif [ $hardware_arch -eq 64 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-2_arm64.deb 2> error_output.txt
|
||||
fi
|
||||
fi
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "error:" ./error_output.txt && exit
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
echo "reboot"
|
||||
#echo "reboot"
|
||||
fi
|
||||
else
|
||||
echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#else
|
||||
#echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
if [ $# -eq 1 ]; then
|
||||
sudo ./rotate.sh $1
|
||||
elif [ $# -gt 1 ]; then
|
||||
echo "Too many parameters"
|
||||
fi
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
|
||||
146
LCD35-show
Normal file → Executable file
146
LCD35-show
Normal file → Executable file
@ -1,40 +1,138 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
|
||||
sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
sudo mkdir /etc/X11/xorg.conf.d
|
||||
fi
|
||||
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo mkdir -p /etc/X11/xorg.conf.d
|
||||
fi
|
||||
sudo cp ./usr/tft35a-overlay.dtb /boot/overlays/
|
||||
sudo cp ./usr/tft35a-overlay.dtb /boot/overlays/tft35a.dtbo
|
||||
sudo cp -rf ./usr/99-calibration.conf-35 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/
|
||||
if [ -b /dev/mmcblk0p7 ]; then
|
||||
sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt
|
||||
else
|
||||
sudo cp ./usr/cmdline.txt /boot/
|
||||
fi
|
||||
#root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
#if test "$root_dev" = "/dev/mmcblk0p7";then
|
||||
#sudo cp -rf ./boot/config-noobs-nomal.txt ./boot/config.txt.bak
|
||||
#else
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
#sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
#fi
|
||||
|
||||
source ./system_config.sh
|
||||
sudo echo "hdmi_force_hotplug=1" >> ./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 "enable_uart=1" >> ./boot/config.txt.bak
|
||||
sudo echo "dtoverlay=tft35a:rotate=90" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_cvt 480 320 60 6 0 0 0" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
|
||||
sudo cp -rf ./usr/99-calibration.conf-35-90 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
#if test "$root_dev" = "/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/
|
||||
sudo cp ./boot/config-35.txt /boot/config.txt
|
||||
nodeplatform=`uname -n`
|
||||
kernel=`uname -r`
|
||||
#sudo cp ./boot/config-35.txt /boot/config.txt
|
||||
sudo touch ./.have_installed
|
||||
echo "gpio:resistance:35:90:480:320" > ./.have_installed
|
||||
|
||||
sudo apt-get update
|
||||
#FBCP install
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 https://cmake.org/
|
||||
if [ $? -eq 0 ]; then
|
||||
#sudo apt-get update
|
||||
sudo apt-get install cmake -y 2> error_output.txt
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "^E:" ./error_output.txt
|
||||
type cmake > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo rm -rf rpi-fbcp
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 https://github.com
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo git clone https://github.com/tasanakorn/rpi-fbcp
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "download fbcp failed, copy native fbcp!!!"
|
||||
sudo cp -r ./usr/rpi-fbcp .
|
||||
fi
|
||||
else
|
||||
echo "bad network, copy native fbcp!!!"
|
||||
sudo cp -r ./usr/rpi-fbcp .
|
||||
fi
|
||||
sudo mkdir ./rpi-fbcp/build
|
||||
cd ./rpi-fbcp/build/
|
||||
sudo cmake ..
|
||||
sudo make
|
||||
sudo install fbcp /usr/local/bin/fbcp
|
||||
cd - > /dev/null
|
||||
type fbcp > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
sudo cp -rf ./etc/rc.local /etc/rc.local
|
||||
fi
|
||||
else
|
||||
echo "install cmake error!!!!"
|
||||
fi
|
||||
else
|
||||
echo "bad network, can't install cmake!!!"
|
||||
fi
|
||||
|
||||
#evdev install
|
||||
#nodeplatform=`uname -n`
|
||||
#kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
if test "$nodeplatform" = "raspberrypi";then
|
||||
echo "this is raspberrypi kernel"
|
||||
version=${version%% *}
|
||||
version=${version#*#}
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
input_result=0
|
||||
version=${version##* }
|
||||
#version=${version#*#}
|
||||
echo $version
|
||||
if test $version -lt 970;then
|
||||
if test $version -lt 2017;then
|
||||
echo "reboot"
|
||||
else
|
||||
echo "need to update touch configuration"
|
||||
if test $version -ge 1023;then
|
||||
echo "install xserver-xorg-input-evdev_2.10.5-1"
|
||||
sudo dpkg -i -B xserver-xorg-input-evdev_2.10.5-1_armhf.deb
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
else
|
||||
echo "install xserver-xorg-input-evdev_1%3a2.10.3-1"
|
||||
sudo dpkg -i -B xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb
|
||||
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
|
||||
dpkg -l | grep xserver-xorg-input-evdev > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
fi
|
||||
fi
|
||||
if [ $input_result -eq 1 ]; then
|
||||
if [ $hardware_arch -eq 32 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
|
||||
elif [ $hardware_arch -eq 64 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-2_arm64.deb 2> error_output.txt
|
||||
fi
|
||||
fi
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "error:" ./error_output.txt && exit
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
echo "reboot"
|
||||
#echo "reboot"
|
||||
fi
|
||||
else
|
||||
echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#else
|
||||
#echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
if [ $# -eq 1 ]; then
|
||||
sudo ./rotate.sh $1
|
||||
elif [ $# -gt 1 ]; then
|
||||
echo "Too many parameters"
|
||||
fi
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
|
||||
106
LCD5-show
Normal file → Executable file
106
LCD5-show
Normal file → Executable file
@ -1,38 +1,98 @@
|
||||
#!/bin/bash
|
||||
sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
sudo cp -rf ./boot/config-5.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 ./system_backup.sh
|
||||
|
||||
#root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
#if test "$root_dev" = "/dev/mmcblk0p7";then
|
||||
#sudo cp -rf ./boot/config-noobs-nomal.txt ./boot/config.txt.bak
|
||||
#else
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
#sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
#fi
|
||||
|
||||
source ./system_config.sh
|
||||
row=`grep -nr "#dtoverlay=vc4-fkms-v3d" ./boot/config.txt.bak | awk -F ':' '{if(NR==1)printf $1}'`
|
||||
sudo sed -i -e ''"$row"'s/#dtoverlay=vc4-fkms-v3d/dtoverlay=vc4-fkms-v3d/' ./boot/config.txt.bak
|
||||
sudo sed -i -e 's/#max_framebuffers=2/max_framebuffers=2/' ./boot/config.txt.bak
|
||||
sudo echo "hdmi_force_hotplug=1" >> ./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 "enable_uart=1" >> ./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 "config_hdmi_boost=7" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_drive=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_cvt 800 480 60 6 0 0 0" >> ./boot/config.txt.bak
|
||||
sudo echo "dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900" >> ./boot/config.txt.bak
|
||||
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
|
||||
#sudo cp -rf ./boot/config-5.txt /boot/config.txt
|
||||
#if test "$root_dev" = "/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/
|
||||
sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo mkdir /etc/X11/xorg.conf.d
|
||||
sudo cp -rf ./usr/99-calibration.conf-5 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
nodeplatform=`uname -n`
|
||||
kernel=`uname -r`
|
||||
fi
|
||||
sudo cp -rf ./usr/99-calibration.conf-5-0 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
sudo touch ./.have_installed
|
||||
echo "hdmi:resistance:5:0:800:480" > ./.have_installed
|
||||
#nodeplatform=`uname -n`
|
||||
#kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
if test "$nodeplatform" = "raspberrypi";then
|
||||
echo "this is raspberrypi kernel"
|
||||
version=${version%% *}
|
||||
version=${version#*#}
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
input_result=0
|
||||
version=${version##* }
|
||||
#version=${version#*#}
|
||||
echo $version
|
||||
if test $version -lt 970;then
|
||||
if test $version -lt 2017;then
|
||||
echo "reboot"
|
||||
else
|
||||
echo "need to update touch configuration"
|
||||
if test $version -ge 1023;then
|
||||
echo "install xserver-xorg-input-evdev_2.10.5-1"
|
||||
sudo dpkg -i -B xserver-xorg-input-evdev_2.10.5-1_armhf.deb
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
else
|
||||
echo "install xserver-xorg-input-evdev_1%3a2.10.3-1"
|
||||
sudo dpkg -i -B xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb
|
||||
sudo apt-get update
|
||||
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
|
||||
dpkg -l | grep xserver-xorg-input-evdev > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
fi
|
||||
fi
|
||||
if [ $input_result -eq 1 ]; then
|
||||
if [ $hardware_arch -eq 32 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
|
||||
elif [ $hardware_arch -eq 64 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-2_arm64.deb 2> error_output.txt
|
||||
fi
|
||||
fi
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "error:" ./error_output.txt && exit
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
echo "reboot"
|
||||
#echo "reboot"
|
||||
fi
|
||||
else
|
||||
echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#else
|
||||
#echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
if [ $# -eq 1 ]; then
|
||||
sudo ./rotate.sh $1
|
||||
elif [ $# -gt 1 ]; then
|
||||
echo "Too many parameters"
|
||||
fi
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
|
||||
53
LCD55-show
Executable file
53
LCD55-show
Executable file
@ -0,0 +1,53 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
#root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
#if test "$root_dev" = "/dev/mmcblk0p7";then
|
||||
#sudo cp -rf ./boot/config-noobs-nomal.txt ./boot/config.txt.bak
|
||||
#else
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
#sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
#fi
|
||||
|
||||
source ./system_config.sh
|
||||
sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_force_edid_audio=1" >> ./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 "enable_uart=1" >> ./boot/config.txt.bak
|
||||
sudo echo "display_rotate=0" >> ./boot/config.txt.bak
|
||||
sudo echo "max_framebuffer_height=1920" >> ./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 "hdmi_group=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_drive=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_cvt 1920 1080 60 6 0 0 0" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
|
||||
#if test "$root_dev" = "/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/
|
||||
sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
|
||||
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo mkdir /etc/X11/xorg.conf.d
|
||||
fi
|
||||
sudo cp ./usr/40-libinput.conf-90 /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
sudo touch ./.have_installed
|
||||
echo "hdmi:capacity:55-1920x1080:90:1920:1080" > ./.have_installed
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
if [ $# -eq 1 ]; then
|
||||
sudo ./rotate.sh $1
|
||||
elif [ $# -gt 1 ]; then
|
||||
echo "Too many parameters"
|
||||
fi
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
77
LCD7B-show
Normal file → Executable file
77
LCD7B-show
Normal file → Executable file
@ -1,32 +1,51 @@
|
||||
sudo cp -rf ./boot/config-7B-800x480.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
|
||||
#!/bin/bash
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
#root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
#if test "$root_dev" = "/dev/mmcblk0p7";then
|
||||
#sudo cp -rf ./boot/config-noobs-nomal.txt ./boot/config.txt.bak
|
||||
#else
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
#sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
#fi
|
||||
|
||||
source ./system_config.sh
|
||||
sudo echo "hdmi_force_hotplug=1" >> ./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 "enable_uart=1" >> ./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 "config_hdmi_boost=7" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_drive=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_cvt 800 480 60 6 0 0 0" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
#sudo cp -rf ./boot/config-7B-800x480.txt /boot/config.txt
|
||||
#if test "$root_dev" = "/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/
|
||||
sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
nodeplatform=`uname -n`
|
||||
kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
if test "$nodeplatform" = "raspberrypi";then
|
||||
echo "this is raspberrypi kernel"
|
||||
version=${version%% *}
|
||||
version=${version#*#}
|
||||
echo $version
|
||||
if test $version -lt 970;then
|
||||
echo "reboot"
|
||||
else
|
||||
echo "need to update touch configuration"
|
||||
if test $version -ge 1023;then
|
||||
echo "install xserver-xorg-input-evdev_2.10.5-1"
|
||||
sudo dpkg -i -B xserver-xorg-input-evdev_2.10.5-1_armhf.deb
|
||||
else
|
||||
echo "install xserver-xorg-input-evdev_1%3a2.10.3-1"
|
||||
sudo dpkg -i -B xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
|
||||
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo mkdir /etc/X11/xorg.conf.d
|
||||
sudo cp ./usr/40-libinput.conf-HDMI7B /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
fi
|
||||
sudo cp ./usr/40-libinput.conf-0 /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
sudo touch ./.have_installed
|
||||
echo "hdmi:capacity:7B-800x480:0:800:480" > ./.have_installed
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
if [ $# -eq 1 ]; then
|
||||
sudo ./rotate.sh $1
|
||||
elif [ $# -gt 1 ]; then
|
||||
echo "Too many parameters"
|
||||
fi
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
|
||||
75
LCD7C-show
Normal file → Executable file
75
LCD7C-show
Normal file → Executable file
@ -1,34 +1,51 @@
|
||||
sudo cp -rf ./boot/config-7C-1024x600.txt /boot/config.txt
|
||||
#!/bin/bash
|
||||
|
||||
if [ -b /dev/mmcblk0p7 ]; then
|
||||
sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt
|
||||
else
|
||||
sudo cp ./usr/cmdline.txt /boot/
|
||||
fi
|
||||
sudo ./system_backup.sh
|
||||
|
||||
#root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
#if test "$root_dev" = "/dev/mmcblk0p7";then
|
||||
#sudo cp -rf ./boot/config-noobs-nomal.txt ./boot/config.txt.bak
|
||||
#else
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
#sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
#fi
|
||||
|
||||
source ./system_config.sh
|
||||
sudo echo "hdmi_force_hotplug=1" >> ./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 "enable_uart=1" >> ./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 "config_hdmi_boost=7" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_drive=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_cvt 1024 600 60 6 0 0 0" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
#sudo cp -rf ./boot/config-7C-1024x600.txt /boot/config.txt
|
||||
#if test "$root_dev" = "/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/
|
||||
sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
|
||||
nodeplatform=`uname -n`
|
||||
kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
if test "$nodeplatform" = "raspberrypi";then
|
||||
echo "this is raspberrypi kernel"
|
||||
version=${version%% *}
|
||||
version=${version#*#}
|
||||
echo $version
|
||||
if test $version -lt 970;then
|
||||
echo "reboot"
|
||||
else
|
||||
echo "need to update touch configuration"
|
||||
if test $version -ge 1023;then
|
||||
echo "install xserver-xorg-input-evdev_2.10.5-1"
|
||||
sudo dpkg -i -B xserver-xorg-input-evdev_2.10.5-1_armhf.deb
|
||||
else
|
||||
echo "install xserver-xorg-input-evdev_1%3a2.10.3-1"
|
||||
sudo dpkg -i -B xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo mkdir /etc/X11/xorg.conf.d
|
||||
sudo cp ./usr/40-libinput.conf-HDMI7C /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
fi
|
||||
sudo cp ./usr/40-libinput.conf-0 /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
sudo touch ./.have_installed
|
||||
echo "hdmi:capacity:7C-1024x600:0:1024:600" > ./.have_installed
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
if [ $# -eq 1 ]; then
|
||||
sudo ./rotate.sh $1
|
||||
elif [ $# -gt 1 ]; then
|
||||
echo "Too many parameters"
|
||||
fi
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
|
||||
52
LCD7H-show
Executable file
52
LCD7H-show
Executable file
@ -0,0 +1,52 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
#root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
#if test "$root_dev" = "/dev/mmcblk0p7";then
|
||||
#sudo cp -rf ./boot/config-noobs-nomal.txt ./boot/config.txt.bak
|
||||
#else
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
#sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
#fi
|
||||
|
||||
source ./system_config.sh
|
||||
sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_force_edid_audio=1" >> ./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 "enable_uart=1" >> ./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 "config_hdmi_boost=7" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_cvt 1024 600 60 6 0 0 0" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
#sudo cp -rf ./boot/config-7C-1024x600.txt /boot/config.txt
|
||||
#if test "$root_dev" = "/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/
|
||||
sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
|
||||
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo mkdir /etc/X11/xorg.conf.d
|
||||
fi
|
||||
sudo cp ./usr/40-libinput.conf-0 /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
sudo touch ./.have_installed
|
||||
echo "hdmi:capacity:7H-1024x600:0:1024:600" > ./.have_installed
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
if [ $# -eq 1 ]; then
|
||||
sudo ./rotate.sh $1
|
||||
elif [ $# -gt 1 ]; then
|
||||
echo "Too many parameters"
|
||||
fi
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
52
LCD7S-show
Executable file
52
LCD7S-show
Executable file
@ -0,0 +1,52 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
#root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
#if test "$root_dev" = "/dev/mmcblk0p7";then
|
||||
#sudo cp -rf ./boot/config-noobs-nomal.txt ./boot/config.txt.bak
|
||||
#else
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
#sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
#fi
|
||||
|
||||
source ./system_config.sh
|
||||
sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_force_edid_audio=1" >> ./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 "enable_uart=1" >> ./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 "config_hdmi_boost=7" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_cvt 1024 600 60 6 0 0 0" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
#sudo cp -rf ./boot/config-7C-1024x600.txt /boot/config.txt
|
||||
#if test "$root_dev" = "/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/
|
||||
sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
|
||||
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo mkdir /etc/X11/xorg.conf.d
|
||||
fi
|
||||
sudo cp ./usr/40-libinput.conf-0 /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
sudo touch ./.have_installed
|
||||
echo "hdmi:capacity:7S-1024x600:0:1024:600" > ./.have_installed
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
if [ $# -eq 1 ]; then
|
||||
sudo ./rotate.sh $1
|
||||
elif [ $# -gt 1 ]; then
|
||||
echo "Too many parameters"
|
||||
fi
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
45
MHS24-show
Executable file
45
MHS24-show
Executable file
@ -0,0 +1,45 @@
|
||||
#!/bin/bash
|
||||
sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
sudo mkdir -p /etc/X11/xorg.conf.d
|
||||
sudo cp ./usr/mhs24-overlay.dtb /boot/overlays/
|
||||
sudo cp ./usr/mhs24-overlay.dtb /boot/overlays/mhs24.dtbo
|
||||
sudo cp -rf ./usr/99-calibration.conf-mhs24 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
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/
|
||||
sudo cp ./boot/config-mhs24.txt /boot/config.txt
|
||||
#FBCP install
|
||||
sudo cp -rf ./etc/rc.local /etc/rc.local
|
||||
sudo apt-get install git cmake -y
|
||||
sudo rm -rf rpi-fbcp
|
||||
sudo git clone https://github.com/tasanakorn/rpi-fbcp
|
||||
sudo mkdir ./rpi-fbcp/build
|
||||
cd ./rpi-fbcp/build/
|
||||
sudo cmake ..
|
||||
sudo make
|
||||
sudo install fbcp /usr/local/bin/fbcp
|
||||
#evdev install
|
||||
nodeplatform=`uname -n`
|
||||
kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
if test "$nodeplatform" = "raspberrypi";then
|
||||
echo "this is raspberrypi kernel"
|
||||
version=${version%% *}
|
||||
version=${version#*#}
|
||||
echo $version
|
||||
if test $version -lt 970;then
|
||||
echo "reboot"
|
||||
else
|
||||
echo "need to update touch configuration"
|
||||
sudo apt-get install xserver-xorg-input-evdev
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
echo "reboot"
|
||||
fi
|
||||
else
|
||||
echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
fi
|
||||
sudo reboot
|
||||
138
MHS32-show
Executable file
138
MHS32-show
Executable file
@ -0,0 +1,138 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
|
||||
sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
fi
|
||||
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo mkdir -p /etc/X11/xorg.conf.d
|
||||
fi
|
||||
sudo cp ./usr/mhs32-overlay.dtb /boot/overlays/
|
||||
sudo cp ./usr/mhs32-overlay.dtb /boot/overlays/mhs32.dtbo
|
||||
#root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
#if test "$root_dev" = "/dev/mmcblk0p7";then
|
||||
#sudo cp -rf ./boot/config-noobs-nomal.txt ./boot/config.txt.bak
|
||||
#else
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
#sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
#fi
|
||||
|
||||
source ./system_config.sh
|
||||
sudo echo "hdmi_force_hotplug=1" >> ./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 "enable_uart=1" >> ./boot/config.txt.bak
|
||||
sudo echo "dtoverlay=mhs32:rotate=270" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_cvt 480 360 60 6 0 0 0" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
|
||||
sudo cp -rf ./usr/99-calibration.conf-mhs32-270 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
#if test "$root_dev" = "/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/
|
||||
#sudo cp ./boot/config-mhs32.txt /boot/config.txt
|
||||
sudo touch ./.have_installed
|
||||
echo "gpio:resistance:mhs32:270:480:360" > ./.have_installed
|
||||
|
||||
sudo apt-get update
|
||||
#FBCP install
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 https://cmake.org/
|
||||
if [ $? -eq 0 ]; then
|
||||
#sudo apt-get update
|
||||
sudo apt-get install cmake -y 2> error_output.txt
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "^E:" ./error_output.txt
|
||||
type cmake > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo rm -rf rpi-fbcp
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 https://github.com
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo git clone https://github.com/tasanakorn/rpi-fbcp
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "download fbcp failed, copy native fbcp!!!"
|
||||
sudo cp -r ./usr/rpi-fbcp .
|
||||
fi
|
||||
else
|
||||
echo "bad network, copy native fbcp!!!"
|
||||
sudo cp -r ./usr/rpi-fbcp .
|
||||
fi
|
||||
sudo mkdir ./rpi-fbcp/build
|
||||
cd ./rpi-fbcp/build/
|
||||
sudo cmake ..
|
||||
sudo make
|
||||
sudo install fbcp /usr/local/bin/fbcp
|
||||
cd - > /dev/null
|
||||
type fbcp > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
sudo cp -rf ./etc/rc.local /etc/rc.local
|
||||
fi
|
||||
else
|
||||
echo "install cmake error!!!!"
|
||||
fi
|
||||
else
|
||||
echo "bad network, can't install cmake!!!"
|
||||
fi
|
||||
|
||||
#evdev install
|
||||
#nodeplatform=`uname -n`
|
||||
#kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
input_result=0
|
||||
version=${version##* }
|
||||
#version=${version#*#}
|
||||
echo $version
|
||||
if test $version -lt 2017;then
|
||||
echo "reboot"
|
||||
else
|
||||
echo "need to update touch configuration"
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
else
|
||||
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
|
||||
dpkg -l | grep xserver-xorg-input-evdev > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
fi
|
||||
fi
|
||||
if [ $input_result -eq 1 ]; then
|
||||
if [ $hardware_arch -eq 32 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
|
||||
elif [ $hardware_arch -eq 64 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-2_arm64.deb 2> error_output.txt
|
||||
fi
|
||||
fi
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "error:" ./error_output.txt && exit
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
#echo "reboot"
|
||||
fi
|
||||
#else
|
||||
#echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
if [ $# -eq 1 ]; then
|
||||
sudo ./rotate.sh $1
|
||||
elif [ $# -gt 1 ]; then
|
||||
echo "Too many parameters"
|
||||
fi
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
137
MHS35-show
Executable file
137
MHS35-show
Executable file
@ -0,0 +1,137 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
|
||||
sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
fi
|
||||
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo mkdir -p /etc/X11/xorg.conf.d
|
||||
fi
|
||||
sudo cp ./usr/mhs35-overlay.dtb /boot/overlays/
|
||||
sudo cp ./usr/mhs35-overlay.dtb /boot/overlays/mhs35.dtbo
|
||||
|
||||
#root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
#if test "$root_dev" = "/dev/mmcblk0p7";then
|
||||
#sudo cp -rf ./boot/config-noobs-nomal.txt ./boot/config.txt.bak
|
||||
#else
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
#sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
#fi
|
||||
|
||||
source ./system_config.sh
|
||||
sudo echo "hdmi_force_hotplug=1" >> ./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 "enable_uart=1" >> ./boot/config.txt.bak
|
||||
sudo echo "dtoverlay=mhs35:rotate=90" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_cvt 480 320 60 6 0 0 0" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
|
||||
sudo cp -rf ./usr/99-calibration.conf-mhs35-90 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
#if test "$root_dev" = "/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/
|
||||
#sudo cp ./boot/config-mhs35.txt /boot/config.txt
|
||||
sudo touch ./.have_installed
|
||||
echo "gpio:resistance:mhs35:90:480:320" > ./.have_installed
|
||||
|
||||
sudo apt-get update
|
||||
#FBCP install
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 https://cmake.org/
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo apt-get install cmake -y 2> error_output.txt
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "^E:" ./error_output.txt
|
||||
type cmake > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo rm -rf rpi-fbcp
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 https://github.com
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo git clone https://github.com/tasanakorn/rpi-fbcp
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "download fbcp failed, copy native fbcp!!!"
|
||||
sudo cp -r ./usr/rpi-fbcp .
|
||||
fi
|
||||
else
|
||||
echo "bad network, copy native fbcp!!!"
|
||||
sudo cp -r ./usr/rpi-fbcp .
|
||||
fi
|
||||
sudo mkdir ./rpi-fbcp/build
|
||||
cd ./rpi-fbcp/build/
|
||||
sudo cmake ..
|
||||
sudo make
|
||||
sudo install fbcp /usr/local/bin/fbcp
|
||||
cd - > /dev/null
|
||||
type fbcp > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
sudo cp -rf ./etc/rc.local /etc/rc.local
|
||||
fi
|
||||
else
|
||||
echo "install cmake error!!!!"
|
||||
fi
|
||||
else
|
||||
echo "bad network, can't install cmake!!!"
|
||||
fi
|
||||
|
||||
#evdev install
|
||||
#nodeplatform=`uname -n`
|
||||
#kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
input_result=0
|
||||
version=${version##* }
|
||||
#version=${version#*#}
|
||||
echo $version
|
||||
if test $version -lt 2017;then
|
||||
echo "reboot"
|
||||
else
|
||||
echo "need to update touch configuration"
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
else
|
||||
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
|
||||
dpkg -l | grep xserver-xorg-input-evdev > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
fi
|
||||
fi
|
||||
if [ $input_result -eq 1 ]; then
|
||||
if [ $hardware_arch -eq 32 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
|
||||
elif [ $hardware_arch -eq 64 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-2_arm64.deb 2> error_output.txt
|
||||
fi
|
||||
fi
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "error:" ./error_output.txt && exit
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
#echo "reboot"
|
||||
#else
|
||||
#echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
if [ $# -eq 1 ]; then
|
||||
sudo ./rotate.sh $1
|
||||
elif [ $# -gt 1 ]; then
|
||||
echo "Too many parameters"
|
||||
fi
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
144
MHS35B-show
Executable file
144
MHS35B-show
Executable file
@ -0,0 +1,144 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
|
||||
sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
fi
|
||||
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo mkdir -p /etc/X11/xorg.conf.d
|
||||
fi
|
||||
sudo cp ./usr/mhs35b-overlay.dtb /boot/overlays/
|
||||
sudo cp ./usr/mhs35b-overlay.dtb /boot/overlays/mhs35b.dtbo
|
||||
|
||||
#root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
#if test "$root_dev" = "/dev/mmcblk0p7";then
|
||||
#sudo cp -rf ./boot/config-noobs-nomal.txt ./boot/config.txt.bak
|
||||
#else
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
#sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
#fi
|
||||
|
||||
source ./system_config.sh
|
||||
sudo echo "hdmi_force_hotplug=1" >> ./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 "enable_uart=1" >> ./boot/config.txt.bak
|
||||
sudo echo "dtoverlay=mhs35b:rotate=90" >> ./boot/config.txt.bak
|
||||
sudo echo "dtoverlay=goodix" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_cvt 480 320 60 6 0 0 0" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
|
||||
if [ -f /boot/overlays/goodix.dtbo ]; then
|
||||
sudo mv /boot/overlays/goodix.dtbo /boot/overlays/goodix.dtbo.bak
|
||||
sudo cp ./usr/goodix.dtbo /boot/overlays/
|
||||
fi
|
||||
|
||||
sudo cp -rf ./usr/99-calibration.conf-mhs35b-90 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
#if test "$root_dev" = "/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/
|
||||
sudo touch ./.have_installed
|
||||
echo "gpio:resistance:mhs35b:90:480:320" > ./.have_installed
|
||||
|
||||
sudo apt-get update
|
||||
#FBCP install
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 https://cmake.org/
|
||||
if [ $? -eq 0 ]; then
|
||||
#sudo apt-get update
|
||||
sudo apt-get install cmake -y 2> error_output.txt
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "^E:" ./error_output.txt
|
||||
type cmake > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo rm -rf rpi-fbcp
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 https://github.com
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo git clone https://github.com/tasanakorn/rpi-fbcp
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "download fbcp failed, copy native fbcp!!!"
|
||||
sudo cp -r ./usr/rpi-fbcp .
|
||||
fi
|
||||
else
|
||||
echo "bad network, copy native fbcp!!!"
|
||||
sudo cp -r ./usr/rpi-fbcp .
|
||||
fi
|
||||
sudo mkdir ./rpi-fbcp/build
|
||||
cd ./rpi-fbcp/build/
|
||||
sudo cmake ..
|
||||
sudo make
|
||||
sudo install fbcp /usr/local/bin/fbcp
|
||||
cd - > /dev/null
|
||||
type fbcp > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
sudo cp -rf ./etc/rc.local /etc/rc.local
|
||||
fi
|
||||
else
|
||||
echo "install cmake error!!!!"
|
||||
fi
|
||||
else
|
||||
echo "bad network, can't install cmake!!!"
|
||||
fi
|
||||
|
||||
#evdev install
|
||||
#nodeplatform=`uname -n`
|
||||
#kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
input_result=0
|
||||
version=${version##* }
|
||||
#version=${version#*#}
|
||||
echo $version
|
||||
if test $version -lt 2017;then
|
||||
echo "reboot"
|
||||
else
|
||||
echo "need to update touch configuration"
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
else
|
||||
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
|
||||
dpkg -l | grep xserver-xorg-input-evdev > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
fi
|
||||
fi
|
||||
if [ $input_result -eq 1 ]; then
|
||||
if [ $hardware_arch -eq 32 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
|
||||
elif [ $hardware_arch -eq 64 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-2_arm64.deb 2> error_output.txt
|
||||
fi
|
||||
fi
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "error:" ./error_output.txt && exit
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
#echo "reboot"
|
||||
fi
|
||||
#else
|
||||
#echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
if [ $# -eq 1 ]; then
|
||||
sudo ./rotate.sh $1
|
||||
elif [ $# -gt 1 ]; then
|
||||
echo "Too many parameters"
|
||||
fi
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
137
MHS35IPS-show
Executable file
137
MHS35IPS-show
Executable file
@ -0,0 +1,137 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
|
||||
sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
fi
|
||||
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo mkdir -p /etc/X11/xorg.conf.d
|
||||
fi
|
||||
sudo cp ./usr/mhs35ips-overlay.dtb /boot/overlays/
|
||||
sudo cp ./usr/mhs35ips-overlay.dtb /boot/overlays/mhs35ips.dtbo
|
||||
|
||||
#root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
#if test "$root_dev" = "/dev/mmcblk0p7";then
|
||||
#sudo cp -rf ./boot/config-noobs-nomal.txt ./boot/config.txt.bak
|
||||
#else
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
#sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
#fi
|
||||
|
||||
source ./system_config.sh
|
||||
sudo echo "hdmi_force_hotplug=1" >> ./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 "enable_uart=1" >> ./boot/config.txt.bak
|
||||
sudo echo "dtoverlay=mhs35ips:rotate=90" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_cvt 480 320 60 6 0 0 0" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
|
||||
sudo cp -rf ./usr/99-calibration.conf-mhs35ips-90 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
#if test "$root_dev" = "/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/
|
||||
#sudo cp ./boot/config-mhs35.txt /boot/config.txt
|
||||
sudo touch ./.have_installed
|
||||
echo "gpio:resistance:mhs35ips:90:480:320" > ./.have_installed
|
||||
|
||||
sudo apt-get update
|
||||
#FBCP install
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 https://cmake.org/
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo apt-get install cmake -y 2> error_output.txt
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "^E:" ./error_output.txt
|
||||
type cmake > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo rm -rf rpi-fbcp
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 https://github.com
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo git clone https://github.com/tasanakorn/rpi-fbcp
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "download fbcp failed, copy native fbcp!!!"
|
||||
sudo cp -r ./usr/rpi-fbcp .
|
||||
fi
|
||||
else
|
||||
echo "bad network, copy native fbcp!!!"
|
||||
sudo cp -r ./usr/rpi-fbcp .
|
||||
fi
|
||||
sudo mkdir ./rpi-fbcp/build
|
||||
cd ./rpi-fbcp/build/
|
||||
sudo cmake ..
|
||||
sudo make
|
||||
sudo install fbcp /usr/local/bin/fbcp
|
||||
cd - > /dev/null
|
||||
type fbcp > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
sudo cp -rf ./etc/rc.local /etc/rc.local
|
||||
fi
|
||||
else
|
||||
echo "install cmake error!!!!"
|
||||
fi
|
||||
else
|
||||
echo "bad network, can't install cmake!!!"
|
||||
fi
|
||||
|
||||
#evdev install
|
||||
#nodeplatform=`uname -n`
|
||||
#kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
input_result=0
|
||||
version=${version##* }
|
||||
#version=${version#*#}
|
||||
echo $version
|
||||
if test $version -lt 2017;then
|
||||
echo "reboot"
|
||||
else
|
||||
echo "need to update touch configuration"
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
else
|
||||
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
|
||||
dpkg -l | grep xserver-xorg-input-evdev > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
fi
|
||||
fi
|
||||
if [ $input_result -eq 1 ]; then
|
||||
if [ $hardware_arch -eq 32 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
|
||||
elif [ $hardware_arch -eq 64 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-2_arm64.deb 2> error_output.txt
|
||||
fi
|
||||
fi
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "error:" ./error_output.txt && exit
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
#echo "reboot"
|
||||
#else
|
||||
#echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
if [ $# -eq 1 ]; then
|
||||
sudo ./rotate.sh $1
|
||||
elif [ $# -gt 1 ]; then
|
||||
echo "Too many parameters"
|
||||
fi
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
137
MHS40-show
Executable file
137
MHS40-show
Executable file
@ -0,0 +1,137 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
|
||||
sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
fi
|
||||
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo mkdir -p /etc/X11/xorg.conf.d
|
||||
fi
|
||||
sudo cp ./usr/mhs395-overlay.dtb /boot/overlays/
|
||||
sudo cp ./usr/mhs395-overlay.dtb /boot/overlays/mhs395.dtbo
|
||||
#root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
#if test "$root_dev" = "/dev/mmcblk0p7";then
|
||||
#sudo cp -rf ./boot/config-noobs-nomal.txt ./boot/config.txt.bak
|
||||
#else
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
#sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
#fi
|
||||
|
||||
source ./system_config.sh
|
||||
sudo echo "hdmi_force_hotplug=1" >> ./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 "enable_uart=1" >> ./boot/config.txt.bak
|
||||
sudo echo "dtoverlay=mhs395:rotate=90" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_cvt 480 320 60 6 0 0 0" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
sudo cp -rf ./usr/99-calibration.conf-mhs395-90 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
#if test "$root_dev" = "/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/
|
||||
#sudo cp ./boot/config-mhs395.txt /boot/config.txt
|
||||
sudo touch ./.have_installed
|
||||
echo "gpio:resistance:mhs395:90:480:320" > ./.have_installed
|
||||
|
||||
sudo apt-get update
|
||||
#FBCP install
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 https://cmake.org/
|
||||
if [ $? -eq 0 ]; then
|
||||
#sudo apt-get update
|
||||
sudo apt-get install cmake -y 2> error_output.txt
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "^E:" ./error_output.txt
|
||||
type cmake > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo rm -rf rpi-fbcp
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 https://github.com
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo git clone https://github.com/tasanakorn/rpi-fbcp
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "download fbcp failed, copy native fbcp!!!"
|
||||
sudo cp -r ./usr/rpi-fbcp .
|
||||
fi
|
||||
else
|
||||
echo "bad network, copy native fbcp!!!"
|
||||
sudo cp -r ./usr/rpi-fbcp .
|
||||
fi
|
||||
sudo mkdir ./rpi-fbcp/build
|
||||
cd ./rpi-fbcp/build/
|
||||
sudo cmake ..
|
||||
sudo make
|
||||
sudo install fbcp /usr/local/bin/fbcp
|
||||
cd - > /dev/null
|
||||
type fbcp > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
sudo cp -rf ./etc/rc.local /etc/rc.local
|
||||
fi
|
||||
else
|
||||
echo "install cmake error!!!!"
|
||||
fi
|
||||
else
|
||||
echo "bad network, can't install cmake!!!"
|
||||
fi
|
||||
|
||||
#evdev install
|
||||
#nodeplatform=`uname -n`
|
||||
#kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
input_result=0
|
||||
version=${version##* }
|
||||
#version=${version#*#}
|
||||
echo $version
|
||||
if test $version -lt 2017;then
|
||||
echo "reboot"
|
||||
else
|
||||
echo "need to update touch configuration"
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
else
|
||||
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
|
||||
dpkg -l | grep xserver-xorg-input-evdev > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
fi
|
||||
fi
|
||||
if [ $input_result -eq 1 ]; then
|
||||
if [ $hardware_arch -eq 32 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
|
||||
elif [ $hardware_arch -eq 64 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-2_arm64.deb 2> error_output.txt
|
||||
fi
|
||||
fi
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "error:" ./error_output.txt && exit
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
#echo "reboot"
|
||||
fi
|
||||
#else
|
||||
#echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
if [ $# -eq 1 ]; then
|
||||
sudo ./rotate.sh $1
|
||||
elif [ $# -gt 1 ]; then
|
||||
echo "Too many parameters"
|
||||
fi
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
143
MHS40C-show
Executable file
143
MHS40C-show
Executable file
@ -0,0 +1,143 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
|
||||
sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
fi
|
||||
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo mkdir -p /etc/X11/xorg.conf.d
|
||||
fi
|
||||
|
||||
#root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
#if test "$root_dev" = "/dev/mmcblk0p7";then
|
||||
#sudo cp -rf ./boot/config-noobs-nomal.txt ./boot/config.txt.bak
|
||||
#else
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
#sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
#fi
|
||||
|
||||
source ./system_config.sh
|
||||
sudo echo "hdmi_force_hotplug=1" >> ./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 "enable_uart=1" >> ./boot/config.txt.bak
|
||||
sudo echo "display_rotate=0" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_cvt 800 480 60 6 0 0 0" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
|
||||
sudo echo "dtoverlay=ads7846,cs=1,penirq=17,penirq_pull=2,speed=1000000,keep_vref_on=1,swapxy=1,pmax=255,xohms=60,xmin=200,xmax=3900,ymin=200,ymax=3900" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
sudo cp -rf ./usr/99-calibration.conf-mhs397-0 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
#sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
sudo cp -rf ./etc/rc.local /etc/rc.local
|
||||
#if test "$root_dev" = "/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/
|
||||
#sudo cp ./boot/config-mhs397.txt /boot/config.txt
|
||||
sudo cp -rf ./etc/modules /etc/modules
|
||||
sudo chmod 644 /etc/modules
|
||||
sudo cp -rf ./etc/modprobe.d/fbtft.conf /etc/modprobe.d/
|
||||
|
||||
sudo touch ./.have_installed
|
||||
echo "hdmi:resistance:mhs397:0:800:480" > ./.have_installed
|
||||
|
||||
sudo apt-get update
|
||||
#FBCP install
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 https://cmake.org/
|
||||
if [ $? -eq 0 ]; then
|
||||
#sudo apt-get update
|
||||
sudo apt-get install cmake -y 2> error_output.txt
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "^E:" ./error_output.txt
|
||||
type cmake > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo rm -rf rpi-fbcp
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 https://github.com
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo git clone https://github.com/tasanakorn/rpi-fbcp
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "download fbcp failed, copy native fbcp!!!"
|
||||
sudo cp -r ./usr/rpi-fbcp .
|
||||
fi
|
||||
else
|
||||
echo "bad network, copy native fbcp!!!"
|
||||
sudo cp -r ./usr/rpi-fbcp .
|
||||
fi
|
||||
sudo mkdir ./rpi-fbcp/build
|
||||
cd ./rpi-fbcp/build/
|
||||
sudo cmake ..
|
||||
sudo make
|
||||
sudo install fbcp /usr/local/bin/fbcp
|
||||
cd - > /dev/null
|
||||
type fbcp > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
sudo cp -rf ./etc/rc.local /etc/rc.local
|
||||
fi
|
||||
else
|
||||
echo "install cmake error!!!!"
|
||||
fi
|
||||
else
|
||||
echo "bad network, can't install cmake!!!"
|
||||
fi
|
||||
|
||||
#evdev install
|
||||
#nodeplatform=`uname -n`
|
||||
#kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
input_result=0
|
||||
version=${version##* }
|
||||
#version=${version#*#}
|
||||
echo $version
|
||||
if test $version -lt 2017;then
|
||||
echo "reboot"
|
||||
else
|
||||
echo "need to update touch configuration"
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
else
|
||||
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
|
||||
dpkg -l | grep xserver-xorg-input-evdev > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
fi
|
||||
fi
|
||||
if [ $input_result -eq 1 ]; then
|
||||
if [ $hardware_arch -eq 32 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
|
||||
elif [ $hardware_arch -eq 64 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-2_arm64.deb 2> error_output.txt
|
||||
fi
|
||||
fi
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "error:" ./error_output.txt && exit
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
#echo "reboot"
|
||||
fi
|
||||
#else
|
||||
#echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
if [ $# -eq 1 ]; then
|
||||
sudo ./rotate.sh $1
|
||||
elif [ $# -gt 1 ]; then
|
||||
echo "Too many parameters"
|
||||
fi
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
139
MIS35-show
Executable file
139
MIS35-show
Executable file
@ -0,0 +1,139 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
|
||||
sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
fi
|
||||
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo mkdir -p /etc/X11/xorg.conf.d
|
||||
fi
|
||||
sudo cp ./usr/mis35-overlay.dtb /boot/overlays/
|
||||
sudo cp ./usr/mis35-overlay.dtb /boot/overlays/mis35.dtbo
|
||||
|
||||
#root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
#if test "$root_dev" = "/dev/mmcblk0p7";then
|
||||
#sudo cp -rf ./boot/config-noobs-nomal.txt ./boot/config.txt.bak
|
||||
#else
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
#sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
#fi
|
||||
|
||||
source ./system_config.sh
|
||||
sudo echo "hdmi_force_hotplug=1" >> ./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 "enable_uart=1" >> ./boot/config.txt.bak
|
||||
sudo echo "dtoverlay=mis35:rotate=90" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_cvt 480 320 60 6 0 0 0" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
|
||||
sudo cp -rf ./usr/99-calibration.conf-mis35-90 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
#if test "$root_dev" = "/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/
|
||||
#sudo cp ./boot/config-mhs35.txt /boot/config.txt
|
||||
sudo touch ./.have_installed
|
||||
echo "gpio:resistance:mis35:90:480:320" > ./.have_installed
|
||||
|
||||
sudo apt-get update
|
||||
#FBCP install
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 https://cmake.org/
|
||||
if [ $? -eq 0 ]; then
|
||||
#sudo apt-get update
|
||||
sudo apt-get install cmake -y 2> error_output.txt
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "^E:" ./error_output.txt
|
||||
type cmake > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo rm -rf rpi-fbcp
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 https://github.com
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo git clone https://github.com/tasanakorn/rpi-fbcp
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "download fbcp failed, copy native fbcp!!!"
|
||||
sudo cp -r ./usr/rpi-fbcp .
|
||||
fi
|
||||
else
|
||||
echo "bad network, copy native fbcp!!!"
|
||||
sudo cp -r ./usr/rpi-fbcp .
|
||||
fi
|
||||
sudo mkdir ./rpi-fbcp/build
|
||||
cd ./rpi-fbcp/build/
|
||||
sudo cmake ..
|
||||
sudo make
|
||||
sudo install fbcp /usr/local/bin/fbcp
|
||||
cd - > /dev/null
|
||||
type fbcp > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
sudo cp -rf ./etc/rc.local /etc/rc.local
|
||||
fi
|
||||
else
|
||||
echo "install cmake error!!!!"
|
||||
fi
|
||||
else
|
||||
echo "bad network, can't install cmake!!!"
|
||||
fi
|
||||
|
||||
#evdev install
|
||||
#nodeplatform=`uname -n`
|
||||
#kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
input_result=0
|
||||
version=${version##* }
|
||||
#version=${version#*#}
|
||||
echo $version
|
||||
if test $version -lt 2017;then
|
||||
echo "reboot"
|
||||
else
|
||||
echo "need to update touch configuration"
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
else
|
||||
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
|
||||
dpkg -l | grep xserver-xorg-input-evdev > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
fi
|
||||
fi
|
||||
if [ $input_result -eq 1 ]; then
|
||||
if [ $hardware_arch -eq 32 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
|
||||
elif [ $hardware_arch -eq 64 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-2_arm64.deb 2> error_output.txt
|
||||
fi
|
||||
fi
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "error:" ./error_output.txt && exit
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
#echo "reboot"
|
||||
fi
|
||||
#else
|
||||
#echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
if [ $# -eq 1 ]; then
|
||||
sudo ./rotate.sh $1
|
||||
elif [ $# -gt 1 ]; then
|
||||
echo "Too many parameters"
|
||||
fi
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
106
MPI3508-show
Normal file → Executable file
106
MPI3508-show
Normal file → Executable file
@ -1,38 +1,96 @@
|
||||
#!/bin/bash
|
||||
sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
sudo cp -rf ./boot/config-35-480X320.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 ./system_backup.sh
|
||||
|
||||
hw_version=`tr -d '\0' < /proc/device-tree/model`
|
||||
#root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
#if test "$root_dev" = "/dev/mmcblk0p7";then
|
||||
#sudo cp -rf ./boot/config-noobs-nomal.txt ./boot/config.txt.bak
|
||||
#else
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
#sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
#fi
|
||||
|
||||
source ./system_config.sh
|
||||
sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_force_edid_audio=1" >> ./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 "enable_uart=1" >> ./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 "config_hdmi_boost=7" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_cvt 480 320 60 6 0 0 0" >> ./boot/config.txt.bak
|
||||
sudo echo "dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900" >> ./boot/config.txt.bak
|
||||
[[ $hw_version =~ "Raspberry Pi 4" ]] && sudo echo "hdmi_timings=600 0 20 28 48 400 0 13 3 32 0 0 0 30 0 25000000 5" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
|
||||
#sudo cp -rf ./boot/config-35-480X320.txt /boot/config.txt
|
||||
#if test "$root_dev" = "/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/
|
||||
sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
sudo mkdir -p /etc/X11/xorg.conf.d
|
||||
sudo cp -rf ./usr/99-calibration.conf-3508 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
nodeplatform=`uname -n`
|
||||
kernel=`uname -r`
|
||||
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo mkdir /etc/X11/xorg.conf.d
|
||||
fi
|
||||
sudo cp -rf ./usr/99-calibration.conf-3508-0 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
sudo touch ./.have_installed
|
||||
echo "hdmi:resistance:3508:0:480:320" > ./.have_installed
|
||||
|
||||
#nodeplatform=`uname -n`
|
||||
#kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
if test "$nodeplatform" = "raspberrypi";then
|
||||
echo "this is raspberrypi kernel"
|
||||
version=${version%% *}
|
||||
version=${version#*#}
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
input_result=0
|
||||
version=${version##* }
|
||||
#version=${version#*#}
|
||||
echo $version
|
||||
if test $version -lt 970;then
|
||||
if test $version -lt 2017;then
|
||||
echo "reboot"
|
||||
else
|
||||
echo "need to update touch configuration"
|
||||
if test $version -ge 1023;then
|
||||
echo "install xserver-xorg-input-evdev_2.10.5-1"
|
||||
sudo dpkg -i -B xserver-xorg-input-evdev_2.10.5-1_armhf.deb
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
else
|
||||
echo "install xserver-xorg-input-evdev_1%3a2.10.3-1"
|
||||
sudo dpkg -i -B xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb
|
||||
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
|
||||
dpkg -l | grep xserver-xorg-input-evdev > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
fi
|
||||
fi
|
||||
if [ $input_result -eq 1 ]; then
|
||||
if [ $hardware_arch -eq 32 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
|
||||
elif [ $hardware_arch -eq 64 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-2_arm64.deb 2> error_output.txt
|
||||
fi
|
||||
fi
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "error:" ./error_output.txt && exit
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
echo "reboot"
|
||||
#echo "reboot"
|
||||
fi
|
||||
else
|
||||
echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#else
|
||||
#echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
if [ $# -eq 1 ]; then
|
||||
sudo ./rotate.sh $1
|
||||
elif [ $# -gt 1 ]; then
|
||||
echo "Too many parameters"
|
||||
fi
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
|
||||
8
MPI3508_480_320-show
Normal file → Executable file
8
MPI3508_480_320-show
Normal file → Executable file
@ -22,13 +22,7 @@ if test $version -lt 970;then
|
||||
echo "reboot"
|
||||
else
|
||||
echo "need to update touch configuration"
|
||||
if test $version -ge 1023;then
|
||||
echo "install xserver-xorg-input-evdev_2.10.5-1"
|
||||
sudo dpkg -i -B xserver-xorg-input-evdev_2.10.5-1_armhf.deb
|
||||
else
|
||||
echo "install xserver-xorg-input-evdev_1%3a2.10.3-1"
|
||||
sudo dpkg -i -B xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb
|
||||
fi
|
||||
sudo apt-get install xserver-xorg-input-evdev
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
echo "reboot"
|
||||
fi
|
||||
|
||||
8
MPI3510-show
Normal file → Executable file
8
MPI3510-show
Normal file → Executable file
@ -21,13 +21,7 @@ if test $version -lt 970;then
|
||||
echo "reboot"
|
||||
else
|
||||
echo "need to update touch configuration"
|
||||
if test $version -ge 1023;then
|
||||
echo "install xserver-xorg-input-evdev_2.10.5-1"
|
||||
sudo dpkg -i -B xserver-xorg-input-evdev_2.10.5-1_armhf.deb
|
||||
else
|
||||
echo "install xserver-xorg-input-evdev_1%3a2.10.3-1"
|
||||
sudo dpkg -i -B xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb
|
||||
fi
|
||||
sudo apt-get install xserver-xorg-input-evdev
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
echo "reboot"
|
||||
fi
|
||||
|
||||
103
MPI4008-show
Normal file → Executable file
103
MPI4008-show
Normal file → Executable file
@ -1,37 +1,96 @@
|
||||
#!/bin/bash
|
||||
sudo cp -rf ./boot/config-397.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 ./system_backup.sh
|
||||
|
||||
#root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
#if test "$root_dev" = "/dev/mmcblk0p7";then
|
||||
#sudo cp -rf ./boot/config-noobs-nomal.txt ./boot/config.txt.bak
|
||||
#else
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
#sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
#fi
|
||||
|
||||
source ./system_config.sh
|
||||
sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_force_edid_audio=1" >> ./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 "enable_uart=1" >> ./boot/config.txt.bak
|
||||
sudo echo "display_rotate=3" >> ./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 "hdmi_group=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_cvt 480 800 60 6 0 0 0" >> ./boot/config.txt.bak
|
||||
sudo echo "dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
|
||||
#sudo cp -rf ./boot/config-397.txt /boot/config.txt
|
||||
|
||||
#if test "$root_dev" = "/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/
|
||||
sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo mkdir /etc/X11/xorg.conf.d
|
||||
sudo cp -rf ./usr/99-calibration.conf-397 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
nodeplatform=`uname -n`
|
||||
kernel=`uname -r`
|
||||
fi
|
||||
sudo cp -rf ./usr/99-calibration.conf-397-270 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
sudo touch ./.have_installed
|
||||
echo "hdmi:resistance:397:270:480:800" > ./.have_installed
|
||||
|
||||
#nodeplatform=`uname -n`
|
||||
#kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
if test "$nodeplatform" = "raspberrypi";then
|
||||
echo "this is raspberrypi kernel"
|
||||
version=${version%% *}
|
||||
version=${version#*#}
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
input_result=0
|
||||
version=${version##* }
|
||||
#version=${version#*#}
|
||||
echo $version
|
||||
if test $version -lt 970;then
|
||||
if test $version -lt 2017;then
|
||||
echo "reboot"
|
||||
else
|
||||
echo "need to update touch configuration"
|
||||
if test $version -ge 1023;then
|
||||
echo "install xserver-xorg-input-evdev_2.10.5-1"
|
||||
sudo dpkg -i -B xserver-xorg-input-evdev_2.10.5-1_armhf.deb
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
else
|
||||
echo "install xserver-xorg-input-evdev_1%3a2.10.3-1"
|
||||
sudo dpkg -i -B xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb
|
||||
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
|
||||
dpkg -l | grep xserver-xorg-input-evdev > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
fi
|
||||
fi
|
||||
if [ $input_result -eq 1 ]; then
|
||||
if [ $hardware_arch -eq 32 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
|
||||
elif [ $hardware_arch -eq 64 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-2_arm64.deb 2> error_output.txt
|
||||
fi
|
||||
fi
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "error:" ./error_output.txt && exit
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
echo "reboot"
|
||||
#echo "reboot"
|
||||
fi
|
||||
else
|
||||
echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#else
|
||||
#echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
if [ $# -eq 1 ]; then
|
||||
sudo ./rotate.sh $1
|
||||
elif [ $# -gt 1 ]; then
|
||||
echo "Too many parameters"
|
||||
fi
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
|
||||
96
MPI4009-show
Executable file
96
MPI4009-show
Executable file
@ -0,0 +1,96 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
#root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
#if test "$root_dev" = "/dev/mmcblk0p7";then
|
||||
#sudo cp -rf ./boot/config-noobs-nomal.txt ./boot/config.txt.bak
|
||||
#else
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
#sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
#fi
|
||||
|
||||
source ./system_config.sh
|
||||
sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_force_edid_audio=1" >> ./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 "enable_uart=1" >> ./boot/config.txt.bak
|
||||
sudo echo "display_rotate=3" >> ./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 "hdmi_group=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_cvt 480 800 65 6 0 0 0" >> ./boot/config.txt.bak
|
||||
sudo echo "dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
|
||||
#sudo cp -rf ./boot/config-397.txt /boot/config.txt
|
||||
|
||||
#if test "$root_dev" = "/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/
|
||||
sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo mkdir /etc/X11/xorg.conf.d
|
||||
fi
|
||||
sudo cp -rf ./usr/99-calibration.conf-3971-270 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
sudo touch ./.have_installed
|
||||
echo "hdmi:resistance:3971:270:480:800" > ./.have_installed
|
||||
|
||||
#nodeplatform=`uname -n`
|
||||
#kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
input_result=0
|
||||
version=${version##* }
|
||||
#version=${version#*#}
|
||||
echo $version
|
||||
if test $version -lt 2017;then
|
||||
echo "reboot"
|
||||
else
|
||||
echo "need to update touch configuration"
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
else
|
||||
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
|
||||
dpkg -l | grep xserver-xorg-input-evdev > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
fi
|
||||
fi
|
||||
if [ $input_result -eq 1 ]; then
|
||||
if [ $hardware_arch -eq 32 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
|
||||
elif [ $hardware_arch -eq 64 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-2_arm64.deb 2> error_output.txt
|
||||
fi
|
||||
fi
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "error:" ./error_output.txt && exit
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
#echo "reboot"
|
||||
fi
|
||||
#else
|
||||
#echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
if [ $# -eq 1 ]; then
|
||||
sudo ./rotate.sh $1
|
||||
elif [ $# -gt 1 ]; then
|
||||
echo "Too many parameters"
|
||||
fi
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
80
MPI5001-show
Normal file → Executable file
80
MPI5001-show
Normal file → Executable file
@ -1,33 +1,53 @@
|
||||
sudo cp -rf ./boot/config-MPI5001.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/
|
||||
sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
#!/bin/bash
|
||||
|
||||
nodeplatform=`uname -n`
|
||||
kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
if test "$nodeplatform" = "raspberrypi";then
|
||||
echo "this is raspberrypi kernel"
|
||||
version=${version%% *}
|
||||
version=${version#*#}
|
||||
echo $version
|
||||
if test $version -lt 970;then
|
||||
echo "reboot"
|
||||
else
|
||||
echo "need to update touch configuration"
|
||||
if test $version -ge 1023;then
|
||||
echo "install xserver-xorg-input-evdev_2.10.5-1"
|
||||
sudo dpkg -i -B xserver-xorg-input-evdev_2.10.5-1_armhf.deb
|
||||
else
|
||||
echo "install xserver-xorg-input-evdev_1%3a2.10.3-1"
|
||||
sudo dpkg -i -B xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
sudo ./system_backup.sh
|
||||
|
||||
#root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
#if test "$root_dev" = "/dev/mmcblk0p7";then
|
||||
#sudo cp -rf ./boot/config-noobs-nomal.txt ./boot/config.txt.bak
|
||||
#else
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
#sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
#fi
|
||||
|
||||
source ./system_config.sh
|
||||
sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_force_edid_audio=1" >> ./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 "enable_uart=1" >> ./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 "config_hdmi_boost=7" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_cvt 800 480 60 6 0 0 0" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
#sudo cp -rf ./boot/config-MPI5001.txt /boot/config.txt
|
||||
#if test "$root_dev" = "/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/
|
||||
sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
|
||||
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo mkdir /etc/X11/xorg.conf.d
|
||||
sudo cp ./usr/40-libinput.conf-MPI5001 /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
fi
|
||||
sudo cp ./usr/40-libinput.conf-0 /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
sudo touch ./.have_installed
|
||||
echo "hdmi:capacity:MPI5001:0:800:480" > ./.have_installed
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
if [ $# -eq 1 ]; then
|
||||
sudo ./rotate.sh $1
|
||||
elif [ $# -gt 1 ]; then
|
||||
echo "Too many parameters"
|
||||
fi
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
|
||||
24
MPI5094-show
Executable file
24
MPI5094-show
Executable file
@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
source ./system_config.sh
|
||||
sudo echo "hdmi_force_hotplug=1" >> ./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 "hdmi_group=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_cvt 800 480 60 6 0 0 0" >> ./boot/config.txt.bak
|
||||
sudo echo "dtoverlay=goodix" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
|
||||
if [ -f /boot/overlays/goodix.dtbo ]; then
|
||||
sudo mv /boot/overlays/goodix.dtbo /boot/overlays/goodix.dtbo.bak
|
||||
sudo cp ./usr/goodix.dtbo /boot/overlays/
|
||||
fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
60
Mouse_Key.py
Normal file
60
Mouse_Key.py
Normal file
@ -0,0 +1,60 @@
|
||||
from pymouse import PyMouse
|
||||
import time
|
||||
import RPi.GPIO as GPIO
|
||||
|
||||
GPIO.setmode(GPIO.BCM)
|
||||
|
||||
btn_up = 5
|
||||
btn_down = 26
|
||||
btn_left = 19
|
||||
btn_right = 6
|
||||
btn_key1 = 21
|
||||
btn_key2 = 20
|
||||
|
||||
# Up, Down, left, right, Button
|
||||
GPIO.setup(btn_up, GPIO.IN,GPIO.PUD_UP)
|
||||
GPIO.setup(btn_down, GPIO.IN,GPIO.PUD_UP)
|
||||
GPIO.setup(btn_left, GPIO.IN,GPIO.PUD_UP)
|
||||
GPIO.setup(btn_right, GPIO.IN,GPIO.PUD_UP)
|
||||
GPIO.setup(btn_key1, GPIO.IN,GPIO.PUD_UP)
|
||||
GPIO.setup(btn_key2, GPIO.IN,GPIO.PUD_UP)
|
||||
|
||||
def main():
|
||||
m = PyMouse()
|
||||
KEY1_flag = False
|
||||
KEY2_flag = False
|
||||
KEY3_flag = False
|
||||
while True:
|
||||
nowxy = m.position()
|
||||
if (not GPIO.input(btn_key1)): # button pressed
|
||||
KEY1_flag = True
|
||||
print("KEY1")
|
||||
m.click(nowxy[0], nowxy[1], 1)
|
||||
|
||||
if KEY1_flag and GPIO.input(btn_key1): # button released
|
||||
KEY1_flag = False
|
||||
|
||||
if (not GPIO.input(btn_key2)): # button pressed
|
||||
KEY2_flag = True
|
||||
print("KEY1")
|
||||
m.click(nowxy[0], nowxy[1], 2)
|
||||
|
||||
if KEY2_flag and GPIO.input(btn_key2): # button released
|
||||
KEY2_flag = False
|
||||
|
||||
if (not GPIO.input(btn_up)): # button pressed
|
||||
m.move(nowxy[0] - 5, nowxy[1])
|
||||
|
||||
if (not GPIO.input(btn_down)): # button pressed
|
||||
m.move(nowxy[0] + 5, nowxy[1])
|
||||
|
||||
if (not GPIO.input(btn_left)): # button pressed
|
||||
m.move(nowxy[0], nowxy[1] + 5)
|
||||
|
||||
if (not GPIO.input(btn_right)): # button pressed
|
||||
m.move(nowxy[0], nowxy[1] - 5)
|
||||
|
||||
time.sleep(0.02) # Poll every 20ms (otherwise CPU load gets too high)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
141
NANO24-show
Executable file
141
NANO24-show
Executable file
@ -0,0 +1,141 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
|
||||
sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
fi
|
||||
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo mkdir -p /etc/X11/xorg.conf.d
|
||||
fi
|
||||
sudo cp ./usr/tft7789-overlay.dtb /boot/overlays/
|
||||
sudo cp ./usr/tft7789-overlay.dtb /boot/overlays/tft7789.dtbo
|
||||
#root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
#if test "$root_dev" = "/dev/mmcblk0p7";then
|
||||
#sudo cp -rf ./boot/config-noobs-nomal.txt ./boot/config.txt.bak
|
||||
#else
|
||||
#sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
|
||||
#sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
||||
#fi
|
||||
|
||||
source ./system_config.sh
|
||||
sudo echo "hdmi_force_hotplug=1" >> ./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 "enable_uart=1" >> ./boot/config.txt.bak
|
||||
sudo echo "dtoverlay=tft7789:rotate=90" >> ./boot/config.txt.bak
|
||||
sudo echo "dtoverlay=ft6236" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_cvt 320 240 60 6 0 0 0" >> ./boot/config.txt.bak
|
||||
sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
|
||||
sudo echo "dtoverlay=spi0-2cs,cs1_pin=4,0x01" >> ./boot/config.txt.bak
|
||||
sudo echo "gpio=18=op,dh" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
|
||||
sudo cp ./usr/ft6236.dtb /boot/overlays/ft6236.dtbo
|
||||
|
||||
sudo cp -rf ./usr/99-calibration.conf-nano24-90 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
#if test "$root_dev" = "/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/
|
||||
sudo touch ./.have_installed
|
||||
echo "gpio:resistance:nano24:90:320:240" > ./.have_installed
|
||||
|
||||
sudo apt-get update
|
||||
#FBCP install
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 https://cmake.org/
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo apt-get install cmake -y 2> error_output.txt
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "^E:" ./error_output.txt
|
||||
type cmake > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo rm -rf rpi-fbcp
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 https://github.com
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo git clone https://github.com/tasanakorn/rpi-fbcp
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "download fbcp failed, copy native fbcp!!!"
|
||||
sudo cp -r ./usr/rpi-fbcp .
|
||||
fi
|
||||
else
|
||||
echo "bad network, copy native fbcp!!!"
|
||||
sudo cp -r ./usr/rpi-fbcp .
|
||||
fi
|
||||
sudo mkdir ./rpi-fbcp/build
|
||||
cd ./rpi-fbcp/build/
|
||||
sudo cmake ..
|
||||
sudo make
|
||||
sudo install fbcp /usr/local/bin/fbcp
|
||||
cd - > /dev/null
|
||||
type fbcp > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
sudo cp -rf ./etc/rc.local /etc/rc.local
|
||||
fi
|
||||
else
|
||||
echo "install cmake error!!!!"
|
||||
fi
|
||||
else
|
||||
echo "bad network, can't install cmake!!!"
|
||||
fi
|
||||
|
||||
#evdev install
|
||||
#nodeplatform=`uname -n`
|
||||
#kernel=`uname -r`
|
||||
version=`uname -v`
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
input_result=0
|
||||
version=${version##* }
|
||||
#version=${version#*#}
|
||||
echo $version
|
||||
if test $version -lt 2017;then
|
||||
echo "reboot"
|
||||
else
|
||||
echo "need to update touch configuration"
|
||||
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
else
|
||||
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
|
||||
dpkg -l | grep xserver-xorg-input-evdev > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
input_result=1
|
||||
fi
|
||||
fi
|
||||
if [ $input_result -eq 1 ]; then
|
||||
if [ $hardware_arch -eq 32 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
|
||||
elif [ $hardware_arch -eq 64 ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-2_arm64.deb 2> error_output.txt
|
||||
fi
|
||||
fi
|
||||
result=`cat ./error_output.txt`
|
||||
echo -e "\033[31m$result\033[0m"
|
||||
grep -q "error:" ./error_output.txt && exit
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
#echo "reboot"
|
||||
fi
|
||||
#else
|
||||
#echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
|
||||
#fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
sleep 1
|
||||
if [ $# -eq 1 ]; then
|
||||
sudo ./rotate.sh $1
|
||||
elif [ $# -gt 1 ]; then
|
||||
echo "Too many parameters"
|
||||
fi
|
||||
|
||||
echo "reboot now"
|
||||
sudo reboot
|
||||
BIN
PyMouse-1.0.tar.gz
Normal file
BIN
PyMouse-1.0.tar.gz
Normal file
Binary file not shown.
205
README.md
Normal file → Executable file
205
README.md
Normal file → Executable file
@ -1,21 +1,48 @@
|
||||
LCD driver for the Raspberry PI Installation<br>
|
||||
### Install drivers in the Ubuntu system
|
||||
https://github.com/lcdwiki/LCD-show-ubuntu
|
||||
|
||||
### Install drivers in the Kali system
|
||||
https://github.com/lcdwiki/LCD-show-kali
|
||||
|
||||
### Install drivers in the RetroPie system
|
||||
https://github.com/lcdwiki/LCD-show-retropie
|
||||
|
||||
|
||||
|
||||
Install drivers in the Raspbian system<br>
|
||||
====================================================
|
||||
v1.7-20180320<br>
|
||||
Update to support Raspbian Version:March 2018(Release date:2018-03-13)<br>
|
||||
Update: <br>
|
||||
v2.1-20191106<br>
|
||||
Update to support MHS35B<br>
|
||||
Update: <br>
|
||||
v2.0-20190704<br>
|
||||
Update to support rotate the display direction<br>
|
||||
Update: <br>
|
||||
v1.9-20181204<br>
|
||||
Update to support MHS40 & MHS32<br>
|
||||
Update: <br>
|
||||
v1.8-20180907<br>
|
||||
Update to support MHS35<br>
|
||||
Update: <br>
|
||||
v1.7-20180320<br>
|
||||
Update to support Raspbian Version: March 2018(Release date:2018-03-13)<br>
|
||||
Update: <br>
|
||||
v1.6-20170824<br>
|
||||
Update xserver to support Raspbian-2017-08-16<br>
|
||||
Update: <br>
|
||||
v1.5-20170706<br>
|
||||
Update to support Raspbian-2017-07-05,Raspbian-2017-06-21<br>
|
||||
Update to support Raspbian-2017-07-05, Raspbian-2017-06-21<br>
|
||||
Update: <br>
|
||||
v1.3-20170612<br>
|
||||
fixed to support Raspbian-2017-03-02,Raspbian-2017-04-10<br>
|
||||
fixed to support Raspbian-2017-03-02, Raspbian-2017-04-10<br>
|
||||
Update: <br>
|
||||
v1.2-20170302<br>
|
||||
Add xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb to support Raspbian-2017-03-02<br>
|
||||
Update: <br>
|
||||
v1.1-20160815<br><br>
|
||||
|
||||
|
||||
# How to install the LCD driver of Raspberry Pi
|
||||
|
||||
1.)Step1, Install Raspbian official mirror <br>
|
||||
====================================================
|
||||
@ -26,8 +53,8 @@ Update: <br>
|
||||
|
||||
2.) Step2, Clone my repo onto your pi<br>
|
||||
====================================================
|
||||
Use SSH to connect the raspberry pi, <br>
|
||||
And Ensure that the raspberry pi is connected to the Internet before executing the following commands:
|
||||
Use SSH to connect the Raspberry Pi, <br>
|
||||
And Ensure that the Raspberry Pi is connected to the Internet before executing the following commands:
|
||||
-----------------------------------------------------------------------------------------------------
|
||||
|
||||
```sudo rm -rf LCD-show```<br>
|
||||
@ -35,35 +62,143 @@ And Ensure that the raspberry pi is connected to the Internet before executing t
|
||||
```chmod -R 755 LCD-show```<br>
|
||||
```cd LCD-show/```<br>
|
||||
|
||||
3.)Step3, According to your LCD's type, excute:
|
||||
3.)Step3, According to your LCD's type, excute the corresponding driver:
|
||||
====================================================
|
||||
In case of 2.4" RPi Display(MPI2401)<br>
|
||||
```sudo ./LCD24-show```<br><br>
|
||||
In case of 2.8" RPi Display(MPI2801)<br>
|
||||
```sudo ./LCD28-show```<br><br>
|
||||
In case of 3.2" RPi Display(MPI3201)<br>
|
||||
```sudo ./LCD32-show```<br><br>
|
||||
In case of 3.5inch RPi Display(MPI3501)<br>
|
||||
```sudo ./LCD35-show```<br><br>
|
||||
In case of 3.5" HDMI Display-B(MPI3508)<br>
|
||||
```sudo ./MPI3508-show```<br><br>
|
||||
In case of 4.0" HDMI Display(MPI4008)<br>
|
||||
```sudo ./MPI4008-show```<br><br>
|
||||
In case of 5inch HDMI Display-B(Capacitor touch)(MPI5001):<br>
|
||||
```sudo ./MPI5001-show```<br><br>
|
||||
In case of 5inch HDMI Display(Resistance touch)(MPI5008)<br>
|
||||
```sudo ./LCD5-show```<br><br>
|
||||
In case of 7inch HDMI Display-B-800X480(MPI7001)<br>
|
||||
```sudo ./LCD7B-show```<br><br>
|
||||
In case of 7inch HDMI Display-C-1024X600(MPI7002)<br>
|
||||
```sudo ./LCD7C-show```<br><br><br>
|
||||
If you need to switch back to the traditional HDMI display<br>
|
||||
```sudo ./LCD-hdmi```<br>
|
||||
|
||||
Wait a few minutes,the system will restart automaticall , enjoy with your LCD.
|
||||
-------------------------------------------------------------------------------
|
||||
The LCD-show.tar.gz also can be download from:
|
||||
http://www.hellolcd.com/wiki/LCD-show
|
||||
<br><br>
|
||||
# 2.4” RPi Display (MPI2401):
|
||||
### Driver install:
|
||||
sudo ./LCD24-show
|
||||
### WIKI:
|
||||
CN: http://www.lcdwiki.com/zh/2.4inch_RPi_Display <br>
|
||||
EN: http://www.lcdwiki.com/2.4inch_RPi_Display
|
||||
|
||||
|
||||
# 2.4” RPi Display For RPi 3A+ (MPI2411):
|
||||
### Driver install:
|
||||
sudo ./LCD24-3A+-show
|
||||
### WIKI:
|
||||
CN: http://www.lcdwiki.com/zh/2.4inch_RPi_Display_For_RPi_3A+ <br>
|
||||
EN: http://www.lcdwiki.com/2.4inch_RPi_Display_For_RPi_3A+
|
||||
|
||||
# 2.8” RPi Display (MPI2801):
|
||||
### Driver install:
|
||||
sudo ./LCD28-show
|
||||
### WIKI:
|
||||
CN: http://www.lcdwiki.com/zh/2.8inch_RPi_Display <br>
|
||||
EN: http://www.lcdwiki.com/2.8inch_RPi_Display
|
||||
|
||||
# 3.2” RPi Display (MPI3201):
|
||||
### Driver install:
|
||||
sudo ./LCD32-show
|
||||
### WIKI:
|
||||
CN: http://www.lcdwiki.com/zh/3.2inch_RPi_Display <br>
|
||||
EN: http://www.lcdwiki.com/3.2inch_RPi_Display
|
||||
|
||||
# MHS-3.2” RPi Display (MHS3232):
|
||||
### Driver install:
|
||||
sudo ./MHS32-show
|
||||
### WIKI:
|
||||
CN: http://www.lcdwiki.com/zh/MHS-3.2inch_Display <br>
|
||||
EN: http://www.lcdwiki.com/MHS-3.2inch_Display
|
||||
|
||||
# 3.5” RPi Display(MPI3501):
|
||||
### Driver install:
|
||||
sudo ./LCD35-show
|
||||
### WIKI:
|
||||
CN: http://www.lcdwiki.com/zh/3.5inch_RPi_Display <br>
|
||||
EN: http://www.lcdwiki.com/3.5inch_RPi_Display
|
||||
|
||||
# 3.5” HDMI Display-B(MPI3508):
|
||||
### Driver install:
|
||||
sudo ./MPI3508-show
|
||||
### WIKI:
|
||||
CN: http://www.lcdwiki.com/zh/3.5inch_HDMI_Display-B <br>
|
||||
EN: http://www.lcdwiki.com/3.5inch_HDMI_Display-B
|
||||
|
||||
# MHS-3.5” RPi Display(MHS3528):
|
||||
### Driver install:
|
||||
sudo ./MHS35-show
|
||||
### WIKI:
|
||||
CN: http://www.lcdwiki.com/zh/MHS-3.5inch_RPi_Display <br>
|
||||
EN:http://www.lcdwiki.com/MHS-3.5inch_RPi_Display
|
||||
|
||||
# MHS-3.5” RPi Display-B(MHS35XX):
|
||||
### Driver install:
|
||||
sudo ./MHS35B-show
|
||||
### WIKI:
|
||||
CN: http://www.lcdwiki.com/zh/MHS-3.5inch_RPi_Display-B <br>
|
||||
EN:http://www.lcdwiki.com/MHS-3.5inch_RPi_Display-B
|
||||
|
||||
# 4.0" HDMI Display(MPI4008):
|
||||
### Driver install:
|
||||
sudo ./MPI4008-show
|
||||
### WIKI:
|
||||
CN: http://www.lcdwiki.com/zh/4inch_HDMI_Display-C <br>
|
||||
EN: http://www.lcdwiki.com/4inch_HDMI_Display-C
|
||||
|
||||
# MHS-4.0" HDMI Display-B(MHS4001):
|
||||
### Driver install:
|
||||
sudo ./MHS40-show
|
||||
### WIKI:
|
||||
CN: http://www.lcdwiki.com/zh/MHS-4.0inch_Display-B <br>
|
||||
EN: http://www.lcdwiki.com/MHS-4.0inch_Display-B
|
||||
|
||||
# 5.0” HDMI Display(Resistance touch)(MPI5008):
|
||||
### Driver install:
|
||||
sudo ./LCD5-show
|
||||
### WIKI:
|
||||
CN: http://www.lcdwiki.com/zh/5inch_HDMI_Display <br>
|
||||
EN: http://www.lcdwiki.com/5inch_HDMI_Display
|
||||
|
||||
# 5inch HDMI Display-B(Capacitor touch)(MPI5001):
|
||||
### Driver install:
|
||||
sudo ./MPI5001-show
|
||||
### WIKI:
|
||||
CN: http://www.lcdwiki.com/zh/5inch_HDMI_Display-B <br>
|
||||
EN: http://www.lcdwiki.com/5inch_HDMI_Display-B
|
||||
|
||||
# 7inch HDMI Display-B-800X480(MPI7001):
|
||||
### Driver install:
|
||||
sudo ./LCD7B-show
|
||||
### WIKI:
|
||||
CN: http://www.lcdwiki.com/zh/7inch_HDMI_Display-B <br>
|
||||
EN: http://www.lcdwiki.com/7inch_HDMI_Display-B
|
||||
|
||||
# 7inch HDMI Display-C-1024X600(MPI7002):
|
||||
### Driver install:
|
||||
sudo ./LCD7C-show
|
||||
### WIKI:
|
||||
CN: http://www.lcdwiki.com/zh/7inch_HDMI_Display-C <br>
|
||||
EN: http://www.lcdwiki.com/7inch_HDMI_Display-C
|
||||
|
||||
Wait for a moment after executing the above command, then you can use the corresponding raspberry LCD.
|
||||
|
||||
|
||||
|
||||
|
||||
# How to rotate the display direction
|
||||
|
||||
This method only applies to the Raspberry Pi series of display screens, other display screens do not apply.
|
||||
|
||||
### Method 1, If the driver is not installed, execute the following command (Raspberry Pi needs to connected to the Internet):
|
||||
|
||||
sudo rm -rf LCD-show<br>
|
||||
git clone https://github.com/goodtft/LCD-show.git<br>
|
||||
chmod -R 755 LCD-show<br>
|
||||
cd LCD-show/<br>
|
||||
sudo ./XXX-show 90<br>
|
||||
|
||||
After execution, the driver will be installed. The system will automatically restart, and the display screen will rotate 90 degrees to display and touch normally.<br>
|
||||
( ' XXX-show ' can be changed to the corresponding driver, and ' 90 ' can be changed to 0, 90, 180 and 270, respectively representing rotation angles of 0 degrees, 90 degrees, 180 degrees, 270 degrees)<br>
|
||||
|
||||
### Method 2, If the driver is already installed, execute the following command:
|
||||
|
||||
cd LCD-show/<br>
|
||||
sudo ./rotate.sh 90<br>
|
||||
|
||||
After execution, the system will automatically restart, and the display screen will rotate 90 degrees to display and touch normally.<br>
|
||||
( ' 90 ' can be changed to 0, 90, 180 and 270, respectively representing rotation angles of 0 degrees, 90 degrees, 180 degrees, 270 degrees)<br>
|
||||
(If the rotate.sh prompt cannot be found, use Method 1 to install the latest drivers)
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,64 +0,0 @@
|
||||
# For more options and information see
|
||||
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
|
||||
# Some settings may impact device functionality. See link above for details
|
||||
|
||||
# uncomment if you get no picture on HDMI for a default "safe" mode
|
||||
#hdmi_safe=1
|
||||
|
||||
# uncomment this if your display has a black border of unused pixels visible
|
||||
# and your display can output without overscan
|
||||
#disable_overscan=1
|
||||
|
||||
# uncomment the following to adjust overscan. Use positive numbers if console
|
||||
# goes off screen, and negative if there is too much border
|
||||
#overscan_left=16
|
||||
#overscan_right=16
|
||||
#overscan_top=16
|
||||
#overscan_bottom=16
|
||||
|
||||
# uncomment to force a console size. By default it will be display's size minus
|
||||
# overscan.
|
||||
#framebuffer_width=1280
|
||||
#framebuffer_height=720
|
||||
|
||||
# uncomment if hdmi display is not detected and composite is being output
|
||||
hdmi_force_hotplug=1
|
||||
|
||||
# uncomment to force a specific HDMI mode (this will force VGA)
|
||||
#hdmi_group=1
|
||||
#hdmi_mode=1
|
||||
|
||||
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
|
||||
# DMT (computer monitor) modes
|
||||
#hdmi_drive=2
|
||||
|
||||
# uncomment to increase signal to HDMI, if you have interference, blanking, or
|
||||
# no display
|
||||
#config_hdmi_boost=4
|
||||
|
||||
# uncomment for composite PAL
|
||||
#sdtv_mode=2
|
||||
|
||||
#uncomment to overclock the arm. 700 MHz is the default.
|
||||
#arm_freq=800
|
||||
|
||||
# Uncomment some or all of these to enable the optional hardware interfaces
|
||||
dtparam=i2c_arm=on
|
||||
#dtparam=i2s=on
|
||||
dtparam=spi=on
|
||||
enable_uart=1
|
||||
# Uncomment this to enable the lirc-rpi module
|
||||
#dtoverlay=lirc-rpi
|
||||
|
||||
# Additional overlays and parameters are documented /boot/overlays/README
|
||||
|
||||
# Enable audio (loads snd_bcm2835)
|
||||
dtparam=audio=on
|
||||
hdmi_force_hotplug=1
|
||||
config_hdmi_boost=7
|
||||
hdmi_drive=2
|
||||
hdmi_force_hotplug=1
|
||||
hdmi_group=2
|
||||
hdmi_mode=87
|
||||
hdmi_cvt 480 320 60 6 0 0 0
|
||||
dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900
|
||||
@ -1,58 +0,0 @@
|
||||
# For more options and information see
|
||||
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
|
||||
# Some settings may impact device functionality. See link above for details
|
||||
|
||||
# uncomment if you get no picture on HDMI for a default "safe" mode
|
||||
#hdmi_safe=1
|
||||
|
||||
# uncomment this if your display has a black border of unused pixels visible
|
||||
# and your display can output without overscan
|
||||
#disable_overscan=1
|
||||
|
||||
# uncomment the following to adjust overscan. Use positive numbers if console
|
||||
# goes off screen, and negative if there is too much border
|
||||
#overscan_left=16
|
||||
#overscan_right=16
|
||||
#overscan_top=16
|
||||
#overscan_bottom=16
|
||||
|
||||
# uncomment to force a console size. By default it will be display's size minus
|
||||
# overscan.
|
||||
#framebuffer_width=1280
|
||||
#framebuffer_height=720
|
||||
|
||||
# uncomment if hdmi display is not detected and composite is being output
|
||||
hdmi_force_hotplug=1
|
||||
|
||||
# uncomment to force a specific HDMI mode (this will force VGA)
|
||||
#hdmi_group=1
|
||||
#hdmi_mode=1
|
||||
|
||||
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
|
||||
# DMT (computer monitor) modes
|
||||
#hdmi_drive=2
|
||||
|
||||
# uncomment to increase signal to HDMI, if you have interference, blanking, or
|
||||
# no display
|
||||
#config_hdmi_boost=4
|
||||
|
||||
# uncomment for composite PAL
|
||||
#sdtv_mode=2
|
||||
|
||||
#uncomment to overclock the arm. 700 MHz is the default.
|
||||
#arm_freq=800
|
||||
|
||||
# Uncomment some or all of these to enable the optional hardware interfaces
|
||||
dtparam=i2c_arm=on
|
||||
#dtparam=i2s=on
|
||||
dtparam=spi=on
|
||||
enable_uart=1
|
||||
# Uncomment this to enable the lirc-rpi module
|
||||
#dtoverlay=lirc-rpi
|
||||
|
||||
# Additional overlays and parameters are documented /boot/overlays/README
|
||||
|
||||
# Enable audio (loads snd_bcm2835)
|
||||
dtparam=audio=on
|
||||
dtoverlay=tft35a
|
||||
#dtoverlay=ads7846,cs=1,penirq=17,penirq_pull=2,speed=1000000,keep_vref_on=1,swapxy=1,pmax=255,xohms=60,xmin=200,xmax=3900,ymin=200,ymax=3900
|
||||
@ -1,65 +0,0 @@
|
||||
# For more options and information see
|
||||
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
|
||||
# Some settings may impact device functionality. See link above for details
|
||||
|
||||
# uncomment if you get no picture on HDMI for a default "safe" mode
|
||||
#hdmi_safe=1
|
||||
|
||||
# uncomment this if your display has a black border of unused pixels visible
|
||||
# and your display can output without overscan
|
||||
#disable_overscan=1
|
||||
|
||||
# uncomment the following to adjust overscan. Use positive numbers if console
|
||||
# goes off screen, and negative if there is too much border
|
||||
#overscan_left=16
|
||||
#overscan_right=16
|
||||
#overscan_top=16
|
||||
#overscan_bottom=16
|
||||
|
||||
# uncomment to force a console size. By default it will be display's size minus
|
||||
# overscan.
|
||||
#framebuffer_width=1280
|
||||
#framebuffer_height=720
|
||||
|
||||
# uncomment if hdmi display is not detected and composite is being output
|
||||
hdmi_force_hotplug=1
|
||||
|
||||
# uncomment to force a specific HDMI mode (this will force VGA)
|
||||
#hdmi_group=1
|
||||
#hdmi_mode=1
|
||||
|
||||
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
|
||||
# DMT (computer monitor) modes
|
||||
#hdmi_drive=2
|
||||
|
||||
# uncomment to increase signal to HDMI, if you have interference, blanking, or
|
||||
# no display
|
||||
#config_hdmi_boost=4
|
||||
|
||||
# uncomment for composite PAL
|
||||
#sdtv_mode=2
|
||||
|
||||
#uncomment to overclock the arm. 700 MHz is the default.
|
||||
#arm_freq=800
|
||||
|
||||
# Uncomment some or all of these to enable the optional hardware interfaces
|
||||
dtparam=i2c_arm=on
|
||||
#dtparam=i2s=on
|
||||
dtparam=spi=on
|
||||
enable_uart=1
|
||||
# Uncomment this to enable the lirc-rpi module
|
||||
#dtoverlay=lirc-rpi
|
||||
|
||||
# Additional overlays and parameters are documented /boot/overlays/README
|
||||
|
||||
# Enable audio (loads snd_bcm2835)
|
||||
dtparam=audio=on
|
||||
display_rotate=3
|
||||
max_usb_current=1
|
||||
hdmi_force_hotplug=1
|
||||
config_hdmi_boost=7
|
||||
hdmi_group=2
|
||||
hdmi_mode=1
|
||||
hdmi_mode=87
|
||||
hdmi_cvt 480 800 60 6 0 0 0
|
||||
dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900
|
||||
@ -1,63 +0,0 @@
|
||||
# For more options and information see
|
||||
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
|
||||
# Some settings may impact device functionality. See link above for details
|
||||
|
||||
# uncomment if you get no picture on HDMI for a default "safe" mode
|
||||
#hdmi_safe=1
|
||||
|
||||
# uncomment this if your display has a black border of unused pixels visible
|
||||
# and your display can output without overscan
|
||||
#disable_overscan=1
|
||||
|
||||
# uncomment the following to adjust overscan. Use positive numbers if console
|
||||
# goes off screen, and negative if there is too much border
|
||||
#overscan_left=16
|
||||
#overscan_right=16
|
||||
#overscan_top=16
|
||||
#overscan_bottom=16
|
||||
|
||||
# uncomment to force a console size. By default it will be display's size minus
|
||||
# overscan.
|
||||
#framebuffer_width=1280
|
||||
#framebuffer_height=720
|
||||
|
||||
# uncomment if hdmi display is not detected and composite is being output
|
||||
hdmi_force_hotplug=1
|
||||
|
||||
# uncomment to force a specific HDMI mode (this will force VGA)
|
||||
#hdmi_group=1
|
||||
#hdmi_mode=1
|
||||
|
||||
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
|
||||
# DMT (computer monitor) modes
|
||||
#hdmi_drive=2
|
||||
|
||||
# uncomment to increase signal to HDMI, if you have interference, blanking, or
|
||||
# no display
|
||||
#config_hdmi_boost=4
|
||||
|
||||
# uncomment for composite PAL
|
||||
#sdtv_mode=2
|
||||
|
||||
#uncomment to overclock the arm. 700 MHz is the default.
|
||||
#arm_freq=800
|
||||
|
||||
# Uncomment some or all of these to enable the optional hardware interfaces
|
||||
dtparam=i2c_arm=on
|
||||
#dtparam=i2s=on
|
||||
dtparam=spi=on
|
||||
enable_uart=1
|
||||
# Uncomment this to enable the lirc-rpi module
|
||||
#dtoverlay=lirc-rpi
|
||||
|
||||
# Additional overlays and parameters are documented /boot/overlays/README
|
||||
|
||||
# Enable audio (loads snd_bcm2835)
|
||||
dtparam=audio=on
|
||||
max_usb_current=1
|
||||
display_rotate=0
|
||||
max_usb_current=1
|
||||
hdmi_group=2
|
||||
hdmi_mode=87
|
||||
hdmi_timings=480 0 1 41 2 272 0 2 10 2 0 0 0 60 0 9000000 3
|
||||
dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900
|
||||
@ -1,65 +0,0 @@
|
||||
# For more options and information see
|
||||
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
|
||||
# Some settings may impact device functionality. See link above for details
|
||||
|
||||
# uncomment if you get no picture on HDMI for a default "safe" mode
|
||||
#hdmi_safe=1
|
||||
|
||||
# uncomment this if your display has a black border of unused pixels visible
|
||||
# and your display can output without overscan
|
||||
#disable_overscan=1
|
||||
|
||||
# uncomment the following to adjust overscan. Use positive numbers if console
|
||||
# goes off screen, and negative if there is too much border
|
||||
#overscan_left=16
|
||||
#overscan_right=16
|
||||
#overscan_top=16
|
||||
#overscan_bottom=16
|
||||
|
||||
# uncomment to force a console size. By default it will be display's size minus
|
||||
# overscan.
|
||||
#framebuffer_width=1280
|
||||
#framebuffer_height=720
|
||||
|
||||
# uncomment if hdmi display is not detected and composite is being output
|
||||
hdmi_force_hotplug=1
|
||||
|
||||
# uncomment to force a specific HDMI mode (this will force VGA)
|
||||
#hdmi_group=1
|
||||
#hdmi_mode=1
|
||||
|
||||
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
|
||||
# DMT (computer monitor) modes
|
||||
#hdmi_drive=2
|
||||
|
||||
# uncomment to increase signal to HDMI, if you have interference, blanking, or
|
||||
# no display
|
||||
#config_hdmi_boost=4
|
||||
|
||||
# uncomment for composite PAL
|
||||
#sdtv_mode=2
|
||||
|
||||
#uncomment to overclock the arm. 700 MHz is the default.
|
||||
#arm_freq=800
|
||||
|
||||
# Uncomment some or all of these to enable the optional hardware interfaces
|
||||
dtparam=i2c_arm=on
|
||||
#dtparam=i2s=on
|
||||
dtparam=spi=on
|
||||
enable_uart=1
|
||||
# Uncomment this to enable the lirc-rpi module
|
||||
#dtoverlay=lirc-rpi
|
||||
|
||||
# Additional overlays and parameters are documented /boot/overlays/README
|
||||
|
||||
# Enable audio (loads snd_bcm2835)
|
||||
dtparam=audio=on
|
||||
max_usb_current=1
|
||||
hdmi_force_hotplug=1
|
||||
config_hdmi_boost=7
|
||||
hdmi_group=2
|
||||
hdmi_mode=1
|
||||
hdmi_mode=87
|
||||
hdmi_drive=1
|
||||
hdmi_cvt 800 480 60 6 0 0 0
|
||||
dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900
|
||||
@ -1,64 +0,0 @@
|
||||
# For more options and information see
|
||||
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
|
||||
# Some settings may impact device functionality. See link above for details
|
||||
|
||||
# uncomment if you get no picture on HDMI for a default "safe" mode
|
||||
#hdmi_safe=1
|
||||
|
||||
# uncomment this if your display has a black border of unused pixels visible
|
||||
# and your display can output without overscan
|
||||
#disable_overscan=1
|
||||
|
||||
# uncomment the following to adjust overscan. Use positive numbers if console
|
||||
# goes off screen, and negative if there is too much border
|
||||
#overscan_left=16
|
||||
#overscan_right=16
|
||||
#overscan_top=16
|
||||
#overscan_bottom=16
|
||||
|
||||
# uncomment to force a console size. By default it will be display's size minus
|
||||
# overscan.
|
||||
#framebuffer_width=1280
|
||||
#framebuffer_height=720
|
||||
|
||||
# uncomment if hdmi display is not detected and composite is being output
|
||||
hdmi_force_hotplug=1
|
||||
|
||||
# uncomment to force a specific HDMI mode (this will force VGA)
|
||||
#hdmi_group=1
|
||||
#hdmi_mode=1
|
||||
|
||||
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
|
||||
# DMT (computer monitor) modes
|
||||
#hdmi_drive=2
|
||||
|
||||
# uncomment to increase signal to HDMI, if you have interference, blanking, or
|
||||
# no display
|
||||
#config_hdmi_boost=4
|
||||
|
||||
# uncomment for composite PAL
|
||||
#sdtv_mode=2
|
||||
|
||||
#uncomment to overclock the arm. 700 MHz is the default.
|
||||
#arm_freq=800
|
||||
|
||||
# Uncomment some or all of these to enable the optional hardware interfaces
|
||||
dtparam=i2c_arm=on
|
||||
#dtparam=i2s=on
|
||||
dtparam=spi=on
|
||||
enable_uart=1
|
||||
# Uncomment this to enable the lirc-rpi module
|
||||
#dtoverlay=lirc-rpi
|
||||
|
||||
# Additional overlays and parameters are documented /boot/overlays/README
|
||||
|
||||
# Enable audio (loads snd_bcm2835)
|
||||
dtparam=audio=on
|
||||
max_usb_current=1
|
||||
hdmi_force_hotplug=1
|
||||
config_hdmi_boost=7
|
||||
hdmi_group=2
|
||||
hdmi_mode=1
|
||||
hdmi_mode=87
|
||||
hdmi_drive=1
|
||||
hdmi_cvt 800 480 60 6 0 0 0
|
||||
@ -1,65 +0,0 @@
|
||||
# For more options and information see
|
||||
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
|
||||
# Some settings may impact device functionality. See link above for details
|
||||
|
||||
# uncomment if you get no picture on HDMI for a default "safe" mode
|
||||
#hdmi_safe=1
|
||||
|
||||
# uncomment this if your display has a black border of unused pixels visible
|
||||
# and your display can output without overscan
|
||||
#disable_overscan=1
|
||||
|
||||
# uncomment the following to adjust overscan. Use positive numbers if console
|
||||
# goes off screen, and negative if there is too much border
|
||||
#overscan_left=16
|
||||
#overscan_right=16
|
||||
#overscan_top=16
|
||||
#overscan_bottom=16
|
||||
|
||||
# uncomment to force a console size. By default it will be display's size minus
|
||||
# overscan.
|
||||
#framebuffer_width=1280
|
||||
#framebuffer_height=720
|
||||
|
||||
# uncomment if hdmi display is not detected and composite is being output
|
||||
hdmi_force_hotplug=1
|
||||
|
||||
# uncomment to force a specific HDMI mode (this will force VGA)
|
||||
#hdmi_group=1
|
||||
#hdmi_mode=1
|
||||
|
||||
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
|
||||
# DMT (computer monitor) modes
|
||||
#hdmi_drive=2
|
||||
|
||||
# uncomment to increase signal to HDMI, if you have interference, blanking, or
|
||||
# no display
|
||||
#config_hdmi_boost=4
|
||||
|
||||
# uncomment for composite PAL
|
||||
#sdtv_mode=2
|
||||
|
||||
#uncomment to overclock the arm. 700 MHz is the default.
|
||||
#arm_freq=800
|
||||
|
||||
# Uncomment some or all of these to enable the optional hardware interfaces
|
||||
dtparam=i2c_arm=on
|
||||
#dtparam=i2s=on
|
||||
dtparam=spi=on
|
||||
enable_uart=1
|
||||
# Uncomment this to enable the lirc-rpi module
|
||||
#dtoverlay=lirc-rpi
|
||||
|
||||
# Additional overlays and parameters are documented /boot/overlays/README
|
||||
|
||||
# Enable audio (loads snd_bcm2835)
|
||||
dtparam=audio=on
|
||||
max_usb_current=1
|
||||
hdmi_force_hotplug=1
|
||||
config_hdmi_boost=7
|
||||
hdmi_group=2
|
||||
hdmi_mode=1
|
||||
hdmi_mode=87
|
||||
hdmi_drive=1
|
||||
display_rotate=0
|
||||
hdmi_cvt 1024 600 60 6 0 0 0
|
||||
31
boot/config-MPI5001.txt → boot/config-nomal-10.9-32.txt
Normal file → Executable file
31
boot/config-MPI5001.txt → boot/config-nomal-10.9-32.txt
Normal file → Executable file
@ -1,5 +1,5 @@
|
||||
# For more options and information see
|
||||
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
|
||||
# http://rpf.io/configtxt
|
||||
# Some settings may impact device functionality. See link above for details
|
||||
|
||||
# uncomment if you get no picture on HDMI for a default "safe" mode
|
||||
@ -22,7 +22,7 @@
|
||||
#framebuffer_height=720
|
||||
|
||||
# uncomment if hdmi display is not detected and composite is being output
|
||||
hdmi_force_hotplug=1
|
||||
#hdmi_force_hotplug=1
|
||||
|
||||
# uncomment to force a specific HDMI mode (this will force VGA)
|
||||
#hdmi_group=1
|
||||
@ -43,22 +43,23 @@ hdmi_force_hotplug=1
|
||||
#arm_freq=800
|
||||
|
||||
# Uncomment some or all of these to enable the optional hardware interfaces
|
||||
dtparam=i2c_arm=on
|
||||
#dtparam=i2c_arm=on
|
||||
#dtparam=i2s=on
|
||||
dtparam=spi=on
|
||||
enable_uart=1
|
||||
# Uncomment this to enable the lirc-rpi module
|
||||
#dtoverlay=lirc-rpi
|
||||
#dtparam=spi=on
|
||||
|
||||
# Uncomment this to enable infrared communication.
|
||||
#dtoverlay=gpio-ir,gpio_pin=17
|
||||
#dtoverlay=gpio-ir-tx,gpio_pin=18
|
||||
|
||||
# Additional overlays and parameters are documented /boot/overlays/README
|
||||
|
||||
# Enable audio (loads snd_bcm2835)
|
||||
dtparam=audio=on
|
||||
max_usb_current=1
|
||||
hdmi_force_hotplug=1
|
||||
config_hdmi_boost=7
|
||||
hdmi_group=2
|
||||
hdmi_mode=1
|
||||
hdmi_mode=87
|
||||
hdmi_drive=1
|
||||
hdmi_cvt 800 480 60 6 0 0 0
|
||||
|
||||
[pi4]
|
||||
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
|
||||
#dtoverlay=vc4-fkms-v3d
|
||||
max_framebuffers=2
|
||||
|
||||
[all]
|
||||
#dtoverlay=vc4-fkms-v3d
|
||||
51
boot/config-35DPI.txt → boot/config-nomal-11.4-32.txt
Normal file → Executable file
51
boot/config-35DPI.txt → boot/config-nomal-11.4-32.txt
Normal file → Executable file
@ -1,14 +1,10 @@
|
||||
# For more options and information see
|
||||
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
|
||||
# http://rpf.io/configtxt
|
||||
# Some settings may impact device functionality. See link above for details
|
||||
|
||||
# uncomment if you get no picture on HDMI for a default "safe" mode
|
||||
#hdmi_safe=1
|
||||
|
||||
# uncomment this if your display has a black border of unused pixels visible
|
||||
# and your display can output without overscan
|
||||
#disable_overscan=1
|
||||
|
||||
# uncomment the following to adjust overscan. Use positive numbers if console
|
||||
# goes off screen, and negative if there is too much border
|
||||
#overscan_left=16
|
||||
@ -47,27 +43,38 @@
|
||||
#dtparam=i2s=on
|
||||
#dtparam=spi=on
|
||||
|
||||
# Uncomment this to enable the lirc-rpi module
|
||||
#dtoverlay=lirc-rpi
|
||||
# Uncomment this to enable infrared communication.
|
||||
#dtoverlay=gpio-ir,gpio_pin=17
|
||||
#dtoverlay=gpio-ir-tx,gpio_pin=18
|
||||
|
||||
# Additional overlays and parameters are documented /boot/overlays/README
|
||||
|
||||
# Enable audio (loads snd_bcm2835)
|
||||
dtparam=audio=on
|
||||
|
||||
display_rotate=1
|
||||
dtoverlay=dpi18
|
||||
overscan_left=0
|
||||
overscan_right=0
|
||||
overscan_top=1
|
||||
overscan_bottom=1
|
||||
framebuffer_width=480
|
||||
framebuffer_height=320
|
||||
enable_dpi_lcd=1
|
||||
display_default_lcd=1
|
||||
dpi_group=2
|
||||
dpi_mode=87
|
||||
dpi_output_format=0x07f205
|
||||
hdmi_timings=320 0 28 18 28 480 0 2 2 4 0 0 0 60 0 32000000 6
|
||||
# Automatically load overlays for detected cameras
|
||||
camera_auto_detect=1
|
||||
|
||||
#dtoverlay=ads7846,cs=1,penirq=18,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900
|
||||
# Automatically load overlays for detected DSI displays
|
||||
display_auto_detect=1
|
||||
|
||||
# Enable DRM VC4 V3D driver
|
||||
#dtoverlay=vc4-kms-v3d
|
||||
max_framebuffers=2
|
||||
|
||||
# Disable compensation for displays with overscan
|
||||
disable_overscan=1
|
||||
|
||||
[cm4]
|
||||
# Enable host mode on the 2711 built-in XHCI USB controller.
|
||||
# This line should be removed if the legacy DWC2 controller is required
|
||||
# (e.g. for USB device mode) or if USB support is not required.
|
||||
otg_mode=1
|
||||
|
||||
[all]
|
||||
|
||||
[pi4]
|
||||
# Run as fast as firmware / board allows
|
||||
arm_boost=1
|
||||
|
||||
[all]
|
||||
51
boot/config-32.txt → boot/config-nomal-11.4-64.txt
Normal file → Executable file
51
boot/config-32.txt → boot/config-nomal-11.4-64.txt
Normal file → Executable file
@ -1,14 +1,10 @@
|
||||
# For more options and information see
|
||||
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
|
||||
# http://rpf.io/configtxt
|
||||
# Some settings may impact device functionality. See link above for details
|
||||
|
||||
# uncomment if you get no picture on HDMI for a default "safe" mode
|
||||
#hdmi_safe=1
|
||||
|
||||
# uncomment this if your display has a black border of unused pixels visible
|
||||
# and your display can output without overscan
|
||||
#disable_overscan=1
|
||||
|
||||
# uncomment the following to adjust overscan. Use positive numbers if console
|
||||
# goes off screen, and negative if there is too much border
|
||||
#overscan_left=16
|
||||
@ -22,7 +18,7 @@
|
||||
#framebuffer_height=720
|
||||
|
||||
# uncomment if hdmi display is not detected and composite is being output
|
||||
hdmi_force_hotplug=1
|
||||
#hdmi_force_hotplug=1
|
||||
|
||||
# uncomment to force a specific HDMI mode (this will force VGA)
|
||||
#hdmi_group=1
|
||||
@ -43,16 +39,45 @@ hdmi_force_hotplug=1
|
||||
#arm_freq=800
|
||||
|
||||
# Uncomment some or all of these to enable the optional hardware interfaces
|
||||
dtparam=i2c_arm=on
|
||||
#dtparam=i2c_arm=on
|
||||
#dtparam=i2s=on
|
||||
dtparam=spi=on
|
||||
enable_uart=1
|
||||
# Uncomment this to enable the lirc-rpi module
|
||||
#dtoverlay=lirc-rpi
|
||||
#dtparam=spi=on
|
||||
|
||||
# Uncomment this to enable infrared communication.
|
||||
#dtoverlay=gpio-ir,gpio_pin=17
|
||||
#dtoverlay=gpio-ir-tx,gpio_pin=18
|
||||
|
||||
# Additional overlays and parameters are documented /boot/overlays/README
|
||||
|
||||
# Enable audio (loads snd_bcm2835)
|
||||
dtparam=audio=on
|
||||
dtoverlay=tft9341:rotate=270
|
||||
#dtoverlay=ads7846,cs=1,penirq=17,penirq_pull=2,speed=1000000,keep_vref_on=1,swapxy=0,pmax=255,xohms=60,xmin=200,xmax=3900,ymin=200,ymax=3900
|
||||
|
||||
# Automatically load overlays for detected cameras
|
||||
camera_auto_detect=1
|
||||
|
||||
# Automatically load overlays for detected DSI displays
|
||||
display_auto_detect=1
|
||||
|
||||
# Enable DRM VC4 V3D driver
|
||||
#dtoverlay=vc4-kms-v3d
|
||||
max_framebuffers=2
|
||||
|
||||
# Run in 64-bit mode
|
||||
arm_64bit=1
|
||||
|
||||
# Disable compensation for displays with overscan
|
||||
disable_overscan=1
|
||||
|
||||
[cm4]
|
||||
# Enable host mode on the 2711 built-in XHCI USB controller.
|
||||
# This line should be removed if the legacy DWC2 controller is required
|
||||
# (e.g. for USB device mode) or if USB support is not required.
|
||||
otg_mode=1
|
||||
|
||||
[all]
|
||||
|
||||
[pi4]
|
||||
# Run as fast as firmware / board allows
|
||||
arm_boost=1
|
||||
|
||||
[all]
|
||||
23
boot/config-nomal.txt
Normal file → Executable file
23
boot/config-nomal.txt
Normal file → Executable file
@ -1,5 +1,5 @@
|
||||
# For more options and information see
|
||||
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
|
||||
# http://rpf.io/configtxt
|
||||
# Some settings may impact device functionality. See link above for details
|
||||
|
||||
# uncomment if you get no picture on HDMI for a default "safe" mode
|
||||
@ -22,7 +22,7 @@
|
||||
#framebuffer_height=720
|
||||
|
||||
# uncomment if hdmi display is not detected and composite is being output
|
||||
hdmi_force_hotplug=1
|
||||
#hdmi_force_hotplug=1
|
||||
|
||||
# uncomment to force a specific HDMI mode (this will force VGA)
|
||||
#hdmi_group=1
|
||||
@ -43,14 +43,23 @@ hdmi_force_hotplug=1
|
||||
#arm_freq=800
|
||||
|
||||
# Uncomment some or all of these to enable the optional hardware interfaces
|
||||
dtparam=i2c_arm=on
|
||||
#dtparam=i2c_arm=on
|
||||
#dtparam=i2s=on
|
||||
dtparam=spi=on
|
||||
enable_uart=1
|
||||
# Uncomment this to enable the lirc-rpi module
|
||||
#dtoverlay=lirc-rpi
|
||||
#dtparam=spi=on
|
||||
|
||||
# Uncomment this to enable infrared communication.
|
||||
#dtoverlay=gpio-ir,gpio_pin=17
|
||||
#dtoverlay=gpio-ir-tx,gpio_pin=18
|
||||
|
||||
# Additional overlays and parameters are documented /boot/overlays/README
|
||||
|
||||
# Enable audio (loads snd_bcm2835)
|
||||
dtparam=audio=on
|
||||
|
||||
[pi4]
|
||||
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
|
||||
#dtoverlay=vc4-fkms-v3d
|
||||
max_framebuffers=2
|
||||
|
||||
[all]
|
||||
#dtoverlay=vc4-fkms-v3d
|
||||
|
||||
125
boot/config-28.txt → boot/config-noobs-nomal.txt
Normal file → Executable file
125
boot/config-28.txt → boot/config-noobs-nomal.txt
Normal file → Executable file
@ -1,58 +1,67 @@
|
||||
# For more options and information see
|
||||
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
|
||||
# Some settings may impact device functionality. See link above for details
|
||||
|
||||
# uncomment if you get no picture on HDMI for a default "safe" mode
|
||||
#hdmi_safe=1
|
||||
|
||||
# uncomment this if your display has a black border of unused pixels visible
|
||||
# and your display can output without overscan
|
||||
#disable_overscan=1
|
||||
|
||||
# uncomment the following to adjust overscan. Use positive numbers if console
|
||||
# goes off screen, and negative if there is too much border
|
||||
#overscan_left=16
|
||||
#overscan_right=16
|
||||
#overscan_top=16
|
||||
#overscan_bottom=16
|
||||
|
||||
# uncomment to force a console size. By default it will be display's size minus
|
||||
# overscan.
|
||||
#framebuffer_width=1280
|
||||
#framebuffer_height=720
|
||||
|
||||
# uncomment if hdmi display is not detected and composite is being output
|
||||
hdmi_force_hotplug=1
|
||||
|
||||
# uncomment to force a specific HDMI mode (this will force VGA)
|
||||
#hdmi_group=1
|
||||
#hdmi_mode=1
|
||||
|
||||
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
|
||||
# DMT (computer monitor) modes
|
||||
#hdmi_drive=2
|
||||
|
||||
# uncomment to increase signal to HDMI, if you have interference, blanking, or
|
||||
# no display
|
||||
#config_hdmi_boost=4
|
||||
|
||||
# uncomment for composite PAL
|
||||
#sdtv_mode=2
|
||||
|
||||
#uncomment to overclock the arm. 700 MHz is the default.
|
||||
#arm_freq=800
|
||||
|
||||
# Uncomment some or all of these to enable the optional hardware interfaces
|
||||
dtparam=i2c_arm=on
|
||||
#dtparam=i2s=on
|
||||
dtparam=spi=on
|
||||
enable_uart=1
|
||||
# Uncomment this to enable the lirc-rpi module
|
||||
#dtoverlay=lirc-rpi
|
||||
|
||||
# Additional overlays and parameters are documented /boot/overlays/README
|
||||
|
||||
# Enable audio (loads snd_bcm2835)
|
||||
dtparam=audio=on
|
||||
dtoverlay=tft9341:rotate=90
|
||||
#dtoverlay=ads7846,cs=1,penirq=17,penirq_pull=2,speed=1000000,keep_vref_on=1,swapxy=0,pmax=255,xohms=60,xmin=200,xmax=3900,ymin=200,ymax=3900
|
||||
# For more options and information see
|
||||
# http://rpf.io/configtxt
|
||||
# Some settings may impact device functionality. See link above for details
|
||||
|
||||
# uncomment if you get no picture on HDMI for a default "safe" mode
|
||||
#hdmi_safe=1
|
||||
|
||||
# uncomment this if your display has a black border of unused pixels visible
|
||||
# and your display can output without overscan
|
||||
#disable_overscan=1
|
||||
|
||||
# uncomment the following to adjust overscan. Use positive numbers if console
|
||||
# goes off screen, and negative if there is too much border
|
||||
#overscan_left=16
|
||||
#overscan_right=16
|
||||
#overscan_top=16
|
||||
#overscan_bottom=16
|
||||
|
||||
# uncomment to force a console size. By default it will be display's size minus
|
||||
# overscan.
|
||||
#framebuffer_width=1280
|
||||
#framebuffer_height=720
|
||||
|
||||
# uncomment if hdmi display is not detected and composite is being output
|
||||
#hdmi_force_hotplug=1
|
||||
|
||||
# uncomment to force a specific HDMI mode (this will force VGA)
|
||||
#hdmi_group=1
|
||||
#hdmi_mode=1
|
||||
|
||||
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
|
||||
# DMT (computer monitor) modes
|
||||
#hdmi_drive=2
|
||||
|
||||
# uncomment to increase signal to HDMI, if you have interference, blanking, or
|
||||
# no display
|
||||
#config_hdmi_boost=4
|
||||
|
||||
# uncomment for composite PAL
|
||||
#sdtv_mode=2
|
||||
|
||||
#uncomment to overclock the arm. 700 MHz is the default.
|
||||
#arm_freq=800
|
||||
|
||||
# Uncomment some or all of these to enable the optional hardware interfaces
|
||||
#dtparam=i2c_arm=on
|
||||
#dtparam=i2s=on
|
||||
#dtparam=spi=on
|
||||
|
||||
# Uncomment this to enable the lirc-rpi module
|
||||
#dtoverlay=lirc-rpi
|
||||
|
||||
# Additional overlays and parameters are documented /boot/overlays/README
|
||||
|
||||
# Enable audio (loads snd_bcm2835)
|
||||
dtparam=audio=on
|
||||
|
||||
[pi4]
|
||||
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
|
||||
#dtoverlay=vc4-fkms-v3d
|
||||
#max_framebuffers=2
|
||||
|
||||
[all]
|
||||
#dtoverlay=vc4-fkms-v3d
|
||||
|
||||
# NOOBS Auto-generated Settings:
|
||||
hdmi_force_hotplug=1
|
||||
2
etc/modprobe.d/fbtft.conf
Executable file
2
etc/modprobe.d/fbtft.conf
Executable file
@ -0,0 +1,2 @@
|
||||
options fbtft_device name=flexfb gpios=reset:25,dc:24,cs:8 speed=125000000 bgr=1 fps=60 custom=1 height=480 width=800
|
||||
options flexfb setaddrwin=0 width=800 height=480 regwidth=16 init=-1,0x29,-3
|
||||
9
etc/modules
Executable file
9
etc/modules
Executable file
@ -0,0 +1,9 @@
|
||||
# /etc/modules: kernel modules to load at boot time.
|
||||
#
|
||||
# This file contains the names of kernel modules that should be loaded
|
||||
# at boot time, one per line. Lines beginning with "#" are ignored.
|
||||
|
||||
i2c-dev
|
||||
spi-bcm2835
|
||||
flexfb
|
||||
fbtft_device
|
||||
6
etc/modules-original
Executable file
6
etc/modules-original
Executable file
@ -0,0 +1,6 @@
|
||||
# /etc/modules: kernel modules to load at boot time.
|
||||
#
|
||||
# This file contains the names of kernel modules that should be loaded
|
||||
# at boot time, one per line. Lines beginning with "#" are ignored.
|
||||
|
||||
i2c-dev
|
||||
23
etc/rc.local
Executable file
23
etc/rc.local
Executable file
@ -0,0 +1,23 @@
|
||||
#!/bin/sh -e
|
||||
#
|
||||
# rc.local
|
||||
#
|
||||
# This script is executed at the end of each multiuser runlevel.
|
||||
# Make sure that the script will "exit 0" on success or any other
|
||||
# value on error.
|
||||
#
|
||||
# In order to enable or disable this script just change the execution
|
||||
# bits.
|
||||
#
|
||||
# By default this script does nothing.
|
||||
|
||||
# Print the IP address
|
||||
_IP=$(hostname -I) || true
|
||||
if [ "$_IP" ]; then
|
||||
printf "My IP address is %s\n" "$_IP"
|
||||
fi
|
||||
|
||||
sleep 7
|
||||
fbcp &
|
||||
|
||||
exit 0
|
||||
20
etc/rc.local-original
Executable file
20
etc/rc.local-original
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/sh -e
|
||||
#
|
||||
# rc.local
|
||||
#
|
||||
# This script is executed at the end of each multiuser runlevel.
|
||||
# Make sure that the script will "exit 0" on success or any other
|
||||
# value on error.
|
||||
#
|
||||
# In order to enable or disable this script just change the execution
|
||||
# bits.
|
||||
#
|
||||
# By default this script does nothing.
|
||||
|
||||
# Print the IP address
|
||||
_IP=$(hostname -I) || true
|
||||
if [ "$_IP" ]; then
|
||||
printf "My IP address is %s\n" "$_IP"
|
||||
fi
|
||||
|
||||
exit 0
|
||||
BIN
python-xlib_0.23-2_all.deb
Normal file
BIN
python-xlib_0.23-2_all.deb
Normal file
Binary file not shown.
171
rotate.sh
Executable file
171
rotate.sh
Executable file
@ -0,0 +1,171 @@
|
||||
#!/bin/bash
|
||||
cur_dir=`pwd`
|
||||
if [ ! -f $cur_dir/.have_installed ]; then
|
||||
echo "Please install the LCD driver first"
|
||||
echo "Usage: sudo ./xxx-show. xxx: MHS35,LCD35,MPI3508 etc."
|
||||
exit
|
||||
fi
|
||||
|
||||
print_info()
|
||||
{
|
||||
echo "Usage:sudo ./rotate.sh [0] [90] [180] [270] [360] [450]"
|
||||
echo "0-Screen rotation 0 degrees"
|
||||
echo "90-Screen rotation 90 degrees"
|
||||
echo "180-Screen rotation 180 degrees"
|
||||
echo "270-Screen rotation 270 degrees"
|
||||
echo "360-Screen flip horizontal(Valid only for HDMI screens)"
|
||||
echo "450-Screen flip vertical(Valid only for HDMI screens)"
|
||||
}
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
echo "Please input parameter:0,90,180,270,360,450"
|
||||
print_info
|
||||
exit
|
||||
elif [ $# -eq 1 ]; then
|
||||
if [ ! -n "$(echo $1| sed -n "/^[0-9]\+$/p")" ]; then
|
||||
echo "Invalid parameter"
|
||||
print_info
|
||||
exit
|
||||
else
|
||||
if [ $1 -ne 0 ] && [ $1 -ne 90 ] && [ $1 -ne 180 ] && [ $1 -ne 270 ] && [ $1 -ne 360 ] && [ $1 -ne 450 ]; then
|
||||
echo "Invalid parameter"
|
||||
print_info
|
||||
exit
|
||||
fi
|
||||
fi
|
||||
else
|
||||
echo "Too many parameters, only one parameter allowed"
|
||||
exit
|
||||
fi
|
||||
|
||||
#get screen parameter
|
||||
tmp=`cat $cur_dir/.have_installed`
|
||||
output_type=`cat $cur_dir/.have_installed | awk -F ':' '{printf $1}'`
|
||||
touch_type=`cat $cur_dir/.have_installed | awk -F ':' '{printf $2}'`
|
||||
device_id=`cat $cur_dir/.have_installed | awk -F ':' '{printf $3}'`
|
||||
default_value=`cat $cur_dir/.have_installed | awk -F ':' '{printf $4}'`
|
||||
width=`cat $cur_dir/.have_installed | awk -F ':' '{printf $5}'`
|
||||
height=`cat $cur_dir/.have_installed | awk -F ':' '{printf $6}'`
|
||||
|
||||
if [ $output_type = "hdmi" ]; then
|
||||
result=`grep -rn "^display_rotate=" /boot/config.txt | tail -n 1`
|
||||
line=`echo -n $result | awk -F: '{printf $1}'`
|
||||
str=`echo -n $result | awk -F: '{printf $NF}'`
|
||||
old_rotate_value=`echo -n $result | awk -F= '{printf $NF}'`
|
||||
if [ $old_rotate_value = "0x10000" ]; then
|
||||
old_rotate_value=4
|
||||
elif [ $old_rotate_value = "0x20000" ]; then
|
||||
old_rotate_value=5
|
||||
fi
|
||||
if [ $1 -eq 0 ] || [ $1 -eq 90 ] || [ $1 -eq 180 ] || [ $1 -eq 270 ]; then
|
||||
new_rotate_value=$[(($default_value+$1)%360)/90]
|
||||
else
|
||||
new_rotate_value=$[$1/90]
|
||||
fi
|
||||
elif [ $output_type = "gpio" ]; then
|
||||
result=`grep -rn "^dtoverlay=" /boot/config.txt | grep ":rotate=" | tail -n 1`
|
||||
line=`echo -n $result | awk -F: '{printf $1}'`
|
||||
str=`echo -n $result | awk -F: '{printf $NF}'`
|
||||
old_rotate_value=`echo -n $result | awk -F= '{printf $NF}'`
|
||||
if [ $1 -eq 0 ] || [ $1 -eq 90 ] || [ $1 -eq 180 ] || [ $1 -eq 270 ]; then
|
||||
new_rotate_value=$[($default_value+$1)%360]
|
||||
else
|
||||
echo "Invalid parameter: only for HDMI screens"
|
||||
exit
|
||||
fi
|
||||
else
|
||||
echo "Invalid output type"
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ $old_rotate_value -eq $new_rotate_value ]; then
|
||||
if [ $output_type = "hdmi" ]; then
|
||||
if [ $1 -eq 0 ] || [ $1 -eq 90 ] || [ $1 -eq 180 ] || [ $1 -eq 270 ]; then
|
||||
old_rotate_value=$[($old_rotate_value*90+360-$default_value)%360]
|
||||
else
|
||||
old_rotate_value=$[$old_rotate_value*90]
|
||||
fi
|
||||
elif [ $output_type = "gpio" ]; then
|
||||
old_rotate_value=$[($old_rotate_value+360-$default_value)%360]
|
||||
fi
|
||||
echo "Current rotate value is $old_rotate_value"
|
||||
exit
|
||||
fi
|
||||
|
||||
#setting LCD rotate
|
||||
if [ $output_type = "hdmi" ]; then
|
||||
if [ $new_rotate_value -eq 4 ]; then
|
||||
sudo sed -i -e ''"$line"'s/'"$str"'/display_rotate=0x10000/' /boot/config.txt
|
||||
elif [ $new_rotate_value -eq 5 ]; then
|
||||
sudo sed -i -e ''"$line"'s/'"$str"'/display_rotate=0x20000/' /boot/config.txt
|
||||
else
|
||||
sudo sed -i -e ''"$line"'s/'"$str"'/display_rotate='"$new_rotate_value"'/' /boot/config.txt
|
||||
fi
|
||||
new_rotate_value=$[$new_rotate_value*90]
|
||||
elif [ $output_type = "gpio" ]; then
|
||||
sudo sed -i -e ''"$line"'s/'"$str"'/rotate='"$new_rotate_value"'/' /boot/config.txt
|
||||
resultr=`grep -rn "^hdmi_cvt" /boot/config.txt | tail -n 1 | awk -F' ' '{print $1,$2,$3}'`
|
||||
if [ -n "$resultr" ]; then
|
||||
liner=`echo -n $resultr | awk -F: '{printf $1}'`
|
||||
strr=`echo -n $resultr | awk -F: '{printf $2}'`
|
||||
if [ $new_rotate_value -eq $default_value ] || [ $new_rotate_value -eq $[($default_value+180+360)%360] ]; then
|
||||
sudo sed -i -e ''"$liner"'s/'"$strr"'/hdmi_cvt '"$width"' '"$height"'/' /boot/config.txt
|
||||
elif [ $new_rotate_value -eq $[($default_value-90+360)%360] ] || [ $new_rotate_value -eq $[($default_value+90+360)%360] ]; then
|
||||
sudo sed -i -e ''"$liner"'s/'"$strr"'/hdmi_cvt '"$height"' '"$width"'/' /boot/config.txt
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
#setting touch screen rotate
|
||||
if [ $touch_type = "resistance" ]; then
|
||||
if [ $new_rotate_value -eq 0 ]; then
|
||||
sudo cp $cur_dir/usr/99-calibration.conf-$device_id-0 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
echo "LCD rotate value is set to $1"
|
||||
elif [ $new_rotate_value -eq 90 ]; then
|
||||
sudo cp $cur_dir/usr/99-calibration.conf-$device_id-90 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
echo "LCD rotate value is set to $1"
|
||||
elif [ $new_rotate_value -eq 180 ]; then
|
||||
sudo cp $cur_dir/usr/99-calibration.conf-$device_id-180 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
echo "LCD rotate value is set to $1"
|
||||
elif [ $new_rotate_value -eq 270 ]; then
|
||||
sudo cp $cur_dir/usr/99-calibration.conf-$device_id-270 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
echo "LCD rotate value is set to $1"
|
||||
elif [ $new_rotate_value -eq 360 ]; then
|
||||
sudo cp $cur_dir/usr/99-calibration.conf-$device_id-FLIP-H /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
echo "LCD rotate value is set to flip horizontally"
|
||||
elif [ $new_rotate_value -eq 450 ]; then
|
||||
sudo cp $cur_dir/usr/99-calibration.conf-$device_id-FLIP-V /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
echo "LCD rotate value is set to flip vertically"
|
||||
fi
|
||||
elif [ $touch_type = "capacity" ]; then
|
||||
if [ $new_rotate_value -eq 0 ]; then
|
||||
sudo cp $cur_dir/usr/40-libinput.conf-0 /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
echo "LCD rotate value is set to $1"
|
||||
elif [ $new_rotate_value -eq 90 ]; then
|
||||
sudo cp $cur_dir/usr/40-libinput.conf-90 /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
echo "LCD rotate value is set to $1"
|
||||
elif [ $new_rotate_value -eq 180 ]; then
|
||||
sudo cp $cur_dir/usr/40-libinput.conf-180 /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
echo "LCD rotate value is set to $1"
|
||||
elif [ $new_rotate_value -eq 270 ]; then
|
||||
sudo cp $cur_dir/usr/40-libinput.conf-270 /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
echo "LCD rotate value is set to $1"
|
||||
elif [ $new_rotate_value -eq 360 ]; then
|
||||
sudo cp $cur_dir/usr/40-libinput.conf-FLIP-H /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
echo "LCD rotate value is set to flip horizontally"
|
||||
elif [ $new_rotate_value -eq 450 ]; then
|
||||
sudo cp $cur_dir/usr/40-libinput.conf-FLIP-V /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
echo "LCD rotate value is set to flip vertically"
|
||||
fi
|
||||
else
|
||||
echo "Invalid touch type"
|
||||
exit
|
||||
fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
|
||||
echo "reboot now"
|
||||
sleep 1
|
||||
sudo reboot
|
||||
|
||||
96
system_backup.sh
Executable file
96
system_backup.sh
Executable file
@ -0,0 +1,96 @@
|
||||
#!/bin/bash
|
||||
if [ ! -d "./.system_backup" ]; then
|
||||
sudo mkdir ./.system_backup
|
||||
fi
|
||||
|
||||
sudo rm -rf ./.system_backup/*
|
||||
|
||||
if [ -f /etc/X11/xorg.conf.d/99-calibration.conf ]; then
|
||||
sudo cp -rf /etc/X11/xorg.conf.d/99-calibration.conf ./.system_backup
|
||||
sudo rm -rf /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
fi
|
||||
|
||||
if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
|
||||
sudo cp -rf /etc/X11/xorg.conf.d/40-libinput.conf ./.system_backup
|
||||
sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
fi
|
||||
|
||||
if [ -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo mkdir -p ./.system_backup/xorg.conf.d
|
||||
sudo rm -rf /etc/X11/xorg.conf.d
|
||||
fi
|
||||
|
||||
result=`grep -rn "^dtoverlay=" /boot/config.txt | grep ":rotate=" | tail -n 1`
|
||||
if [ $? -eq 0 ]; then
|
||||
str=`echo -n $result | awk -F: '{printf $2}' | awk -F= '{printf $NF}'`
|
||||
if [ -f /boot/overlays/$str-overlay.dtb ]; then
|
||||
sudo cp -rf /boot/overlays/$str-overlay.dtb ./.system_backup
|
||||
sudo rm -rf /boot/overlays/$str-overlay.dtb
|
||||
fi
|
||||
if [ -f /boot/overlays/$str.dtbo ]; then
|
||||
sudo cp -rf /boot/overlays/$str.dtbo ./.system_backup
|
||||
sudo rm -rf /boot/overlays/$str.dtbo
|
||||
fi
|
||||
fi
|
||||
|
||||
root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
sudo cp -rf /boot/config.txt ./.system_backup
|
||||
sudo cp -rf /boot/cmdline.txt ./.system_backup/
|
||||
if test "$root_dev" = "/dev/mmcblk0p7";then
|
||||
sudo cp -rf ./boot/config-noobs-nomal.txt /boot/config.txt
|
||||
#sudo cp -rf ./usr/cmdline.txt-noobs-original /boot/cmdline.txt
|
||||
else
|
||||
sudo cp -rf ./boot/config-nomal.txt /boot/config.txt
|
||||
#sudo cp -rf ./usr/cmdline.txt-original /boot/cmdline.txt
|
||||
fi
|
||||
if [ -f /usr/share/X11/xorg.conf.d/99-fbturbo.conf ]; then
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/99-fbturbo.conf ./.system_backup/
|
||||
fi
|
||||
sudo cp -rf ./usr/99-fbturbo.conf-original /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
sudo cp -rf /etc/rc.local ./.system_backup/
|
||||
sudo cp -rf ./etc/rc.local-original /etc/rc.local
|
||||
|
||||
sudo cp -rf /etc/modules ./.system_backup/
|
||||
sudo cp -rf ./etc/modules-original /etc/modules
|
||||
|
||||
if [ -f /etc/modprobe.d/fbtft.conf ]; then
|
||||
sudo cp -rf /etc/modprobe.d/fbtft.conf ./.system_backup
|
||||
sudo rm -rf /etc/modprobe.d/fbtft.conf
|
||||
fi
|
||||
|
||||
if [ -f /etc/inittab ]; then
|
||||
sudo cp -rf /etc/inittab ./.system_backup
|
||||
sudo rm -rf /etc/inittab
|
||||
fi
|
||||
|
||||
type fbcp > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo touch ./.system_backup/have_fbcp
|
||||
sudo rm -rf /usr/local/bin/fbcp
|
||||
fi
|
||||
|
||||
#type cmake > /dev/null 2>&1
|
||||
#if [ $? -eq 0 ]; then
|
||||
#sudo touch ./.system_backup/have_cmake
|
||||
#sudo apt-get purge cmake -y 2> error_output.txt
|
||||
#result=`cat ./error_output.txt`
|
||||
#echo -e "\033[31m$result\033[0m"
|
||||
#fi
|
||||
|
||||
if [ -f /usr/share/X11/xorg.conf.d/10-evdev.conf ]; then
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf ./.system_backup
|
||||
sudo dpkg -P xserver-xorg-input-evdev
|
||||
#sudo apt-get purge xserver-xorg-input-evdev -y 2> error_output.txt
|
||||
#result=`cat ./error_output.txt`
|
||||
#echo -e "\033[31m$result\033[0m"
|
||||
fi
|
||||
|
||||
if [ -f /usr/share/X11/xorg.conf.d/45-evdev.conf ]; then
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/45-evdev.conf ./.system_backup
|
||||
sudo rm -rf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
fi
|
||||
|
||||
if [ -f ./.have_installed ]; then
|
||||
sudo cp -rf ./.have_installed ./.system_backup
|
||||
sudo rm -rf ./.have_installed
|
||||
fi
|
||||
26
system_config.sh
Executable file
26
system_config.sh
Executable file
@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
big_version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
|
||||
deb_version=`cat /etc/debian_version | tr -d '\n'`
|
||||
|
||||
if [ $(getconf WORD_BIT) = '32' ] && [ $(getconf LONG_BIT) = '64' ] ; then
|
||||
hardware_arch=64
|
||||
else
|
||||
hardware_arch=32
|
||||
fi
|
||||
|
||||
if [ $hardware_arch -eq 32 ]; then
|
||||
if [ $(($big_version)) -lt 10 ]; then
|
||||
sudo cp -rf ./boot/config-nomal-10.9-32.txt ./boot/config.txt.bak
|
||||
else
|
||||
if [[ "$deb_version" < "10.9" ]] || [[ "$deb_version" = "10.9" ]]; then
|
||||
sudo cp -rf ./boot/config-nomal-10.9-32.txt ./boot/config.txt.bak
|
||||
else
|
||||
sudo cp -rf ./boot/config-nomal-11.4-32.txt ./boot/config.txt.bak
|
||||
fi
|
||||
fi
|
||||
elif [ $hardware_arch -eq 64 ]; then
|
||||
sudo cp -rf ./boot/config-nomal-11.4-64.txt ./boot/config.txt.bak
|
||||
fi
|
||||
|
||||
|
||||
106
system_restore.sh
Executable file
106
system_restore.sh
Executable file
@ -0,0 +1,106 @@
|
||||
#!/bin/bash
|
||||
#Just finished the system, no need to restore
|
||||
if [ ! -d "./.system_backup" ]; then
|
||||
echo "The system is the original version and does not need to be restored"
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo rm -rf /etc/X11/xorg.conf.d
|
||||
fi
|
||||
if [ -d ./.system_backup/xorg.conf.d ]; then
|
||||
sudo cp -rf ./.system_backup/xorg.conf.d /etc/X11
|
||||
if [ -f ./.system_backup/99-calibration.conf ]; then
|
||||
sudo cp -rf ./.system_backup/99-calibration.conf /etc/X11/xorg.conf.d
|
||||
fi
|
||||
if [ -f ./.system_backup/40-libinput.conf ]; then
|
||||
sudo cp -rf ./.system_backup/40-libinput.conf /etc/X11/xorg.conf.d
|
||||
fi
|
||||
fi
|
||||
|
||||
result=`grep -rn "^dtoverlay=" /boot/config.txt | grep ":rotate=" | tail -n 1`
|
||||
if [ $? -eq 0 ]; then
|
||||
str=`echo -n $result | awk -F: '{printf $2}' | awk -F= '{printf $NF}'`
|
||||
sudo rm -rf /boot/overlays/$str-overlay.dtb
|
||||
sudo rm -rf /boot/overlays/$str.dtbo
|
||||
fi
|
||||
ls -al ./.system_backup/*.dtb > /dev/null 2>&1 && sudo cp -rf ./.system_backup/*.dtb /boot/overlays/
|
||||
ls -al ./.system_backup/*.dtbo > /dev/null 2>&1 && sudo cp -rf ./.system_backup/*.dtbo /boot/overlays/
|
||||
|
||||
if [ -f ./.system_backup/99-fbturbo.conf ];then
|
||||
sudo cp -rf ./.system_backup/99-fbturbo.conf /usr/share/X11/xorg.conf.d
|
||||
fi
|
||||
sudo cp -rf ./.system_backup/cmdline.txt /boot/
|
||||
sudo cp -rf ./.system_backup/config.txt /boot/
|
||||
sudo cp -rf ./.system_backup/rc.local /etc/
|
||||
sudo cp -rf ./.system_backup/modules /etc/
|
||||
|
||||
if [ -f /etc/inittab ]; then
|
||||
sudo rm -rf /etc/inittab
|
||||
fi
|
||||
if [ -f ./.system_backup/inittab ]; then
|
||||
sudo cp -rf ./.system_backup/inittab /etc
|
||||
fi
|
||||
|
||||
if [ -f /etc/modprobe.d/fbtft.conf ]; then
|
||||
sudo rm -rf /etc/modprobe.d/fbtft.conf
|
||||
fi
|
||||
if [ -f ./.system_backup/fbtft.conf ]; then
|
||||
sudo cp -rf ./.system_backup/fbtft.conf /etc/modprobe.d
|
||||
fi
|
||||
|
||||
type fbcp > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo rm -rf /usr/local/bin/fbcp
|
||||
fi
|
||||
if [ -f ./.system_backup/have_fbcp ]; then
|
||||
sudo install ./rpi-fbcp/build/fbcp /usr/local/bin/fbcp
|
||||
fi
|
||||
|
||||
#type cmake > /dev/null 2>&1
|
||||
#if [ $? -eq 0 ]; then
|
||||
#sudo apt-get purge cmake -y 2> error_output.txt
|
||||
#result=`cat ./error_output.txt`
|
||||
#echo -e "\033[31m$result\033[0m"
|
||||
#fi
|
||||
#if [ -f ./.system_backup/have_cmake ]; then
|
||||
#sudo apt-get install cmake -y 2> error_output.txt
|
||||
#result=`cat ./error_output.txt`
|
||||
#echo -e "\033[31m$result\033[0m"
|
||||
#fi
|
||||
|
||||
if [ -f /usr/share/X11/xorg.conf.d/10-evdev.conf ]; then
|
||||
sudo dpkg -P xserver-xorg-input-evdev
|
||||
#sudo apt-get purge xserver-xorg-input-evdev -y 2> error_output.txt
|
||||
#result=`cat ./error_output.txt`
|
||||
#echo -e "\033[31m$result\033[0m"
|
||||
fi
|
||||
if [ -f ./.system_backup/10-evdev.conf ]; then
|
||||
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb
|
||||
#sudo apt-get install xserver-xorg-input-evdev -y 2> error_output.txt
|
||||
#result=`cat ./error_output.txt`
|
||||
#echo -e "\033[31m$result\033[0m"
|
||||
fi
|
||||
|
||||
if [ -f /usr/share/X11/xorg.conf.d/45-evdev.conf ]; then
|
||||
sudo rm -rf /usr/share/X11/xorg.conf.d/45-evdev.conf
|
||||
fi
|
||||
if [ -f ./.system_backup/45-evdev.conf ]; then
|
||||
sudo cp -rf ./.system_backup/45-evdev.conf /usr/share/X11/xorg.conf.d
|
||||
fi
|
||||
|
||||
if [ -f ./.have_installed ]; then
|
||||
sudo rm -rf ./.have_installed
|
||||
fi
|
||||
if [ -f ./.system_backup/.have_installed ]; then
|
||||
sudo cp -rf ./.system_backup/.have_installed ./
|
||||
fi
|
||||
|
||||
sudo sync
|
||||
sudo sync
|
||||
|
||||
echo "The system has been restored"
|
||||
echo "now reboot"
|
||||
sleep 1
|
||||
|
||||
sudo reboot
|
||||
0
usr/40-libinput.conf-HDMI7B → usr/40-libinput.conf-0
Normal file → Executable file
0
usr/40-libinput.conf-HDMI7B → usr/40-libinput.conf-0
Normal file → Executable file
36
usr/40-libinput.conf-180
Executable file
36
usr/40-libinput.conf-180
Executable file
@ -0,0 +1,36 @@
|
||||
# Match on all types of devices but tablet devices and joysticks
|
||||
Section "InputClass"
|
||||
Identifier "libinput pointer catchall"
|
||||
MatchIsPointer "on"
|
||||
MatchDevicePath "/dev/input/event*"
|
||||
Driver "libinput"
|
||||
EndSection
|
||||
|
||||
Section "InputClass"
|
||||
Identifier "libinput keyboard catchall"
|
||||
MatchIsKeyboard "on"
|
||||
MatchDevicePath "/dev/input/event*"
|
||||
Driver "libinput"
|
||||
EndSection
|
||||
|
||||
Section "InputClass"
|
||||
Identifier "libinput touchpad catchall"
|
||||
MatchIsTouchpad "on"
|
||||
MatchDevicePath "/dev/input/event*"
|
||||
Driver "libinput"
|
||||
EndSection
|
||||
|
||||
Section "InputClass"
|
||||
Identifier "libinput touchscreen catchall"
|
||||
MatchIsTouchscreen "on"
|
||||
Option "CalibrationMatrix" "-1 0 1 0 -1 1 0 0 1"
|
||||
MatchDevicePath "/dev/input/event*"
|
||||
Driver "libinput"
|
||||
EndSection
|
||||
|
||||
Section "InputClass"
|
||||
Identifier "libinput tablet catchall"
|
||||
MatchIsTablet "on"
|
||||
MatchDevicePath "/dev/input/event*"
|
||||
Driver "libinput"
|
||||
EndSection
|
||||
2
usr/40-libinput.conf-HDMI7C → usr/40-libinput.conf-270
Normal file → Executable file
2
usr/40-libinput.conf-HDMI7C → usr/40-libinput.conf-270
Normal file → Executable file
@ -23,7 +23,7 @@ EndSection
|
||||
Section "InputClass"
|
||||
Identifier "libinput touchscreen catchall"
|
||||
MatchIsTouchscreen "on"
|
||||
Option "CalibrationMatrix" "1 0 0 0 1 0 0 0 1"
|
||||
Option "CalibrationMatrix" "0 -1 1 1 0 0 0 0 1"
|
||||
MatchDevicePath "/dev/input/event*"
|
||||
Driver "libinput"
|
||||
EndSection
|
||||
2
usr/40-libinput.conf-MPI5001 → usr/40-libinput.conf-90
Normal file → Executable file
2
usr/40-libinput.conf-MPI5001 → usr/40-libinput.conf-90
Normal file → Executable file
@ -23,7 +23,7 @@ EndSection
|
||||
Section "InputClass"
|
||||
Identifier "libinput touchscreen catchall"
|
||||
MatchIsTouchscreen "on"
|
||||
Option "CalibrationMatrix" "1 0 0 0 1 0 0 0 1"
|
||||
Option "CalibrationMatrix" "0 1 0 -1 0 1 0 0 1"
|
||||
MatchDevicePath "/dev/input/event*"
|
||||
Driver "libinput"
|
||||
EndSection
|
||||
36
usr/40-libinput.conf-FLIP-H
Executable file
36
usr/40-libinput.conf-FLIP-H
Executable file
@ -0,0 +1,36 @@
|
||||
# Match on all types of devices but tablet devices and joysticks
|
||||
Section "InputClass"
|
||||
Identifier "libinput pointer catchall"
|
||||
MatchIsPointer "on"
|
||||
MatchDevicePath "/dev/input/event*"
|
||||
Driver "libinput"
|
||||
EndSection
|
||||
|
||||
Section "InputClass"
|
||||
Identifier "libinput keyboard catchall"
|
||||
MatchIsKeyboard "on"
|
||||
MatchDevicePath "/dev/input/event*"
|
||||
Driver "libinput"
|
||||
EndSection
|
||||
|
||||
Section "InputClass"
|
||||
Identifier "libinput touchpad catchall"
|
||||
MatchIsTouchpad "on"
|
||||
MatchDevicePath "/dev/input/event*"
|
||||
Driver "libinput"
|
||||
EndSection
|
||||
|
||||
Section "InputClass"
|
||||
Identifier "libinput touchscreen catchall"
|
||||
MatchIsTouchscreen "on"
|
||||
Option "CalibrationMatrix" "-1 0 1 0 1 0 0 0 1"
|
||||
MatchDevicePath "/dev/input/event*"
|
||||
Driver "libinput"
|
||||
EndSection
|
||||
|
||||
Section "InputClass"
|
||||
Identifier "libinput tablet catchall"
|
||||
MatchIsTablet "on"
|
||||
MatchDevicePath "/dev/input/event*"
|
||||
Driver "libinput"
|
||||
EndSection
|
||||
36
usr/40-libinput.conf-FLIP-V
Executable file
36
usr/40-libinput.conf-FLIP-V
Executable file
@ -0,0 +1,36 @@
|
||||
# Match on all types of devices but tablet devices and joysticks
|
||||
Section "InputClass"
|
||||
Identifier "libinput pointer catchall"
|
||||
MatchIsPointer "on"
|
||||
MatchDevicePath "/dev/input/event*"
|
||||
Driver "libinput"
|
||||
EndSection
|
||||
|
||||
Section "InputClass"
|
||||
Identifier "libinput keyboard catchall"
|
||||
MatchIsKeyboard "on"
|
||||
MatchDevicePath "/dev/input/event*"
|
||||
Driver "libinput"
|
||||
EndSection
|
||||
|
||||
Section "InputClass"
|
||||
Identifier "libinput touchpad catchall"
|
||||
MatchIsTouchpad "on"
|
||||
MatchDevicePath "/dev/input/event*"
|
||||
Driver "libinput"
|
||||
EndSection
|
||||
|
||||
Section "InputClass"
|
||||
Identifier "libinput touchscreen catchall"
|
||||
MatchIsTouchscreen "on"
|
||||
Option "CalibrationMatrix" "1 0 0 0 -1 1 0 0 1"
|
||||
MatchDevicePath "/dev/input/event*"
|
||||
Driver "libinput"
|
||||
EndSection
|
||||
|
||||
Section "InputClass"
|
||||
Identifier "libinput tablet catchall"
|
||||
MatchIsTablet "on"
|
||||
MatchDevicePath "/dev/input/event*"
|
||||
Driver "libinput"
|
||||
EndSection
|
||||
0
usr/99-calibration.conf-24
Normal file → Executable file
0
usr/99-calibration.conf-24
Normal file → Executable file
0
usr/99-calibration.conf-28
Normal file → Executable file
0
usr/99-calibration.conf-28
Normal file → Executable file
6
usr/99-calibration.conf-32-0
Executable file
6
usr/99-calibration.conf-32-0
Executable file
@ -0,0 +1,6 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "155 3865 115 3700"
|
||||
Option "SwapAxes" "0"
|
||||
EndSection
|
||||
6
usr/99-calibration.conf-32-180
Executable file
6
usr/99-calibration.conf-32-180
Executable file
@ -0,0 +1,6 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "3865 155 3700 115"
|
||||
Option "SwapAxes" "0"
|
||||
EndSection
|
||||
0
usr/99-calibration.conf-32 → usr/99-calibration.conf-32-270
Normal file → Executable file
0
usr/99-calibration.conf-32 → usr/99-calibration.conf-32-270
Normal file → Executable file
2
usr/99-calibration.conf-397 → usr/99-calibration.conf-32-90
Normal file → Executable file
2
usr/99-calibration.conf-397 → usr/99-calibration.conf-32-90
Normal file → Executable file
@ -1,6 +1,6 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "3865 158 289 3873"
|
||||
Option "Calibration" "3700 115 155 3865"
|
||||
Option "SwapAxes" "1"
|
||||
EndSection
|
||||
6
usr/99-calibration.conf-35-0
Executable file
6
usr/99-calibration.conf-35-0
Executable file
@ -0,0 +1,6 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "268 3880 227 3936"
|
||||
Option "SwapAxes" "0"
|
||||
EndSection
|
||||
6
usr/99-calibration.conf-35-180
Executable file
6
usr/99-calibration.conf-35-180
Executable file
@ -0,0 +1,6 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "3880 268 3936 227"
|
||||
Option "SwapAxes" "0"
|
||||
EndSection
|
||||
6
usr/99-calibration.conf-35-270
Executable file
6
usr/99-calibration.conf-35-270
Executable file
@ -0,0 +1,6 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "227 3936 3880 268"
|
||||
Option "SwapAxes" "1"
|
||||
EndSection
|
||||
0
usr/99-calibration.conf-35 → usr/99-calibration.conf-35-90
Normal file → Executable file
0
usr/99-calibration.conf-35 → usr/99-calibration.conf-35-90
Normal file → Executable file
0
usr/99-calibration.conf-3508 → usr/99-calibration.conf-3508-0
Normal file → Executable file
0
usr/99-calibration.conf-3508 → usr/99-calibration.conf-3508-0
Normal file → Executable file
6
usr/99-calibration.conf-3508-180
Executable file
6
usr/99-calibration.conf-3508-180
Executable file
@ -0,0 +1,6 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "233 3945 183 3939"
|
||||
Option "SwapAxes" "1"
|
||||
EndSection
|
||||
6
usr/99-calibration.conf-3508-270
Executable file
6
usr/99-calibration.conf-3508-270
Executable file
@ -0,0 +1,6 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "183 3939 3945 233"
|
||||
Option "SwapAxes" "0"
|
||||
EndSection
|
||||
6
usr/99-calibration.conf-3508-90
Executable file
6
usr/99-calibration.conf-3508-90
Executable file
@ -0,0 +1,6 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "3939 183 233 3945"
|
||||
Option "SwapAxes" "0"
|
||||
EndSection
|
||||
6
usr/99-calibration.conf-3508-FLIP-H
Executable file
6
usr/99-calibration.conf-3508-FLIP-H
Executable file
@ -0,0 +1,6 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "233 3945 3939 183"
|
||||
Option "SwapAxes" "1"
|
||||
EndSection
|
||||
6
usr/99-calibration.conf-3508-FLIP-V
Executable file
6
usr/99-calibration.conf-3508-FLIP-V
Executable file
@ -0,0 +1,6 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "3945 233 183 3939"
|
||||
Option "SwapAxes" "1"
|
||||
EndSection
|
||||
6
usr/99-calibration.conf-397-0
Executable file
6
usr/99-calibration.conf-397-0
Executable file
@ -0,0 +1,6 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "137 3912 83 4023"
|
||||
Option "SwapAxes" "0"
|
||||
EndSection
|
||||
6
usr/99-calibration.conf-397-180
Executable file
6
usr/99-calibration.conf-397-180
Executable file
@ -0,0 +1,6 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "3912 137 4023 83"
|
||||
Option "SwapAxes" "0"
|
||||
EndSection
|
||||
6
usr/99-calibration.conf-397-270
Executable file
6
usr/99-calibration.conf-397-270
Executable file
@ -0,0 +1,6 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "4023 83 137 3912"
|
||||
Option "SwapAxes" "1"
|
||||
EndSection
|
||||
6
usr/99-calibration.conf-397-90
Executable file
6
usr/99-calibration.conf-397-90
Executable file
@ -0,0 +1,6 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "83 4023 3912 137"
|
||||
Option "SwapAxes" "1"
|
||||
EndSection
|
||||
6
usr/99-calibration.conf-397-FLIP-H
Executable file
6
usr/99-calibration.conf-397-FLIP-H
Executable file
@ -0,0 +1,6 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "3912 137 83 4023"
|
||||
Option "SwapAxes" "0"
|
||||
EndSection
|
||||
6
usr/99-calibration.conf-397-FLIP-V
Executable file
6
usr/99-calibration.conf-397-FLIP-V
Executable file
@ -0,0 +1,6 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "137 3912 4023 83"
|
||||
Option "SwapAxes" "0"
|
||||
EndSection
|
||||
6
usr/99-calibration.conf-3971-0
Executable file
6
usr/99-calibration.conf-3971-0
Executable file
@ -0,0 +1,6 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "149 3861 135 3845"
|
||||
Option "SwapAxes" "0"
|
||||
EndSection
|
||||
6
usr/99-calibration.conf-3971-180
Executable file
6
usr/99-calibration.conf-3971-180
Executable file
@ -0,0 +1,6 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "3861 149 3845 135"
|
||||
Option "SwapAxes" "0"
|
||||
EndSection
|
||||
6
usr/99-calibration.conf-3971-270
Executable file
6
usr/99-calibration.conf-3971-270
Executable file
@ -0,0 +1,6 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "3845 135 149 3861"
|
||||
Option "SwapAxes" "1"
|
||||
EndSection
|
||||
6
usr/99-calibration.conf-3971-90
Executable file
6
usr/99-calibration.conf-3971-90
Executable file
@ -0,0 +1,6 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "135 3845 3861 149"
|
||||
Option "SwapAxes" "1"
|
||||
EndSection
|
||||
6
usr/99-calibration.conf-3971-FLIP-H
Executable file
6
usr/99-calibration.conf-3971-FLIP-H
Executable file
@ -0,0 +1,6 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "3861 149 135 3845"
|
||||
Option "SwapAxes" "0"
|
||||
EndSection
|
||||
6
usr/99-calibration.conf-3971-FLIP-V
Executable file
6
usr/99-calibration.conf-3971-FLIP-V
Executable file
@ -0,0 +1,6 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "149 3861 3845 135"
|
||||
Option "SwapAxes" "0"
|
||||
EndSection
|
||||
0
usr/99-calibration.conf-43
Normal file → Executable file
0
usr/99-calibration.conf-43
Normal file → Executable file
0
usr/99-calibration.conf-5 → usr/99-calibration.conf-5-0
Normal file → Executable file
0
usr/99-calibration.conf-5 → usr/99-calibration.conf-5-0
Normal file → Executable file
6
usr/99-calibration.conf-5-180
Executable file
6
usr/99-calibration.conf-5-180
Executable 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
6
usr/99-calibration.conf-5-270
Executable 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
6
usr/99-calibration.conf-5-90
Executable file
@ -0,0 +1,6 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "261 3998 3951 140"
|
||||
Option "SwapAxes" "1"
|
||||
EndSection
|
||||
6
usr/99-calibration.conf-5-FLIP-H
Executable file
6
usr/99-calibration.conf-5-FLIP-H
Executable file
@ -0,0 +1,6 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "3951 140 261 3998"
|
||||
Option "SwapAxes" "0"
|
||||
EndSection
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user