From db473437fcbccd2cb7a9c8f0242e08db389add32 Mon Sep 17 00:00:00 2001 From: goodtft Date: Wed, 28 Mar 2018 15:01:06 +0800 Subject: [PATCH] Add files via upload --- LCD24-show | 40 ++++++++++++++++++++++++++++++++++++++++ LCD28-show | 1 + LCD32-show | 1 + LCD35-show | 1 + LCD5-show | 1 + LCD7C-show | 8 ++++++++ MPI3508-show | 1 + MPI3510-show | 37 +++++++++++++++++++++++++++++++++++++ MPI5001-show | 33 +++++++++++++++++++++++++++++++++ README.md | 2 +- 10 files changed, 124 insertions(+), 1 deletion(-) create mode 100644 LCD24-show create mode 100644 MPI3510-show create mode 100644 MPI5001-show diff --git a/LCD24-show b/LCD24-show new file mode 100644 index 0000000..4019f92 --- /dev/null +++ b/LCD24-show @@ -0,0 +1,40 @@ +#!/bin/bash +sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf +sudo mkdir /etc/X11/xorg.conf.d +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 +sudo cp ./usr/inittab /etc/ +sudo cp ./boot/config-28.txt /boot/config.txt +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 +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 diff --git a/LCD28-show b/LCD28-show index 82c5577..67fe163 100644 --- a/LCD28-show +++ b/LCD28-show @@ -1,4 +1,5 @@ #!/bin/bash +sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf sudo mkdir /etc/X11/xorg.conf.d sudo cp ./usr/tft9341-overlay.dtb /boot/overlays/ sudo cp ./usr/tft9341-overlay.dtb /boot/overlays/tft9341.dtbo diff --git a/LCD32-show b/LCD32-show index cd33a0f..656638d 100644 --- a/LCD32-show +++ b/LCD32-show @@ -1,4 +1,5 @@ #!/bin/bash +sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf sudo mkdir /etc/X11/xorg.conf.d sudo cp ./usr/tft9341-overlay.dtb /boot/overlays/ sudo cp ./usr/tft9341-overlay.dtb /boot/overlays/tft9341.dtbo diff --git a/LCD35-show b/LCD35-show index 42ec199..f7cedee 100644 --- a/LCD35-show +++ b/LCD35-show @@ -1,4 +1,5 @@ #!/bin/bash +sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf sudo mkdir /etc/X11/xorg.conf.d sudo cp ./usr/tft35a-overlay.dtb /boot/overlays/ sudo cp ./usr/tft35a-overlay.dtb /boot/overlays/tft35a.dtbo diff --git a/LCD5-show b/LCD5-show index 317b705..cf876df 100644 --- a/LCD5-show +++ b/LCD5-show @@ -1,4 +1,5 @@ #!/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 diff --git a/LCD7C-show b/LCD7C-show index 7f1c33b..b9a645a 100644 --- a/LCD7C-show +++ b/LCD7C-show @@ -1,5 +1,13 @@ sudo cp -rf ./boot/config-7C-1024x600.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 + nodeplatform=`uname -n` kernel=`uname -r` version=`uname -v` diff --git a/MPI3508-show b/MPI3508-show index c15d990..c67df03 100644 --- a/MPI3508-show +++ b/MPI3508-show @@ -1,4 +1,5 @@ #!/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 diff --git a/MPI3510-show b/MPI3510-show new file mode 100644 index 0000000..83ea0fc --- /dev/null +++ b/MPI3510-show @@ -0,0 +1,37 @@ +#!/bin/bash +sudo cp -rf ./boot/config-35DPI.txt /boot/config.txt +#sudo cp ./usr/bcm2709-rpi-2-b.dtb /boot/ +#sudo cp ./usr/bcm2710-rpi-3-b.dtb /boot/ +#sudo cp ./usr/cmdline.txt /boot/ +#sudo cp ./usr/qddpi24.dtb /boot/overlays/ +#sudo cp ./usr/qddpi24.dtb /boot/overlays/qddpi24.dtbo +#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` +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 +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 diff --git a/MPI5001-show b/MPI5001-show new file mode 100644 index 0000000..f5aed0b --- /dev/null +++ b/MPI5001-show @@ -0,0 +1,33 @@ +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 + +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 mkdir /etc/X11/xorg.conf.d +sudo cp ./usr/40-libinput.conf-MPI5001 /etc/X11/xorg.conf.d/40-libinput.conf +sudo reboot diff --git a/README.md b/README.md index fbe6741..968ce65 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ If you need to switch back to the traditional HDMI display
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 +http://www.hellolcd.com/download/LCD-show.tar.gz