Compare commits
21 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d420696013 | ||
|
|
57f087731c | ||
|
|
9d41f30559 | ||
|
|
f3898b3c76 | ||
|
|
eccd8281dc | ||
|
|
8c82009e3c | ||
|
|
fd7fb6a1fa | ||
|
|
7bc06046b1 | ||
|
|
d06266304d | ||
|
|
5117271023 | ||
|
|
ffe910b4d5 | ||
|
|
fcfa9d45bd | ||
|
|
bae0a0da81 | ||
|
|
1dd11e6259 | ||
|
|
16e6e618be | ||
|
|
cb4f8803dc | ||
|
|
9d5f990fb0 | ||
|
|
9b7e782f82 | ||
|
|
7029fa6ac3 | ||
|
|
49431c5b4d | ||
|
|
62be42eb69 |
26
LCD-hdmi
Normal file → Executable file
26
LCD-hdmi
Normal file → Executable file
@ -1,10 +1,20 @@
|
||||
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/
|
||||
#!/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 cp ./usr/inittab /etc/
|
||||
sudo ./system_backup.sh
|
||||
|
||||
#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
|
||||
|
||||
71
LCD24-3A+-show
Executable file
71
LCD24-3A+-show
Executable file
@ -0,0 +1,71 @@
|
||||
#!/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
|
||||
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 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:320:240" > ./.have_installed
|
||||
#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_2.10.5-1_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
|
||||
75
LCD24-show
Normal file → Executable file
75
LCD24-show
Normal file → Executable file
@ -1,40 +1,71 @@
|
||||
#!/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
|
||||
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
|
||||
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 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:320:240" > ./.have_installed
|
||||
#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"
|
||||
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
|
||||
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 dpkg -i -B ./xserver-xorg-input-evdev_2.10.5-1_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"
|
||||
#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
|
||||
|
||||
75
LCD28-show
Normal file → Executable file
75
LCD28-show
Normal file → Executable file
@ -1,40 +1,71 @@
|
||||
#!/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
|
||||
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
|
||||
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 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:320:240" > ./.have_installed
|
||||
#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"
|
||||
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
|
||||
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 dpkg -i -B ./xserver-xorg-input-evdev_2.10.5-1_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"
|
||||
#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
|
||||
|
||||
75
LCD32-show
Normal file → Executable file
75
LCD32-show
Normal file → Executable file
@ -1,40 +1,71 @@
|
||||
#!/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
|
||||
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
|
||||
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 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:320:240" > ./.have_installed
|
||||
#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"
|
||||
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
|
||||
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 dpkg -i -B ./xserver-xorg-input-evdev_2.10.5-1_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"
|
||||
#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
|
||||
|
||||
78
LCD35-show
Normal file → Executable file
78
LCD35-show
Normal file → Executable file
@ -1,40 +1,74 @@
|
||||
#!/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
|
||||
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
|
||||
[[ $hw_version =~ "Raspberry Pi 4 Model" ]] || (sed -i 's/^dtoverlay=/#&/g' ./boot/config.txt.bak;sed -i 's/^max_framebuffers=/#&/g' ./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 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
|
||||
#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"
|
||||
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
|
||||
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 dpkg -i -B ./xserver-xorg-input-evdev_2.10.5-1_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"
|
||||
#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
|
||||
|
||||
80
LCD5-show
Normal file → Executable file
80
LCD5-show
Normal file → Executable file
@ -1,38 +1,76 @@
|
||||
#!/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 ./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
|
||||
[[ $hw_version =~ "Raspberry Pi 4 Model" ]] || (sed -i 's/^dtoverlay=/#&/g' ./boot/config.txt.bak;sed -i 's/^max_framebuffers=/#&/g' ./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"
|
||||
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
|
||||
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 dpkg -i -B ./xserver-xorg-input-evdev_2.10.5-1_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"
|
||||
#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
|
||||
|
||||
65
LCD7B-show
Normal file → Executable file
65
LCD7B-show
Normal file → Executable file
@ -1,32 +1,49 @@
|
||||
sudo cp -rf ./boot/config-7B-800x480.txt /boot/config.txt
|
||||
if [ -b /dev/mmcblk0p7 ]; then
|
||||
#!/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
|
||||
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 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
|
||||
|
||||
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
|
||||
|
||||
63
LCD7C-show
Normal file → Executable file
63
LCD7C-show
Normal file → Executable file
@ -1,6 +1,28 @@
|
||||
sudo cp -rf ./boot/config-7C-1024x600.txt /boot/config.txt
|
||||
#!/bin/bash
|
||||
|
||||
if [ -b /dev/mmcblk0p7 ]; then
|
||||
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
|
||||
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 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/
|
||||
@ -8,27 +30,20 @@ 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
|
||||
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
|
||||
|
||||
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
|
||||
95
MHS32-show
Executable file
95
MHS32-show
Executable file
@ -0,0 +1,95 @@
|
||||
#!/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
|
||||
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 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-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:320" > ./.have_installed
|
||||
#FBCP install
|
||||
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 cp -rf ./etc/rc.local /etc/rc.local
|
||||
sudo apt-get install git cmake -y 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/tasanakorn/rpi-fbcp
|
||||
sudo mkdir ./rpi-fbcp/build
|
||||
cd ./rpi-fbcp/build/
|
||||
sudo cmake ..
|
||||
sudo make
|
||||
sudo install fbcp /usr/local/bin/fbcp
|
||||
cd - > /dev/null
|
||||
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_2.10.5-1_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
|
||||
99
MHS35-show
Executable file
99
MHS35-show
Executable file
@ -0,0 +1,99 @@
|
||||
#!/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
|
||||
|
||||
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
|
||||
[[ $hw_version =~ "Raspberry Pi 4 Model" ]] || (sed -i 's/^dtoverlay=/#&/g' ./boot/config.txt.bak;sed -i 's/^max_framebuffers=/#&/g' ./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
|
||||
|
||||
#FBCP install
|
||||
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 cp -rf ./etc/rc.local /etc/rc.local
|
||||
sudo apt-get install git cmake -y 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/tasanakorn/rpi-fbcp
|
||||
sudo mkdir ./rpi-fbcp/build
|
||||
cd ./rpi-fbcp/build/
|
||||
sudo cmake ..
|
||||
sudo make
|
||||
sudo install fbcp /usr/local/bin/fbcp
|
||||
cd - > /dev/null
|
||||
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_2.10.5-1_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
|
||||
95
MHS40-show
Executable file
95
MHS40-show
Executable file
@ -0,0 +1,95 @@
|
||||
#!/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
|
||||
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
|
||||
|
||||
#FBCP install
|
||||
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 cp -rf ./etc/rc.local /etc/rc.local
|
||||
sudo apt-get install git cmake -y 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/tasanakorn/rpi-fbcp
|
||||
sudo mkdir ./rpi-fbcp/build
|
||||
cd ./rpi-fbcp/build/
|
||||
sudo cmake ..
|
||||
sudo make
|
||||
sudo install fbcp /usr/local/bin/fbcp
|
||||
cd - > /dev/null
|
||||
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_2.10.5-1_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
|
||||
45
MIS35-show
Executable file
45
MIS35-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/mis35-overlay.dtb /boot/overlays/
|
||||
sudo cp ./usr/mis35-overlay.dtb /boot/overlays/mis35.dtbo
|
||||
sudo cp -rf ./usr/99-calibration.conf-mhs35 /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-mis35.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
|
||||
82
MPI3508-show
Normal file → Executable file
82
MPI3508-show
Normal file → Executable file
@ -1,38 +1,76 @@
|
||||
#!/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 ./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
|
||||
[[ $hw_version =~ "Raspberry Pi 4 Model" ]] || (sed -i 's/^dtoverlay=/#&/g' ./boot/config.txt.bak;sed -i 's/^max_framebuffers=/#&/g' ./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
|
||||
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"
|
||||
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
|
||||
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 dpkg -i -B ./xserver-xorg-input-evdev_2.10.5-1_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"
|
||||
#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
|
||||
|
||||
80
MPI4008-show
Normal file → Executable file
80
MPI4008-show
Normal file → Executable file
@ -1,37 +1,77 @@
|
||||
#!/bin/bash
|
||||
sudo cp -rf ./boot/config-397.txt /boot/config.txt
|
||||
if [ -b /dev/mmcblk0p7 ]; then
|
||||
|
||||
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
|
||||
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"
|
||||
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
|
||||
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 dpkg -i -B ./xserver-xorg-input-evdev_2.10.5-1_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"
|
||||
#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
|
||||
|
||||
65
MPI5001-show
Normal file → Executable file
65
MPI5001-show
Normal file → Executable file
@ -1,5 +1,29 @@
|
||||
sudo cp -rf ./boot/config-MPI5001.txt /boot/config.txt
|
||||
if [ -b /dev/mmcblk0p7 ]; then
|
||||
#!/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
|
||||
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/
|
||||
@ -7,27 +31,20 @@ 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
|
||||
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
|
||||
|
||||
17
README.md
Normal file → Executable file
17
README.md
Normal file → Executable file
@ -1,5 +1,12 @@
|
||||
LCD driver for the Raspberry PI Installation<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>
|
||||
@ -47,6 +54,12 @@ 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 3.2" High Speed display(MHS32)<br>
|
||||
```sudo ./MHS32-show```<br><br>
|
||||
In case of 3.5" High Speed display(MHS35)<br>
|
||||
```sudo ./MHS35-show```<br><br>
|
||||
In case of 4.0" High Speed display(MHS40)<br>
|
||||
```sudo ./MHS40-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>
|
||||
@ -63,7 +76,5 @@ If you need to switch back to the traditional HDMI display<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
|
||||
http://www.lcdwiki.com/RaspberryPi-LCD-Driver
|
||||
<br><br>
|
||||
|
||||
|
||||
|
||||
@ -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=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
|
||||
@ -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=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
|
||||
@ -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,73 +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
|
||||
|
||||
# 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=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
|
||||
|
||||
#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
|
||||
@ -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
|
||||
18
boot/config-nomal.txt
Normal file → Executable file
18
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,10 +43,10 @@ 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
|
||||
#dtparam=spi=on
|
||||
|
||||
# Uncomment this to enable the lirc-rpi module
|
||||
#dtoverlay=lirc-rpi
|
||||
|
||||
@ -54,3 +54,11 @@ enable_uart=1
|
||||
|
||||
# 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
|
||||
|
||||
27
boot/config-MPI5001.txt → boot/config-noobs-nomal.txt
Normal file → Executable file
27
boot/config-MPI5001.txt → boot/config-noobs-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,10 +43,10 @@ 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
|
||||
#dtparam=spi=on
|
||||
|
||||
# Uncomment this to enable the lirc-rpi module
|
||||
#dtoverlay=lirc-rpi
|
||||
|
||||
@ -54,11 +54,14 @@ enable_uart=1
|
||||
|
||||
# Enable audio (loads snd_bcm2835)
|
||||
dtparam=audio=on
|
||||
max_usb_current=1
|
||||
|
||||
[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
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
|
||||
86
system_backup.sh
Executable file
86
system_backup.sh
Executable file
@ -0,0 +1,86 @@
|
||||
#!/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
|
||||
sudo cp -rf /usr/share/X11/xorg.conf.d/99-fbturbo.conf ./.system_backup/
|
||||
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
|
||||
|
||||
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
|
||||
96
system_restore.sh
Executable file
96
system_restore.sh
Executable file
@ -0,0 +1,96 @@
|
||||
#!/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/
|
||||
|
||||
sudo cp -rf ./.system_backup/99-fbturbo.conf /usr/share/X11/xorg.conf.d
|
||||
sudo cp -rf ./.system_backup/cmdline.txt /boot/
|
||||
sudo cp -rf ./.system_backup/config.txt /boot/
|
||||
sudo cp -rf ./.system_backup/rc.local /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
|
||||
|
||||
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_2.10.5-1_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" "72 3916 182 4012"
|
||||
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" "3916 72 4012 182"
|
||||
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" "4012 182 72 3916"
|
||||
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" "182 4012 3916 72"
|
||||
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" "3916 72 182 4012"
|
||||
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" "72 3916 4012 182"
|
||||
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
|
||||
6
usr/99-calibration.conf-5-FLIP-V
Executable file
6
usr/99-calibration.conf-5-FLIP-V
Executable file
@ -0,0 +1,6 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "140 3951 3998 261"
|
||||
Option "SwapAxes" "0"
|
||||
EndSection
|
||||
0
usr/99-calibration.conf-HDMI7C
Normal file → Executable file
0
usr/99-calibration.conf-HDMI7C
Normal file → Executable file
9
usr/99-calibration.conf-mhs24
Executable file
9
usr/99-calibration.conf-mhs24
Executable file
@ -0,0 +1,9 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "3697 135 136 3839"
|
||||
Option "SwapAxes" "1"
|
||||
Option "EmulateThirdButton" "1"
|
||||
Option "EmulateThirdButtonTimeout" "1000"
|
||||
Option "EmulateThirdButtonMoveThreshold" "300"
|
||||
EndSection
|
||||
9
usr/99-calibration.conf-mhs32-0
Executable file
9
usr/99-calibration.conf-mhs32-0
Executable file
@ -0,0 +1,9 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "3901 158 212 3713"
|
||||
Option "SwapAxes" "0"
|
||||
Option "EmulateThirdButton" "1"
|
||||
Option "EmulateThirdButtonTimeout" "1000"
|
||||
Option "EmulateThirdButtonMoveThreshold" "300"
|
||||
EndSection
|
||||
9
usr/99-calibration.conf-mhs32-180
Executable file
9
usr/99-calibration.conf-mhs32-180
Executable file
@ -0,0 +1,9 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "158 3901 3713 212"
|
||||
Option "SwapAxes" "0"
|
||||
Option "EmulateThirdButton" "1"
|
||||
Option "EmulateThirdButtonTimeout" "1000"
|
||||
Option "EmulateThirdButtonMoveThreshold" "300"
|
||||
EndSection
|
||||
9
usr/99-calibration.conf-mhs32-270
Executable file
9
usr/99-calibration.conf-mhs32-270
Executable file
@ -0,0 +1,9 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "212 3713 158 3901"
|
||||
Option "SwapAxes" "1"
|
||||
Option "EmulateThirdButton" "1"
|
||||
Option "EmulateThirdButtonTimeout" "1000"
|
||||
Option "EmulateThirdButtonMoveThreshold" "300"
|
||||
EndSection
|
||||
9
usr/99-calibration.conf-mhs32-90
Executable file
9
usr/99-calibration.conf-mhs32-90
Executable file
@ -0,0 +1,9 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "3713 212 3901 158"
|
||||
Option "SwapAxes" "1"
|
||||
Option "EmulateThirdButton" "1"
|
||||
Option "EmulateThirdButtonTimeout" "1000"
|
||||
Option "EmulateThirdButtonMoveThreshold" "300"
|
||||
EndSection
|
||||
9
usr/99-calibration.conf-mhs35-0
Executable file
9
usr/99-calibration.conf-mhs35-0
Executable file
@ -0,0 +1,9 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "268 3880 227 3936"
|
||||
Option "SwapAxes" "0"
|
||||
Option "EmulateThirdButton" "1"
|
||||
Option "EmulateThirdButtonTimeout" "1000"
|
||||
Option "EmulateThirdButtonMoveThreshold" "300"
|
||||
EndSection
|
||||
9
usr/99-calibration.conf-mhs35-180
Executable file
9
usr/99-calibration.conf-mhs35-180
Executable file
@ -0,0 +1,9 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "3880 268 3936 227"
|
||||
Option "SwapAxes" "0"
|
||||
Option "EmulateThirdButton" "1"
|
||||
Option "EmulateThirdButtonTimeout" "1000"
|
||||
Option "EmulateThirdButtonMoveThreshold" "300"
|
||||
EndSection
|
||||
9
usr/99-calibration.conf-mhs35-270
Executable file
9
usr/99-calibration.conf-mhs35-270
Executable file
@ -0,0 +1,9 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "227 3936 3880 268"
|
||||
Option "SwapAxes" "1"
|
||||
Option "EmulateThirdButton" "1"
|
||||
Option "EmulateThirdButtonTimeout" "1000"
|
||||
Option "EmulateThirdButtonMoveThreshold" "300"
|
||||
EndSection
|
||||
9
usr/99-calibration.conf-mhs35-90
Executable file
9
usr/99-calibration.conf-mhs35-90
Executable file
@ -0,0 +1,9 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "3936 227 268 3880"
|
||||
Option "SwapAxes" "1"
|
||||
Option "EmulateThirdButton" "1"
|
||||
Option "EmulateThirdButtonTimeout" "1000"
|
||||
Option "EmulateThirdButtonMoveThreshold" "300"
|
||||
EndSection
|
||||
9
usr/99-calibration.conf-mhs395-0
Executable file
9
usr/99-calibration.conf-mhs395-0
Executable file
@ -0,0 +1,9 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "268 3880 227 3936"
|
||||
Option "SwapAxes" "0"
|
||||
Option "EmulateThirdButton" "1"
|
||||
Option "EmulateThirdButtonTimeout" "1000"
|
||||
Option "EmulateThirdButtonMoveThreshold" "300"
|
||||
EndSection
|
||||
9
usr/99-calibration.conf-mhs395-180
Executable file
9
usr/99-calibration.conf-mhs395-180
Executable file
@ -0,0 +1,9 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "3880 268 3936 227"
|
||||
Option "SwapAxes" "0"
|
||||
Option "EmulateThirdButton" "1"
|
||||
Option "EmulateThirdButtonTimeout" "1000"
|
||||
Option "EmulateThirdButtonMoveThreshold" "300"
|
||||
EndSection
|
||||
9
usr/99-calibration.conf-mhs395-270
Executable file
9
usr/99-calibration.conf-mhs395-270
Executable file
@ -0,0 +1,9 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "227 3936 3880 268"
|
||||
Option "SwapAxes" "1"
|
||||
Option "EmulateThirdButton" "1"
|
||||
Option "EmulateThirdButtonTimeout" "1000"
|
||||
Option "EmulateThirdButtonMoveThreshold" "300"
|
||||
EndSection
|
||||
9
usr/99-calibration.conf-mhs395-90
Executable file
9
usr/99-calibration.conf-mhs395-90
Executable file
@ -0,0 +1,9 @@
|
||||
Section "InputClass"
|
||||
Identifier "calibration"
|
||||
MatchProduct "ADS7846 Touchscreen"
|
||||
Option "Calibration" "3936 227 268 3880"
|
||||
Option "SwapAxes" "1"
|
||||
Option "EmulateThirdButton" "1"
|
||||
Option "EmulateThirdButtonTimeout" "1000"
|
||||
Option "EmulateThirdButtonMoveThreshold" "300"
|
||||
EndSection
|
||||
16
usr/99-fbturbo-fbcp.conf
Executable file
16
usr/99-fbturbo-fbcp.conf
Executable file
@ -0,0 +1,16 @@
|
||||
# This is a minimal sample config file, which can be copied to
|
||||
# /etc/X11/xorg.conf in order to make the Xorg server pick up
|
||||
# and load xf86-video-fbturbo driver installed in the system.
|
||||
#
|
||||
# When troubleshooting, check /var/log/Xorg.0.log for the debugging
|
||||
# output and error messages.
|
||||
# Run "man fbturbo" to get additional information about the extra
|
||||
# configuration options for tuning the driver.
|
||||
|
||||
Section "Device"
|
||||
Identifier "Allwinner A10/A13/A20 FBDEV"
|
||||
Driver "fbturbo"
|
||||
Option "fbdev" "/dev/fb0"
|
||||
|
||||
Option "SwapbuffersWait" "true"
|
||||
EndSection
|
||||
0
usr/99-fbturbo.conf
Normal file → Executable file
0
usr/99-fbturbo.conf
Normal file → Executable file
0
usr/99-fbturbo.conf-HDMI
Normal file → Executable file
0
usr/99-fbturbo.conf-HDMI
Normal file → Executable file
17
usr/99-fbturbo.conf-original
Normal file
17
usr/99-fbturbo.conf-original
Normal file
@ -0,0 +1,17 @@
|
||||
# This is a minimal sample config file, which can be copied to
|
||||
# /etc/X11/xorg.conf in order to make the Xorg server pick up
|
||||
# and load xf86-video-fbturbo driver installed in the system.
|
||||
#
|
||||
# When troubleshooting, check /var/log/Xorg.0.log for the debugging
|
||||
# output and error messages.
|
||||
#
|
||||
# Run "man fbturbo" to get additional information about the extra
|
||||
# configuration options for tuning the driver.
|
||||
|
||||
Section "Device"
|
||||
Identifier "Allwinner A10/A13 FBDEV"
|
||||
Driver "fbturbo"
|
||||
Option "fbdev" "/dev/fb0"
|
||||
|
||||
Option "SwapbuffersWait" "true"
|
||||
EndSection
|
||||
0
usr/bcm2709-rpi-2-b.dtb
Normal file → Executable file
0
usr/bcm2709-rpi-2-b.dtb
Normal file → Executable file
0
usr/bcm2710-rpi-3-b.dtb
Normal file → Executable file
0
usr/bcm2710-rpi-3-b.dtb
Normal file → Executable file
0
usr/cmdline.txt
Normal file → Executable file
0
usr/cmdline.txt
Normal file → Executable file
0
usr/cmdline.txt_noobs → usr/cmdline.txt-noobs
Normal file → Executable file
0
usr/cmdline.txt_noobs → usr/cmdline.txt-noobs
Normal file → Executable file
1
usr/cmdline.txt-noobs-original
Executable file
1
usr/cmdline.txt-noobs-original
Executable file
@ -0,0 +1 @@
|
||||
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p7 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
|
||||
1
usr/cmdline.txt-original
Normal file
1
usr/cmdline.txt-original
Normal file
@ -0,0 +1 @@
|
||||
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=f27bf3fc-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
|
||||
0
usr/inittab
Normal file → Executable file
0
usr/inittab
Normal file → Executable file
BIN
usr/mhs24-overlay.dtb
Executable file
BIN
usr/mhs24-overlay.dtb
Executable file
Binary file not shown.
BIN
usr/mhs32-overlay.dtb
Executable file
BIN
usr/mhs32-overlay.dtb
Executable file
Binary file not shown.
BIN
usr/mhs35-overlay.dtb
Executable file
BIN
usr/mhs35-overlay.dtb
Executable file
Binary file not shown.
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