├── LCD-hdmi
├── LCD101H-show
├── LCD101Y-show
├── LCD24-3A+-show
├── LCD24-show
├── LCD28-show
├── LCD32-show
├── LCD35-show
├── LCD5-show
├── LCD55-show
├── LCD7B-show
├── LCD7C-show
├── LCD7H-show
├── LCD7S-show
├── MHS24-show
├── MHS32-show
├── MHS35-show
├── MHS40-show
├── MIS35-show
├── MPI3508-show
├── MPI3508_480_320-show
├── MPI3510-show
├── MPI4008-show
├── MPI5001-show
├── README.md
├── boot
├── config-28.txt
├── config-32.txt
├── config-35-480X320.txt
├── config-35.txt
├── config-35DPI.txt
├── config-397.txt
├── config-43.txt
├── config-5.txt
├── config-7B-800x480.txt
├── config-7C-1024x600.txt
├── config-MPI5001.txt
├── config-mhs24.txt
├── config-mhs32.txt
├── config-mhs35.txt
├── config-mhs395.txt
├── config-mis35.txt
├── config-nomal-20.04-64.txt
├── config-nomal-20.04.txt
├── config-nomal-20.10-32.txt
├── config-nomal-22.04-32.txt
├── config-nomal-22.04-64.txt
└── config-nomal.txt
├── etc
└── rc.local
├── rotate.sh
├── system_backup.sh
├── system_config.sh
├── system_restore.sh
├── usr
├── 40-libinput.conf-0
├── 40-libinput.conf-180
├── 40-libinput.conf-270
├── 40-libinput.conf-90
├── 40-libinput.conf-FLIP-H
├── 40-libinput.conf-FLIP-V
├── 40-libinput.conf-HDMI7B
├── 40-libinput.conf-HDMI7C
├── 99-calibration.conf-24
├── 99-calibration.conf-28
├── 99-calibration.conf-32-0
├── 99-calibration.conf-32-180
├── 99-calibration.conf-32-270
├── 99-calibration.conf-32-90
├── 99-calibration.conf-35-0
├── 99-calibration.conf-35-180
├── 99-calibration.conf-35-270
├── 99-calibration.conf-35-90
├── 99-calibration.conf-3508-0
├── 99-calibration.conf-3508-180
├── 99-calibration.conf-3508-270
├── 99-calibration.conf-3508-90
├── 99-calibration.conf-3508-FLIP-H
├── 99-calibration.conf-3508-FLIP-V
├── 99-calibration.conf-397-0
├── 99-calibration.conf-397-180
├── 99-calibration.conf-397-270
├── 99-calibration.conf-397-90
├── 99-calibration.conf-397-FLIP-H
├── 99-calibration.conf-397-FLIP-V
├── 99-calibration.conf-43
├── 99-calibration.conf-5-0
├── 99-calibration.conf-5-180
├── 99-calibration.conf-5-270
├── 99-calibration.conf-5-90
├── 99-calibration.conf-5-FLIP-H
├── 99-calibration.conf-5-FLIP-V
├── 99-calibration.conf-HDMI7C
├── 99-calibration.conf-mhs24
├── 99-calibration.conf-mhs32-0
├── 99-calibration.conf-mhs32-180
├── 99-calibration.conf-mhs32-270
├── 99-calibration.conf-mhs32-90
├── 99-calibration.conf-mhs35-0
├── 99-calibration.conf-mhs35-180
├── 99-calibration.conf-mhs35-270
├── 99-calibration.conf-mhs35-90
├── 99-calibration.conf-mhs395-0
├── 99-calibration.conf-mhs395-180
├── 99-calibration.conf-mhs395-270
├── 99-calibration.conf-mhs395-90
├── 99-calibration.conf-mis35-0
├── 99-calibration.conf-mis35-180
├── 99-calibration.conf-mis35-270
├── 99-calibration.conf-mis35-90
├── 99-fbturbo-20.04.conf
├── 99-fbturbo-fbcp.conf
├── 99-fbturbo.conf
├── 99-fbturbo.conf-HDMI
├── 99-fbturbo.conf-original
├── bcm2709-rpi-2-b.dtb
├── bcm2710-rpi-3-b.dtb
├── cmdline.txt
├── cmdline.txt-noobs
├── cmdline.txt-original
├── inittab
├── mhs24-overlay.dtb
├── mhs32-overlay.dtb
├── mhs35-overlay-20.10.dtb
├── mhs35-overlay.dtb
├── mhs35b-overlay.dtb
├── mhs395-overlay-20.10.dtb
├── mhs395-overlay.dtb
├── mis35-overlay-20.10.dtb
├── mis35-overlay.dtb
├── modules-HDMI
├── qddpi24.dtb
├── tft35a-overlay-20.10.dtb
├── tft35a-overlay.dtb
└── tft9341-overlay.dtb
├── xinput-calibrator_0.7.5-1_armhf.deb
├── xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb
├── xserver-xorg-input-evdev_1%3a2.10.6-1_arm64.deb
└── xserver-xorg-input-evdev_2.10.5-1_armhf.deb
/LCD-hdmi:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo ./system_backup.sh
4 | source ./system_config.sh
5 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
6 | sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
7 | sudo cp -rf ./boot/config.txt.bak /boot/firmware/config.txt
8 |
9 | sudo sync
10 | sudo sync
11 | sleep 2
12 | #sudo cp -rf ./usr/modules-HDMI /etc/modules
13 | #sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
14 | #sudo cp ./boot/config-nomal.txt /boot/config.txt
15 | #if [ -b /dev/mmcblk0p7 ]; then
16 | #sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt
17 | #else
18 | #sudo cp ./usr/cmdline.txt /boot/
19 | #fi
20 | #sudo cp ./usr/inittab /etc/
21 | #echo "reboot now"
22 |
23 | #sudo cp -rf ./usr/modules-HDMI /etc/modules
24 | #udo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
25 |
26 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
27 |
28 | #if [[ "$version" < "20.04" ]]; then
29 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
30 | #else
31 | #sudo cp -rf ./boot/config-nomal-20.04.txt ./boot/config.txt.bak
32 | #fi
33 | #sudo cp ./boot/config-nomal.txt /boot/config.txt
34 | #if [ -b /dev/mmcblk0p7 ]; then
35 | #sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt
36 | #else
37 | #sudo cp ./usr/cmdline.txt /boot/
38 | #fi
39 | #sudo cp ./usr/inittab /etc/
40 | echo "reboot now"
41 | sudo reboot
42 |
--------------------------------------------------------------------------------
/LCD101H-show:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo ./system_backup.sh
4 |
5 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
6 |
7 | #if [[ "$version" < "20.04" ]]; then
8 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
9 | #else
10 | #sudo cp -rf ./boot/config-nomal-20.04.txt ./boot/config.txt.bak
11 | #fi
12 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
13 |
14 | source ./system_config.sh
15 | sudo echo "hdmi_force_edid_audio=1" >> ./boot/config.txt.bak
16 | sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
17 | sudo echo "dtparam=i2c_arm=on" >> ./boot/config.txt.bak
18 | sudo echo "dtparam=spi=on" >> ./boot/config.txt.bak
19 | sudo echo "enable_uart=1" >> ./boot/config.txt.bak
20 | sudo echo "display_rotate=0" >> ./boot/config.txt.bak
21 | sudo echo "max_usb_current=1" >> ./boot/config.txt.bak
22 | sudo echo "config_hdmi_boost=7" >> ./boot/config.txt.bak
23 | sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
24 | sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
25 | sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
26 | sudo echo "hdmi_timings=1024 1 200 18 200 600 1 50 3 50 0 0 0 60 0 51200000 3" >> ./boot/config.txt.bak
27 | sudo cp -rf ./boot/config.txt.bak /boot/firmware/config.txt
28 | #sudo cp -rf ./boot/config-7C-1024x600.txt /boot/firmware/config.txt
29 | #if [ -b /dev/mmcblk0p7 ]; then
30 | #sudo cp ./usr/cmdline.txt-noobs /boot/firmware/cmdline.txt
31 | #else
32 | #sudo cp ./usr/cmdline.txt /boot/firmware/
33 | #fi
34 | #sudo cp ./usr/inittab /etc/
35 | sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
36 |
37 | if [ ! -d /etc/X11/xorg.conf.d ]; then
38 | sudo mkdir /etc/X11/xorg.conf.d
39 | fi
40 | sudo cp ./usr/40-libinput.conf-0 /etc/X11/xorg.conf.d/40-libinput.conf
41 | sudo touch ./.have_installed
42 | echo "hdmi:capacity:101H-1024x600:0:1024:600" > ./.have_installed
43 | sudo sync
44 | sudo sync
45 | sleep 1
46 | if [ $# -eq 1 ]; then
47 | sudo ./rotate.sh $1
48 | elif [ $# -gt 1 ]; then
49 | echo "Too many parameters"
50 | fi
51 |
52 | echo "reboot now"
53 | sudo reboot
54 |
--------------------------------------------------------------------------------
/LCD101Y-show:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo ./system_backup.sh
4 |
5 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
6 |
7 | #if [[ "$version" < "20.04" ]]; then
8 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
9 | #else
10 | #sudo cp -rf ./boot/config-nomal-20.04.txt ./boot/config.txt.bak
11 | #fi
12 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
13 |
14 | source ./system_config.sh
15 | sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
16 | sudo echo "dtparam=i2c_arm=on" >> ./boot/config.txt.bak
17 | sudo echo "dtparam=spi=on" >> ./boot/config.txt.bak
18 | sudo echo "enable_uart=1" >> ./boot/config.txt.bak
19 | sudo echo "display_rotate=0" >> ./boot/config.txt.bak
20 | sudo echo "max_usb_current=1" >> ./boot/config.txt.bak
21 | sudo echo "config_hdmi_boost=7" >> ./boot/config.txt.bak
22 | sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
23 | sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
24 | sudo echo "hdmi_drive=1" >> ./boot/config.txt.bak
25 | sudo echo "hdmi_cvt 1280 800 60 6 0 0 0" >> ./boot/config.txt.bak
26 | sudo cp -rf ./boot/config.txt.bak /boot/firmware/config.txt
27 | #sudo cp -rf ./boot/config-7C-1024x600.txt /boot/firmware/config.txt
28 | #if [ -b /dev/mmcblk0p7 ]; then
29 | #sudo cp ./usr/cmdline.txt-noobs /boot/firmware/cmdline.txt
30 | #else
31 | #sudo cp ./usr/cmdline.txt /boot/firmware/
32 | #fi
33 | #sudo cp ./usr/inittab /etc/
34 | sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
35 |
36 | if [ ! -d /etc/X11/xorg.conf.d ]; then
37 | sudo mkdir /etc/X11/xorg.conf.d
38 | fi
39 | sudo cp ./usr/40-libinput.conf-0 /etc/X11/xorg.conf.d/40-libinput.conf
40 | sudo touch ./.have_installed
41 | echo "hdmi:capacity:101Y-1280x800:0:1280:800" > ./.have_installed
42 | sudo sync
43 | sudo sync
44 | sleep 1
45 | if [ $# -eq 1 ]; then
46 | sudo ./rotate.sh $1
47 | elif [ $# -gt 1 ]; then
48 | echo "Too many parameters"
49 | fi
50 |
51 | echo "reboot now"
52 | sudo reboot
53 |
--------------------------------------------------------------------------------
/LCD24-3A+-show:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo ./system_backup.sh
4 |
5 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
6 |
7 | if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
8 | sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
9 | fi
10 | if [ ! -d /etc/X11/xorg.conf.d ]; then
11 | sudo mkdir -p /etc/X11/xorg.conf.d
12 | fi
13 | sudo cp ./usr/tft9341-overlay.dtb /boot/firmware/overlays/
14 | sudo cp ./usr/tft9341-overlay.dtb /boot/firmware/overlays/tft9341.dtbo
15 |
16 | source ./system_config.sh
17 | if [[ "$version" < "20.04" ]]; then
18 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
19 | sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
20 | else
21 | if [[ "$version" = "20.04" ]]; then
22 | #sudo cp -rf ./boot/config-nomal-20.04.txt ./boot/config.txt.bak
23 | sudo cp -rf ./usr/99-fbturbo-20.04.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
24 | else
25 | sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
26 | fi
27 | row=`grep -nr "dtoverlay=vc4-fkms-v3d" ./boot/config.txt.bak | awk -F ':' '{if(NR==1)printf $1}'`
28 | sudo sed -i -e ''"$row"'s/dtoverlay=vc4-fkms-v3d/#dtoverlay=vc4-fkms-v3d/' ./boot/config.txt.bak
29 | fi
30 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
31 | sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
32 | sudo echo "dtparam=i2c_arm=on" >> ./boot/config.txt.bak
33 | sudo echo "dtparam=spi=on" >> ./boot/config.txt.bak
34 | sudo echo "enable_uart=1" >> ./boot/config.txt.bak
35 | sudo echo "dtoverlay=tft9341:rotate=90" >> ./boot/config.txt.bak
36 | sudo cp -rf ./boot/config.txt.bak /boot/firmware/config.txt
37 | sudo cp -rf ./usr/99-calibration.conf-32-90 /etc/X11/xorg.conf.d/99-calibration.conf
38 | #sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
39 | #if [ -b /dev/mmcblk0p7 ]; then
40 | #sudo cp ./usr/cmdline.txt-noobs /boot/firmware/cmdline.txt
41 | #else
42 | #sudo cp ./usr/cmdline.txt /boot/firmware/
43 | #fi
44 | #sudo cp ./usr/inittab /etc/
45 | #sudo cp ./boot/config-32.txt /boot/firmware/config.txt
46 | sudo touch ./.have_installed
47 | echo "gpio:resistance:32:90:320:240" > ./.have_installed
48 | #evdev install
49 | #nodeplatform=`uname -n`
50 | #kernel=`uname -r`
51 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
52 | #if test "$nodeplatform" = "raspberrypi";then
53 | #echo "this is raspberrypi kernel"
54 | #version=${version%% *}
55 | #version=${version#*#}
56 | #echo $version
57 | if [ "$version" = "18.04" ] || [[ "$version" > "18.04" ]]; then
58 | #echo "reboot"
59 | #else
60 | echo "need to update touch configuration"
61 | wget --spider -q -o /dev/null --tries=1 -T 10 https://www.x.org
62 | if [ $? -eq 0 ]; then
63 | sudo apt-get update
64 | sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
65 | else
66 | if [ $hardware_arch -eq 32 ]; then
67 | sudo dpkg -i -B ./xserver-xorg-input-evdev_2.10.5-1_armhf.deb 2> error_output.txt
68 | elif [ $hardware_arch -eq 64 ]; then
69 | sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1_arm64.deb 2> error_output.txt
70 | fi
71 | fi
72 | #sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
73 | result=`cat ./error_output.txt`
74 | echo -e "\033[31m$result\033[0m"
75 | grep -q "error:" ./error_output.txt && exit
76 | sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
77 | #echo "reboot"
78 | #fi
79 | else
80 | echo "This version is lower than ubuntu 18.04, no need to update touch configure, reboot"
81 | fi
82 |
83 | sudo sync
84 | sudo sync
85 | sleep 1
86 | if [ $# -eq 1 ]; then
87 | sudo ./rotate.sh $1
88 | elif [ $# -gt 1 ]; then
89 | echo "Too many parameters"
90 | fi
91 |
92 | echo "reboot now"
93 | sudo reboot
94 |
--------------------------------------------------------------------------------
/LCD24-show:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo ./system_backup.sh
4 |
5 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
6 |
7 | if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
8 | sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
9 | fi
10 | if [ ! -d /etc/X11/xorg.conf.d ]; then
11 | sudo mkdir -p /etc/X11/xorg.conf.d
12 | fi
13 | sudo cp ./usr/tft9341-overlay.dtb /boot/firmware/overlays/
14 | sudo cp ./usr/tft9341-overlay.dtb /boot/firmware/overlays/tft9341.dtbo
15 |
16 | source ./system_config.sh
17 | if [[ "$version" < "20.04" ]]; then
18 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
19 | sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
20 | else
21 | if [[ "$version" = "20.04" ]]; then
22 | #sudo cp -rf ./boot/config-nomal-20.04.txt ./boot/config.txt.bak
23 | sudo cp -rf ./usr/99-fbturbo-20.04.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
24 | else
25 | sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
26 | fi
27 | row=`grep -nr "dtoverlay=vc4-fkms-v3d" ./boot/config.txt.bak | awk -F ':' '{if(NR==1)printf $1}'`
28 | sudo sed -i -e ''"$row"'s/dtoverlay=vc4-fkms-v3d/#dtoverlay=vc4-fkms-v3d/' ./boot/config.txt.bak
29 | fi
30 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
31 | sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
32 | sudo echo "dtparam=i2c_arm=on" >> ./boot/config.txt.bak
33 | sudo echo "dtparam=spi=on" >> ./boot/config.txt.bak
34 | sudo echo "enable_uart=1" >> ./boot/config.txt.bak
35 | sudo echo "dtoverlay=tft9341:rotate=270" >> ./boot/config.txt.bak
36 | sudo cp -rf ./boot/config.txt.bak /boot/firmware/config.txt
37 | sudo cp -rf ./usr/99-calibration.conf-32-270 /etc/X11/xorg.conf.d/99-calibration.conf
38 | #sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
39 | #if [ -b /dev/mmcblk0p7 ]; then
40 | #sudo cp ./usr/cmdline.txt-noobs /boot/firmware/cmdline.txt
41 | #else
42 | #sudo cp ./usr/cmdline.txt /boot/firmware/
43 | #fi
44 | #sudo cp ./usr/inittab /etc/
45 | #sudo cp ./boot/config-32.txt /boot/firmware/config.txt
46 | sudo touch ./.have_installed
47 | echo "gpio:resistance:32:270:320:240" > ./.have_installed
48 | #evdev install
49 | #nodeplatform=`uname -n`
50 | #kernel=`uname -r`
51 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
52 | #if test "$nodeplatform" = "raspberrypi";then
53 | #echo "this is raspberrypi kernel"
54 | #version=${version%% *}
55 | #version=${version#*#}
56 | #echo $version
57 | if [ "$version" = "18.04" ] || [[ "$version" > "18.04" ]]; then
58 | #echo "reboot"
59 | #else
60 | echo "need to update touch configuration"
61 | wget --spider -q -o /dev/null --tries=1 -T 10 https://www.x.org
62 | if [ $? -eq 0 ]; then
63 | sudo apt-get update
64 | sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
65 | else
66 | if [ $hardware_arch -eq 32 ]; then
67 | sudo dpkg -i -B ./xserver-xorg-input-evdev_2.10.5-1_armhf.deb 2> error_output.txt
68 | elif [ $hardware_arch -eq 64 ]; then
69 | sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1_arm64.deb 2> error_output.txt
70 | fi
71 | fi
72 | #sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
73 | result=`cat ./error_output.txt`
74 | echo -e "\033[31m$result\033[0m"
75 | grep -q "error:" ./error_output.txt && exit
76 | sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
77 | #echo "reboot"
78 | #fi
79 | else
80 | echo "This version is lower than ubuntu 18.04, no need to update touch configure, reboot"
81 | fi
82 |
83 | sudo sync
84 | sudo sync
85 | sleep 1
86 | if [ $# -eq 1 ]; then
87 | sudo ./rotate.sh $1
88 | elif [ $# -gt 1 ]; then
89 | echo "Too many parameters"
90 | fi
91 |
92 | echo "reboot now"
93 | sudo reboot
94 |
--------------------------------------------------------------------------------
/LCD28-show:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo ./system_backup.sh
4 |
5 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
6 |
7 | if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
8 | sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
9 | fi
10 | if [ ! -d /etc/X11/xorg.conf.d ]; then
11 | sudo mkdir -p /etc/X11/xorg.conf.d
12 | fi
13 | sudo cp ./usr/tft9341-overlay.dtb /boot/firmware/overlays/
14 | sudo cp ./usr/tft9341-overlay.dtb /boot/firmware/overlays/tft9341.dtbo
15 |
16 | source ./system_config.sh
17 | if [[ "$version" < "20.04" ]]; then
18 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
19 | sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
20 | else
21 | if [[ "$version" = "20.04" ]]; then
22 | #sudo cp -rf ./boot/config-nomal-20.04.txt ./boot/config.txt.bak
23 | sudo cp -rf ./usr/99-fbturbo-20.04.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
24 | else
25 | sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
26 | fi
27 | row=`grep -nr "dtoverlay=vc4-fkms-v3d" ./boot/config.txt.bak | awk -F ':' '{if(NR==1)printf $1}'`
28 | sudo sed -i -e ''"$row"'s/dtoverlay=vc4-fkms-v3d/#dtoverlay=vc4-fkms-v3d/' ./boot/config.txt.bak
29 | fi
30 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
31 | sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
32 | sudo echo "dtparam=i2c_arm=on" >> ./boot/config.txt.bak
33 | sudo echo "dtparam=spi=on" >> ./boot/config.txt.bak
34 | sudo echo "enable_uart=1" >> ./boot/config.txt.bak
35 | sudo echo "dtoverlay=tft9341:rotate=270" >> ./boot/config.txt.bak
36 | sudo cp -rf ./boot/config.txt.bak /boot/firmware/config.txt
37 | sudo cp -rf ./usr/99-calibration.conf-32-270 /etc/X11/xorg.conf.d/99-calibration.conf
38 | #sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
39 | #if [ -b /dev/mmcblk0p7 ]; then
40 | #sudo cp ./usr/cmdline.txt-noobs /boot/firmware/cmdline.txt
41 | #else
42 | #sudo cp ./usr/cmdline.txt /boot/firmware/
43 | #fi
44 | #sudo cp ./usr/inittab /etc/
45 | #sudo cp ./boot/config-32.txt /boot/firmware/config.txt
46 | sudo touch ./.have_installed
47 | echo "gpio:resistance:32:270:320:240" > ./.have_installed
48 | #evdev install
49 | #nodeplatform=`uname -n`
50 | #kernel=`uname -r`
51 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
52 | #if test "$nodeplatform" = "raspberrypi";then
53 | #echo "this is raspberrypi kernel"
54 | #version=${version%% *}
55 | #version=${version#*#}
56 | #echo $version
57 | if [ "$version" = "18.04" ] || [[ "$version" > "18.04" ]]; then
58 | #echo "reboot"
59 | #else
60 | echo "need to update touch configuration"
61 | wget --spider -q -o /dev/null --tries=1 -T 10 https://www.x.org
62 | if [ $? -eq 0 ]; then
63 | sudo apt-get update
64 | sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
65 | else
66 | if [ $hardware_arch -eq 32 ]; then
67 | sudo dpkg -i -B ./xserver-xorg-input-evdev_2.10.5-1_armhf.deb 2> error_output.txt
68 | elif [ $hardware_arch -eq 64 ]; then
69 | sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1_arm64.deb 2> error_output.txt
70 | fi
71 | fi
72 | #sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
73 | result=`cat ./error_output.txt`
74 | echo -e "\033[31m$result\033[0m"
75 | grep -q "error:" ./error_output.txt && exit
76 | sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
77 | #echo "reboot"
78 | #fi
79 | else
80 | echo "This version is lower than ubuntu 18.04, no need to update touch configure, reboot"
81 | fi
82 |
83 | sudo sync
84 | sudo sync
85 | sleep 1
86 | if [ $# -eq 1 ]; then
87 | sudo ./rotate.sh $1
88 | elif [ $# -gt 1 ]; then
89 | echo "Too many parameters"
90 | fi
91 |
92 | echo "reboot now"
93 | sudo reboot
94 |
--------------------------------------------------------------------------------
/LCD32-show:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo ./system_backup.sh
4 |
5 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
6 |
7 | if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
8 | sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
9 | fi
10 | if [ ! -d /etc/X11/xorg.conf.d ]; then
11 | sudo mkdir -p /etc/X11/xorg.conf.d
12 | fi
13 | sudo cp ./usr/tft9341-overlay.dtb /boot/firmware/overlays/
14 | sudo cp ./usr/tft9341-overlay.dtb /boot/firmware/overlays/tft9341.dtbo
15 |
16 | source ./system_config.sh
17 | if [[ "$version" < "20.04" ]]; then
18 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
19 | sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
20 | else
21 | if [[ "$version" = "20.04" ]]; then
22 | #sudo cp -rf ./boot/config-nomal-20.04.txt ./boot/config.txt.bak
23 | sudo cp -rf ./usr/99-fbturbo-20.04.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
24 | else
25 | sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
26 | fi
27 | row=`grep -nr "dtoverlay=vc4-fkms-v3d" ./boot/config.txt.bak | awk -F ':' '{if(NR==1)printf $1}'`
28 | sudo sed -i -e ''"$row"'s/dtoverlay=vc4-fkms-v3d/#dtoverlay=vc4-fkms-v3d/' ./boot/config.txt.bak
29 | fi
30 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
31 | sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
32 | sudo echo "dtparam=i2c_arm=on" >> ./boot/config.txt.bak
33 | sudo echo "dtparam=spi=on" >> ./boot/config.txt.bak
34 | sudo echo "enable_uart=1" >> ./boot/config.txt.bak
35 | sudo echo "dtoverlay=tft9341:rotate=270" >> ./boot/config.txt.bak
36 | sudo cp -rf ./boot/config.txt.bak /boot/firmware/config.txt
37 | sudo cp -rf ./usr/99-calibration.conf-32-270 /etc/X11/xorg.conf.d/99-calibration.conf
38 | #sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
39 | #if [ -b /dev/mmcblk0p7 ]; then
40 | #sudo cp ./usr/cmdline.txt-noobs /boot/firmware/cmdline.txt
41 | #else
42 | #sudo cp ./usr/cmdline.txt /boot/firmware/
43 | #fi
44 | #sudo cp ./usr/inittab /etc/
45 | #sudo cp ./boot/config-32.txt /boot/firmware/config.txt
46 | sudo touch ./.have_installed
47 | echo "gpio:resistance:32:270:320:240" > ./.have_installed
48 | #evdev install
49 | #nodeplatform=`uname -n`
50 | #kernel=`uname -r`
51 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
52 | #if test "$nodeplatform" = "raspberrypi";then
53 | #echo "this is raspberrypi kernel"
54 | #version=${version%% *}
55 | #version=${version#*#}
56 | #echo $version
57 | if [ "$version" = "18.04" ] || [[ "$version" > "18.04" ]]; then
58 | #echo "reboot"
59 | #else
60 | echo "need to update touch configuration"
61 | wget --spider -q -o /dev/null --tries=1 -T 10 https://www.x.org
62 | if [ $? -eq 0 ]; then
63 | sudo apt-get update
64 | sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
65 | else
66 | if [ $hardware_arch -eq 32 ]; then
67 | sudo dpkg -i -B ./xserver-xorg-input-evdev_2.10.5-1_armhf.deb 2> error_output.txt
68 | elif [ $hardware_arch -eq 64 ]; then
69 | sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1_arm64.deb 2> error_output.txt
70 | fi
71 | fi
72 | #sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
73 | result=`cat ./error_output.txt`
74 | echo -e "\033[31m$result\033[0m"
75 | grep -q "error:" ./error_output.txt && exit
76 | sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
77 | #echo "reboot"
78 | #fi
79 | else
80 | echo "This version is lower than ubuntu 18.04, no need to update touch configure, reboot"
81 | fi
82 |
83 | sudo sync
84 | sudo sync
85 | sleep 1
86 | if [ $# -eq 1 ]; then
87 | sudo ./rotate.sh $1
88 | elif [ $# -gt 1 ]; then
89 | echo "Too many parameters"
90 | fi
91 |
92 | echo "reboot now"
93 | sudo reboot
94 |
--------------------------------------------------------------------------------
/LCD35-show:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo ./system_backup.sh
4 |
5 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
6 |
7 | source ./system_config.sh
8 |
9 | if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
10 | sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
11 | fi
12 | if [ ! -d /etc/X11/xorg.conf.d ]; then
13 | sudo mkdir -p /etc/X11/xorg.conf.d
14 | fi
15 | if [ "$version" = "20.10" ] || [[ "$version" > "20.10" ]]; then
16 | sudo cp ./usr/tft35a-overlay-20.10.dtb /boot/firmware/overlays/tft35a-overlay.dtb
17 | sudo cp ./usr/tft35a-overlay-20.10.dtb /boot/firmware/overlays/tft35a.dtbo
18 | else
19 | sudo cp ./usr/tft35a-overlay.dtb /boot/firmware/overlays/
20 | sudo cp ./usr/tft35a-overlay.dtb /boot/firmware/overlays/tft35a.dtbo
21 | fi
22 |
23 | if [[ "$version" < "20.04" ]]; then
24 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
25 | sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
26 | else
27 | if [[ "$version" = "20.04" ]]; then
28 | #sudo cp -rf ./boot/config-nomal-20.04.txt ./boot/config.txt.bak
29 | sudo cp -rf ./usr/99-fbturbo-20.04.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
30 | else
31 | sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
32 | fi
33 | row=`grep -nr "dtoverlay=vc4-fkms-v3d" ./boot/config.txt.bak | awk -F ':' '{if(NR==1)printf $1}'`
34 | sudo sed -i -e ''"$row"'s/dtoverlay=vc4-fkms-v3d/#dtoverlay=vc4-fkms-v3d/' ./boot/config.txt.bak
35 | fi
36 | sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
37 | sudo echo "dtparam=i2c_arm=on" >> ./boot/config.txt.bak
38 | sudo echo "dtparam=spi=on" >> ./boot/config.txt.bak
39 | sudo echo "enable_uart=1" >> ./boot/config.txt.bak
40 | sudo echo "dtoverlay=tft35a:rotate=90" >> ./boot/config.txt.bak
41 | sudo cp -rf ./boot/config.txt.bak /boot/firmware/config.txt
42 |
43 | if [ "$version" = "20.10" ] || [[ "$version" > "20.10" ]]; then
44 | sudo cp -rf ./usr/99-calibration.conf-35-270 /etc/X11/xorg.conf.d/99-calibration.conf
45 | else
46 | sudo cp -rf ./usr/99-calibration.conf-35-90 /etc/X11/xorg.conf.d/99-calibration.conf
47 | fi
48 | #sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
49 | #if [ -b /dev/mmcblk0p7 ]; then
50 | #sudo cp ./usr/cmdline.txt-noobs /boot/firmware/cmdline.txt
51 | #else
52 | #sudo cp ./usr/cmdline.txt /boot/firmware/
53 | #fi
54 | #sudo cp ./usr/inittab /etc/
55 | #sudo cp ./boot/config-35.txt /boot/firmware/config.txt
56 | sudo touch ./.have_installed
57 | echo "gpio:resistance:35:90:480:320" > ./.have_installed
58 | #evdev install
59 | #nodeplatform=`uname -n`
60 | #kernel=`uname -r`
61 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
62 | #if test "$nodeplatform" = "raspberrypi";then
63 | #echo "this is raspberrypi kernel"
64 | #version=${version%% *}
65 | #version=${version#*#}
66 | #echo $version
67 | if [ "$version" = "18.04" ] || [[ "$version" > "18.04" ]]; then
68 | #echo "reboot"
69 | #else
70 | echo "need to update touch configuration"
71 | wget --spider -q -o /dev/null --tries=1 -T 10 https://www.x.org
72 | if [ $? -eq 0 ]; then
73 | sudo apt-get update
74 | sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
75 | else
76 | if [ $hardware_arch -eq 32 ]; then
77 | sudo dpkg -i -B ./xserver-xorg-input-evdev_2.10.5-1_armhf.deb 2> error_output.txt
78 | elif [ $hardware_arch -eq 64 ]; then
79 | sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1_arm64.deb 2> error_output.txt
80 | fi
81 | fi
82 | #sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
83 | result=`cat ./error_output.txt`
84 | echo -e "\033[31m$result\033[0m"
85 | grep -q "error:" ./error_output.txt && exit
86 | sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
87 | #echo "reboot"
88 | #fi
89 | else
90 | echo "This version is lower than ubuntu 18.04, no need to update touch configure, reboot"
91 | fi
92 |
93 | sudo sync
94 | sudo sync
95 | sleep 1
96 | if [ $# -eq 1 ]; then
97 | sudo ./rotate.sh $1
98 | elif [ $# -gt 1 ]; then
99 | echo "Too many parameters"
100 | fi
101 |
102 | echo "reboot now"
103 | sudo reboot
104 |
--------------------------------------------------------------------------------
/LCD5-show:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo ./system_backup.sh
4 |
5 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
6 |
7 | #if [[ "$version" < "20.04" ]]; then
8 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
9 | #else
10 | #sudo cp -rf ./boot/config-nomal-20.04.txt ./boot/config.txt.bak
11 | #fi
12 |
13 | source ./system_config.sh
14 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
15 | sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
16 | sudo echo "dtparam=i2c_arm=on" >> ./boot/config.txt.bak
17 | sudo echo "dtparam=spi=on" >> ./boot/config.txt.bak
18 | sudo echo "enable_uart=1" >> ./boot/config.txt.bak
19 | sudo echo "display_rotate=0" >> ./boot/config.txt.bak
20 | sudo echo "max_usb_current=1" >> ./boot/config.txt.bak
21 | sudo echo "config_hdmi_boost=7" >> ./boot/config.txt.bak
22 | sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
23 | sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak
24 | sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
25 | sudo echo "hdmi_drive=1" >> ./boot/config.txt.bak
26 | sudo echo "hdmi_cvt 800 480 60 6 0 0 0" >> ./boot/config.txt.bak
27 | 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
28 | sudo cp -rf ./boot/config.txt.bak /boot/firmware/config.txt
29 |
30 | #sudo cp -rf ./boot/config-5.txt /boot/firmware/config.txt
31 | #if [ -b /dev/mmcblk0p7 ]; then
32 | #sudo cp ./usr/cmdline.txt-noobs /boot/firmware/cmdline.txt
33 | #else
34 | #sudo cp ./usr/cmdline.txt /boot/firmware/
35 | #fi
36 | #sudo cp ./usr/inittab /etc/
37 | sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
38 | if [ ! -d /etc/X11/xorg.conf.d ]; then
39 | sudo mkdir /etc/X11/xorg.conf.d
40 | fi
41 | sudo cp -rf ./usr/99-calibration.conf-5-0 /etc/X11/xorg.conf.d/99-calibration.conf
42 | sudo touch ./.have_installed
43 | echo "hdmi:resistance:5:0:800:480" > ./.have_installed
44 | #nodeplatform=`uname -n`
45 | #kernel=`uname -r`
46 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
47 | #if test "$nodeplatform" = "raspberrypi";then
48 | #echo "this is raspberrypi kernel"
49 | #version=${version%% *}
50 | #version=${version#*#}
51 | #echo $version
52 | if [ "$version" = "18.04" ] || [[ "$version" > "18.04" ]]; then
53 | #echo "reboot"
54 | #else
55 | echo "need to update touch configuration"
56 | wget --spider -q -o /dev/null --tries=1 -T 10 https://www.x.org
57 | if [ $? -eq 0 ]; then
58 | sudo apt-get update
59 | sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
60 | else
61 | if [ $hardware_arch -eq 32 ]; then
62 | sudo dpkg -i -B ./xserver-xorg-input-evdev_2.10.5-1_armhf.deb 2> error_output.txt
63 | elif [ $hardware_arch -eq 64 ]; then
64 | sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1_arm64.deb 2> error_output.txt
65 | fi
66 | fi
67 | #sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
68 | result=`cat ./error_output.txt`
69 | echo -e "\033[31m$result\033[0m"
70 | grep -q "error:" ./error_output.txt && exit
71 | sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
72 | #echo "reboot"
73 | #fi
74 | else
75 | echo "This version is lower than ubuntu 18.04, no need to update touch configure, reboot"
76 | fi
77 |
78 | sudo sync
79 | sudo sync
80 | sleep 1
81 | if [ $# -eq 1 ]; then
82 | sudo ./rotate.sh $1
83 | elif [ $# -gt 1 ]; then
84 | echo "Too many parameters"
85 | fi
86 |
87 | echo "reboot now"
88 | sudo reboot
89 |
--------------------------------------------------------------------------------
/LCD55-show:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo ./system_backup.sh
4 |
5 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
6 |
7 | #if [[ "$version" < "20.04" ]]; then
8 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
9 | #else
10 | #sudo cp -rf ./boot/config-nomal-20.04.txt ./boot/config.txt.bak
11 | #fi
12 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
13 |
14 | source ./system_config.sh
15 | sudo echo "hdmi_force_edid_audio=1" >> ./boot/config.txt.bak
16 | sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
17 | sudo echo "dtparam=i2c_arm=on" >> ./boot/config.txt.bak
18 | sudo echo "dtparam=spi=on" >> ./boot/config.txt.bak
19 | sudo echo "enable_uart=1" >> ./boot/config.txt.bak
20 | sudo echo "display_rotate=0" >> ./boot/config.txt.bak
21 | sudo echo "max_framebuffer_height=1920" >> ./boot/config.txt.bak
22 | sudo echo "max_usb_current=1" >> ./boot/config.txt.bak
23 | sudo echo "config_hdmi_boost=7" >> ./boot/config.txt.bak
24 | sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
25 | sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
26 | sudo echo "hdmi_drive=1" >> ./boot/config.txt.bak
27 | sudo echo "hdmi_cvt=1920 1080 60 6 0 0 0" >> ./boot/config.txt.bak
28 | sudo cp -rf ./boot/config.txt.bak /boot/firmware/config.txt
29 | #sudo cp -rf ./boot/config-7C-1024x600.txt /boot/firmware/config.txt
30 | #if [ -b /dev/mmcblk0p7 ]; then
31 | #sudo cp ./usr/cmdline.txt-noobs /boot/firmware/cmdline.txt
32 | #else
33 | #sudo cp ./usr/cmdline.txt /boot/firmware/
34 | #fi
35 | #sudo cp ./usr/inittab /etc/
36 | sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
37 |
38 | if [ ! -d /etc/X11/xorg.conf.d ]; then
39 | sudo mkdir /etc/X11/xorg.conf.d
40 | fi
41 | sudo cp ./usr/40-libinput.conf-0 /etc/X11/xorg.conf.d/40-libinput.conf
42 | sudo touch ./.have_installed
43 | echo "hdmi:capacity:55-1920x1080:0:1920:1080" > ./.have_installed
44 | sudo sync
45 | sudo sync
46 | sleep 1
47 | if [ $# -eq 1 ]; then
48 | sudo ./rotate.sh $1
49 | elif [ $# -gt 1 ]; then
50 | echo "Too many parameters"
51 | fi
52 |
53 | echo "reboot now"
54 | sudo reboot
55 |
--------------------------------------------------------------------------------
/LCD7B-show:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo ./system_backup.sh
4 |
5 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
6 |
7 | #if [[ "$version" < "20.04" ]]; then
8 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
9 | #else
10 | #sudo cp -rf ./boot/config-nomal-20.04.txt ./boot/config.txt.bak
11 | #fi
12 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
13 |
14 | source ./system_config.sh
15 | sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
16 | sudo echo "dtparam=i2c_arm=on" >> ./boot/config.txt.bak
17 | sudo echo "dtparam=spi=on" >> ./boot/config.txt.bak
18 | sudo echo "enable_uart=1" >> ./boot/config.txt.bak
19 | sudo echo "display_rotate=0" >> ./boot/config.txt.bak
20 | sudo echo "max_usb_current=1" >> ./boot/config.txt.bak
21 | sudo echo "config_hdmi_boost=7" >> ./boot/config.txt.bak
22 | sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
23 | sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak
24 | sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
25 | sudo echo "hdmi_drive=1" >> ./boot/config.txt.bak
26 | sudo echo "hdmi_cvt 800 480 60 6 0 0 0" >> ./boot/config.txt.bak
27 | sudo cp -rf ./boot/config.txt.bak /boot/firmware/config.txt
28 | #sudo cp -rf ./boot/config-7B-800x480.txt /boot/firmware/config.txt
29 | #if [ -b /dev/mmcblk0p7 ]; then
30 | #sudo cp ./usr/cmdline.txt-noobs /boot/firmware/cmdline.txt
31 | #else
32 | #sudo cp ./usr/cmdline.txt /boot/firmware/
33 | #fi
34 | #sudo cp ./usr/inittab /etc/
35 | sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
36 |
37 | if [ ! -d /etc/X11/xorg.conf.d ]; then
38 | sudo mkdir /etc/X11/xorg.conf.d
39 | fi
40 | sudo cp ./usr/40-libinput.conf-0 /etc/X11/xorg.conf.d/40-libinput.conf
41 | sudo touch ./.have_installed
42 | echo "hdmi:capacity:7B-800x480:0:800:480" > ./.have_installed
43 | sudo sync
44 | sudo sync
45 | sleep 1
46 | if [ $# -eq 1 ]; then
47 | sudo ./rotate.sh $1
48 | elif [ $# -gt 1 ]; then
49 | echo "Too many parameters"
50 | fi
51 |
52 | echo "reboot now"
53 | sudo reboot
54 |
--------------------------------------------------------------------------------
/LCD7C-show:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo ./system_backup.sh
4 |
5 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
6 |
7 | #if [[ "$version" < "20.04" ]]; then
8 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
9 | #else
10 | #sudo cp -rf ./boot/config-nomal-20.04.txt ./boot/config.txt.bak
11 | #fi
12 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
13 |
14 | source ./system_config.sh
15 | sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
16 | sudo echo "dtparam=i2c_arm=on" >> ./boot/config.txt.bak
17 | sudo echo "dtparam=spi=on" >> ./boot/config.txt.bak
18 | sudo echo "enable_uart=1" >> ./boot/config.txt.bak
19 | sudo echo "display_rotate=0" >> ./boot/config.txt.bak
20 | sudo echo "max_usb_current=1" >> ./boot/config.txt.bak
21 | sudo echo "config_hdmi_boost=7" >> ./boot/config.txt.bak
22 | sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
23 | sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak
24 | sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
25 | sudo echo "hdmi_drive=1" >> ./boot/config.txt.bak
26 | sudo echo "hdmi_cvt 1024 600 60 6 0 0 0" >> ./boot/config.txt.bak
27 | sudo cp -rf ./boot/config.txt.bak /boot/firmware/config.txt
28 | #sudo cp -rf ./boot/config-7C-1024x600.txt /boot/firmware/config.txt
29 | #if [ -b /dev/mmcblk0p7 ]; then
30 | #sudo cp ./usr/cmdline.txt-noobs /boot/firmware/cmdline.txt
31 | #else
32 | #sudo cp ./usr/cmdline.txt /boot/firmware/
33 | #fi
34 | #sudo cp ./usr/inittab /etc/
35 | sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
36 |
37 | if [ ! -d /etc/X11/xorg.conf.d ]; then
38 | sudo mkdir /etc/X11/xorg.conf.d
39 | fi
40 | sudo cp ./usr/40-libinput.conf-0 /etc/X11/xorg.conf.d/40-libinput.conf
41 | sudo touch ./.have_installed
42 | echo "hdmi:capacity:7C-1024x600:0:1024:600" > ./.have_installed
43 | sudo sync
44 | sudo sync
45 | sleep 1
46 | if [ $# -eq 1 ]; then
47 | sudo ./rotate.sh $1
48 | elif [ $# -gt 1 ]; then
49 | echo "Too many parameters"
50 | fi
51 |
52 | echo "reboot now"
53 | sudo reboot
54 |
--------------------------------------------------------------------------------
/LCD7H-show:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo ./system_backup.sh
4 |
5 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
6 |
7 | #if [[ "$version" < "20.04" ]]; then
8 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
9 | #else
10 | #sudo cp -rf ./boot/config-nomal-20.04.txt ./boot/config.txt.bak
11 | #fi
12 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
13 |
14 | source ./system_config.sh
15 | sudo echo "hdmi_force_edid_audio=1" >> ./boot/config.txt.bak
16 | sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
17 | sudo echo "dtparam=i2c_arm=on" >> ./boot/config.txt.bak
18 | sudo echo "dtparam=spi=on" >> ./boot/config.txt.bak
19 | sudo echo "enable_uart=1" >> ./boot/config.txt.bak
20 | sudo echo "display_rotate=0" >> ./boot/config.txt.bak
21 | sudo echo "max_usb_current=1" >> ./boot/config.txt.bak
22 | sudo echo "config_hdmi_boost=7" >> ./boot/config.txt.bak
23 | sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
24 | sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
25 | sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
26 | sudo echo "hdmi_cvt 1024 600 60 6 0 0 0" >> ./boot/config.txt.bak
27 | sudo cp -rf ./boot/config.txt.bak /boot/firmware/config.txt
28 | #sudo cp -rf ./boot/config-7C-1024x600.txt /boot/firmware/config.txt
29 | #if [ -b /dev/mmcblk0p7 ]; then
30 | #sudo cp ./usr/cmdline.txt-noobs /boot/firmware/cmdline.txt
31 | #else
32 | #sudo cp ./usr/cmdline.txt /boot/firmware/
33 | #fi
34 | #sudo cp ./usr/inittab /etc/
35 | sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
36 |
37 | if [ ! -d /etc/X11/xorg.conf.d ]; then
38 | sudo mkdir /etc/X11/xorg.conf.d
39 | fi
40 | sudo cp ./usr/40-libinput.conf-0 /etc/X11/xorg.conf.d/40-libinput.conf
41 | sudo touch ./.have_installed
42 | echo "hdmi:capacity:7H-1024x600:0:1024:600" > ./.have_installed
43 | sudo sync
44 | sudo sync
45 | sleep 1
46 | if [ $# -eq 1 ]; then
47 | sudo ./rotate.sh $1
48 | elif [ $# -gt 1 ]; then
49 | echo "Too many parameters"
50 | fi
51 |
52 | echo "reboot now"
53 | sudo reboot
54 |
--------------------------------------------------------------------------------
/LCD7S-show:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo ./system_backup.sh
4 |
5 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
6 |
7 | #if [[ "$version" < "20.04" ]]; then
8 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
9 | #else
10 | #sudo cp -rf ./boot/config-nomal-20.04.txt ./boot/config.txt.bak
11 | #fi
12 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
13 |
14 | source ./system_config.sh
15 | sudo echo "hdmi_force_edid_audio=1" >> ./boot/config.txt.bak
16 | sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
17 | sudo echo "dtparam=i2c_arm=on" >> ./boot/config.txt.bak
18 | sudo echo "dtparam=spi=on" >> ./boot/config.txt.bak
19 | sudo echo "enable_uart=1" >> ./boot/config.txt.bak
20 | sudo echo "display_rotate=0" >> ./boot/config.txt.bak
21 | sudo echo "max_usb_current=1" >> ./boot/config.txt.bak
22 | sudo echo "config_hdmi_boost=7" >> ./boot/config.txt.bak
23 | sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
24 | sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
25 | sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
26 | sudo echo "hdmi_cvt 1024 600 60 6 0 0 0" >> ./boot/config.txt.bak
27 | sudo cp -rf ./boot/config.txt.bak /boot/firmware/config.txt
28 | #sudo cp -rf ./boot/config-7C-1024x600.txt /boot/firmware/config.txt
29 | #if [ -b /dev/mmcblk0p7 ]; then
30 | #sudo cp ./usr/cmdline.txt-noobs /boot/firmware/cmdline.txt
31 | #else
32 | #sudo cp ./usr/cmdline.txt /boot/firmware/
33 | #fi
34 | #sudo cp ./usr/inittab /etc/
35 | sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
36 |
37 | if [ ! -d /etc/X11/xorg.conf.d ]; then
38 | sudo mkdir /etc/X11/xorg.conf.d
39 | fi
40 | sudo cp ./usr/40-libinput.conf-0 /etc/X11/xorg.conf.d/40-libinput.conf
41 | sudo touch ./.have_installed
42 | echo "hdmi:capacity:7S-1024x600:0:1024:600" > ./.have_installed
43 | sudo sync
44 | sudo sync
45 | sleep 1
46 | if [ $# -eq 1 ]; then
47 | sudo ./rotate.sh $1
48 | elif [ $# -gt 1 ]; then
49 | echo "Too many parameters"
50 | fi
51 |
52 | echo "reboot now"
53 | sudo reboot
54 |
--------------------------------------------------------------------------------
/MHS24-show:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
3 | sudo mkdir -p /etc/X11/xorg.conf.d
4 | sudo cp ./usr/mhs24-overlay.dtb /boot/overlays/
5 | sudo cp ./usr/mhs24-overlay.dtb /boot/overlays/mhs24.dtbo
6 | sudo cp -rf ./usr/99-calibration.conf-mhs24 /etc/X11/xorg.conf.d/99-calibration.conf
7 | sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
8 | if [ -b /dev/mmcblk0p7 ]; then
9 | sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt
10 | else
11 | sudo cp ./usr/cmdline.txt /boot/
12 | fi
13 | sudo cp ./usr/inittab /etc/
14 | sudo cp ./boot/config-mhs24.txt /boot/config.txt
15 | #FBCP install
16 | sudo cp -rf ./etc/rc.local /etc/rc.local
17 | sudo apt-get install git cmake -y
18 | sudo rm -rf rpi-fbcp
19 | sudo git clone https://github.com/tasanakorn/rpi-fbcp
20 | sudo mkdir ./rpi-fbcp/build
21 | cd ./rpi-fbcp/build/
22 | sudo cmake ..
23 | sudo make
24 | sudo install fbcp /usr/local/bin/fbcp
25 | #evdev install
26 | nodeplatform=`uname -n`
27 | kernel=`uname -r`
28 | version=`uname -v`
29 | if test "$nodeplatform" = "raspberrypi";then
30 | echo "this is raspberrypi kernel"
31 | version=${version%% *}
32 | version=${version#*#}
33 | echo $version
34 | if test $version -lt 970;then
35 | echo "reboot"
36 | else
37 | echo "need to update touch configuration"
38 | sudo apt-get install xserver-xorg-input-evdev
39 | sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
40 | echo "reboot"
41 | fi
42 | else
43 | echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
44 | fi
45 | sudo reboot
46 |
--------------------------------------------------------------------------------
/MHS32-show:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo ./system_backup.sh
4 |
5 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
6 |
7 | if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
8 | sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
9 | fi
10 | if [ ! -d /etc/X11/xorg.conf.d ]; then
11 | sudo mkdir -p /etc/X11/xorg.conf.d
12 | fi
13 | sudo cp ./usr/mhs32-overlay.dtb /boot/firmware/overlays/
14 | sudo cp ./usr/mhs32-overlay.dtb /boot/firmware/overlays/mhs32.dtbo
15 |
16 | source ./system_config.sh
17 | if [[ "$version" < "20.04" ]]; then
18 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
19 | sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
20 | else
21 | if [[ "$version" = "20.04" ]]; then
22 | #sudo cp -rf ./boot/config-nomal-20.04.txt ./boot/config.txt.bak
23 | sudo cp -rf ./usr/99-fbturbo-20.04.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
24 | else
25 | sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
26 | fi
27 | row=`grep -nr "dtoverlay=vc4-fkms-v3d" ./boot/config.txt.bak | awk -F ':' '{if(NR==1)printf $1}'`
28 | sudo sed -i -e ''"$row"'s/dtoverlay=vc4-fkms-v3d/#dtoverlay=vc4-fkms-v3d/' ./boot/config.txt.bak
29 | fi
30 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
31 | sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
32 | sudo echo "dtparam=i2c_arm=on" >> ./boot/config.txt.bak
33 | sudo echo "dtparam=spi=on" >> ./boot/config.txt.bak
34 | sudo echo "enable_uart=1" >> ./boot/config.txt.bak
35 | sudo echo "dtoverlay=mhs32:rotate=270" >> ./boot/config.txt.bak
36 | sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
37 | sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak
38 | sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
39 | sudo echo "hdmi_cvt 480 360 60 6 0 0 0" >> ./boot/config.txt.bak
40 | sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
41 | sudo cp -rf ./boot/config.txt.bak /boot/firmware/config.txt
42 |
43 | sudo cp -rf ./usr/99-calibration.conf-mhs32-270 /etc/X11/xorg.conf.d/99-calibration.conf
44 | #sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
45 | #if [ -b /dev/mmcblk0p7 ]; then
46 | #sudo cp ./usr/cmdline.txt-noobs /boot/firmware/cmdline.txt
47 | #else
48 | #sudo cp ./usr/cmdline.txt /boot/firmware/
49 | #fi
50 | #sudo cp ./usr/inittab /etc/
51 | #sudo cp ./boot/config-mhs32.txt /boot/firmware/config.txt
52 | sudo touch ./.have_installed
53 | echo "gpio:resistance:mhs32:270:480:360" > ./.have_installed
54 |
55 | sudo apt-get update
56 | #FBCP install
57 | if false; then
58 | wget --spider -q -o /dev/null --tries=1 -T 10 https://github.com
59 | if [ $? -eq 0 ]; then
60 | sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
61 | sudo cp -rf ./etc/rc.local /etc/
62 | #sudo apt-get update
63 | sudo apt-get install gcc g++ git cmake make libraspberrypi-dev -y 2> error_output.txt
64 | result=`cat ./error_output.txt`
65 | echo -e "\033[31m$result\033[0m"
66 | grep -q "^E:" ./error_output.txt && exit
67 | sleep 2
68 | sudo rm -rf rpi-fbcp
69 | sudo git clone https://github.com/tasanakorn/rpi-fbcp
70 | sudo mkdir ./rpi-fbcp/build
71 | cd ./rpi-fbcp/build/
72 | sudo cmake ..
73 | sudo make
74 | sudo install fbcp /usr/local/bin/fbcp
75 | cd - > /dev/null
76 | fi
77 | fi
78 | #evdev install
79 | #nodeplatform=`uname -n`
80 | #kernel=`uname -r`
81 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
82 | #if test "$nodeplatform" = "raspberrypi";then
83 | #echo "this is raspberrypi kernel"
84 | #version=${version%% *}
85 | #version=${version#*#}
86 | #echo $version
87 | if [ "$version" = "18.04" ] || [[ "$version" > "18.04" ]]; then
88 | #echo "reboot"
89 | #else
90 | echo "need to update touch configuration"
91 | wget --spider -q -o /dev/null --tries=1 -T 10 https://www.x.org
92 | if [ $? -eq 0 ]; then
93 | sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
94 | else
95 | if [ $hardware_arch -eq 32 ]; then
96 | sudo dpkg -i -B ./xserver-xorg-input-evdev_2.10.5-1_armhf.deb 2> error_output.txt
97 | elif [ $hardware_arch -eq 64 ]; then
98 | sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1_arm64.deb 2> error_output.txt
99 | fi
100 | fi
101 | #sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
102 | result=`cat ./error_output.txt`
103 | echo -e "\033[31m$result\033[0m"
104 | grep -q "error:" ./error_output.txt && exit
105 | sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
106 | #echo "reboot"
107 | #fi
108 | else
109 | echo "This version is lower than ubuntu 18.04, no need to update touch configure, reboot"
110 | fi
111 |
112 | sudo sync
113 | sudo sync
114 | sleep 1
115 | if [ $# -eq 1 ]; then
116 | sudo ./rotate.sh $1
117 | elif [ $# -gt 1 ]; then
118 | echo "Too many parameters"
119 | fi
120 |
121 | echo "reboot now"
122 | sudo reboot
123 |
--------------------------------------------------------------------------------
/MHS35-show:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo ./system_backup.sh
4 |
5 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
6 |
7 | #if [ $(getconf WORD_BIT) = '32' ] && [ $(getconf LONG_BIT) = '64' ] ; then
8 | #hardware_arch=64
9 | #else
10 | #hardware_arch=32
11 | #fi
12 |
13 | source ./system_config.sh
14 |
15 | if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
16 | sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
17 | fi
18 | if [ ! -d /etc/X11/xorg.conf.d ]; then
19 | sudo mkdir -p /etc/X11/xorg.conf.d
20 | fi
21 | if [ "$version" = "20.10" ] || [[ "$version" > "20.10" ]]; then
22 | sudo cp ./usr/mhs35-overlay-20.10.dtb /boot/firmware/overlays/mhs35-overlay.dtb
23 | sudo cp ./usr/mhs35-overlay-20.10.dtb /boot/firmware/overlays/mhs35.dtbo
24 | else
25 | sudo cp ./usr/mhs35-overlay.dtb /boot/firmware/overlays/
26 | sudo cp ./usr/mhs35-overlay.dtb /boot/firmware/overlays/mhs35.dtbo
27 | fi
28 |
29 | if [[ "$version" < "20.04" ]]; then
30 | #if [ $hardware_arch -eq 32 ]; then
31 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
32 | #elif [ $hardware_arch -eq 64 ]; then
33 | #sudo cp -rf ./boot/config-nomal-64.txt ./boot/config.txt.bak
34 | #fi
35 | sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
36 | else
37 | if [[ "$version" = "20.04" ]]; then
38 | #sudo cp -rf ./boot/config-nomal-20.04.txt ./boot/config.txt.bak
39 | sudo cp -rf ./usr/99-fbturbo-20.04.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
40 | else
41 | sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
42 | fi
43 | #if [ $hardware_arch -eq 32 ]; then
44 | #sudo cp -rf ./boot/config-nomal-20.04.txt ./boot/config.txt.bak
45 | #elif [ $hardware_arch -eq 64 ]; then
46 | #sudo cp -rf ./boot/config-nomal-20.04-64.txt ./boot/config.txt.bak
47 | #fi
48 | #sudo cp -rf ./usr/99-fbturbo-20.04.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
49 | row=`grep -nr "dtoverlay=vc4-fkms-v3d" ./boot/config.txt.bak | awk -F ':' '{if(NR==1)printf $1}'`
50 | sudo sed -i -e ''"$row"'s/dtoverlay=vc4-fkms-v3d/#dtoverlay=vc4-fkms-v3d/' ./boot/config.txt.bak
51 | fi
52 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
53 | sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
54 | sudo echo "dtparam=i2c_arm=on" >> ./boot/config.txt.bak
55 | sudo echo "dtparam=spi=on" >> ./boot/config.txt.bak
56 | sudo echo "enable_uart=1" >> ./boot/config.txt.bak
57 | sudo echo "dtoverlay=mhs35:rotate=90" >> ./boot/config.txt.bak
58 | sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
59 | sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak
60 | sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
61 | sudo echo "hdmi_cvt 480 320 60 6 0 0 0" >> ./boot/config.txt.bak
62 | sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
63 | sudo cp -rf ./boot/config.txt.bak /boot/firmware/config.txt
64 |
65 | if [ "$version" = "20.10" ] || [[ "$version" > "20.10" ]]; then
66 | sudo cp -rf ./usr/99-calibration.conf-mhs35-270 /etc/X11/xorg.conf.d/99-calibration.conf
67 | else
68 | sudo cp -rf ./usr/99-calibration.conf-mhs35-90 /etc/X11/xorg.conf.d/99-calibration.conf
69 | fi
70 | #sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
71 | #if [ -b /dev/mmcblk0p7 ]; then
72 | #sudo cp ./usr/cmdline.txt-noobs /boot/firmware/cmdline.txt
73 | #else
74 | #sudo cp ./usr/cmdline.txt /boot/firmware/
75 | #fi
76 | #sudo cp ./usr/inittab /etc/
77 | #sudo cp ./boot/config-mhs35.txt /boot/firmware/config.txt
78 | sudo touch ./.have_installed
79 | echo "gpio:resistance:mhs35:90:480:320" > ./.have_installed
80 |
81 | sudo apt-get update
82 | #FBCP install
83 | if false; then
84 | wget --spider -q -o /dev/null --tries=1 -T 10 https://github.com
85 | if [ $? -eq 0 ]; then
86 | sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
87 | sudo cp -rf ./etc/rc.local /etc/
88 | #sudo apt-get update
89 | sudo apt-get install gcc g++ git cmake make libraspberrypi-dev -y 2> error_output.txt
90 | result=`cat ./error_output.txt`
91 | echo -e "\033[31m$result\033[0m"
92 | grep -q "^E:" ./error_output.txt && exit
93 | sleep 2
94 | sudo rm -rf rpi-fbcp
95 | sudo git clone https://github.com/tasanakorn/rpi-fbcp
96 | sudo mkdir ./rpi-fbcp/build
97 | cd ./rpi-fbcp/build/
98 | sudo cmake ..
99 | sudo make
100 | sudo install fbcp /usr/local/bin/fbcp
101 | cd - > /dev/null
102 | fi
103 | fi
104 | #evdev install
105 | #nodeplatform=`uname -n`
106 | #kernel=`uname -r`
107 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
108 | #if test "$nodeplatform" = "raspberrypi";then
109 | #echo "this is raspberrypi kernel"
110 | #version=${version%% *}
111 | #version=${version#*#}
112 | #echo $version
113 | if [ "$version" = "18.04" ] || [[ "$version" > "18.04" ]]; then
114 | #echo "reboot"
115 | #else
116 | echo "need to update touch configuration"
117 | wget --spider -q -o /dev/null --tries=1 -T 10 https://www.x.org
118 | if [ $? -eq 0 ]; then
119 | sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
120 | else
121 | if [ $hardware_arch -eq 32 ]; then
122 | sudo dpkg -i -B ./xserver-xorg-input-evdev_2.10.5-1_armhf.deb 2> error_output.txt
123 | elif [ $hardware_arch -eq 64 ]; then
124 | sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1_arm64.deb 2> error_output.txt
125 | fi
126 | fi
127 | #sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
128 | result=`cat ./error_output.txt`
129 | echo -e "\033[31m$result\033[0m"
130 | grep -q "error:" ./error_output.txt && exit
131 | sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
132 | #echo "reboot"
133 | #fi
134 | else
135 | echo "This version is lower than ubuntu 18.04, no need to update touch configure, reboot"
136 | fi
137 |
138 | sudo sync
139 | sudo sync
140 | sleep 1
141 | if [ $# -eq 1 ]; then
142 | sudo ./rotate.sh $1
143 | elif [ $# -gt 1 ]; then
144 | echo "Too many parameters"
145 | fi
146 |
147 | echo "reboot now"
148 | sudo reboot
149 |
--------------------------------------------------------------------------------
/MHS40-show:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo ./system_backup.sh
4 |
5 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
6 |
7 | source ./system_config.sh
8 |
9 | if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
10 | sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
11 | fi
12 | if [ ! -d /etc/X11/xorg.conf.d ]; then
13 | sudo mkdir -p /etc/X11/xorg.conf.d
14 | fi
15 |
16 | if [ "$version" = "20.10" ] || [[ "$version" > "20.10" ]]; then
17 | sudo cp ./usr/mhs395-overlay-20.10.dtb /boot/firmware/overlays/mhs395-overlay.dtb
18 | sudo cp ./usr/mhs395-overlay-20.10.dtb /boot/firmware/overlays/mhs395.dtbo
19 | else
20 | sudo cp ./usr/mhs395-overlay.dtb /boot/firmware/overlays/
21 | sudo cp ./usr/mhs395-overlay.dtb /boot/firmware/overlays/mhs395.dtbo
22 | fi
23 |
24 | if [[ "$version" < "20.04" ]]; then
25 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
26 | sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
27 | else
28 | if [[ "$version" = "20.04" ]]; then
29 | #sudo cp -rf ./boot/config-nomal-20.04.txt ./boot/config.txt.bak
30 | sudo cp -rf ./usr/99-fbturbo-20.04.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
31 | else
32 | sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
33 | fi
34 | row=`grep -nr "dtoverlay=vc4-fkms-v3d" ./boot/config.txt.bak | awk -F ':' '{if(NR==1)printf $1}'`
35 | sudo sed -i -e ''"$row"'s/dtoverlay=vc4-fkms-v3d/#dtoverlay=vc4-fkms-v3d/' ./boot/config.txt.bak
36 | fi
37 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
38 | sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
39 | sudo echo "dtparam=i2c_arm=on" >> ./boot/config.txt.bak
40 | sudo echo "dtparam=spi=on" >> ./boot/config.txt.bak
41 | sudo echo "enable_uart=1" >> ./boot/config.txt.bak
42 | sudo echo "dtoverlay=mhs395:rotate=90" >> ./boot/config.txt.bak
43 | sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
44 | sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak
45 | sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
46 | sudo echo "hdmi_cvt 480 320 60 6 0 0 0" >> ./boot/config.txt.bak
47 | sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
48 | sudo cp -rf ./boot/config.txt.bak /boot/firmware/config.txt
49 | if [ "$version" = "20.10" ] || [[ "$version" > "20.10" ]]; then
50 | sudo cp -rf ./usr/99-calibration.conf-mhs395-270 /etc/X11/xorg.conf.d/99-calibration.conf
51 | else
52 | sudo cp -rf ./usr/99-calibration.conf-mhs395-90 /etc/X11/xorg.conf.d/99-calibration.conf
53 | fi
54 | #sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
55 | #if [ -b /dev/mmcblk0p7 ]; then
56 | #sudo cp ./usr/cmdline.txt-noobs /boot/firmware/cmdline.txt
57 | #else
58 | #sudo cp ./usr/cmdline.txt /boot/firmware/
59 | #fi
60 | #sudo cp ./usr/inittab /etc/
61 | #sudo cp ./boot/config-mhs395.txt /boot/firmware/config.txt
62 | sudo touch ./.have_installed
63 | echo "gpio:resistance:mhs395:90:480:320" > ./.have_installed
64 |
65 | sudo apt-get update
66 | #FBCP install
67 | if false; then
68 | wget --spider -q -o /dev/null --tries=1 -T 10 https://github.com
69 | if [ $? -eq 0 ]; then
70 | sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
71 | sudo cp -rf ./etc/rc.local /etc/
72 | #sudo apt-get update
73 | sudo apt-get install gcc g++ git cmake make libraspberrypi-dev -y 2> error_output.txt
74 | result=`cat ./error_output.txt`
75 | echo -e "\033[31m$result\033[0m"
76 | grep -q "^E:" ./error_output.txt && exit
77 | sleep 2
78 | sudo rm -rf rpi-fbcp
79 | sudo git clone https://github.com/tasanakorn/rpi-fbcp
80 | sudo mkdir ./rpi-fbcp/build
81 | cd ./rpi-fbcp/build/
82 | sudo cmake ..
83 | sudo make
84 | sudo install fbcp /usr/local/bin/fbcp
85 | cd - > /dev/null
86 | fi
87 | fi
88 | #evdev install
89 | #nodeplatform=`uname -n`
90 | #kernel=`uname -r`
91 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
92 | #if test "$nodeplatform" = "raspberrypi";then
93 | #echo "this is raspberrypi kernel"
94 | #version=${version%% *}
95 | #version=${version#*#}
96 | #echo $version
97 | if [ "$version" = "18.04" ] || [[ "$version" > "18.04" ]]; then
98 | #echo "reboot"
99 | #else
100 | echo "need to update touch configuration"
101 | wget --spider -q -o /dev/null --tries=1 -T 10 https://www.x.org
102 | if [ $? -eq 0 ]; then
103 | sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
104 | else
105 | if [ $hardware_arch -eq 32 ]; then
106 | sudo dpkg -i -B ./xserver-xorg-input-evdev_2.10.5-1_armhf.deb 2> error_output.txt
107 | elif [ $hardware_arch -eq 64 ]; then
108 | sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1_arm64.deb 2> error_output.txt
109 | fi
110 | fi
111 | #sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
112 | result=`cat ./error_output.txt`
113 | echo -e "\033[31m$result\033[0m"
114 | grep -q "error:" ./error_output.txt && exit
115 | sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
116 | #echo "reboot"
117 | #fi
118 | else
119 | echo "This version is lower than ubuntu 18.04, no need to update touch configure, reboot"
120 | fi
121 |
122 | sudo sync
123 | sudo sync
124 | sleep 1
125 | if [ $# -eq 1 ]; then
126 | sudo ./rotate.sh $1
127 | elif [ $# -gt 1 ]; then
128 | echo "Too many parameters"
129 | fi
130 |
131 | echo "reboot now"
132 | sudo reboot
133 |
--------------------------------------------------------------------------------
/MIS35-show:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo ./system_backup.sh
4 |
5 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
6 |
7 | source ./system_config.sh
8 |
9 | if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
10 | sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
11 | fi
12 | if [ ! -d /etc/X11/xorg.conf.d ]; then
13 | sudo mkdir -p /etc/X11/xorg.conf.d
14 | fi
15 | if [ "$version" = "20.10" ] || [[ "$version" > "20.10" ]]; then
16 | sudo cp ./usr/mis35-overlay-20.10.dtb /boot/firmware/overlays/mis35-overlay.dtb
17 | sudo cp ./usr/mis35-overlay-20.10.dtb /boot/firmware/overlays/mis35.dtbo
18 | else
19 | sudo cp ./usr/mis35-overlay.dtb /boot/firmware/overlays/
20 | sudo cp ./usr/mis35-overlay.dtb /boot/firmware/overlays/mis35.dtbo
21 | fi
22 | if [[ "$version" < "20.04" ]]; then
23 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
24 | sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
25 | else
26 | if [[ "$version" = "20.04" ]]; then
27 | #sudo cp -rf ./boot/config-nomal-20.04.txt ./boot/config.txt.bak
28 | sudo cp -rf ./usr/99-fbturbo-20.04.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
29 | else
30 | sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
31 | fi
32 | row=`grep -nr "dtoverlay=vc4-fkms-v3d" ./boot/config.txt.bak | awk -F ':' '{if(NR==1)printf $1}'`
33 | sudo sed -i -e ''"$row"'s/dtoverlay=vc4-fkms-v3d/#dtoverlay=vc4-fkms-v3d/' ./boot/config.txt.bak
34 | fi
35 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
36 | sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
37 | sudo echo "dtparam=i2c_arm=on" >> ./boot/config.txt.bak
38 | sudo echo "dtparam=spi=on" >> ./boot/config.txt.bak
39 | sudo echo "enable_uart=1" >> ./boot/config.txt.bak
40 | sudo echo "dtoverlay=mis35:rotate=90" >> ./boot/config.txt.bak
41 | sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
42 | sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak
43 | sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
44 | sudo echo "hdmi_cvt 480 320 60 6 0 0 0" >> ./boot/config.txt.bak
45 | sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
46 | sudo cp -rf ./boot/config.txt.bak /boot/firmware/config.txt
47 |
48 | if [ "$version" = "20.10" ] || [[ "$version" > "20.10" ]]; then
49 | sudo cp -rf ./usr/99-calibration.conf-mis35-270 /etc/X11/xorg.conf.d/99-calibration.conf
50 | else
51 | sudo cp -rf ./usr/99-calibration.conf-mis35-90 /etc/X11/xorg.conf.d/99-calibration.conf
52 | fi
53 | #sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
54 | #if [ -b /dev/mmcblk0p7 ]; then
55 | #sudo cp ./usr/cmdline.txt-noobs /boot/firmware/cmdline.txt
56 | #else
57 | #sudo cp ./usr/cmdline.txt /boot/firmware/
58 | #fi
59 | #sudo cp ./usr/inittab /etc/
60 | #sudo cp ./boot/config-mis35.txt /boot/firmware/config.txt
61 | sudo touch ./.have_installed
62 | echo "gpio:resistance:mis35:90:480:320" > ./.have_installed
63 |
64 | sudo apt-get update
65 | #FBCP install
66 | if false; then
67 | wget --spider -q -o /dev/null --tries=1 -T 10 https://github.com
68 | if [ $? -eq 0 ]; then
69 | sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
70 | sudo cp -rf ./etc/rc.local /etc/
71 | #sudo apt-get update
72 | sudo apt-get install gcc g++ git cmake make libraspberrypi-dev -y 2> error_output.txt
73 | result=`cat ./error_output.txt`
74 | echo -e "\033[31m$result\033[0m"
75 | grep -q "^E:" ./error_output.txt && exit
76 | sleep 2
77 | sudo rm -rf rpi-fbcp
78 | sudo git clone https://github.com/tasanakorn/rpi-fbcp
79 | sudo mkdir ./rpi-fbcp/build
80 | cd ./rpi-fbcp/build/
81 | sudo cmake ..
82 | sudo make
83 | sudo install fbcp /usr/local/bin/fbcp
84 | cd - > /dev/null
85 | fi
86 | fi
87 | #evdev install
88 | #nodeplatform=`uname -n`
89 | #kernel=`uname -r`
90 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
91 | #if test "$nodeplatform" = "raspberrypi";then
92 | #echo "this is raspberrypi kernel"
93 | #version=${version%% *}
94 | #version=${version#*#}
95 | #echo $version
96 | if [ "$version" = "18.04" ] || [[ "$version" > "18.04" ]]; then
97 | #echo "reboot"
98 | #else
99 | echo "need to update touch configuration"
100 | wget --spider -q -o /dev/null --tries=1 -T 10 https://www.x.org
101 | if [ $? -eq 0 ]; then
102 | sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
103 | else
104 | if [ $hardware_arch -eq 32 ]; then
105 | sudo dpkg -i -B ./xserver-xorg-input-evdev_2.10.5-1_armhf.deb 2> error_output.txt
106 | elif [ $hardware_arch -eq 64 ]; then
107 | sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1_arm64.deb 2> error_output.txt
108 | fi
109 | fi
110 | #sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
111 | result=`cat ./error_output.txt`
112 | echo -e "\033[31m$result\033[0m"
113 | grep -q "error:" ./error_output.txt && exit
114 | sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
115 | #echo "reboot"
116 | #fi
117 | else
118 | echo "This version is lower than ubuntu 18.04, no need to update touch configure, reboot"
119 | fi
120 |
121 | sudo sync
122 | sudo sync
123 | sleep 1
124 | if [ $# -eq 1 ]; then
125 | sudo ./rotate.sh $1
126 | elif [ $# -gt 1 ]; then
127 | echo "Too many parameters"
128 | fi
129 |
130 | echo "reboot now"
131 | sudo reboot
132 |
--------------------------------------------------------------------------------
/MPI3508-show:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | sudo ./system_backup.sh
3 |
4 | hw_version=`tr -d '\0' < /proc/device-tree/model`
5 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
6 |
7 | #if [[ "$version" < "20.04" ]]; then
8 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
9 | #else
10 | #sudo cp -rf ./boot/config-nomal-20.04.txt ./boot/config.txt.bak
11 | #fi
12 | source ./system_config.sh
13 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
14 | sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
15 | sudo echo "hdmi_force_edid_audio=1" >> ./boot/config.txt.bak
16 | sudo echo "dtparam=i2c_arm=on" >> ./boot/config.txt.bak
17 | sudo echo "dtparam=spi=on" >> ./boot/config.txt.bak
18 | sudo echo "enable_uart=1" >> ./boot/config.txt.bak
19 | sudo echo "display_rotate=0" >> ./boot/config.txt.bak
20 | sudo echo "max_usb_current=1" >> ./boot/config.txt.bak
21 | sudo echo "config_hdmi_boost=7" >> ./boot/config.txt.bak
22 | sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
23 | sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak
24 | sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
25 | sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
26 | sudo echo "hdmi_cvt 480 320 60 6 0 0 0" >> ./boot/config.txt.bak
27 | 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
28 | [[ $hw_version =~ "Raspberry Pi 4" ]] && sudo echo "hdmi_timings=600 0 20 28 48 400 0 13 3 32 0 0 0 30 0 25000000 5" >> ./boot/config.txt.bak
29 | sudo cp -rf ./boot/config.txt.bak /boot/firmware/config.txt
30 |
31 | #sudo cp -rf ./boot/config-35-480X320.txt /boot/firmware/config.txt
32 | #if [ -b /dev/mmcblk0p7 ]; then
33 | #sudo cp ./usr/cmdline.txt-noobs /boot/firmware/cmdline.txt
34 | #else
35 | #sudo cp ./usr/cmdline.txt /boot/firmware/
36 | #fi
37 | #sudo cp ./usr/inittab /etc/
38 | sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
39 | if [ ! -d /etc/X11/xorg.conf.d ]; then
40 | sudo mkdir /etc/X11/xorg.conf.d
41 | fi
42 | sudo cp -rf ./usr/99-calibration.conf-3508-0 /etc/X11/xorg.conf.d/99-calibration.conf
43 | sudo touch ./.have_installed
44 | echo "hdmi:resistance:3508:0:480:320" > ./.have_installed
45 |
46 | #nodeplatform=`uname -n`
47 | #kernel=`uname -r`
48 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
49 | #if test "$nodeplatform" = "raspberrypi";then
50 | #echo "this is raspberrypi kernel"
51 | #version=${version%% *}
52 | #version=${version#*#}
53 | #echo $version
54 | if [ "$version" = "18.04" ] || [[ "$version" > "18.04" ]]; then
55 | #echo "reboot"
56 | #else
57 | echo "need to update touch configuration"
58 | wget --spider -q -o /dev/null --tries=1 -T 10 https://www.x.org
59 | if [ $? -eq 0 ]; then
60 | sudo apt-get update
61 | sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
62 | else
63 | if [ $hardware_arch -eq 32 ]; then
64 | sudo dpkg -i -B ./xserver-xorg-input-evdev_2.10.5-1_armhf.deb 2> error_output.txt
65 | elif [ $hardware_arch -eq 64 ]; then
66 | sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1_arm64.deb 2> error_output.txt
67 | fi
68 | fi
69 | #sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
70 | result=`cat ./error_output.txt`
71 | echo -e "\033[31m$result\033[0m"
72 | grep -q "error:" ./error_output.txt && exit
73 | sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
74 | #echo "reboot"
75 | #fi
76 | else
77 | echo "This version is lower than ubuntu 18.04, no need to update touch configure, reboot"
78 | fi
79 |
80 | sudo sync
81 | sudo sync
82 | sleep 1
83 | if [ $# -eq 1 ]; then
84 | sudo ./rotate.sh $1
85 | elif [ $# -gt 1 ]; then
86 | echo "Too many parameters"
87 | fi
88 |
89 | echo "reboot now"
90 | sudo reboot
91 |
--------------------------------------------------------------------------------
/MPI3508_480_320-show:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
3 | sudo cp -rf ./boot/config-35-480X320.txt /boot/config.txt
4 | if [ -b /dev/mmcblk0p7 ]; then
5 | sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt
6 | else
7 | sudo cp ./usr/cmdline.txt /boot/
8 | fi
9 | sudo cp ./usr/inittab /etc/
10 | sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
11 | sudo mkdir -p /etc/X11/xorg.conf.d
12 | sudo cp -rf ./usr/99-calibration.conf-3508 /etc/X11/xorg.conf.d/99-calibration.conf
13 | nodeplatform=`uname -n`
14 | kernel=`uname -r`
15 | version=`uname -v`
16 | if test "$nodeplatform" = "raspberrypi";then
17 | echo "this is raspberrypi kernel"
18 | version=${version%% *}
19 | version=${version#*#}
20 | echo $version
21 | if test $version -lt 970;then
22 | echo "reboot"
23 | else
24 | echo "need to update touch configuration"
25 | sudo apt-get install xserver-xorg-input-evdev
26 | sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
27 | echo "reboot"
28 | fi
29 | else
30 | echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
31 | fi
32 | sudo reboot
33 |
--------------------------------------------------------------------------------
/MPI3510-show:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | sudo cp -rf ./boot/config-35DPI.txt /boot/config.txt
3 | #sudo cp ./usr/bcm2709-rpi-2-b.dtb /boot/
4 | #sudo cp ./usr/bcm2710-rpi-3-b.dtb /boot/
5 | #sudo cp ./usr/cmdline.txt /boot/
6 | #sudo cp ./usr/qddpi24.dtb /boot/overlays/
7 | #sudo cp ./usr/qddpi24.dtb /boot/overlays/qddpi24.dtbo
8 | #sudo cp ./usr/inittab /etc/
9 | #sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
10 | sudo mkdir -p /etc/X11/xorg.conf.d
11 | sudo cp -rf ./usr/99-calibration.conf-3508 /etc/X11/xorg.conf.d/99-calibration.conf
12 | nodeplatform=`uname -n`
13 | kernel=`uname -r`
14 | version=`uname -v`
15 | if test "$nodeplatform" = "raspberrypi";then
16 | echo "this is raspberrypi kernel"
17 | version=${version%% *}
18 | version=${version#*#}
19 | echo $version
20 | if test $version -lt 970;then
21 | echo "reboot"
22 | else
23 | echo "need to update touch configuration"
24 | sudo apt-get install xserver-xorg-input-evdev
25 | sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
26 | echo "reboot"
27 | fi
28 | else
29 | echo "this is not raspberrypi kernel, no need to update touch configure, reboot"
30 | fi
31 | sudo reboot
32 |
--------------------------------------------------------------------------------
/MPI4008-show:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo ./system_backup.sh
4 |
5 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
6 |
7 | #if [[ "$version" < "20.04" ]]; then
8 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
9 | #else
10 | #sudo cp -rf ./boot/config-nomal-20.04.txt ./boot/config.txt.bak
11 | #fi
12 | source ./system_config.sh
13 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
14 | sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
15 | sudo echo "hdmi_force_edid_audio=1" >> ./boot/config.txt.bak
16 | sudo echo "dtparam=i2c_arm=on" >> ./boot/config.txt.bak
17 | sudo echo "dtparam=spi=on" >> ./boot/config.txt.bak
18 | sudo echo "enable_uart=1" >> ./boot/config.txt.bak
19 | sudo echo "display_rotate=1" >> ./boot/config.txt.bak
20 | sudo echo "max_usb_current=1" >> ./boot/config.txt.bak
21 | sudo echo "config_hdmi_boost=7" >> ./boot/config.txt.bak
22 | sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
23 | sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak
24 | sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
25 | sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
26 | sudo echo "hdmi_cvt 480 800 60 6 0 0 0" >> ./boot/config.txt.bak
27 | 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
28 | sudo cp -rf ./boot/config.txt.bak /boot/firmware/config.txt
29 |
30 | #sudo cp -rf ./boot/config-397.txt /boot/firmware/config.txt
31 |
32 | #if [ -b /dev/mmcblk0p7 ]; then
33 | #sudo cp ./usr/cmdline.txt-noobs /boot/firmware/cmdline.txt
34 | #else
35 | #sudo cp ./usr/cmdline.txt /boot/firmware/
36 | #fi
37 | #sudo cp ./usr/inittab /etc/
38 | sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
39 | if [ ! -d /etc/X11/xorg.conf.d ]; then
40 | sudo mkdir /etc/X11/xorg.conf.d
41 | fi
42 | sudo cp -rf ./usr/99-calibration.conf-397-270 /etc/X11/xorg.conf.d/99-calibration.conf
43 | sudo touch ./.have_installed
44 | echo "hdmi:resistance:397:270:480:800" > ./.have_installed
45 |
46 | #nodeplatform=`uname -n`
47 | #kernel=`uname -r`
48 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
49 | #if test "$nodeplatform" = "raspberrypi";then
50 | #echo "this is raspberrypi kernel"
51 | #version=${version%% *}
52 | #version=${version#*#}
53 | #echo $version
54 | if [ "$version" = "18.04" ] || [[ "$version" > "18.04" ]]; then
55 | #echo "reboot"
56 | #else
57 | echo "need to update touch configuration"
58 | wget --spider -q -o /dev/null --tries=1 -T 10 https://www.x.org
59 | if [ $? -eq 0 ]; then
60 | sudo apt-get update
61 | sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
62 | else
63 | if [ $hardware_arch -eq 32 ]; then
64 | sudo dpkg -i -B ./xserver-xorg-input-evdev_2.10.5-1_armhf.deb 2> error_output.txt
65 | elif [ $hardware_arch -eq 64 ]; then
66 | sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1_arm64.deb 2> error_output.txt
67 | fi
68 | fi
69 | #sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
70 | result=`cat ./error_output.txt`
71 | echo -e "\033[31m$result\033[0m"
72 | grep -q "error:" ./error_output.txt && exit
73 | sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
74 | #echo "reboot"
75 | #fi
76 | else
77 | echo "This version is lower than ubuntu 18.04, no need to update touch configure, reboot"
78 | fi
79 |
80 | sudo sync
81 | sudo sync
82 | sleep 1
83 | if [ $# -eq 1 ]; then
84 | sudo ./rotate.sh $1
85 | elif [ $# -gt 1 ]; then
86 | echo "Too many parameters"
87 | fi
88 |
89 | echo "reboot now"
90 | sudo reboot
91 |
--------------------------------------------------------------------------------
/MPI5001-show:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo ./system_backup.sh
4 |
5 | #version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
6 |
7 | #if [[ "$version" < "20.04" ]]; then
8 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
9 | #else
10 | #sudo cp -rf ./boot/config-nomal-20.04.txt ./boot/config.txt.bak
11 | #fi
12 |
13 | source ./system_config.sh
14 | #sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
15 | sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
16 | sudo echo "hdmi_force_edid_audio=1" >> ./boot/config.txt.bak
17 | sudo echo "dtparam=i2c_arm=on" >> ./boot/config.txt.bak
18 | sudo echo "dtparam=spi=on" >> ./boot/config.txt.bak
19 | sudo echo "enable_uart=1" >> ./boot/config.txt.bak
20 | sudo echo "display_rotate=0" >> ./boot/config.txt.bak
21 | sudo echo "max_usb_current=1" >> ./boot/config.txt.bak
22 | sudo echo "config_hdmi_boost=7" >> ./boot/config.txt.bak
23 | sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
24 | sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak
25 | sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
26 | sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak
27 | sudo echo "hdmi_cvt 800 480 60 6 0 0 0" >> ./boot/config.txt.bak
28 | sudo cp -rf ./boot/config.txt.bak /boot/firmware/config.txt
29 | #sudo cp -rf ./boot/config-MPI5001.txt /boot/firmware/config.txt
30 | #if [ -b /dev/mmcblk0p7 ]; then
31 | #sudo cp ./usr/cmdline.txt-noobs /boot/firmware/cmdline.txt
32 | #else
33 | #sudo cp ./usr/cmdline.txt /boot/firmware/
34 | #fi
35 | #sudo cp ./usr/inittab /etc/
36 | sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
37 |
38 | if [ ! -d /etc/X11/xorg.conf.d ]; then
39 | sudo mkdir /etc/X11/xorg.conf.d
40 | fi
41 | sudo cp ./usr/40-libinput.conf-0 /etc/X11/xorg.conf.d/40-libinput.conf
42 | sudo touch ./.have_installed
43 | echo "hdmi:capacity:MPI5001:0:800:480" > ./.have_installed
44 | sudo sync
45 | sudo sync
46 | sleep 1
47 | if [ $# -eq 1 ]; then
48 | sudo ./rotate.sh $1
49 | elif [ $# -gt 1 ]; then
50 | echo "Too many parameters"
51 | fi
52 |
53 | echo "reboot now"
54 | sudo reboot
55 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | LCD driver for the Raspberry PI Installation
2 | ====================================================
3 | Update:
4 | v2.1-20200927
5 | Update all driver for 20.04
6 | Update:
7 | v2.0-20200630
8 | Update MPI4008 touch screen calibration parameters
9 | Update:
10 | v1.9-20181204
11 | Update to support MHS40 & MHS32
12 | Update:
13 | v1.8-20180907
14 | Update to support MHS35
15 | Update:
16 | v1.7-20180320
17 | Update to support Raspbian Version:March 2018(Release date:2018-03-13)
18 | Update:
19 | v1.6-20170824
20 | Update xserver to support Raspbian-2017-08-16
21 | Update:
22 | v1.5-20170706
23 | Update to support Raspbian-2017-07-05,Raspbian-2017-06-21
24 | Update:
25 | v1.3-20170612
26 | fixed to support Raspbian-2017-03-02,Raspbian-2017-04-10
27 | Update:
28 | v1.2-20170302
29 | Add xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb to support Raspbian-2017-03-02
30 | Update:
31 | v1.1-20160815
32 |
33 | 1.)Step1, Install Ubuntu official mirror
34 | ====================================================
35 | a)Download Ubuntu official mirror:
36 | https://ubuntu-mate.org/raspberry-pi/
37 | b)Use“SDFormatter.exe”to Format your TF Card
38 | c)Use“Win32DiskImager.exe” Burning mirror to TF Card
39 |
40 | 2.) Step2, Clone my repo onto your pi
41 | ====================================================
42 | Use SSH to connect the raspberry pi,
43 | And Ensure that the raspberry pi is connected to the Internet before executing the following commands:
44 | -----------------------------------------------------------------------------------------------------
45 |
46 | ```sudo rm -rf LCD-show-ubuntu```
47 | ```git clone https://github.com/lcdwiki/LCD-show-ubuntu.git```
48 | ```chmod -R 755 LCD-show-ubuntu```
49 | ```cd LCD-show-ubuntu/```
50 |
51 | 3.)Step3, According to your LCD's type, excute:
52 | ====================================================
53 | In case of 2.4" RPi Display(MPI2401)
54 | ```sudo ./LCD24-show```
55 | In case of 2.8" RPi Display(MPI2801)
56 | ```sudo ./LCD28-show```
57 | In case of 3.2" RPi Display(MPI3201)
58 | ```sudo ./LCD32-show```
59 | In case of 3.5inch RPi Display(MPI3501)
60 | ```sudo ./LCD35-show```
61 | In case of 3.5" HDMI Display-B(MPI3508)
62 | ```sudo ./MPI3508-show```
63 | In case of 3.2" High Speed display(MHS32)
64 | ```sudo ./MHS32-show```
65 | In case of 3.5" High Speed display(MHS35)
66 | ```sudo ./MHS35-show```
67 | In case of 4.0" High Speed display(MHS40)
68 | ```sudo ./MHS40-show```
69 | In case of 4.0" HDMI Display(MPI4008)
70 | ```sudo ./MPI4008-show```
71 | In case of 5inch HDMI Display-B(Capacitor touch)(MPI5001):
72 | ```sudo ./MPI5001-show```
73 | In case of 5inch HDMI Display(Resistance touch)(MPI5008)
74 | ```sudo ./LCD5-show```
75 | In case of 7inch HDMI Display-B-800X480(MPI7001)
76 | ```sudo ./LCD7B-show```
77 | In case of 7inch HDMI Display-C-1024X600(MPI7002)
78 | ```sudo ./LCD7C-show```
79 | If you need to switch back to the traditional HDMI display
80 | ```sudo ./LCD-hdmi```
81 |
82 | Wait a few minutes,the system will restart automaticall , enjoy with your LCD.
83 |
--------------------------------------------------------------------------------
/boot/config-28.txt:
--------------------------------------------------------------------------------
1 | # For more options and information see
2 | # http://www.raspberrypi.org/documentation/configuration/config-txt.md
3 | # Some settings may impact device functionality. See link above for details
4 |
5 | # uncomment if you get no picture on HDMI for a default "safe" mode
6 | #hdmi_safe=1
7 |
8 | # uncomment this if your display has a black border of unused pixels visible
9 | # and your display can output without overscan
10 | #disable_overscan=1
11 |
12 | # uncomment the following to adjust overscan. Use positive numbers if console
13 | # goes off screen, and negative if there is too much border
14 | #overscan_left=16
15 | #overscan_right=16
16 | #overscan_top=16
17 | #overscan_bottom=16
18 |
19 | # uncomment to force a console size. By default it will be display's size minus
20 | # overscan.
21 | #framebuffer_width=1280
22 | #framebuffer_height=720
23 |
24 | # uncomment if hdmi display is not detected and composite is being output
25 | hdmi_force_hotplug=1
26 |
27 | # uncomment to force a specific HDMI mode (this will force VGA)
28 | #hdmi_group=1
29 | #hdmi_mode=1
30 |
31 | # uncomment to force a HDMI mode rather than DVI. This can make audio work in
32 | # DMT (computer monitor) modes
33 | #hdmi_drive=2
34 |
35 | # uncomment to increase signal to HDMI, if you have interference, blanking, or
36 | # no display
37 | #config_hdmi_boost=4
38 |
39 | # uncomment for composite PAL
40 | #sdtv_mode=2
41 |
42 | #uncomment to overclock the arm. 700 MHz is the default.
43 | #arm_freq=800
44 |
45 | # Uncomment some or all of these to enable the optional hardware interfaces
46 | dtparam=i2c_arm=on
47 | #dtparam=i2s=on
48 | dtparam=spi=on
49 | enable_uart=1
50 | # Uncomment this to enable the lirc-rpi module
51 | #dtoverlay=lirc-rpi
52 |
53 | # Additional overlays and parameters are documented /boot/overlays/README
54 |
55 | # Enable audio (loads snd_bcm2835)
56 | dtparam=audio=on
57 | dtoverlay=tft9341:rotate=270
58 | #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
59 |
--------------------------------------------------------------------------------
/boot/config-32.txt:
--------------------------------------------------------------------------------
1 | # For more options and information see
2 | # http://www.raspberrypi.org/documentation/configuration/config-txt.md
3 | # Some settings may impact device functionality. See link above for details
4 |
5 | # uncomment if you get no picture on HDMI for a default "safe" mode
6 | #hdmi_safe=1
7 |
8 | # uncomment this if your display has a black border of unused pixels visible
9 | # and your display can output without overscan
10 | #disable_overscan=1
11 |
12 | # uncomment the following to adjust overscan. Use positive numbers if console
13 | # goes off screen, and negative if there is too much border
14 | #overscan_left=16
15 | #overscan_right=16
16 | #overscan_top=16
17 | #overscan_bottom=16
18 |
19 | # uncomment to force a console size. By default it will be display's size minus
20 | # overscan.
21 | #framebuffer_width=1280
22 | #framebuffer_height=720
23 |
24 | # uncomment if hdmi display is not detected and composite is being output
25 | hdmi_force_hotplug=1
26 |
27 | # uncomment to force a specific HDMI mode (this will force VGA)
28 | #hdmi_group=1
29 | #hdmi_mode=1
30 |
31 | # uncomment to force a HDMI mode rather than DVI. This can make audio work in
32 | # DMT (computer monitor) modes
33 | #hdmi_drive=2
34 |
35 | # uncomment to increase signal to HDMI, if you have interference, blanking, or
36 | # no display
37 | #config_hdmi_boost=4
38 |
39 | # uncomment for composite PAL
40 | #sdtv_mode=2
41 |
42 | #uncomment to overclock the arm. 700 MHz is the default.
43 | #arm_freq=800
44 |
45 | # Uncomment some or all of these to enable the optional hardware interfaces
46 | dtparam=i2c_arm=on
47 | #dtparam=i2s=on
48 | dtparam=spi=on
49 | enable_uart=1
50 | # Uncomment this to enable the lirc-rpi module
51 | #dtoverlay=lirc-rpi
52 |
53 | # Additional overlays and parameters are documented /boot/overlays/README
54 |
55 | # Enable audio (loads snd_bcm2835)
56 | dtparam=audio=on
57 | dtoverlay=tft9341:rotate=270
58 | #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
59 |
--------------------------------------------------------------------------------
/boot/config-35-480X320.txt:
--------------------------------------------------------------------------------
1 | # For more options and information see
2 | # http://www.raspberrypi.org/documentation/configuration/config-txt.md
3 | # Some settings may impact device functionality. See link above for details
4 |
5 | # uncomment if you get no picture on HDMI for a default "safe" mode
6 | #hdmi_safe=1
7 |
8 | # uncomment this if your display has a black border of unused pixels visible
9 | # and your display can output without overscan
10 | #disable_overscan=1
11 |
12 | # uncomment the following to adjust overscan. Use positive numbers if console
13 | # goes off screen, and negative if there is too much border
14 | #overscan_left=16
15 | #overscan_right=16
16 | #overscan_top=16
17 | #overscan_bottom=16
18 |
19 | # uncomment to force a console size. By default it will be display's size minus
20 | # overscan.
21 | #framebuffer_width=1280
22 | #framebuffer_height=720
23 |
24 | # uncomment if hdmi display is not detected and composite is being output
25 | hdmi_force_hotplug=1
26 |
27 | # uncomment to force a specific HDMI mode (this will force VGA)
28 | #hdmi_group=1
29 | #hdmi_mode=1
30 |
31 | # uncomment to force a HDMI mode rather than DVI. This can make audio work in
32 | # DMT (computer monitor) modes
33 | #hdmi_drive=2
34 |
35 | # uncomment to increase signal to HDMI, if you have interference, blanking, or
36 | # no display
37 | #config_hdmi_boost=4
38 |
39 | # uncomment for composite PAL
40 | #sdtv_mode=2
41 |
42 | #uncomment to overclock the arm. 700 MHz is the default.
43 | #arm_freq=800
44 |
45 | # Uncomment some or all of these to enable the optional hardware interfaces
46 | dtparam=i2c_arm=on
47 | #dtparam=i2s=on
48 | dtparam=spi=on
49 | enable_uart=1
50 | # Uncomment this to enable the lirc-rpi module
51 | #dtoverlay=lirc-rpi
52 |
53 | # Additional overlays and parameters are documented /boot/overlays/README
54 |
55 | # Enable audio (loads snd_bcm2835)
56 | dtparam=audio=on
57 | hdmi_force_hotplug=1
58 | config_hdmi_boost=7
59 | hdmi_drive=2
60 | hdmi_force_hotplug=1
61 | hdmi_group=2
62 | hdmi_mode=87
63 | hdmi_cvt 480 320 60 6 0 0 0
64 | 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
65 |
--------------------------------------------------------------------------------
/boot/config-35.txt:
--------------------------------------------------------------------------------
1 | # For more options and information see
2 | # http://www.raspberrypi.org/documentation/configuration/config-txt.md
3 | # Some settings may impact device functionality. See link above for details
4 |
5 | # uncomment if you get no picture on HDMI for a default "safe" mode
6 | #hdmi_safe=1
7 |
8 | # uncomment this if your display has a black border of unused pixels visible
9 | # and your display can output without overscan
10 | #disable_overscan=1
11 |
12 | # uncomment the following to adjust overscan. Use positive numbers if console
13 | # goes off screen, and negative if there is too much border
14 | #overscan_left=16
15 | #overscan_right=16
16 | #overscan_top=16
17 | #overscan_bottom=16
18 |
19 | # uncomment to force a console size. By default it will be display's size minus
20 | # overscan.
21 | #framebuffer_width=1280
22 | #framebuffer_height=720
23 |
24 | # uncomment if hdmi display is not detected and composite is being output
25 | hdmi_force_hotplug=1
26 |
27 | # uncomment to force a specific HDMI mode (this will force VGA)
28 | #hdmi_group=1
29 | #hdmi_mode=1
30 |
31 | # uncomment to force a HDMI mode rather than DVI. This can make audio work in
32 | # DMT (computer monitor) modes
33 | #hdmi_drive=2
34 |
35 | # uncomment to increase signal to HDMI, if you have interference, blanking, or
36 | # no display
37 | #config_hdmi_boost=4
38 |
39 | # uncomment for composite PAL
40 | #sdtv_mode=2
41 |
42 | #uncomment to overclock the arm. 700 MHz is the default.
43 | #arm_freq=800
44 |
45 | # Uncomment some or all of these to enable the optional hardware interfaces
46 | dtparam=i2c_arm=on
47 | #dtparam=i2s=on
48 | dtparam=spi=on
49 | enable_uart=1
50 | # Uncomment this to enable the lirc-rpi module
51 | #dtoverlay=lirc-rpi
52 |
53 | # Additional overlays and parameters are documented /boot/overlays/README
54 |
55 | # Enable audio (loads snd_bcm2835)
56 | dtparam=audio=on
57 | dtoverlay=tft35a
58 | #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
59 |
--------------------------------------------------------------------------------
/boot/config-35DPI.txt:
--------------------------------------------------------------------------------
1 | # For more options and information see
2 | # http://www.raspberrypi.org/documentation/configuration/config-txt.md
3 | # Some settings may impact device functionality. See link above for details
4 |
5 | # uncomment if you get no picture on HDMI for a default "safe" mode
6 | #hdmi_safe=1
7 |
8 | # uncomment this if your display has a black border of unused pixels visible
9 | # and your display can output without overscan
10 | #disable_overscan=1
11 |
12 | # uncomment the following to adjust overscan. Use positive numbers if console
13 | # goes off screen, and negative if there is too much border
14 | #overscan_left=16
15 | #overscan_right=16
16 | #overscan_top=16
17 | #overscan_bottom=16
18 |
19 | # uncomment to force a console size. By default it will be display's size minus
20 | # overscan.
21 | #framebuffer_width=1280
22 | #framebuffer_height=720
23 |
24 | # uncomment if hdmi display is not detected and composite is being output
25 | #hdmi_force_hotplug=1
26 |
27 | # uncomment to force a specific HDMI mode (this will force VGA)
28 | #hdmi_group=1
29 | #hdmi_mode=1
30 |
31 | # uncomment to force a HDMI mode rather than DVI. This can make audio work in
32 | # DMT (computer monitor) modes
33 | #hdmi_drive=2
34 |
35 | # uncomment to increase signal to HDMI, if you have interference, blanking, or
36 | # no display
37 | #config_hdmi_boost=4
38 |
39 | # uncomment for composite PAL
40 | #sdtv_mode=2
41 |
42 | #uncomment to overclock the arm. 700 MHz is the default.
43 | #arm_freq=800
44 |
45 | # Uncomment some or all of these to enable the optional hardware interfaces
46 | #dtparam=i2c_arm=on
47 | #dtparam=i2s=on
48 | #dtparam=spi=on
49 |
50 | # Uncomment this to enable the lirc-rpi module
51 | #dtoverlay=lirc-rpi
52 |
53 | # Additional overlays and parameters are documented /boot/overlays/README
54 |
55 | # Enable audio (loads snd_bcm2835)
56 | dtparam=audio=on
57 |
58 | display_rotate=1
59 | dtoverlay=dpi18
60 | overscan_left=0
61 | overscan_right=0
62 | overscan_top=1
63 | overscan_bottom=1
64 | framebuffer_width=480
65 | framebuffer_height=320
66 | enable_dpi_lcd=1
67 | display_default_lcd=1
68 | dpi_group=2
69 | dpi_mode=87
70 | dpi_output_format=0x07f205
71 | hdmi_timings=320 0 28 18 28 480 0 2 2 4 0 0 0 60 0 32000000 6
72 |
73 | #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
74 |
--------------------------------------------------------------------------------
/boot/config-397.txt:
--------------------------------------------------------------------------------
1 | # For more options and information see
2 | # http://www.raspberrypi.org/documentation/configuration/config-txt.md
3 | # Some settings may impact device functionality. See link above for details
4 |
5 | # uncomment if you get no picture on HDMI for a default "safe" mode
6 | #hdmi_safe=1
7 |
8 | # uncomment this if your display has a black border of unused pixels visible
9 | # and your display can output without overscan
10 | #disable_overscan=1
11 |
12 | # uncomment the following to adjust overscan. Use positive numbers if console
13 | # goes off screen, and negative if there is too much border
14 | #overscan_left=16
15 | #overscan_right=16
16 | #overscan_top=16
17 | #overscan_bottom=16
18 |
19 | # uncomment to force a console size. By default it will be display's size minus
20 | # overscan.
21 | #framebuffer_width=1280
22 | #framebuffer_height=720
23 |
24 | # uncomment if hdmi display is not detected and composite is being output
25 | #hdmi_force_hotplug=1
26 |
27 | # uncomment to force a specific HDMI mode (this will force VGA)
28 | #hdmi_group=1
29 | #hdmi_mode=1
30 |
31 | # uncomment to force a HDMI mode rather than DVI. This can make audio work in
32 | # DMT (computer monitor) modes
33 | #hdmi_drive=2
34 |
35 | # uncomment to increase signal to HDMI, if you have interference, blanking, or
36 | # no display
37 | #config_hdmi_boost=4
38 |
39 | # uncomment for composite PAL
40 | #sdtv_mode=2
41 |
42 | #uncomment to overclock the arm. 700 MHz is the default.
43 | #arm_freq=800
44 |
45 | # Uncomment some or all of these to enable the optional hardware interfaces
46 | dtparam=i2c_arm=on
47 | #dtparam=i2s=on
48 | dtparam=spi=on
49 | enable_uart=1
50 | # Uncomment this to enable the lirc-rpi module
51 | #dtoverlay=lirc-rpi
52 |
53 | # Additional overlays and parameters are documented /boot/overlays/README
54 |
55 | # Enable audio (loads snd_bcm2835)
56 | dtparam=audio=on
57 | display_rotate=3
58 | max_usb_current=1
59 | hdmi_force_hotplug=1
60 | config_hdmi_boost=7
61 | hdmi_group=2
62 | hdmi_mode=1
63 | hdmi_mode=87
64 | hdmi_drive=2
65 | hdmi_cvt 480 800 60 6 0 0 0
66 | 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
67 |
--------------------------------------------------------------------------------
/boot/config-43.txt:
--------------------------------------------------------------------------------
1 | # For more options and information see
2 | # http://www.raspberrypi.org/documentation/configuration/config-txt.md
3 | # Some settings may impact device functionality. See link above for details
4 |
5 | # uncomment if you get no picture on HDMI for a default "safe" mode
6 | #hdmi_safe=1
7 |
8 | # uncomment this if your display has a black border of unused pixels visible
9 | # and your display can output without overscan
10 | #disable_overscan=1
11 |
12 | # uncomment the following to adjust overscan. Use positive numbers if console
13 | # goes off screen, and negative if there is too much border
14 | #overscan_left=16
15 | #overscan_right=16
16 | #overscan_top=16
17 | #overscan_bottom=16
18 |
19 | # uncomment to force a console size. By default it will be display's size minus
20 | # overscan.
21 | #framebuffer_width=1280
22 | #framebuffer_height=720
23 |
24 | # uncomment if hdmi display is not detected and composite is being output
25 | hdmi_force_hotplug=1
26 |
27 | # uncomment to force a specific HDMI mode (this will force VGA)
28 | #hdmi_group=1
29 | #hdmi_mode=1
30 |
31 | # uncomment to force a HDMI mode rather than DVI. This can make audio work in
32 | # DMT (computer monitor) modes
33 | #hdmi_drive=2
34 |
35 | # uncomment to increase signal to HDMI, if you have interference, blanking, or
36 | # no display
37 | #config_hdmi_boost=4
38 |
39 | # uncomment for composite PAL
40 | #sdtv_mode=2
41 |
42 | #uncomment to overclock the arm. 700 MHz is the default.
43 | #arm_freq=800
44 |
45 | # Uncomment some or all of these to enable the optional hardware interfaces
46 | dtparam=i2c_arm=on
47 | #dtparam=i2s=on
48 | dtparam=spi=on
49 | enable_uart=1
50 | # Uncomment this to enable the lirc-rpi module
51 | #dtoverlay=lirc-rpi
52 |
53 | # Additional overlays and parameters are documented /boot/overlays/README
54 |
55 | # Enable audio (loads snd_bcm2835)
56 | dtparam=audio=on
57 | max_usb_current=1
58 | display_rotate=0
59 | max_usb_current=1
60 | hdmi_group=2
61 | hdmi_mode=87
62 | hdmi_timings=480 0 1 41 2 272 0 2 10 2 0 0 0 60 0 9000000 3
63 | 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
64 |
--------------------------------------------------------------------------------
/boot/config-5.txt:
--------------------------------------------------------------------------------
1 | # For more options and information see
2 | # http://www.raspberrypi.org/documentation/configuration/config-txt.md
3 | # Some settings may impact device functionality. See link above for details
4 |
5 | # uncomment if you get no picture on HDMI for a default "safe" mode
6 | #hdmi_safe=1
7 |
8 | # uncomment this if your display has a black border of unused pixels visible
9 | # and your display can output without overscan
10 | #disable_overscan=1
11 |
12 | # uncomment the following to adjust overscan. Use positive numbers if console
13 | # goes off screen, and negative if there is too much border
14 | #overscan_left=16
15 | #overscan_right=16
16 | #overscan_top=16
17 | #overscan_bottom=16
18 |
19 | # uncomment to force a console size. By default it will be display's size minus
20 | # overscan.
21 | #framebuffer_width=1280
22 | #framebuffer_height=720
23 |
24 | # uncomment if hdmi display is not detected and composite is being output
25 | #hdmi_force_hotplug=1
26 |
27 | # uncomment to force a specific HDMI mode (this will force VGA)
28 | #hdmi_group=1
29 | #hdmi_mode=1
30 |
31 | # uncomment to force a HDMI mode rather than DVI. This can make audio work in
32 | # DMT (computer monitor) modes
33 | #hdmi_drive=2
34 |
35 | # uncomment to increase signal to HDMI, if you have interference, blanking, or
36 | # no display
37 | #config_hdmi_boost=4
38 |
39 | # uncomment for composite PAL
40 | #sdtv_mode=2
41 |
42 | #uncomment to overclock the arm. 700 MHz is the default.
43 | #arm_freq=800
44 |
45 | # Uncomment some or all of these to enable the optional hardware interfaces
46 | dtparam=i2c_arm=on
47 | #dtparam=i2s=on
48 | dtparam=spi=on
49 | enable_uart=1
50 | # Uncomment this to enable the lirc-rpi module
51 | #dtoverlay=lirc-rpi
52 |
53 | # Additional overlays and parameters are documented /boot/overlays/README
54 |
55 | # Enable audio (loads snd_bcm2835)
56 | dtparam=audio=on
57 | max_usb_current=1
58 | display_rotate=0
59 | hdmi_force_hotplug=1
60 | config_hdmi_boost=7
61 | hdmi_group=2
62 | hdmi_mode=1
63 | hdmi_mode=87
64 | hdmi_drive=1
65 | hdmi_cvt 800 480 60 6 0 0 0
66 | 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
67 |
--------------------------------------------------------------------------------
/boot/config-7B-800x480.txt:
--------------------------------------------------------------------------------
1 | # For more options and information see
2 | # http://www.raspberrypi.org/documentation/configuration/config-txt.md
3 | # Some settings may impact device functionality. See link above for details
4 |
5 | # uncomment if you get no picture on HDMI for a default "safe" mode
6 | #hdmi_safe=1
7 |
8 | # uncomment this if your display has a black border of unused pixels visible
9 | # and your display can output without overscan
10 | #disable_overscan=1
11 |
12 | # uncomment the following to adjust overscan. Use positive numbers if console
13 | # goes off screen, and negative if there is too much border
14 | #overscan_left=16
15 | #overscan_right=16
16 | #overscan_top=16
17 | #overscan_bottom=16
18 |
19 | # uncomment to force a console size. By default it will be display's size minus
20 | # overscan.
21 | #framebuffer_width=1280
22 | #framebuffer_height=720
23 |
24 | # uncomment if hdmi display is not detected and composite is being output
25 | hdmi_force_hotplug=1
26 |
27 | # uncomment to force a specific HDMI mode (this will force VGA)
28 | #hdmi_group=1
29 | #hdmi_mode=1
30 |
31 | # uncomment to force a HDMI mode rather than DVI. This can make audio work in
32 | # DMT (computer monitor) modes
33 | #hdmi_drive=2
34 |
35 | # uncomment to increase signal to HDMI, if you have interference, blanking, or
36 | # no display
37 | #config_hdmi_boost=4
38 |
39 | # uncomment for composite PAL
40 | #sdtv_mode=2
41 |
42 | #uncomment to overclock the arm. 700 MHz is the default.
43 | #arm_freq=800
44 |
45 | # Uncomment some or all of these to enable the optional hardware interfaces
46 | dtparam=i2c_arm=on
47 | #dtparam=i2s=on
48 | dtparam=spi=on
49 | enable_uart=1
50 | # Uncomment this to enable the lirc-rpi module
51 | #dtoverlay=lirc-rpi
52 |
53 | # Additional overlays and parameters are documented /boot/overlays/README
54 |
55 | # Enable audio (loads snd_bcm2835)
56 | dtparam=audio=on
57 | max_usb_current=1
58 | hdmi_force_hotplug=1
59 | config_hdmi_boost=7
60 | hdmi_group=2
61 | hdmi_mode=1
62 | hdmi_mode=87
63 | hdmi_drive=1
64 | hdmi_cvt 800 480 60 6 0 0 0
65 |
--------------------------------------------------------------------------------
/boot/config-7C-1024x600.txt:
--------------------------------------------------------------------------------
1 | # For more options and information see
2 | # http://www.raspberrypi.org/documentation/configuration/config-txt.md
3 | # Some settings may impact device functionality. See link above for details
4 |
5 | # uncomment if you get no picture on HDMI for a default "safe" mode
6 | #hdmi_safe=1
7 |
8 | # uncomment this if your display has a black border of unused pixels visible
9 | # and your display can output without overscan
10 | #disable_overscan=1
11 |
12 | # uncomment the following to adjust overscan. Use positive numbers if console
13 | # goes off screen, and negative if there is too much border
14 | #overscan_left=16
15 | #overscan_right=16
16 | #overscan_top=16
17 | #overscan_bottom=16
18 |
19 | # uncomment to force a console size. By default it will be display's size minus
20 | # overscan.
21 | #framebuffer_width=1280
22 | #framebuffer_height=720
23 |
24 | # uncomment if hdmi display is not detected and composite is being output
25 | hdmi_force_hotplug=1
26 |
27 | # uncomment to force a specific HDMI mode (this will force VGA)
28 | #hdmi_group=1
29 | #hdmi_mode=1
30 |
31 | # uncomment to force a HDMI mode rather than DVI. This can make audio work in
32 | # DMT (computer monitor) modes
33 | #hdmi_drive=2
34 |
35 | # uncomment to increase signal to HDMI, if you have interference, blanking, or
36 | # no display
37 | #config_hdmi_boost=4
38 |
39 | # uncomment for composite PAL
40 | #sdtv_mode=2
41 |
42 | #uncomment to overclock the arm. 700 MHz is the default.
43 | #arm_freq=800
44 |
45 | # Uncomment some or all of these to enable the optional hardware interfaces
46 | dtparam=i2c_arm=on
47 | #dtparam=i2s=on
48 | dtparam=spi=on
49 | enable_uart=1
50 | # Uncomment this to enable the lirc-rpi module
51 | #dtoverlay=lirc-rpi
52 |
53 | # Additional overlays and parameters are documented /boot/overlays/README
54 |
55 | # Enable audio (loads snd_bcm2835)
56 | dtparam=audio=on
57 | max_usb_current=1
58 | hdmi_force_hotplug=1
59 | config_hdmi_boost=7
60 | hdmi_group=2
61 | hdmi_mode=1
62 | hdmi_mode=87
63 | hdmi_drive=1
64 | display_rotate=0
65 | hdmi_cvt 1024 600 60 6 0 0 0
66 |
--------------------------------------------------------------------------------
/boot/config-MPI5001.txt:
--------------------------------------------------------------------------------
1 | # For more options and information see
2 | # http://www.raspberrypi.org/documentation/configuration/config-txt.md
3 | # Some settings may impact device functionality. See link above for details
4 |
5 | # uncomment if you get no picture on HDMI for a default "safe" mode
6 | #hdmi_safe=1
7 |
8 | # uncomment this if your display has a black border of unused pixels visible
9 | # and your display can output without overscan
10 | #disable_overscan=1
11 |
12 | # uncomment the following to adjust overscan. Use positive numbers if console
13 | # goes off screen, and negative if there is too much border
14 | #overscan_left=16
15 | #overscan_right=16
16 | #overscan_top=16
17 | #overscan_bottom=16
18 |
19 | # uncomment to force a console size. By default it will be display's size minus
20 | # overscan.
21 | #framebuffer_width=1280
22 | #framebuffer_height=720
23 |
24 | # uncomment if hdmi display is not detected and composite is being output
25 | hdmi_force_hotplug=1
26 |
27 | # uncomment to force a specific HDMI mode (this will force VGA)
28 | #hdmi_group=1
29 | #hdmi_mode=1
30 |
31 | # uncomment to force a HDMI mode rather than DVI. This can make audio work in
32 | # DMT (computer monitor) modes
33 | #hdmi_drive=2
34 |
35 | # uncomment to increase signal to HDMI, if you have interference, blanking, or
36 | # no display
37 | #config_hdmi_boost=4
38 |
39 | # uncomment for composite PAL
40 | #sdtv_mode=2
41 |
42 | #uncomment to overclock the arm. 700 MHz is the default.
43 | #arm_freq=800
44 |
45 | # Uncomment some or all of these to enable the optional hardware interfaces
46 | dtparam=i2c_arm=on
47 | #dtparam=i2s=on
48 | dtparam=spi=on
49 | enable_uart=1
50 | # Uncomment this to enable the lirc-rpi module
51 | #dtoverlay=lirc-rpi
52 |
53 | # Additional overlays and parameters are documented /boot/overlays/README
54 |
55 | # Enable audio (loads snd_bcm2835)
56 | dtparam=audio=on
57 | display_rotate=0
58 | max_usb_current=1
59 | hdmi_force_hotplug=1
60 | config_hdmi_boost=7
61 | hdmi_group=2
62 | hdmi_mode=1
63 | hdmi_mode=87
64 | hdmi_drive=2
65 | hdmi_force_edid_audio=1
66 | hdmi_cvt 800 480 60 6 0 0 0
67 |
--------------------------------------------------------------------------------
/boot/config-mhs24.txt:
--------------------------------------------------------------------------------
1 | # For more options and information see
2 | # http://www.raspberrypi.org/documentation/configuration/config-txt.md
3 | # Some settings may impact device functionality. See link above for details
4 |
5 | # uncomment if you get no picture on HDMI for a default "safe" mode
6 | #hdmi_safe=1
7 |
8 | # uncomment this if your display has a black border of unused pixels visible
9 | # and your display can output without overscan
10 | #disable_overscan=1
11 |
12 | # uncomment the following to adjust overscan. Use positive numbers if console
13 | # goes off screen, and negative if there is too much border
14 | #overscan_left=16
15 | #overscan_right=16
16 | #overscan_top=16
17 | #overscan_bottom=16
18 |
19 | # uncomment to force a console size. By default it will be display's size minus
20 | # overscan.
21 | #framebuffer_width=1280
22 | #framebuffer_height=720
23 |
24 | # uncomment if hdmi display is not detected and composite is being output
25 | hdmi_force_hotplug=1
26 |
27 | # uncomment to force a specific HDMI mode (this will force VGA)
28 | #hdmi_group=1
29 | #hdmi_mode=1
30 |
31 | # uncomment to force a HDMI mode rather than DVI. This can make audio work in
32 | # DMT (computer monitor) modes
33 | #hdmi_drive=2
34 |
35 | # uncomment to increase signal to HDMI, if you have interference, blanking, or
36 | # no display
37 | #config_hdmi_boost=4
38 |
39 | # uncomment for composite PAL
40 | #sdtv_mode=2
41 |
42 | #uncomment to overclock the arm. 700 MHz is the default.
43 | #arm_freq=800
44 |
45 | # Uncomment some or all of these to enable the optional hardware interfaces
46 | dtparam=i2c_arm=on
47 | #dtparam=i2s=on
48 | dtparam=spi=on
49 | enable_uart=1
50 | # Uncomment this to enable the lirc-rpi module
51 | #dtoverlay=lirc-rpi
52 |
53 | # Additional overlays and parameters are documented /boot/overlays/README
54 |
55 | # Enable audio (loads snd_bcm2835)
56 | dtparam=audio=on
57 | dtoverlay=mhs24
58 | hdmi_force_hotplug=1
59 | hdmi_group=2
60 | hdmi_mode=1
61 | hdmi_mode=87
62 | hdmi_cvt 320 240 60 6 0 0 0
63 | hdmi_drive=2
64 |
--------------------------------------------------------------------------------
/boot/config-mhs32.txt:
--------------------------------------------------------------------------------
1 | # For more options and information see
2 | # http://www.raspberrypi.org/documentation/configuration/config-txt.md
3 | # Some settings may impact device functionality. See link above for details
4 |
5 | # uncomment if you get no picture on HDMI for a default "safe" mode
6 | #hdmi_safe=1
7 |
8 | # uncomment this if your display has a black border of unused pixels visible
9 | # and your display can output without overscan
10 | #disable_overscan=1
11 |
12 | # uncomment the following to adjust overscan. Use positive numbers if console
13 | # goes off screen, and negative if there is too much border
14 | #overscan_left=16
15 | #overscan_right=16
16 | #overscan_top=16
17 | #overscan_bottom=16
18 |
19 | # uncomment to force a console size. By default it will be display's size minus
20 | # overscan.
21 | #framebuffer_width=1280
22 | #framebuffer_height=720
23 |
24 | # uncomment if hdmi display is not detected and composite is being output
25 | hdmi_force_hotplug=1
26 |
27 | # uncomment to force a specific HDMI mode (this will force VGA)
28 | #hdmi_group=1
29 | #hdmi_mode=1
30 |
31 | # uncomment to force a HDMI mode rather than DVI. This can make audio work in
32 | # DMT (computer monitor) modes
33 | #hdmi_drive=2
34 |
35 | # uncomment to increase signal to HDMI, if you have interference, blanking, or
36 | # no display
37 | #config_hdmi_boost=4
38 |
39 | # uncomment for composite PAL
40 | #sdtv_mode=2
41 |
42 | #uncomment to overclock the arm. 700 MHz is the default.
43 | #arm_freq=800
44 |
45 | # Uncomment some or all of these to enable the optional hardware interfaces
46 | dtparam=i2c_arm=on
47 | #dtparam=i2s=on
48 | dtparam=spi=on
49 | enable_uart=1
50 | # Uncomment this to enable the lirc-rpi module
51 | #dtoverlay=lirc-rpi
52 |
53 | # Additional overlays and parameters are documented /boot/overlays/README
54 |
55 | # Enable audio (loads snd_bcm2835)
56 | dtparam=audio=on
57 | dtoverlay=mhs32
58 | hdmi_force_hotplug=1
59 | hdmi_group=2
60 | hdmi_mode=1
61 | hdmi_mode=87
62 | hdmi_cvt 480 320 60 6 0 0 0
63 | hdmi_drive=2
--------------------------------------------------------------------------------
/boot/config-mhs35.txt:
--------------------------------------------------------------------------------
1 | # For more options and information see
2 | # http://www.raspberrypi.org/documentation/configuration/config-txt.md
3 | # Some settings may impact device functionality. See link above for details
4 |
5 | # uncomment if you get no picture on HDMI for a default "safe" mode
6 | #hdmi_safe=1
7 |
8 | # uncomment this if your display has a black border of unused pixels visible
9 | # and your display can output without overscan
10 | #disable_overscan=1
11 |
12 | # uncomment the following to adjust overscan. Use positive numbers if console
13 | # goes off screen, and negative if there is too much border
14 | #overscan_left=16
15 | #overscan_right=16
16 | #overscan_top=16
17 | #overscan_bottom=16
18 |
19 | # uncomment to force a console size. By default it will be display's size minus
20 | # overscan.
21 | #framebuffer_width=1280
22 | #framebuffer_height=720
23 |
24 | # uncomment if hdmi display is not detected and composite is being output
25 | #hdmi_force_hotplug=1
26 |
27 | # uncomment to force a specific HDMI mode (this will force VGA)
28 | #hdmi_group=1
29 | #hdmi_mode=1
30 |
31 | # uncomment to force a HDMI mode rather than DVI. This can make audio work in
32 | # DMT (computer monitor) modes
33 | #hdmi_drive=2
34 |
35 | # uncomment to increase signal to HDMI, if you have interference, blanking, or
36 | # no display
37 | #config_hdmi_boost=4
38 |
39 | # uncomment for composite PAL
40 | #sdtv_mode=2
41 |
42 | #uncomment to overclock the arm. 700 MHz is the default.
43 | #arm_freq=800
44 |
45 | # Uncomment some or all of these to enable the optional hardware interfaces
46 | dtparam=i2c_arm=on
47 | #dtparam=i2s=on
48 | dtparam=spi=on
49 | enable_uart=1
50 | # Uncomment this to enable the lirc-rpi module
51 | #dtoverlay=lirc-rpi
52 |
53 | # Additional overlays and parameters are documented /boot/overlays/README
54 |
55 | # Enable audio (loads snd_bcm2835)
56 | dtparam=audio=on
57 | dtoverlay=mhs35:rotate=90
58 | hdmi_force_hotplug=1
59 | hdmi_group=2
60 | hdmi_mode=1
61 | hdmi_mode=87
62 | hdmi_cvt 480 320 60 6 0 0 0
63 | hdmi_drive=2
64 |
--------------------------------------------------------------------------------
/boot/config-mhs395.txt:
--------------------------------------------------------------------------------
1 | # For more options and information see
2 | # http://www.raspberrypi.org/documentation/configuration/config-txt.md
3 | # Some settings may impact device functionality. See link above for details
4 |
5 | # uncomment if you get no picture on HDMI for a default "safe" mode
6 | #hdmi_safe=1
7 |
8 | # uncomment this if your display has a black border of unused pixels visible
9 | # and your display can output without overscan
10 | #disable_overscan=1
11 |
12 | # uncomment the following to adjust overscan. Use positive numbers if console
13 | # goes off screen, and negative if there is too much border
14 | #overscan_left=16
15 | #overscan_right=16
16 | #overscan_top=16
17 | #overscan_bottom=16
18 |
19 | # uncomment to force a console size. By default it will be display's size minus
20 | # overscan.
21 | #framebuffer_width=1280
22 | #framebuffer_height=720
23 |
24 | # uncomment if hdmi display is not detected and composite is being output
25 | hdmi_force_hotplug=1
26 |
27 | # uncomment to force a specific HDMI mode (this will force VGA)
28 | #hdmi_group=1
29 | #hdmi_mode=1
30 |
31 | # uncomment to force a HDMI mode rather than DVI. This can make audio work in
32 | # DMT (computer monitor) modes
33 | #hdmi_drive=2
34 |
35 | # uncomment to increase signal to HDMI, if you have interference, blanking, or
36 | # no display
37 | #config_hdmi_boost=4
38 |
39 | # uncomment for composite PAL
40 | #sdtv_mode=2
41 |
42 | #uncomment to overclock the arm. 700 MHz is the default.
43 | #arm_freq=800
44 |
45 | # Uncomment some or all of these to enable the optional hardware interfaces
46 | dtparam=i2c_arm=on
47 | #dtparam=i2s=on
48 | dtparam=spi=on
49 | enable_uart=1
50 | # Uncomment this to enable the lirc-rpi module
51 | #dtoverlay=lirc-rpi
52 |
53 | # Additional overlays and parameters are documented /boot/overlays/README
54 |
55 | # Enable audio (loads snd_bcm2835)
56 | dtparam=audio=on
57 | dtoverlay=mhs395
58 | hdmi_force_hotplug=1
59 | hdmi_group=2
60 | hdmi_mode=1
61 | hdmi_mode=87
62 | hdmi_cvt 480 320 60 6 0 0 0
63 | hdmi_drive=2
--------------------------------------------------------------------------------
/boot/config-mis35.txt:
--------------------------------------------------------------------------------
1 | # For more options and information see
2 | # http://www.raspberrypi.org/documentation/configuration/config-txt.md
3 | # Some settings may impact device functionality. See link above for details
4 |
5 | # uncomment if you get no picture on HDMI for a default "safe" mode
6 | #hdmi_safe=1
7 |
8 | # uncomment this if your display has a black border of unused pixels visible
9 | # and your display can output without overscan
10 | #disable_overscan=1
11 |
12 | # uncomment the following to adjust overscan. Use positive numbers if console
13 | # goes off screen, and negative if there is too much border
14 | #overscan_left=16
15 | #overscan_right=16
16 | #overscan_top=16
17 | #overscan_bottom=16
18 |
19 | # uncomment to force a console size. By default it will be display's size minus
20 | # overscan.
21 | #framebuffer_width=1280
22 | #framebuffer_height=720
23 |
24 | # uncomment if hdmi display is not detected and composite is being output
25 | hdmi_force_hotplug=1
26 |
27 | # uncomment to force a specific HDMI mode (this will force VGA)
28 | #hdmi_group=1
29 | #hdmi_mode=1
30 |
31 | # uncomment to force a HDMI mode rather than DVI. This can make audio work in
32 | # DMT (computer monitor) modes
33 | #hdmi_drive=2
34 |
35 | # uncomment to increase signal to HDMI, if you have interference, blanking, or
36 | # no display
37 | #config_hdmi_boost=4
38 |
39 | # uncomment for composite PAL
40 | #sdtv_mode=2
41 |
42 | #uncomment to overclock the arm. 700 MHz is the default.
43 | #arm_freq=800
44 |
45 | # Uncomment some or all of these to enable the optional hardware interfaces
46 | dtparam=i2c_arm=on
47 | #dtparam=i2s=on
48 | dtparam=spi=on
49 | enable_uart=1
50 | # Uncomment this to enable the lirc-rpi module
51 | #dtoverlay=lirc-rpi
52 |
53 | # Additional overlays and parameters are documented /boot/overlays/README
54 |
55 | # Enable audio (loads snd_bcm2835)
56 | dtparam=audio=on
57 | dtoverlay=mis35
58 | hdmi_force_hotplug=1
59 | hdmi_group=2
60 | hdmi_mode=1
61 | hdmi_mode=87
62 | hdmi_cvt 480 320 60 6 0 0 0
63 | hdmi_drive=2
64 |
--------------------------------------------------------------------------------
/boot/config-nomal-20.04-64.txt:
--------------------------------------------------------------------------------
1 | # Please DO NOT modify this file; if you need to modify the boot config, the
2 | # "usercfg.txt" file is the place to include user changes. Please refer to
3 | # the README file for a description of the various configuration files on
4 | # the boot partition.
5 |
6 | # The unusual ordering below is deliberate; older firmwares (in particular the
7 | # version initially shipped with bionic) don't understand the conditional
8 | # [sections] below and simply ignore them. The Pi4 doesn't boot at all with
9 | # firmwares this old so it's safe to place at the top. Of the Pi2 and Pi3, the
10 | # Pi3 uboot happens to work happily on the Pi2, so it needs to go at the bottom
11 | # to support old firmwares.
12 |
13 | [pi4]
14 | kernel=uboot_rpi_4.bin
15 | max_framebuffers=2
16 |
17 | [pi2]
18 | kernel=uboot_rpi_2.bin
19 |
20 | [pi3]
21 | kernel=uboot_rpi_3.bin
22 |
23 | [all]
24 | arm_64bit=1
25 | device_tree_address=0x03000000
26 |
27 | # The following settings are "defaults" expected to be overridden by the
28 | # included configuration. The only reason they are included is, again, to
29 | # support old firmwares which don't understand the "include" command.
30 |
31 | enable_uart=1
32 | cmdline=cmdline.txt
33 |
34 | include syscfg.txt
35 | include usercfg.txt
36 |
37 | disable_overscan=1
38 | dtoverlay=vc4-fkms-v3d
39 | hdmi_drive=2
40 |
--------------------------------------------------------------------------------
/boot/config-nomal-20.04.txt:
--------------------------------------------------------------------------------
1 | # Please DO NOT modify this file; if you need to modify the boot config, the
2 | # "usercfg.txt" file is the place to include user changes. Please refer to
3 | # the README file for a description of the various configuration files on
4 | # the boot partition.
5 |
6 | # The unusual ordering below is deliberate; older firmwares (in particular the
7 | # version initially shipped with bionic) don't understand the conditional
8 | # [sections] below and simply ignore them. The Pi4 doesn't boot at all with
9 | # firmwares this old so it's safe to place at the top. Of the Pi2 and Pi3, the
10 | # Pi3 uboot happens to work happily on the Pi2, so it needs to go at the bottom
11 | # to support old firmwares.
12 |
13 | [pi4]
14 | kernel=uboot_rpi_4_32b.bin
15 | max_framebuffers=2
16 |
17 | [pi2]
18 | kernel=uboot_rpi_2.bin
19 |
20 | [pi3]
21 | kernel=uboot_rpi_3_32b.bin
22 |
23 | [all]
24 | device_tree_address=0x03000000
25 |
26 | # The following settings are "defaults" expected to be overridden by the
27 | # included configuration. The only reason they are included is, again, to
28 | # support old firmwares which don't understand the "include" command.
29 |
30 | enable_uart=1
31 | cmdline=cmdline.txt
32 |
33 | include syscfg.txt
34 | include usercfg.txt
35 |
36 | disable_overscan=1
37 | dtoverlay=vc4-fkms-v3d
38 | hdmi_drive=2
39 |
--------------------------------------------------------------------------------
/boot/config-nomal-20.10-32.txt:
--------------------------------------------------------------------------------
1 | [pi4]
2 | max_framebuffers=2
3 |
4 | [all]
5 | kernel=vmlinuz
6 | cmdline=cmdline.txt
7 | initramfs initrd.img followkernel
8 |
9 | # Enable the audio output, I2C and SPI interfaces on the GPIO header
10 | dtparam=audio=on
11 | dtparam=i2c_arm=on
12 | dtparam=spi=on
13 |
14 | # Enable the FKMS ("Fake" KMS) graphics overlay, enable the camera firmware
15 | # and allocate 128Mb to the GPU memory
16 | dtoverlay=vc4-fkms-v3d
17 | gpu_mem=128
18 | start_x=1
19 |
20 | # Comment out the following line if the edges of the desktop appear outside
21 | # the edges of your display
22 | disable_overscan=1
23 |
24 | # If you have issues with audio, you may try uncommenting the following line
25 | # which forces the HDMI output into HDMI mode instead of DVI (which doesn't
26 | # support audio output)
27 | #hdmi_drive=2
28 |
29 | # If you have a CM4, uncomment the following line to enable the USB2 outputs
30 | # on the IO board (assuming your CM4 is plugged into such a board)
31 | #dtoverlay=dwc2,dr_mode=host
32 |
--------------------------------------------------------------------------------
/boot/config-nomal-22.04-32.txt:
--------------------------------------------------------------------------------
1 | [all]
2 | kernel=vmlinuz
3 | cmdline=cmdline.txt
4 | initramfs initrd.img followkernel
5 |
6 | [pi4]
7 | max_framebuffers=2
8 | arm_boost=1
9 |
10 | [all]
11 | # Enable the audio output, I2C and SPI interfaces on the GPIO header. As these
12 | # parameters related to the base device-tree they must appear *before* any
13 | # other dtoverlay= specification
14 | dtparam=audio=on
15 | dtparam=i2c_arm=on
16 | dtparam=spi=on
17 |
18 | # Comment out the following line if the edges of the desktop appear outside
19 | # the edges of your display
20 | disable_overscan=1
21 |
22 | # If you have issues with audio, you may try uncommenting the following line
23 | # which forces the HDMI output into HDMI mode instead of DVI (which doesn't
24 | # support audio output)
25 | hdmi_drive=2
26 |
27 | [cm4]
28 | # Enable the USB2 outputs on the IO board (assuming your CM4 is plugged into
29 | # such a board)
30 | dtoverlay=dwc2,dr_mode=host
31 |
32 | [all]
33 |
34 | # Enable the KMS ("full" KMS) graphics overlay, leaving GPU memory as the
35 | # default (the kernel is in control of graphics memory with full KMS)
36 | # dtoverlay=vc4-kms-v3d
37 |
38 | # Autoload overlays for any recognized cameras or displays that are attached
39 | # to the CSI/DSI ports. Please note this is for libcamera support, *not* for
40 | # the legacy camera stack
41 | camera_auto_detect=1
42 | display_auto_detect=1
43 |
44 |
45 |
--------------------------------------------------------------------------------
/boot/config-nomal-22.04-64.txt:
--------------------------------------------------------------------------------
1 | [all]
2 | kernel=vmlinuz
3 | cmdline=cmdline.txt
4 | initramfs initrd.img followkernel
5 |
6 | [pi4]
7 | max_framebuffers=2
8 | arm_boost=1
9 |
10 | [all]
11 | # Enable the audio output, I2C and SPI interfaces on the GPIO header. As these
12 | # parameters related to the base device-tree they must appear *before* any
13 | # other dtoverlay= specification
14 | dtparam=audio=on
15 | dtparam=i2c_arm=on
16 | dtparam=spi=on
17 |
18 | # Comment out the following line if the edges of the desktop appear outside
19 | # the edges of your display
20 | disable_overscan=1
21 |
22 | # If you have issues with audio, you may try uncommenting the following line
23 | # which forces the HDMI output into HDMI mode instead of DVI (which doesn't
24 | # support audio output)
25 | hdmi_drive=2
26 |
27 | [cm4]
28 | # Enable the USB2 outputs on the IO board (assuming your CM4 is plugged into
29 | # such a board)
30 | dtoverlay=dwc2,dr_mode=host
31 |
32 | [all]
33 |
34 | # Enable the KMS ("full" KMS) graphics overlay, leaving GPU memory as the
35 | # default (the kernel is in control of graphics memory with full KMS)
36 | # dtoverlay=vc4-kms-v3d
37 |
38 | # Autoload overlays for any recognized cameras or displays that are attached
39 | # to the CSI/DSI ports. Please note this is for libcamera support, *not* for
40 | # the legacy camera stack
41 | camera_auto_detect=1
42 | display_auto_detect=1
43 |
44 | # Config settings specific to arm64
45 | arm_64bit=1
46 | dtoverlay=dwc2
47 |
--------------------------------------------------------------------------------
/boot/config-nomal.txt:
--------------------------------------------------------------------------------
1 | ################################################################################
2 | ## Raspberry Pi Configuration Settings
3 | ##
4 | ## Revision 16, 2013/06/22
5 | ##
6 | ## Details taken from the eLinux wiki
7 | ## For up-to-date information please refer to wiki page.
8 | ##
9 | ## Wiki Location : http://elinux.org/RPiconfig
10 | ##
11 | ## For more options and information see
12 | ## http://www.raspberrypi.org/documentation/configuration/config-txt.md
13 | ## Some settings may impact device functionality. See link above for details
14 | ##
15 | ## Description:
16 | ## Details of each setting are described with each section that begins with
17 | ## a double hashed comment ('##')
18 | ## It is up to the user to remove the single hashed comment ('#') from each
19 | ## option they want to enable, and to set the specific value of that option.
20 | ##
21 | ## Overclock settings will be disabled at runtime if the SoC reaches temp_limit
22 | ##
23 | ################################################################################
24 |
25 | ################################################################################
26 | ## Standard Definition Video Settings
27 | ################################################################################
28 |
29 | ## sdtv_mode
30 | ## defines the TV standard for composite output
31 | ##
32 | ## Value Description
33 | ## -------------------------------------------------------------------------
34 | ## 0 Normal NTSC (Default)
35 | ## 1 Japanese version of NTSC - no pedestal
36 | ## 2 Normal PAL
37 | ## 3 Brazilian version of PAL - 525/60 rather than 625/50, different
38 | ## subcarrier
39 | ##
40 | #sdtv_mode=0
41 |
42 | ## sdtv_aspect
43 | ## defines the aspect ratio for composite output
44 | ##
45 | ## Value Description
46 | ## -------------------------------------------------------------------------
47 | ## 1 4:3 (Default)
48 | ## 2 14:9
49 | ## 3 16:9
50 | ##
51 | #sdtv_aspect=1
52 |
53 | ## sdtv_disable_colourburst
54 | ## Disables colour burst on composite output. The picture will be
55 | ## monochrome, but possibly sharper
56 | ##
57 | ## Value Description
58 | ## -------------------------------------------------------------------------
59 | ## 0 Colour burst is enabled (Default)
60 | ## 1 Colour burst is disabled
61 | ##
62 | #sdtv_disable_colourburst=1
63 |
64 | ################################################################################
65 | ## High Definition Video Settings
66 | ################################################################################
67 |
68 | ## hdmi_safe
69 | ## Use "safe mode" settings to try to boot with maximum hdmi compatibility.
70 | ##
71 | ## Value Description
72 | ## -------------------------------------------------------------------------
73 | ## 0 Disabled (Default)
74 | ## 1 Enabled (this does: hdmi_force_hotplug=1,
75 | ## hdmi_ignore_edid=0xa5000080,
76 | ## config_hdmi_boost=4, hdmi_group=2,
77 | ## hdmi_mode=4, disable_overscan=0,
78 | ## overscan_left=24, overscan_right=24,
79 | ## overscan_top=24, overscan_bottom=24)
80 | ##
81 | #hdmi_safe=1
82 |
83 | ## hdmi_force_hotplug
84 | ## Pretends HDMI hotplug signal is asserted so it appears a HDMI display
85 | ## is attached
86 | ##
87 | ## Value Description
88 | ## -------------------------------------------------------------------------
89 | ## 0 Disabled (Default)
90 | ## 1 Use HDMI mode even if no HDMI monitor is detected
91 | ##
92 | #hdmi_force_hotplug=1
93 |
94 | ## hdmi_ignore_hotplug
95 | ## Pretends HDMI hotplug signal is not asserted so it appears a HDMI
96 | ## display is not attached
97 | ##
98 | ## Value Description
99 | ## -------------------------------------------------------------------------
100 | ## 0 Disabled (Default)
101 | ## 1 Use composite mode even if HDMI monitor is detected
102 | ##
103 | #hdmi_ignore_hotplug=1
104 |
105 | ## hdmi_drive
106 | ## chooses between HDMI and DVI modes
107 | ##
108 | ## Value Description
109 | ## -------------------------------------------------------------------------
110 | ## 1 Normal DVI mode (No sound)
111 | ## 2 Normal HDMI mode (Sound will be sent if supported and enabled)
112 | ##
113 | hdmi_drive=2
114 |
115 | ## hdmi_ignore_edid
116 | ## Enables the ignoring of EDID/display data
117 | ##
118 | #hdmi_ignore_edid=0xa5000080
119 |
120 | ## hdmi_edid_file
121 | ## Read the EDID data from the edid.dat file instead of from the attached
122 | ## device
123 | ##
124 | ## Value Description
125 | ## -------------------------------------------------------------------------
126 | ## 0 Read EDID data from attached device (Default)
127 | ## 1 Read EDID data from edid.txt file
128 | ##
129 | #hdmi_edid_file=1
130 |
131 | ## hdmi_ignore_edid_audio
132 | ## Pretends all audio formats are unsupported by display. This means ALSA
133 | ## will default to analogue.
134 | ##
135 | ## Value Description
136 | ## -------------------------------------------------------------------------
137 | ## 0 Use EDID provided values (Default)
138 | ## 1 Pretend all audio formats are unsupported
139 | ##
140 | #hdmi_ignore_edid_audio=1
141 |
142 | ## hdmi_force_edid_audio
143 | ## Pretends all audio formats are supported by display, allowing
144 | ## passthrough of DTS/AC3 even when not reported as supported.
145 | ##
146 | ## Value Description
147 | ## -------------------------------------------------------------------------
148 | ## 0 Use EDID provided values (Default)
149 | ## 1 Pretend all audio formats are supported
150 | ##
151 | #hdmi_force_edid_audio=1
152 |
153 | ## hdmi_force_edid_3d
154 | ## Pretends all CEA modes support 3D even when edid doesn't indicate
155 | ## support for them.
156 | ##
157 | ## Value Description
158 | ## -------------------------------------------------------------------------
159 | ## 0 Use EDID provided values (Default)
160 | ## 1 Pretend 3D mode is supported
161 | ##
162 | #hdmi_force_edid_3d=1
163 |
164 | ## avoid_edid_fuzzy_match
165 | ## Avoid fuzzy matching of modes described in edid.
166 | ##
167 | ## Value Description
168 | ## -------------------------------------------------------------------------
169 | ## 0 Use fuzzy matching (Default)
170 | ## 1 Avoid fuzzy matching
171 | ##
172 | #avoid_edid_fuzzy_match=1
173 |
174 | ## hdmi_pixel_encoding
175 | ## Force the pixel encoding mode.
176 | ## By default it will use the mode requested from edid so shouldn't
177 | ## need changing.
178 | ##
179 | ## Value Description
180 | ## -------------------------------------------------------------------------
181 | ## 0 Use EDID provided values (Default)
182 | ## 1 RGB limited (16-235)
183 | ## 2 RGB full ( 0-255)
184 | ## 3 YCbCr limited (16-235)
185 | ## 4 YCbCr limited ( 0-255)
186 | ##
187 | #hdmi_pixel_encoding=1
188 |
189 | ## hdmi_group
190 | ## Defines the HDMI type
191 | ##
192 | ## Value Description
193 | ## -------------------------------------------------------------------------
194 | ## 0 Use the preferred group reported by the edid (Default)
195 | ## 1 CEA
196 | ## 2 DMT
197 | ##
198 | #hdmi_group=1
199 |
200 | ## hdmi_mode
201 | ## defines screen resolution in CEA or DMT format
202 | ##
203 | ## H means 16:9 variant (of a normally 4:3 mode).
204 | ## 2x means pixel doubled (i.e. higher clock rate, with each pixel repeated
205 | ## twice)
206 | ## 4x means pixel quadrupled (i.e. higher clock rate, with each pixel
207 | ## repeated four times)
208 | ## reduced blanking means fewer bytes are used for blanking within the data
209 | ## stream (i.e. lower clock rate, with fewer wasted bytes)
210 | ##
211 | ## Value hdmi_group=CEA hdmi_group=DMT
212 | ## -------------------------------------------------------------------------
213 | ## 1 VGA 640x350 85Hz
214 | ## 2 480p 60Hz 640x400 85Hz
215 | ## 3 480p 60Hz H 720x400 85Hz
216 | ## 4 720p 60Hz 640x480 60Hz
217 | ## 5 1080i 60Hz 640x480 72Hz
218 | ## 6 480i 60Hz 640x480 75Hz
219 | ## 7 480i 60Hz H 640x480 85Hz
220 | ## 8 240p 60Hz 800x600 56Hz
221 | ## 9 240p 60Hz H 800x600 60Hz
222 | ## 10 480i 60Hz 4x 800x600 72Hz
223 | ## 11 480i 60Hz 4x H 800x600 75Hz
224 | ## 12 240p 60Hz 4x 800x600 85Hz
225 | ## 13 240p 60Hz 4x H 800x600 120Hz
226 | ## 14 480p 60Hz 2x 848x480 60Hz
227 | ## 15 480p 60Hz 2x H 1024x768 43Hz DO NOT USE
228 | ## 16 1080p 60Hz 1024x768 60Hz
229 | ## 17 576p 50Hz 1024x768 70Hz
230 | ## 18 576p 50Hz H 1024x768 75Hz
231 | ## 19 720p 50Hz 1024x768 85Hz
232 | ## 20 1080i 50Hz 1024x768 120Hz
233 | ## 21 576i 50Hz 1152x864 75Hz
234 | ## 22 576i 50Hz H 1280x768 reduced blanking
235 | ## 23 288p 50Hz 1280x768 60Hz
236 | ## 24 288p 50Hz H 1280x768 75Hz
237 | ## 25 576i 50Hz 4x 1280x768 85Hz
238 | ## 26 576i 50Hz 4x H 1280x768 120Hz reduced blanking
239 | ## 27 288p 50Hz 4x 1280x800 reduced blanking
240 | ## 28 288p 50Hz 4x H 1280x800 60Hz
241 | ## 29 576p 50Hz 2x 1280x800 75Hz
242 | ## 30 576p 50Hz 2x H 1280x800 85Hz
243 | ## 31 1080p 50Hz 1280x800 120Hz reduced blanking
244 | ## 32 1080p 24Hz 1280x960 60Hz
245 | ## 33 1080p 25Hz 1280x960 85Hz
246 | ## 34 1080p 30Hz 1280x960 120Hz reduced blanking
247 | ## 35 480p 60Hz 4x 1280x1024 60Hz
248 | ## 36 480p 60Hz 4x H 1280x1024 75Hz
249 | ## 37 576p 50Hz 4x 1280x1024 85Hz
250 | ## 38 576p 50Hz 4x H 1280x1024 120Hz reduced blanking
251 | ## 39 1080i 50Hz reduced blanking 1360x768 60Hz
252 | ## 40 1080i 100Hz 1360x768 120Hz reduced blanking
253 | ## 41 720p 100Hz 1400x1050 reduced blanking
254 | ## 42 576p 100Hz 1400x1050 60Hz
255 | ## 43 576p 100Hz H 1400x1050 75Hz
256 | ## 44 576i 100Hz 1400x1050 85Hz
257 | ## 45 576i 100Hz H 1400x1050 120Hz reduced blanking
258 | ## 46 1080i 120Hz 1440x900 reduced blanking
259 | ## 47 720p 120Hz 1440x900 60Hz
260 | ## 48 480p 120Hz 1440x900 75Hz
261 | ## 49 480p 120Hz H 1440x900 85Hz
262 | ## 50 480i 120Hz 1440x900 120Hz reduced blanking
263 | ## 51 480i 120Hz H 1600x1200 60Hz
264 | ## 52 576p 200Hz 1600x1200 65Hz
265 | ## 53 576p 200Hz H 1600x1200 70Hz
266 | ## 54 576i 200Hz 1600x1200 75Hz
267 | ## 55 576i 200Hz H 1600x1200 85Hz
268 | ## 56 480p 240Hz 1600x1200 120Hz reduced blanking
269 | ## 57 480p 240Hz H 1680x1050 reduced blanking
270 | ## 58 480i 240Hz 1680x1050 60Hz
271 | ## 59 480i 240Hz H 1680x1050 75Hz
272 | ## 60 1680x1050 85Hz
273 | ## 61 1680x1050 120Hz reduced blanking
274 | ## 62 1792x1344 60Hz
275 | ## 63 1792x1344 75Hz
276 | ## 64 1792x1344 120Hz reduced blanking
277 | ## 65 1856x1392 60Hz
278 | ## 66 1856x1392 75Hz
279 | ## 67 1856x1392 120Hz reduced blanking
280 | ## 68 1920x1200 reduced blanking
281 | ## 69 1920x1200 60Hz
282 | ## 70 1920x1200 75Hz
283 | ## 71 1920x1200 85Hz
284 | ## 72 1920x1200 120Hz reduced blanking
285 | ## 73 1920x1440 60Hz
286 | ## 74 1920x1440 75Hz
287 | ## 75 1920x1440 120Hz reduced blanking
288 | ## 76 2560x1600 reduced blanking
289 | ## 77 2560x1600 60Hz
290 | ## 78 2560x1600 75Hz
291 | ## 79 2560x1600 85Hz
292 | ## 80 2560x1600 120Hz reduced blanking
293 | ## 81 1366x768 60Hz
294 | ## 82 1080p 60Hz
295 | ## 83 1600x900 reduced blanking
296 | ## 84 2048x1152 reduced blanking
297 | ## 85 720p 60Hz
298 | ## 86 1366x768 reduced blanking
299 | ##
300 | #hdmi_mode=1
301 |
302 | ## config_hdmi_boost
303 | ## configure the signal strength of the HDMI interface.
304 | ##
305 | ## Value Description
306 | ## -------------------------------------------------------------------------
307 | ## 0 (Default)
308 | ## 1
309 | ## 2
310 | ## 3
311 | ## 4 Try if you have interference issues with HDMI
312 | ## 5
313 | ## 6
314 | ## 7 Maximum
315 | ##
316 | #config_hdmi_boost=0
317 |
318 | ## hdmi_ignore_cec_init
319 | ## Doesn't sent initial active source message. Avoids bringing
320 | ## (CEC enabled) TV out of standby and channel switch when rebooting.
321 | ##
322 | ## Value Description
323 | ## -------------------------------------------------------------------------
324 | ## 0 Normal behaviour (Default)
325 | ## 1 Doesn't sent initial active source message
326 | ##
327 | #hdmi_ignore_cec_init=1
328 |
329 | ## hdmi_ignore_cec
330 | ## Pretends CEC is not supported at all by TV.
331 | ## No CEC functions will be supported.
332 | ##
333 | ## Value Description
334 | ## -------------------------------------------------------------------------
335 | ## 0 Normal behaviour (Default)
336 | ## 1 Pretend CEC is not supported by TV
337 | ##
338 | #hdmi_ignore_cec=1
339 |
340 | ################################################################################
341 | ## Overscan Video Settings
342 | ################################################################################
343 |
344 | ## Use the following to adjust overscan. Use positive numbers if console
345 | ## goes off screen, and negative if there is too much border
346 |
347 | ## overscan_left
348 | ## Number of pixels to skip on left
349 | ##
350 | #overscan_left=0
351 |
352 | ## overscan_right
353 | ## Number of pixels to skip on right
354 | ##
355 | #overscan_right=0
356 |
357 | ## overscan_top
358 | ## Number of pixels to skip on top
359 | ##
360 | #overscan_top=0
361 |
362 | ## overscan_bottom
363 | ## Number of pixels to skip on bottom
364 | ##
365 | #overscan_bottom=0
366 |
367 | ## disable_overscan
368 | ## Set to 1 to disable overscan
369 | ## Disable overscan if your display has a black border of unused pixels
370 | ## visible and your display can output without overscan
371 | ##
372 | ## Value Description
373 | ## -------------------------------------------------------------------------
374 | ## 0 Overscan Enabled (Default)
375 | ## 1 Overscan Disabled
376 | ##
377 | #disable_overscan=1
378 |
379 | ################################################################################
380 | ## Framebuffer Video Settings
381 | ################################################################################
382 |
383 | ## framebuffer_width
384 | ## Console framebuffer width in pixels. Default is display width minus
385 | ## overscan.
386 | ##
387 | #framebuffer_width=0
388 |
389 | ## framebuffer_height
390 | ## Console framebuffer height in pixels. Default is display height minus
391 | ## overscan.
392 | ##
393 | #framebuffer_height=0
394 |
395 | ## framebuffer_depth
396 | ## Console framebuffer depth in bits per pixel.
397 | ##
398 | ## Value Description
399 | ## -------------------------------------------------------------------------
400 | ## 8 Valid, but default RGB palette makes an unreadable screen
401 | ## 16 (Default)
402 | ## 24 Looks better but has corruption issues as of 2012/06/15
403 | ## 32 Has no corruption issues but needs framebuffer_ignore_alpha=1
404 | ## and shows the wrong colors as of 2012/06/15
405 | ##
406 | #framebuffer_depth=16
407 |
408 | ## framebuffer_ignore_alpha
409 | ## Set to 1 to disable alpha channel. Helps with 32bit.
410 | ##
411 | ## Value Description
412 | ## -------------------------------------------------------------------------
413 | ## 0 Enable Alpha Channel (Default)
414 | ## 1 Disable Alpha Channel
415 | ##
416 | #framebuffer_ignore_alpha=0
417 |
418 | ################################################################################
419 | ## General Video Settings
420 | ################################################################################
421 |
422 | ## display_rotate
423 | ## Rotate the display clockwise or flip the display.
424 | ## The 90 and 270 degrees rotation options require additional memory on GPU,
425 | ## so won't work with the 16M GPU split.
426 | ##
427 | ## Value Description
428 | ## -------------------------------------------------------------------------
429 | ## 0 0 degrees (Default)
430 | ## 1 90 degrees
431 | ## 2 180 degrees
432 | ## 3 270 degrees
433 | ## 0x10000 Horizontal flip
434 | ## 0x20000 Vertical flip
435 | ##
436 | #display_rotate=0
437 |
438 | ## dispmanx_offline
439 | ## Set to "1" to enable offline compositing
440 | ##
441 | ## Default 0
442 | ##
443 | #dispmanx_offline=0
444 |
445 | ################################################################################
446 | ## Licensed Codecs
447 | ##
448 | ## Hardware decoding of additional codecs can be enabled by purchasing a
449 | ## license that is locked to the CPU serial number of your Raspberry Pi.
450 | ##
451 | ## Up to 8 licenses per CODEC can be specified as a comma seperated list.
452 | ##
453 | ################################################################################
454 |
455 | ## decode_MPG2
456 | ## License key to allow hardware MPEG-2 decoding.
457 | ##
458 | #decode_MPG2=0x12345678
459 |
460 | ## decode_WVC1
461 | ## License key to allow hardware VC-1 decoding.
462 | ##
463 | #decode_WVC1=0x12345678
464 |
465 | ################################################################################
466 | ## Camera Settings
467 | ################################################################################
468 |
469 | ## start_x
470 | ## Set to "1" to enable the camera module.
471 | ##
472 | ## Enabling the camera requires gpu_mem option to be specified with a value
473 | ## of at least 128.
474 | ##
475 | ## Default 0
476 | ##
477 | #start_x=0
478 |
479 | ## disable_camera_led
480 | ## Turn off the red camera led when recording video or taking a still
481 | ## picture.
482 | ##
483 | ## Value Description
484 | ## -------------------------------------------------------------------------
485 | ## 0 LED enabled (Default)
486 | ## 1 LED disabled
487 | ##
488 | #disable_camera_led=1
489 |
490 | ################################################################################
491 | ## Test Settings
492 | ################################################################################
493 |
494 | ## test_mode
495 | ## Enable test sound/image during boot for manufacturing test.
496 | ##
497 | ## Value Description
498 | ## -------------------------------------------------------------------------
499 | ## 0 Disable Test Mod (Default)
500 | ## 1 Enable Test Mode
501 | ##
502 | #test_mode=0
503 |
504 | ################################################################################
505 | ## Memory Settings
506 | ################################################################################
507 |
508 | ## disable_l2cache
509 | ## Disable arm access to GPU's L2 cache. Needs corresponding L2 disabled
510 | ## kernel.
511 | ##
512 | ## Value Description
513 | ## -------------------------------------------------------------------------
514 | ## 0 Enable L2 Cache (Default)
515 | ## 1 Disable L2 cache
516 | ##
517 | #disable_l2cache=0
518 |
519 | ## gpu_mem
520 | ## GPU memory allocation in MB for all board revisions.
521 | ##
522 | ## Default 64
523 | ##
524 | #gpu_mem=128
525 |
526 | ## gpu_mem_256
527 | ## GPU memory allocation in MB for 256MB board revision.
528 | ## This option overrides gpu_mem.
529 | ##
530 | #gpu_mem_256=192
531 |
532 | ## gpu_mem_512
533 | ## GPU memory allocation in MB for 512MB board revision.
534 | ## This option overrides gpu_mem.
535 | ##
536 | #gpu_mem_512=448
537 |
538 | ## gpu_mem_1024
539 | ## GPU memory allocation in MB for 1024MB board revision.
540 | ## This option overrides gpu_mem.
541 | ##
542 | #gpu_mem_1024=944
543 |
544 | ## disable_pvt
545 | ## Disable adjusting the refresh rate of RAM every 500ms
546 | ## (measuring RAM temparature).
547 | ##
548 | #disable_pvt=1
549 |
550 | ################################################################################
551 | ## CMA - Dynamic Memory Split
552 | ##
553 | ## CMA enables dynamic management of the ARM and GPU memory split at runtime.
554 | ##
555 | ## The following options need to be in cmdline.txt for CMA to work:
556 | ## coherent_pool=6M smsc95xx.turbo_mode=N
557 | ##
558 | ################################################################################
559 |
560 | ## cma_lwm
561 | ## When GPU has less than cma_lwm (low water mark) memory available it
562 | ## will request some from ARM.
563 | ##
564 | #cma_lwm=16
565 |
566 | ## cma_hwm
567 | ## When GPU has more than cma_hwm (high water mark) memory available it
568 | ## will release some to ARM.
569 | ##
570 | #cma_hwm=32
571 |
572 | ################################################################################
573 | ## Boot Option Settings
574 | ################################################################################
575 |
576 | ## disable_commandline_tags
577 | ## Stop start.elf from filling in ATAGS (memory from 0x100) before
578 | ## launching kernel
579 | ##
580 | #disable_commandline_tags=0
581 |
582 | ## cmdline (string)
583 | ## Command line parameters. Can be used instead of cmdline.txt file
584 | ##
585 | #cmdline=""
586 |
587 | ## kernel (string)
588 | ## Alternative name to use when loading kernel.
589 | ##
590 | kernel=vmlinuz
591 |
592 | ## kernel_address
593 | ## Address to load kernel.img file at
594 | ##
595 | #kernel_address=0x00000000
596 |
597 | ## kernel_old
598 | ## Support loading old kernels
599 | ##
600 | ## Value Description
601 | ## -------------------------------------------------------------------------
602 | ## 0 Disabled (Default)
603 | ## 1 Load kernel at address 0x00000000
604 | ##
605 | #kernel_old=1
606 |
607 | ## ramfsfile (string)
608 | ## ramfs file to load
609 | ##
610 | #ramfsfile=""
611 |
612 | ## ramfsaddr
613 | ## Address to load ramfs file at
614 | ##
615 | #ramfsaddr=0x00000000
616 |
617 | ## initramfs (string address)
618 | ## ramfs file and address to load it at (it's like ramfsfile+ramfsaddr in
619 | ## one option).
620 | ##
621 | ## NOTE: this option uses different syntax than all other options - you
622 | ## should not use "=" character here.
623 | ##
624 | initramfs initrd.img followkernel
625 |
626 | ## device_tree_address
627 | ## Address to load device_tree at
628 | ##
629 | #device_tree_address=0x00000000
630 |
631 | ## init_uart_baud
632 | ## Initial uart baud rate.
633 | ##
634 | ## Default 115200
635 | ##
636 | #init_uart_baud=115200
637 |
638 | ## init_uart_clock
639 | ## Initial uart clock.
640 | ##
641 | ## Default 3000000 (3MHz)
642 | ##
643 | #init_uart_clock=3000000
644 |
645 | ## init_emmc_clock
646 | ## Initial emmc clock, increasing this can speedup your SD-card.
647 | ##
648 | ## Default 100000000 (100mhz)
649 | ##
650 | #init_emmc_clock=100000000
651 |
652 | ## boot_delay
653 | ## Wait for a given number of seconds in start.elf before loading
654 | ## kernel.img.
655 | ##
656 | ## delay = (1000 * boot_delay) + boot_delay_ms
657 | ##
658 | ## Default 1
659 | ##
660 | #boot_delay=0
661 |
662 | ## boot_delay_ms
663 | ## Wait for a given number of milliseconds in start.elf before loading
664 | ## kernel.img.
665 | ##
666 | ## delay = (1000 * boot_delay) + boot_delay_ms
667 | ##
668 | ## Default 0
669 | ##
670 | #boot_delay_ms=0
671 |
672 | ## avoid_safe_mode
673 | ## Adding a jumper between pins 5 & 6 of P1 enables a recovery Safe Mode.
674 | ## If pins 5 & 6 are used for connecting to external devices (e.g. GPIO),
675 | ## then this setting can be used to ensure Safe Mode is not triggered.
676 | ##
677 | ## Value Description
678 | ## -------------------------------------------------------------------------
679 | ## 0 Respect Safe Mode input (Default)
680 | ## 1 Ignore Safe Mode input
681 | ##
682 | #avoid_safe_mode=1
683 |
684 | ## disable_splash
685 | ## Avoids the rainbow splash screen on boot.
686 | ##
687 | ## Value Description
688 | ## -------------------------------------------------------------------------
689 | ## 0 Splash screen enabled (Default)
690 | ## 1 Splash screen disabled
691 | ##
692 | #disable_splash=1
693 |
694 | ################################################################################
695 | ## Overclocking Settings
696 | ##
697 | ## ARM, SDRAM and GPU each have their own PLLs and can have unrelated
698 | ## frequencies.
699 | ##
700 | ## The GPU core, h264, v3d and isp share a PLL, so need to have related
701 | ## frequencies.
702 | ## pll_freq = floor(2400 / (2 * core_freq)) * (2 * core_freq)
703 | ## gpu_freq = pll_freq / [even number]
704 | ##
705 | ## The effective gpu_freq is automatically rounded to nearest even integer, so
706 | ## asking for core_freq = 500 and gpu_freq = 300 will result in divisor of
707 | ## 2000/300 = 6.666 => 6 and so 333.33MHz.
708 | ##
709 | ##
710 | ## Standard Profiles:
711 | ## arm_freq core_freq sdram_freq over_voltage
712 | ## -------------------------------------------------------------------------
713 | ## None 700 250 400 0
714 | ## Modest 800 300 400 0
715 | ## Medium 900 333 450 2
716 | ## High 950 450 450 6
717 | ## Turbo 1000 500 500 6
718 | ##
719 | ################################################################################
720 |
721 | ## force_turbo
722 | ## Control the kernel "ondemand" governor. It has no effect if no overclock
723 | ## settings are specified.
724 | ## May set warrany bit.
725 | ##
726 | ## Value Description
727 | ## -------------------------------------------------------------------------
728 | ## 0 Enable dynamic clocks and voltage for the ARM core, GPU core and
729 | ## SDRAM (Default).
730 | ## Overclocking of h264_freq, v3d_freq and isp_freq is ignored.
731 | ## 1 Disable dynamic clocks and voltage for the ARM core, GPU core
732 | ## and SDRAM.
733 | ## Overclocking of h264_freq, v3d_freq and isp_freq is allowed.
734 | ##
735 | #force_turbo=0
736 |
737 | ## initial_turbo
738 | ## Enables turbo mode from boot for the given value in seconds (up to 60)
739 | ## or until cpufreq sets a frequency. Can help with sdcard corruption if
740 | ## overclocked.
741 | ##
742 | ## Default 0
743 | ##
744 | #initial_turbo=0
745 |
746 | ## temp_limit
747 | ## Overheat protection. Sets clocks and voltages to default when the SoC
748 | ## reaches this Celsius value.
749 | ## Setting this higher than default voids warranty.
750 | ##
751 | ## Default 85
752 | ##
753 | #temp_limit=85
754 |
755 | ## arm_freq
756 | ## Frequency of ARM in MHz.
757 | ##
758 | ## Default 700.
759 | ##
760 | #arm_freq=700
761 |
762 | ## arm_freq_min
763 | ## Minimum frequency of ARM in MHz (used for dynamic clocking).
764 | ##
765 | ## Default 700.
766 | ##
767 | #arm_freq_min=700
768 |
769 | ## gpu_freq
770 | ## Sets core_freq, h264_freq, isp_freq, v3d_freq together.
771 | ##
772 | ## Default 250.
773 | ##
774 | #gpu_freq=250
775 |
776 | ## core_freq
777 | ## Frequency of GPU processor core in MHz. It has an impact on ARM
778 | ## performance since it drives L2 cache.
779 | ##
780 | ## Default 250.
781 | ##
782 | #core_freq=250
783 |
784 | ## core_freq_min
785 | ## Minimum frequency of GPU processor core in MHz (used for dynamic
786 | ## clocking). It has an impact on ARM performance since it drives L2 cache.
787 | ##
788 | ## Default 250.
789 | ##
790 | #core_freq_min=250
791 |
792 | ## h264_freq
793 | ## Frequency of hardware video block in MHz.
794 | ##
795 | ## Default 250.
796 | ##
797 | #h264_freq=250
798 |
799 | ## isp_freq
800 | ## Frequency of image sensor pipeline block in MHz.
801 | ##
802 | ## Default 250.
803 | ##
804 | #isp_freq=250
805 |
806 | ## v3d_freq
807 | ## Frequency of 3D block in MHz.
808 | ##
809 | ## Default 250.
810 | ##
811 | #v3d_freq=250
812 |
813 | ## sdram_freq
814 | ## Frequency of SDRAM in MHz.
815 | ##
816 | ## Default 400.
817 | ##
818 | #sdram_freq=400
819 |
820 | ## sdram_freq_min
821 | ## Minimum frequency of SDRAM in MHz (used for dynamic clocking).
822 | ##
823 | ## Default 400.
824 | ##
825 | #sdram_freq_min=400
826 |
827 | ## avoid_pwm_pll
828 | ## Don't dedicate a pll to PWM audio. This will reduce analogue audio
829 | ## quality slightly. The spare PLL allows the core_freq to be set
830 | ## independently from the rest of the gpu allowing more control over
831 | ## overclocking.
832 | ##
833 | ## Value Description
834 | ## -------------------------------------------------------------------------
835 | ## 0 Linked core_freq (Default)
836 | ## 1 Unlinked core_freq
837 | ##
838 | #avoid_pwm_pll=1
839 |
840 | ################################################################################
841 | ## Voltage Settings
842 | ################################################################################
843 |
844 | ## current_limit_override
845 | ## Disables SMPS current limit protection. Can help if you are currently
846 | ## hitting a reboot failure when overclocking too high.
847 | ## May set warrany bit.
848 | ##
849 | #current_limit_override=0x5A000020
850 |
851 | ## over_voltage
852 | ## ARM/GPU core voltage adjust.
853 | ## May set warrany bit.
854 | ##
855 | ## Value Description
856 | ## -------------------------------------------------------------------------
857 | ## -16 0.8 V
858 | ## -15 0.825 V
859 | ## -14 0.85 V
860 | ## -13 0.875 V
861 | ## -12 0.9 V
862 | ## -11 0.925 V
863 | ## -10 0.95 V
864 | ## -9 0.975 V
865 | ## -8 1.0 V
866 | ## -7 1.025 V
867 | ## -6 1.05 V
868 | ## -5 1.075 V
869 | ## -4 1.1 V
870 | ## -3 1.125 V
871 | ## -2 1.15 V
872 | ## -1 1.175 V
873 | ## 0 1.2 V (Default)
874 | ## 1 1.225 V
875 | ## 2 1.25 V
876 | ## 3 1.275 V
877 | ## 4 1.3 V
878 | ## 5 1.325 V
879 | ## 6 1.35 V
880 | ## 7 1.375 V (requires force_turbo=1 or current_limit_override)
881 | ## 8 1.4 V (requires force_turbo=1 or current_limit_override)
882 | ##
883 | #over_voltage=0
884 |
885 | ## over_voltage_min
886 | ## Minimum ARM/GPU core voltage adjust (used for dynamic clocking).
887 | ##
888 | ## Value Description
889 | ## -------------------------------------------------------------------------
890 | ## -16 0.8 V
891 | ## -15 0.825 V
892 | ## -14 0.85 V
893 | ## -13 0.875 V
894 | ## -12 0.9 V
895 | ## -11 0.925 V
896 | ## -10 0.95 V
897 | ## -9 0.975 V
898 | ## -8 1.0 V
899 | ## -7 1.025 V
900 | ## -6 1.05 V
901 | ## -5 1.075 V
902 | ## -4 1.1 V
903 | ## -3 1.125 V
904 | ## -2 1.15 V
905 | ## -1 1.175 V
906 | ## 0 1.2 V (Default)
907 | ## 1 1.225 V
908 | ## 2 1.25 V
909 | ## 3 1.275 V
910 | ## 4 1.3 V
911 | ## 5 1.325 V
912 | ## 6 1.35 V
913 | ## 7 1.375 V (requires force_turbo=1)
914 | ## 8 1.4 V (requires force_turbo=1)
915 | ##
916 | #over_voltage_min=0
917 |
918 | ## over_voltage_sdram
919 | ## Sets over_voltage_sdram_c, over_voltage_sdram_i, over_voltage_sdram_p
920 | ## together
921 | ##
922 | ## Value Description
923 | ## -------------------------------------------------------------------------
924 | ## -16 0.8 V
925 | ## -15 0.825 V
926 | ## -14 0.85 V
927 | ## -13 0.875 V
928 | ## -12 0.9 V
929 | ## -11 0.925 V
930 | ## -10 0.95 V
931 | ## -9 0.975 V
932 | ## -8 1.0 V
933 | ## -7 1.025 V
934 | ## -6 1.05 V
935 | ## -5 1.075 V
936 | ## -4 1.1 V
937 | ## -3 1.125 V
938 | ## -2 1.15 V
939 | ## -1 1.175 V
940 | ## 0 1.2 V (Default)
941 | ## 1 1.225 V
942 | ## 2 1.25 V
943 | ## 3 1.275 V
944 | ## 4 1.3 V
945 | ## 5 1.325 V
946 | ## 6 1.35 V
947 | ## 7 1.375 V
948 | ## 8 1.4 V
949 | ##
950 | #over_voltage_sdram=0
951 |
952 | ## over_voltage_sdram_c
953 | ## SDRAM controller voltage adjust.
954 | ##
955 | ## Value Description
956 | ## -------------------------------------------------------------------------
957 | ## -16 0.8 V
958 | ## -15 0.825 V
959 | ## -14 0.85 V
960 | ## -13 0.875 V
961 | ## -12 0.9 V
962 | ## -11 0.925 V
963 | ## -10 0.95 V
964 | ## -9 0.975 V
965 | ## -8 1.0 V
966 | ## -7 1.025 V
967 | ## -6 1.05 V
968 | ## -5 1.075 V
969 | ## -4 1.1 V
970 | ## -3 1.125 V
971 | ## -2 1.15 V
972 | ## -1 1.175 V
973 | ## 0 1.2 V (Default)
974 | ## 1 1.225 V
975 | ## 2 1.25 V
976 | ## 3 1.275 V
977 | ## 4 1.3 V
978 | ## 5 1.325 V
979 | ## 6 1.35 V
980 | ## 7 1.375 V
981 | ## 8 1.4 V
982 | ##
983 | #over_voltage_sdram_c=0
984 |
985 | ## over_voltage_sdram_i
986 | ## SDRAM I/O voltage adjust.
987 | ##
988 | ## Value Description
989 | ## -------------------------------------------------------------------------
990 | ## -16 0.8 V
991 | ## -15 0.825 V
992 | ## -14 0.85 V
993 | ## -13 0.875 V
994 | ## -12 0.9 V
995 | ## -11 0.925 V
996 | ## -10 0.95 V
997 | ## -9 0.975 V
998 | ## -8 1.0 V
999 | ## -7 1.025 V
1000 | ## -6 1.05 V
1001 | ## -5 1.075 V
1002 | ## -4 1.1 V
1003 | ## -3 1.125 V
1004 | ## -2 1.15 V
1005 | ## -1 1.175 V
1006 | ## 0 1.2 V (Default)
1007 | ## 1 1.225 V
1008 | ## 2 1.25 V
1009 | ## 3 1.275 V
1010 | ## 4 1.3 V
1011 | ## 5 1.325 V
1012 | ## 6 1.35 V
1013 | ## 7 1.375 V
1014 | ## 8 1.4 V
1015 | ##
1016 | #over_voltage_sdram_i=0
1017 |
1018 | ## over_voltage_sdram_p
1019 | ## SDRAM phy voltage adjust.
1020 | ##
1021 | ## Value Description
1022 | ## -------------------------------------------------------------------------
1023 | ## -16 0.8 V
1024 | ## -15 0.825 V
1025 | ## -14 0.85 V
1026 | ## -13 0.875 V
1027 | ## -12 0.9 V
1028 | ## -11 0.925 V
1029 | ## -10 0.95 V
1030 | ## -9 0.975 V
1031 | ## -8 1.0 V
1032 | ## -7 1.025 V
1033 | ## -6 1.05 V
1034 | ## -5 1.075 V
1035 | ## -4 1.1 V
1036 | ## -3 1.125 V
1037 | ## -2 1.15 V
1038 | ## -1 1.175 V
1039 | ## 0 1.2 V (Default)
1040 | ## 1 1.225 V
1041 | ## 2 1.25 V
1042 | ## 3 1.275 V
1043 | ## 4 1.3 V
1044 | ## 5 1.325 V
1045 | ## 6 1.35 V
1046 | ## 7 1.375 V
1047 | ## 8 1.4 V
1048 | ##
1049 | #over_voltage_sdram_p=0
1050 |
1051 | ################################################################################
1052 | ## USB Power
1053 | ################################################################################
1054 |
1055 | ## max_usb_current
1056 | ## When set to 1, change the output current limit (for all 4 USB
1057 | ## ports combined) from 600mA to double that, 1200mA.
1058 | ##
1059 | ## This option is not available for Model A/B boards.
1060 | ##
1061 | ## Default 0.
1062 | ##
1063 | #max_usb_current=0
1064 |
1065 | ################################################################################
1066 | ## Base Device Tree Parameters
1067 | ################################################################################
1068 |
1069 | ## audio
1070 | ## Enable the onboard ALSA audio (loads snd_bcm2835)
1071 | ##
1072 | ## Default off.
1073 | ##
1074 | dtparam=audio=on
1075 |
1076 | ## i2c_arm
1077 | ## Enable the ARM's i2c interface
1078 | ##
1079 | ## Default off.
1080 | ##
1081 | #dtparam=i2c_arm=off
1082 |
1083 | ## i2c_vc
1084 | ## Enable the i2c interface
1085 | ##
1086 | ## Usually reserved for the VideoCore processor
1087 | ##
1088 | ## Default off.
1089 | ##
1090 | #dtparam=i2c_vc=off
1091 |
1092 | ## i2c_arm_baudrate
1093 | ## Set the baudrate of the ARM's i2c interface
1094 | ##
1095 | ## Default 100000.
1096 | ##
1097 | #dtparam=i2c_arm_baudrate=100000
1098 |
1099 | ## i2c_vc_baudrate
1100 | ## Set the baudrate of the VideoCore i2c interface
1101 | ##
1102 | ## Default 100000.
1103 | ##
1104 | #dtparam=i2c_vc_baudrate=100000
1105 |
1106 | ## i2s
1107 | ## Set to "on" to enable the i2s interface
1108 | ##
1109 | ## Default off.
1110 | ##
1111 | #dtparam=i2s=off
1112 |
1113 | ## spi
1114 | ## Set to "on" to enable the spi interfaces
1115 | ##
1116 | ## Default off.
1117 | ##
1118 | #dtparam=spi=off
1119 |
1120 | ## random
1121 | ## Set to "on" to enable the hardware random
1122 | ##
1123 | ## Default off.
1124 | ##
1125 | #dtparam=random=off
1126 |
1127 | ## uart0
1128 | ## Set to "off" to disable uart0
1129 | ##
1130 | ## Default on.
1131 | ##
1132 | #dtparam=uart0=on
1133 |
1134 | ## watchdog
1135 | ## Set to "on" to enable the hardware watchdog
1136 | ##
1137 | ## Default off.
1138 | ##
1139 | #dtparam=watchdog=off
1140 |
1141 | ## act_led_trigger
1142 | ## Choose which activity the LED tracks.
1143 | ##
1144 | ## Use "heartbeat" for a nice load indicator.
1145 | ##
1146 | ## Default mmc.
1147 | ##
1148 | #dtparam=act_led_trigger=mmc
1149 |
1150 | ## act_led_activelow
1151 | ## Set to "on" to invert the sense of the LED
1152 | ##
1153 | ## Default off.
1154 | ##
1155 | #dtparam=act_led_activelow=off
1156 |
1157 | ## act_led_gpio
1158 | ## Set which GPIO to use for the activity LED
1159 | ##
1160 | ## In case you want to connect it to an external device
1161 | ##
1162 | ## Default 16 on a non-Plus board, 47 on a Plus or Pi 2.
1163 | ##
1164 | #dtparam=act_led_gpio=47
1165 |
1166 | ## pwr_led_trigger
1167 | ## Choose which activity the LED tracks.
1168 | ##
1169 | ## Use "heartbeat" for a nice load indicator.
1170 | ##
1171 | ## Not available on Model A/B boards.
1172 | ##
1173 | ## Default mmc.
1174 | ##
1175 | #dtparam=pwr_led_trigger=mmc
1176 |
1177 | ## pwr_led_activelow
1178 | ## Set to "on" to invert the sense of the LED
1179 | ##
1180 | ## Not available on Model A/B boards.
1181 | ##
1182 | ## Default off.
1183 | ##
1184 | #dtparam=pwr_led_activelow=off
1185 |
1186 | ## pwr_led_gpio
1187 | ## Set which GPIO to use for the PWR LED
1188 | ##
1189 | ## In case you want to connect it to an external device
1190 | ##
1191 | ## Not available on Model A/B boards.
1192 | ##
1193 | ## Default 35.
1194 | ##
1195 | #dtparam=pwr_led_gpio=35
1196 |
1197 | # Uncomment this to enable the lirc-rpi module
1198 | #dtoverlay=lirc-rpi
1199 |
1200 | # Additional overlays and parameters are documented /boot/overlays/README
1201 |
--------------------------------------------------------------------------------
/etc/rc.local:
--------------------------------------------------------------------------------
1 | #!/bin/sh -e
2 | #
3 | # rc.local
4 | #
5 | # This script is executed at the end of each multiuser runlevel.
6 | # Make sure that the script will "exit 0" on success or any other
7 | # value on error.
8 | #
9 | # In order to enable or disable this script just change the execution
10 | # bits.
11 | #
12 | # By default this script does nothing.
13 |
14 | # Print the IP address
15 | _IP=$(hostname -I) || true
16 | if [ "$_IP" ]; then
17 | printf "My IP address is %s\n" "$_IP"
18 | fi
19 |
20 | sleep 7
21 | fbcp &
22 |
23 | exit 0
24 |
--------------------------------------------------------------------------------
/rotate.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | cur_dir=`pwd`
3 | if [ ! -f $cur_dir/.have_installed ]; then
4 | echo "Please install the LCD driver first"
5 | echo "Usage: sudo ./xxx-show. xxx: MHS35,LCD35,MPI3508 etc."
6 | exit
7 | fi
8 |
9 | print_info()
10 | {
11 | echo "Usage:sudo ./rotate.sh [0] [90] [180] [270] [360] [450]"
12 | echo "0-Screen rotation 0 degrees"
13 | echo "90-Screen rotation 90 degrees"
14 | echo "180-Screen rotation 180 degrees"
15 | echo "270-Screen rotation 270 degrees"
16 | echo "360-Screen flip horizontal(Valid only for HDMI screens)"
17 | echo "450-Screen flip vertical(Valid only for HDMI screens)"
18 | }
19 |
20 | if [ $# -eq 0 ]; then
21 | echo "Please input parameter:0,90,180,270,360,450"
22 | print_info
23 | exit
24 | elif [ $# -eq 1 ]; then
25 | if [ ! -n "$(echo $1| sed -n "/^[0-9]\+$/p")" ]; then
26 | echo "Invalid parameter"
27 | print_info
28 | exit
29 | else
30 | if [ $1 -ne 0 ] && [ $1 -ne 90 ] && [ $1 -ne 180 ] && [ $1 -ne 270 ] && [ $1 -ne 360 ] && [ $1 -ne 450 ]; then
31 | echo "Invalid parameter"
32 | print_info
33 | exit
34 | fi
35 | fi
36 | else
37 | echo "Too many parameters, only one parameter allowed"
38 | exit
39 | fi
40 |
41 | #get screen parameter
42 | tmp=`cat $cur_dir/.have_installed`
43 | output_type=`cat $cur_dir/.have_installed | awk -F ':' '{printf $1}'`
44 | touch_type=`cat $cur_dir/.have_installed | awk -F ':' '{printf $2}'`
45 | device_id=`cat $cur_dir/.have_installed | awk -F ':' '{printf $3}'`
46 | default_value=`cat $cur_dir/.have_installed | awk -F ':' '{printf $4}'`
47 | width=`cat $cur_dir/.have_installed | awk -F ':' '{printf $5}'`
48 | height=`cat $cur_dir/.have_installed | awk -F ':' '{printf $6}'`
49 |
50 | if [ $output_type = "hdmi" ]; then
51 | result=`grep -rn "^display_rotate=" /boot/firmware/config.txt | tail -n 1`
52 | line=`echo -n $result | awk -F: '{printf $1}'`
53 | str=`echo -n $result | awk -F: '{printf $NF}'`
54 | old_rotate_value=`echo -n $result | awk -F= '{printf $NF}'`
55 | if [ $old_rotate_value = "0x10000" ]; then
56 | old_rotate_value=4
57 | elif [ $old_rotate_value = "0x20000" ]; then
58 | old_rotate_value=5
59 | fi
60 | if [ $1 -eq 0 ] || [ $1 -eq 90 ] || [ $1 -eq 180 ] || [ $1 -eq 270 ]; then
61 | new_rotate_value=$[(($default_value+$1)%360)/90]
62 | else
63 | new_rotate_value=$[$1/90]
64 | fi
65 | elif [ $output_type = "gpio" ]; then
66 | result=`grep -rn "^dtoverlay=" /boot/firmware/config.txt | grep ":rotate=" | tail -n 1`
67 | line=`echo -n $result | awk -F: '{printf $1}'`
68 | str=`echo -n $result | awk -F: '{printf $NF}'`
69 | old_rotate_value=`echo -n $result | awk -F= '{printf $NF}'`
70 | if [ $1 -eq 0 ] || [ $1 -eq 90 ] || [ $1 -eq 180 ] || [ $1 -eq 270 ]; then
71 | new_rotate_value=$[($default_value+$1)%360]
72 | else
73 | echo "Invalid parameter: only for HDMI screens"
74 | exit
75 | fi
76 | else
77 | echo "Invalid output type"
78 | exit
79 | fi
80 |
81 | if [ $old_rotate_value -eq $new_rotate_value ]; then
82 | if [ $output_type = "hdmi" ]; then
83 | if [ $1 -eq 0 ] || [ $1 -eq 90 ] || [ $1 -eq 180 ] || [ $1 -eq 270 ]; then
84 | old_rotate_value=$[($old_rotate_value*90+360-$default_value)%360]
85 | else
86 | old_rotate_value=$[$old_rotate_value*90]
87 | fi
88 | elif [ $output_type = "gpio" ]; then
89 | old_rotate_value=$[($old_rotate_value+360-$default_value)%360]
90 | fi
91 | echo "Current rotate value is $old_rotate_value"
92 | exit
93 | fi
94 |
95 | #setting LCD rotate
96 | if [ $output_type = "hdmi" ]; then
97 | if [ $new_rotate_value -eq 4 ]; then
98 | sudo sed -i -e ''"$line"'s/'"$str"'/display_rotate=0x10000/' /boot/firmware/config.txt
99 | elif [ $new_rotate_value -eq 5 ]; then
100 | sudo sed -i -e ''"$line"'s/'"$str"'/display_rotate=0x20000/' /boot/firmware/config.txt
101 | else
102 | sudo sed -i -e ''"$line"'s/'"$str"'/display_rotate='"$new_rotate_value"'/' /boot/firmware/config.txt
103 | fi
104 | new_rotate_value=$[$new_rotate_value*90]
105 | elif [ $output_type = "gpio" ]; then
106 | sudo sed -i -e ''"$line"'s/'"$str"'/rotate='"$new_rotate_value"'/' /boot/firmware/config.txt
107 | resultr=`grep -rn "^hdmi_cvt" /boot/firmware/config.txt | tail -n 1 | awk -F' ' '{print $1,$2,$3}'`
108 | if [ -n "$resultr" ]; then
109 | liner=`echo -n $resultr | awk -F: '{printf $1}'`
110 | strr=`echo -n $resultr | awk -F: '{printf $2}'`
111 | if [ $new_rotate_value -eq $default_value ] || [ $new_rotate_value -eq $[($default_value+180+360)%360] ]; then
112 | sudo sed -i -e ''"$liner"'s/'"$strr"'/hdmi_cvt '"$width"' '"$height"'/' /boot/firmware/config.txt
113 | elif [ $new_rotate_value -eq $[($default_value-90+360)%360] ] || [ $new_rotate_value -eq $[($default_value+90+360)%360] ]; then
114 | sudo sed -i -e ''"$liner"'s/'"$strr"'/hdmi_cvt '"$height"' '"$width"'/' /boot/firmware/config.txt
115 | fi
116 | fi
117 | fi
118 |
119 | #setting touch screen rotate
120 | if [ $touch_type = "resistance" ]; then
121 | if [ $new_rotate_value -eq 0 ]; then
122 | cp $cur_dir/usr/99-calibration.conf-$device_id-0 /etc/X11/xorg.conf.d/99-calibration.conf
123 | echo "LCD rotate value is set to $1"
124 | elif [ $new_rotate_value -eq 90 ]; then
125 | cp $cur_dir/usr/99-calibration.conf-$device_id-90 /etc/X11/xorg.conf.d/99-calibration.conf
126 | echo "LCD rotate value is set to $1"
127 | elif [ $new_rotate_value -eq 180 ]; then
128 | cp $cur_dir/usr/99-calibration.conf-$device_id-180 /etc/X11/xorg.conf.d/99-calibration.conf
129 | echo "LCD rotate value is set to $1"
130 | elif [ $new_rotate_value -eq 270 ]; then
131 | cp $cur_dir/usr/99-calibration.conf-$device_id-270 /etc/X11/xorg.conf.d/99-calibration.conf
132 | echo "LCD rotate value is set to $1"
133 | elif [ $new_rotate_value -eq 360 ]; then
134 | cp $cur_dir/usr/99-calibration.conf-$device_id-FLIP-H /etc/X11/xorg.conf.d/99-calibration.conf
135 | echo "LCD rotate value is set to flip horizontally"
136 | elif [ $new_rotate_value -eq 450 ]; then
137 | cp $cur_dir/usr/99-calibration.conf-$device_id-FLIP-V /etc/X11/xorg.conf.d/99-calibration.conf
138 | echo "LCD rotate value is set to flip vertically"
139 | fi
140 | elif [ $touch_type = "capacity" ]; then
141 | if [ $new_rotate_value -eq 0 ]; then
142 | cp $cur_dir/usr/40-libinput.conf-0 /etc/X11/xorg.conf.d/40-libinput.conf
143 | echo "LCD rotate value is set to $1"
144 | elif [ $new_rotate_value -eq 90 ]; then
145 | cp $cur_dir/usr/40-libinput.conf-90 /etc/X11/xorg.conf.d/40-libinput.conf
146 | echo "LCD rotate value is set to $1"
147 | elif [ $new_rotate_value -eq 180 ]; then
148 | cp $cur_dir/usr/40-libinput.conf-180 /etc/X11/xorg.conf.d/40-libinput.conf
149 | echo "LCD rotate value is set to $1"
150 | elif [ $new_rotate_value -eq 270 ]; then
151 | cp $cur_dir/usr/40-libinput.conf-270 /etc/X11/xorg.conf.d/40-libinput.conf
152 | echo "LCD rotate value is set to $1"
153 | elif [ $new_rotate_value -eq 360 ]; then
154 | cp $cur_dir/usr/40-libinput.conf-FLIP-H /etc/X11/xorg.conf.d/40-libinput.conf
155 | echo "LCD rotate value is set to flip horizontally"
156 | elif [ $new_rotate_value -eq 450 ]; then
157 | cp $cur_dir/usr/40-libinput.conf-FLIP-V /etc/X11/xorg.conf.d/40-libinput.conf
158 | echo "LCD rotate value is set to flip vertically"
159 | fi
160 | else
161 | echo "Invalid touch type"
162 | exit
163 | fi
164 |
165 | sudo sync
166 | sudo sync
167 |
168 | echo "reboot now"
169 | sleep 1
170 | sudo reboot
171 |
172 |
--------------------------------------------------------------------------------
/system_backup.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | if [ ! -d "./.system_backup" ]; then
3 | sudo mkdir ./.system_backup
4 | fi
5 |
6 | sudo rm -rf ./.system_backup/*
7 |
8 | if [ -f /etc/X11/xorg.conf.d/99-calibration.conf ]; then
9 | sudo cp -rf /etc/X11/xorg.conf.d/99-calibration.conf ./.system_backup
10 | sudo rm -rf /etc/X11/xorg.conf.d/99-calibration.conf
11 | fi
12 |
13 | if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
14 | sudo cp -rf /etc/X11/xorg.conf.d/40-libinput.conf ./.system_backup
15 | sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
16 | fi
17 |
18 | if [ -d /etc/X11/xorg.conf.d ]; then
19 | sudo mkdir -p ./.system_backup/xorg.conf.d
20 | sudo rm -rf /etc/X11/xorg.conf.d
21 | fi
22 |
23 | result=`grep -rn "^dtoverlay=" /boot/firmware/config.txt | grep ":rotate=" | tail -n 1`
24 | if [ $? -eq 0 ]; then
25 | str=`echo -n $result | awk -F: '{printf $2}' | awk -F= '{printf $NF}'`
26 | if [ -f /boot/firmware/overlays/$str-overlay.dtb ]; then
27 | sudo cp -rf /boot/firmware/overlays/$str-overlay.dtb ./.system_backup
28 | sudo rm -rf /boot/firmware/overlays/$str-overlay.dtb
29 | fi
30 | if [ -f /boot/firmware/overlays/$str.dtbo ]; then
31 | sudo cp -rf /boot/firmware/overlays/$str.dtbo ./.system_backup
32 | sudo rm -rf /boot/firmware/overlays/$str.dtbo
33 | fi
34 | fi
35 |
36 | sudo cp -rf /boot/firmware/config.txt ./.system_backup
37 | sudo cp -rf ./boot/config-nomal.txt /boot/firmware/config.txt
38 | #sudo cp -rf /usr/share/X11/xorg.conf.d/99-fbturbo.conf ./.system_backup/
39 | #sudo cp -rf ./usr/99-fbturbo.conf-original /usr/share/X11/xorg.conf.d/99-fbturbo.conf
40 | #sudo cp -rf /boot/firmware/cmdline.txt ./.system_backup/
41 | #sudo cp -rf ./usr/cmdline.txt-original /boot/firmware/cmdline.txt
42 |
43 | if [ -f /usr/share/X11/xorg.conf.d/99-fbturbo.conf ];then
44 | sudo cp -rf /usr/share/X11/xorg.conf.d/99-fbturbo.conf ./.system_backup/
45 | sudo rm -rf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
46 | fi
47 |
48 | if [ -f /etc/rc.local ]; then
49 | sudo cp -rf /etc/rc.local ./.system_backup/
50 | sudo rm -rf /etc/rc.local
51 | fi
52 |
53 | if [ -f /etc/inittab ]; then
54 | sudo cp -rf /etc/inittab ./.system_backup
55 | sudo rm -rf /etc/inittab
56 | fi
57 |
58 | type fbcp > /dev/null 2>&1
59 | if [ $? -eq 0 ]; then
60 | sudo touch ./.system_backup/have_fbcp
61 | sudo rm -rf /usr/local/bin/fbcp
62 | fi
63 |
64 | #type cmake > /dev/null 2>&1
65 | #if [ $? -eq 0 ]; then
66 | #sudo touch ./.system_backup/have_cmake
67 | #sudo apt-get purge cmake -y 2> error_output.txt
68 | #result=`cat ./error_output.txt`
69 | #echo -e "\033[31m$result\033[0m"
70 | #fi
71 |
72 | if [ -f /usr/share/X11/xorg.conf.d/10-evdev.conf ]; then
73 | sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf ./.system_backup
74 | sudo dpkg -P xserver-xorg-input-evdev
75 | #sudo apt-get purge xserver-xorg-input-evdev -y 2> error_output.txt
76 | #result=`cat ./error_output.txt`
77 | #echo -e "\033[31m$result\033[0m"
78 | fi
79 |
80 | if [ -f /usr/share/X11/xorg.conf.d/45-evdev.conf ]; then
81 | sudo cp -rf /usr/share/X11/xorg.conf.d/45-evdev.conf ./.system_backup
82 | sudo rm -rf /usr/share/X11/xorg.conf.d/45-evdev.conf
83 | fi
84 |
85 | if [ -f ./.have_installed ]; then
86 | sudo cp -rf ./.have_installed ./.system_backup
87 | fi
88 |
--------------------------------------------------------------------------------
/system_config.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
4 |
5 | if [ $(getconf WORD_BIT) = '32' ] && [ $(getconf LONG_BIT) = '64' ] ; then
6 | hardware_arch=64
7 | else
8 | hardware_arch=32
9 | fi
10 |
11 | if [[ "$version" < "20.04" ]]; then
12 | if [ $hardware_arch -eq 32 ]; then
13 | sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
14 | elif [ $hardware_arch -eq 64 ]; then
15 | sudo cp -rf ./boot/config-nomal-64.txt ./boot/config.txt.bak
16 | fi
17 | elif [[ "$version" = "20.04" ]]; then
18 | if [ $hardware_arch -eq 32 ]; then
19 | sudo cp -rf ./boot/config-nomal-20.04.txt ./boot/config.txt.bak
20 | elif [ $hardware_arch -eq 64 ]; then
21 | sudo cp -rf ./boot/config-nomal-20.04-64.txt ./boot/config.txt.bak
22 | fi
23 | elif [[ "$version" = "20.10" ]]; then
24 | if [ $hardware_arch -eq 32 ]; then
25 | sudo cp -rf ./boot/config-nomal-20.10-32.txt ./boot/config.txt.bak
26 | elif [ $hardware_arch -eq 64 ]; then
27 | sudo cp -rf ./boot/config-nomal-20.10-64.txt ./boot/config.txt.bak
28 | fi
29 | elif [[ "$version" > "20.10" ]] && [[ "$version" < "22.04" ]]; then
30 | if [ $hardware_arch -eq 32 ]; then
31 | sudo cp -rf ./boot/config-nomal-20.10-32.txt ./boot/config.txt.bak
32 | elif [ $hardware_arch -eq 64 ]; then
33 | sudo cp -rf ./boot/config-nomal-20.10-64.txt ./boot/config.txt.bak
34 | fi
35 | elif [[ "$version" = "22.04" ]] || [[ "$version" > "22.04" ]]; then
36 | if [ $hardware_arch -eq 32 ]; then
37 | sudo cp -rf ./boot/config-nomal-22.04-32.txt ./boot/config.txt.bak
38 | elif [ $hardware_arch -eq 64 ]; then
39 | sudo cp -rf ./boot/config-nomal-22.04-64.txt ./boot/config.txt.bak
40 | fi
41 | fi
42 |
--------------------------------------------------------------------------------
/system_restore.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #Just finished the system, no need to restore
3 | if [ ! -d "./.system_backup" ]; then
4 | echo "The system is the original version and does not need to be restored"
5 | exit
6 | fi
7 |
8 | if [ -d /etc/X11/xorg.conf.d ]; then
9 | sudo rm -rf /etc/X11/xorg.conf.d
10 | fi
11 | if [ -d ./.system_backup/xorg.conf.d ]; then
12 | sudo cp -rf ./.system_backup/xorg.conf.d /etc/X11
13 | if [ -f ./.system_backup/99-calibration.conf ]; then
14 | sudo cp -rf ./.system_backup/99-calibration.conf /etc/X11/xorg.conf.d
15 | fi
16 | if [ -f ./.system_backup/40-libinput.conf ]; then
17 | sudo cp -rf ./.system_backup/40-libinput.conf /etc/X11/xorg.conf.d
18 | fi
19 | fi
20 |
21 | result=`grep -rn "^dtoverlay=" /boot/firmware/config.txt | grep ":rotate=" | tail -n 1`
22 | if [ $? -eq 0 ]; then
23 | str=`echo -n $result | awk -F: '{printf $2}' | awk -F= '{printf $NF}'`
24 | sudo rm -rf /boot/firmware/overlays/$str-overlay.dtb
25 | sudo rm -rf /boot/firmware/overlays/$str.dtbo
26 | fi
27 | ls -al ./.system_backup/*.dtb > /dev/null 2>&1 && sudo cp -rf ./.system_backup/*.dtb /boot/firmware/overlays/
28 | ls -al ./.system_backup/*.dtbo > /dev/null 2>&1 && sudo cp -rf ./.system_backup/*.dtbo /boot/firmware/overlays/
29 |
30 | #sudo cp -rf ./.system_backup/99-fbturbo.conf /usr/share/X11/xorg.conf.d
31 | #sudo cp -rf ./.system_backup/cmdline.txt /boot/firmware/
32 | sudo cp -rf ./.system_backup/config.txt /boot/firmware/
33 |
34 | if [ -f /usr/share/X11/xorg.conf.d/99-fbturbo.conf ]; then
35 | sudo rm -rf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
36 | fi
37 | if [ -f ./.system_backup/99-fbturbo.conf ]; then
38 | sudo cp -rf ./.system_backup/99-fbturbo.conf /usr/share/X11/xorg.conf.d/
39 | fi
40 |
41 | if [ -f /etc/rc.local ]; then
42 | sudo rm -rf /etc/rc.local
43 | fi
44 | if [ -f ./.system_backup/rc.local ]; then
45 | sudo cp -rf ./.system_backup/rc.local /etc
46 | fi
47 |
48 | if [ -f /etc/inittab ]; then
49 | sudo rm -rf /etc/inittab
50 | fi
51 | if [ -f ./.system_backup/inittab ]; then
52 | sudo cp -rf ./.system_backup/inittab /etc
53 | fi
54 |
55 | type fbcp > /dev/null 2>&1
56 | if [ $? -eq 0 ]; then
57 | sudo rm -rf /usr/local/bin/fbcp
58 | fi
59 | if [ -f ./.system_backup/have_fbcp ]; then
60 | sudo install ./rpi-fbcp/build/fbcp /usr/local/bin/fbcp
61 | fi
62 |
63 | #type cmake > /dev/null 2>&1
64 | #if [ $? -eq 0 ]; then
65 | #sudo apt-get purge cmake -y 2> error_output.txt
66 | #result=`cat ./error_output.txt`
67 | #echo -e "\033[31m$result\033[0m"
68 | #fi
69 | #if [ -f ./.system_backup/have_cmake ]; then
70 | #sudo apt-get install cmake -y 2> error_output.txt
71 | #result=`cat ./error_output.txt`
72 | #echo -e "\033[31m$result\033[0m"
73 | #fi
74 |
75 | if [ -f /usr/share/X11/xorg.conf.d/10-evdev.conf ]; then
76 | sudo dpkg -P xserver-xorg-input-evdev
77 | #sudo apt-get purge xserver-xorg-input-evdev -y 2> error_output.txt
78 | #result=`cat ./error_output.txt`
79 | #echo -e "\033[31m$result\033[0m"
80 | fi
81 | if [ -f ./.system_backup/10-evdev.conf ]; then
82 | wget --spider -q -o /dev/null --tries=1 -T 10 https://www.x.org
83 | if [ $? -eq 0 ]; then
84 | sudo apt-get install xserver-xorg-input-evdev -y
85 | else
86 | if [ $(getconf WORD_BIT) = '32' ] && [ $(getconf LONG_BIT) = '64' ] ; then
87 | sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1_arm64.deb
88 | else
89 | sudo dpkg -i -B ./xserver-xorg-input-evdev_2.10.5-1_armhf.deb
90 | fi
91 | fi
92 | #sudo apt-get install xserver-xorg-input-evdev -y 2> error_output.txt
93 | #result=`cat ./error_output.txt`
94 | #echo -e "\033[31m$result\033[0m"
95 | fi
96 |
97 | if [ -f /usr/share/X11/xorg.conf.d/45-evdev.conf ]; then
98 | sudo rm -rf /usr/share/X11/xorg.conf.d/45-evdev.conf
99 | fi
100 | if [ -f ./.system_backup/45-evdev.conf ]; then
101 | sudo cp -rf ./.system_backup/45-evdev.conf /usr/share/X11/xorg.conf.d
102 | fi
103 |
104 | if [ -f ./.have_installed ]; then
105 | sudo rm -rf ./.have_installed
106 | fi
107 | if [ -f ./.system_backup/.have_installed ]; then
108 | sudo cp -rf ./.system_backup/.have_installed ./
109 | fi
110 |
111 | sudo sync
112 | sudo sync
113 |
114 | echo "The system has been restored"
115 | echo "now reboot"
116 | sleep 1
117 |
118 | sudo reboot
119 |
--------------------------------------------------------------------------------
/usr/40-libinput.conf-0:
--------------------------------------------------------------------------------
1 | # Match on all types of devices but tablet devices and joysticks
2 | Section "InputClass"
3 | Identifier "libinput pointer catchall"
4 | MatchIsPointer "on"
5 | MatchDevicePath "/dev/input/event*"
6 | Driver "libinput"
7 | EndSection
8 |
9 | Section "InputClass"
10 | Identifier "libinput keyboard catchall"
11 | MatchIsKeyboard "on"
12 | MatchDevicePath "/dev/input/event*"
13 | Driver "libinput"
14 | EndSection
15 |
16 | Section "InputClass"
17 | Identifier "libinput touchpad catchall"
18 | MatchIsTouchpad "on"
19 | MatchDevicePath "/dev/input/event*"
20 | Driver "libinput"
21 | EndSection
22 |
23 | Section "InputClass"
24 | Identifier "libinput touchscreen catchall"
25 | MatchIsTouchscreen "on"
26 | Option "CalibrationMatrix" "1 0 0 0 1 0 0 0 1"
27 | MatchDevicePath "/dev/input/event*"
28 | Driver "libinput"
29 | EndSection
30 |
31 | Section "InputClass"
32 | Identifier "libinput tablet catchall"
33 | MatchIsTablet "on"
34 | MatchDevicePath "/dev/input/event*"
35 | Driver "libinput"
36 | EndSection
37 |
--------------------------------------------------------------------------------
/usr/40-libinput.conf-180:
--------------------------------------------------------------------------------
1 | # Match on all types of devices but tablet devices and joysticks
2 | Section "InputClass"
3 | Identifier "libinput pointer catchall"
4 | MatchIsPointer "on"
5 | MatchDevicePath "/dev/input/event*"
6 | Driver "libinput"
7 | EndSection
8 |
9 | Section "InputClass"
10 | Identifier "libinput keyboard catchall"
11 | MatchIsKeyboard "on"
12 | MatchDevicePath "/dev/input/event*"
13 | Driver "libinput"
14 | EndSection
15 |
16 | Section "InputClass"
17 | Identifier "libinput touchpad catchall"
18 | MatchIsTouchpad "on"
19 | MatchDevicePath "/dev/input/event*"
20 | Driver "libinput"
21 | EndSection
22 |
23 | Section "InputClass"
24 | Identifier "libinput touchscreen catchall"
25 | MatchIsTouchscreen "on"
26 | Option "CalibrationMatrix" "-1 0 1 0 -1 1 0 0 1"
27 | MatchDevicePath "/dev/input/event*"
28 | Driver "libinput"
29 | EndSection
30 |
31 | Section "InputClass"
32 | Identifier "libinput tablet catchall"
33 | MatchIsTablet "on"
34 | MatchDevicePath "/dev/input/event*"
35 | Driver "libinput"
36 | EndSection
37 |
--------------------------------------------------------------------------------
/usr/40-libinput.conf-270:
--------------------------------------------------------------------------------
1 | # Match on all types of devices but tablet devices and joysticks
2 | Section "InputClass"
3 | Identifier "libinput pointer catchall"
4 | MatchIsPointer "on"
5 | MatchDevicePath "/dev/input/event*"
6 | Driver "libinput"
7 | EndSection
8 |
9 | Section "InputClass"
10 | Identifier "libinput keyboard catchall"
11 | MatchIsKeyboard "on"
12 | MatchDevicePath "/dev/input/event*"
13 | Driver "libinput"
14 | EndSection
15 |
16 | Section "InputClass"
17 | Identifier "libinput touchpad catchall"
18 | MatchIsTouchpad "on"
19 | MatchDevicePath "/dev/input/event*"
20 | Driver "libinput"
21 | EndSection
22 |
23 | Section "InputClass"
24 | Identifier "libinput touchscreen catchall"
25 | MatchIsTouchscreen "on"
26 | Option "CalibrationMatrix" "0 -1 1 1 0 0 0 0 1"
27 | MatchDevicePath "/dev/input/event*"
28 | Driver "libinput"
29 | EndSection
30 |
31 | Section "InputClass"
32 | Identifier "libinput tablet catchall"
33 | MatchIsTablet "on"
34 | MatchDevicePath "/dev/input/event*"
35 | Driver "libinput"
36 | EndSection
37 |
--------------------------------------------------------------------------------
/usr/40-libinput.conf-90:
--------------------------------------------------------------------------------
1 | # Match on all types of devices but tablet devices and joysticks
2 | Section "InputClass"
3 | Identifier "libinput pointer catchall"
4 | MatchIsPointer "on"
5 | MatchDevicePath "/dev/input/event*"
6 | Driver "libinput"
7 | EndSection
8 |
9 | Section "InputClass"
10 | Identifier "libinput keyboard catchall"
11 | MatchIsKeyboard "on"
12 | MatchDevicePath "/dev/input/event*"
13 | Driver "libinput"
14 | EndSection
15 |
16 | Section "InputClass"
17 | Identifier "libinput touchpad catchall"
18 | MatchIsTouchpad "on"
19 | MatchDevicePath "/dev/input/event*"
20 | Driver "libinput"
21 | EndSection
22 |
23 | Section "InputClass"
24 | Identifier "libinput touchscreen catchall"
25 | MatchIsTouchscreen "on"
26 | Option "CalibrationMatrix" "0 1 0 -1 0 1 0 0 1"
27 | MatchDevicePath "/dev/input/event*"
28 | Driver "libinput"
29 | EndSection
30 |
31 | Section "InputClass"
32 | Identifier "libinput tablet catchall"
33 | MatchIsTablet "on"
34 | MatchDevicePath "/dev/input/event*"
35 | Driver "libinput"
36 | EndSection
37 |
--------------------------------------------------------------------------------
/usr/40-libinput.conf-FLIP-H:
--------------------------------------------------------------------------------
1 | # Match on all types of devices but tablet devices and joysticks
2 | Section "InputClass"
3 | Identifier "libinput pointer catchall"
4 | MatchIsPointer "on"
5 | MatchDevicePath "/dev/input/event*"
6 | Driver "libinput"
7 | EndSection
8 |
9 | Section "InputClass"
10 | Identifier "libinput keyboard catchall"
11 | MatchIsKeyboard "on"
12 | MatchDevicePath "/dev/input/event*"
13 | Driver "libinput"
14 | EndSection
15 |
16 | Section "InputClass"
17 | Identifier "libinput touchpad catchall"
18 | MatchIsTouchpad "on"
19 | MatchDevicePath "/dev/input/event*"
20 | Driver "libinput"
21 | EndSection
22 |
23 | Section "InputClass"
24 | Identifier "libinput touchscreen catchall"
25 | MatchIsTouchscreen "on"
26 | Option "CalibrationMatrix" "-1 0 1 0 1 0 0 0 1"
27 | MatchDevicePath "/dev/input/event*"
28 | Driver "libinput"
29 | EndSection
30 |
31 | Section "InputClass"
32 | Identifier "libinput tablet catchall"
33 | MatchIsTablet "on"
34 | MatchDevicePath "/dev/input/event*"
35 | Driver "libinput"
36 | EndSection
37 |
--------------------------------------------------------------------------------
/usr/40-libinput.conf-FLIP-V:
--------------------------------------------------------------------------------
1 | # Match on all types of devices but tablet devices and joysticks
2 | Section "InputClass"
3 | Identifier "libinput pointer catchall"
4 | MatchIsPointer "on"
5 | MatchDevicePath "/dev/input/event*"
6 | Driver "libinput"
7 | EndSection
8 |
9 | Section "InputClass"
10 | Identifier "libinput keyboard catchall"
11 | MatchIsKeyboard "on"
12 | MatchDevicePath "/dev/input/event*"
13 | Driver "libinput"
14 | EndSection
15 |
16 | Section "InputClass"
17 | Identifier "libinput touchpad catchall"
18 | MatchIsTouchpad "on"
19 | MatchDevicePath "/dev/input/event*"
20 | Driver "libinput"
21 | EndSection
22 |
23 | Section "InputClass"
24 | Identifier "libinput touchscreen catchall"
25 | MatchIsTouchscreen "on"
26 | Option "CalibrationMatrix" "1 0 0 0 -1 1 0 0 1"
27 | MatchDevicePath "/dev/input/event*"
28 | Driver "libinput"
29 | EndSection
30 |
31 | Section "InputClass"
32 | Identifier "libinput tablet catchall"
33 | MatchIsTablet "on"
34 | MatchDevicePath "/dev/input/event*"
35 | Driver "libinput"
36 | EndSection
37 |
--------------------------------------------------------------------------------
/usr/40-libinput.conf-HDMI7B:
--------------------------------------------------------------------------------
1 | # Match on all types of devices but tablet devices and joysticks
2 | Section "InputClass"
3 | Identifier "libinput pointer catchall"
4 | MatchIsPointer "on"
5 | MatchDevicePath "/dev/input/event*"
6 | Driver "libinput"
7 | EndSection
8 |
9 | Section "InputClass"
10 | Identifier "libinput keyboard catchall"
11 | MatchIsKeyboard "on"
12 | MatchDevicePath "/dev/input/event*"
13 | Driver "libinput"
14 | EndSection
15 |
16 | Section "InputClass"
17 | Identifier "libinput touchpad catchall"
18 | MatchIsTouchpad "on"
19 | MatchDevicePath "/dev/input/event*"
20 | Driver "libinput"
21 | EndSection
22 |
23 | Section "InputClass"
24 | Identifier "libinput touchscreen catchall"
25 | MatchIsTouchscreen "on"
26 | Option "CalibrationMatrix" "1 0 0 0 1 0 0 0 1"
27 | MatchDevicePath "/dev/input/event*"
28 | Driver "libinput"
29 | EndSection
30 |
31 | Section "InputClass"
32 | Identifier "libinput tablet catchall"
33 | MatchIsTablet "on"
34 | MatchDevicePath "/dev/input/event*"
35 | Driver "libinput"
36 | EndSection
37 |
--------------------------------------------------------------------------------
/usr/40-libinput.conf-HDMI7C:
--------------------------------------------------------------------------------
1 | # Match on all types of devices but tablet devices and joysticks
2 | Section "InputClass"
3 | Identifier "libinput pointer catchall"
4 | MatchIsPointer "on"
5 | MatchDevicePath "/dev/input/event*"
6 | Driver "libinput"
7 | EndSection
8 |
9 | Section "InputClass"
10 | Identifier "libinput keyboard catchall"
11 | MatchIsKeyboard "on"
12 | MatchDevicePath "/dev/input/event*"
13 | Driver "libinput"
14 | EndSection
15 |
16 | Section "InputClass"
17 | Identifier "libinput touchpad catchall"
18 | MatchIsTouchpad "on"
19 | MatchDevicePath "/dev/input/event*"
20 | Driver "libinput"
21 | EndSection
22 |
23 | Section "InputClass"
24 | Identifier "libinput touchscreen catchall"
25 | MatchIsTouchscreen "on"
26 | Option "CalibrationMatrix" "1 0 0 0 1 0 0 0 1"
27 | MatchDevicePath "/dev/input/event*"
28 | Driver "libinput"
29 | EndSection
30 |
31 | Section "InputClass"
32 | Identifier "libinput tablet catchall"
33 | MatchIsTablet "on"
34 | MatchDevicePath "/dev/input/event*"
35 | Driver "libinput"
36 | EndSection
37 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-24:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "3639 145 192 3794"
5 | Option "SwapAxes" "1"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-28:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "3770 171 239 3892"
5 | Option "SwapAxes" "1"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-32-0:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "155 3865 115 3700"
5 | Option "SwapAxes" "0"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-32-180:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "3865 155 3700 115"
5 | Option "SwapAxes" "0"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-32-270:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "115 3700 3865 155"
5 | Option "SwapAxes" "1"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-32-90:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "3700 115 155 3865"
5 | Option "SwapAxes" "1"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-35-0:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "268 3880 227 3936"
5 | Option "SwapAxes" "0"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-35-180:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "3880 268 3936 227"
5 | Option "SwapAxes" "0"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-35-270:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "227 3936 3880 268"
5 | Option "SwapAxes" "1"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-35-90:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "3936 227 268 3880"
5 | Option "SwapAxes" "1"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-3508-0:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "3945 233 3939 183"
5 | Option "SwapAxes" "1"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-3508-180:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "233 3945 183 3939"
5 | Option "SwapAxes" "1"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-3508-270:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "183 3939 3945 233"
5 | Option "SwapAxes" "0"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-3508-90:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "3939 183 233 3945"
5 | Option "SwapAxes" "0"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-3508-FLIP-H:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "233 3945 3939 183"
5 | Option "SwapAxes" "1"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-3508-FLIP-V:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "3945 233 183 3939"
5 | Option "SwapAxes" "1"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-397-0:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "137 3912 83 4023"
5 | Option "SwapAxes" "0"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-397-180:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "3912 137 4023 83"
5 | Option "SwapAxes" "0"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-397-270:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "4023 83 137 3912"
5 | Option "SwapAxes" "1"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-397-90:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "83 4023 3912 137"
5 | Option "SwapAxes" "1"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-397-FLIP-H:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "3912 137 83 4023"
5 | Option "SwapAxes" "0"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-397-FLIP-V:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "137 3912 4023 83"
5 | Option "SwapAxes" "0"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-43:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "535 3860 254 3883"
5 | Option "SwapAxes" "0"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-5-0:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "140 3951 261 3998"
5 | Option "SwapAxes" "0"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-5-180:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "3951 140 3998 261"
5 | Option "SwapAxes" "0"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-5-270:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "3998 261 140 3951"
5 | Option "SwapAxes" "1"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-5-90:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "261 3998 3951 140"
5 | Option "SwapAxes" "1"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-5-FLIP-H:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "3951 140 261 3998"
5 | Option "SwapAxes" "0"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-5-FLIP-V:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "140 3951 3998 261"
5 | Option "SwapAxes" "0"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-HDMI7C:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "深圳市全动电子技术有限公司 ByQDtech 触控USB鼠标"
4 | Option "Calibration" "0 1024 0 600"
5 | Option "SwapAxes" "0"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-mhs24:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "3697 135 136 3839"
5 | Option "SwapAxes" "1"
6 | Option "EmulateThirdButton" "1"
7 | Option "EmulateThirdButtonTimeout" "1000"
8 | Option "EmulateThirdButtonMoveThreshold" "300"
9 | EndSection
10 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-mhs32-0:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "3901 158 212 3713"
5 | Option "SwapAxes" "0"
6 | Option "EmulateThirdButton" "1"
7 | Option "EmulateThirdButtonTimeout" "1000"
8 | Option "EmulateThirdButtonMoveThreshold" "300"
9 | EndSection
10 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-mhs32-180:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "158 3901 3713 212"
5 | Option "SwapAxes" "0"
6 | Option "EmulateThirdButton" "1"
7 | Option "EmulateThirdButtonTimeout" "1000"
8 | Option "EmulateThirdButtonMoveThreshold" "300"
9 | EndSection
10 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-mhs32-270:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "212 3713 158 3901"
5 | Option "SwapAxes" "1"
6 | Option "EmulateThirdButton" "1"
7 | Option "EmulateThirdButtonTimeout" "1000"
8 | Option "EmulateThirdButtonMoveThreshold" "300"
9 | EndSection
10 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-mhs32-90:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "3713 212 3901 158"
5 | Option "SwapAxes" "1"
6 | Option "EmulateThirdButton" "1"
7 | Option "EmulateThirdButtonTimeout" "1000"
8 | Option "EmulateThirdButtonMoveThreshold" "300"
9 | EndSection
10 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-mhs35-0:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "268 3880 227 3936"
5 | Option "SwapAxes" "0"
6 | Option "EmulateThirdButton" "1"
7 | Option "EmulateThirdButtonTimeout" "1000"
8 | Option "EmulateThirdButtonMoveThreshold" "300"
9 | EndSection
10 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-mhs35-180:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "3880 268 3936 227"
5 | Option "SwapAxes" "0"
6 | Option "EmulateThirdButton" "1"
7 | Option "EmulateThirdButtonTimeout" "1000"
8 | Option "EmulateThirdButtonMoveThreshold" "300"
9 | EndSection
10 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-mhs35-270:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "227 3936 3880 268"
5 | Option "SwapAxes" "1"
6 | Option "EmulateThirdButton" "1"
7 | Option "EmulateThirdButtonTimeout" "1000"
8 | Option "EmulateThirdButtonMoveThreshold" "300"
9 | EndSection
10 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-mhs35-90:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "3936 227 268 3880"
5 | Option "SwapAxes" "1"
6 | Option "EmulateThirdButton" "1"
7 | Option "EmulateThirdButtonTimeout" "1000"
8 | Option "EmulateThirdButtonMoveThreshold" "300"
9 | EndSection
10 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-mhs395-0:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "268 3880 227 3936"
5 | Option "SwapAxes" "0"
6 | Option "EmulateThirdButton" "1"
7 | Option "EmulateThirdButtonTimeout" "1000"
8 | Option "EmulateThirdButtonMoveThreshold" "300"
9 | EndSection
10 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-mhs395-180:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "3880 268 3936 227"
5 | Option "SwapAxes" "0"
6 | Option "EmulateThirdButton" "1"
7 | Option "EmulateThirdButtonTimeout" "1000"
8 | Option "EmulateThirdButtonMoveThreshold" "300"
9 | EndSection
10 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-mhs395-270:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "227 3936 3880 268"
5 | Option "SwapAxes" "1"
6 | Option "EmulateThirdButton" "1"
7 | Option "EmulateThirdButtonTimeout" "1000"
8 | Option "EmulateThirdButtonMoveThreshold" "300"
9 | EndSection
10 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-mhs395-90:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "3936 227 268 3880"
5 | Option "SwapAxes" "1"
6 | Option "EmulateThirdButton" "1"
7 | Option "EmulateThirdButtonTimeout" "1000"
8 | Option "EmulateThirdButtonMoveThreshold" "300"
9 | EndSection
10 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-mis35-0:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "141 3838 264 3955"
5 | Option "SwapAxes" "0"
6 | Option "EmulateThirdButton" "1"
7 | Option "EmulateThirdButtonTimeout" "1000"
8 | Option "EmulateThirdButtonMoveThreshold" "300"
9 | EndSection
10 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-mis35-180:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "3838 141 3955 264"
5 | Option "SwapAxes" "0"
6 | Option "EmulateThirdButton" "1"
7 | Option "EmulateThirdButtonTimeout" "1000"
8 | Option "EmulateThirdButtonMoveThreshold" "300"
9 | EndSection
10 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-mis35-270:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "264 3955 3838 141"
5 | Option "SwapAxes" "1"
6 | Option "EmulateThirdButton" "1"
7 | Option "EmulateThirdButtonTimeout" "1000"
8 | Option "EmulateThirdButtonMoveThreshold" "300"
9 | EndSection
10 |
--------------------------------------------------------------------------------
/usr/99-calibration.conf-mis35-90:
--------------------------------------------------------------------------------
1 | Section "InputClass"
2 | Identifier "calibration"
3 | MatchProduct "ADS7846 Touchscreen"
4 | Option "Calibration" "3955 264 141 3838"
5 | Option "SwapAxes" "1"
6 | Option "EmulateThirdButton" "1"
7 | Option "EmulateThirdButtonTimeout" "1000"
8 | Option "EmulateThirdButtonMoveThreshold" "300"
9 | EndSection
10 |
--------------------------------------------------------------------------------
/usr/99-fbturbo-20.04.conf:
--------------------------------------------------------------------------------
1 | # This is a minimal sample config file, which can be copied to
2 | # /etc/X11/xorg.conf in order to make the Xorg server pick up
3 | # and load xf86-video-fbturbo driver installed in the system.
4 | #
5 | # When troubleshooting, check /var/log/Xorg.0.log for the debugging
6 | # output and error messages.
7 | # Run "man fbturbo" to get additional information about the extra
8 | # configuration options for tuning the driver.
9 |
10 | Section "Device"
11 | Identifier "Allwinner A10/A13/A20 FBDEV"
12 | Driver "fbturbo"
13 | Option "fbdev" "/dev/fb2"
14 |
15 | Option "SwapbuffersWait" "true"
16 | EndSection
17 |
--------------------------------------------------------------------------------
/usr/99-fbturbo-fbcp.conf:
--------------------------------------------------------------------------------
1 | # This is a minimal sample config file, which can be copied to
2 | # /etc/X11/xorg.conf in order to make the Xorg server pick up
3 | # and load xf86-video-fbturbo driver installed in the system.
4 | #
5 | # When troubleshooting, check /var/log/Xorg.0.log for the debugging
6 | # output and error messages.
7 | # Run "man fbturbo" to get additional information about the extra
8 | # configuration options for tuning the driver.
9 |
10 | Section "Device"
11 | Identifier "Allwinner A10/A13/A20 FBDEV"
12 | Driver "fbturbo"
13 | Option "fbdev" "/dev/fb0"
14 |
15 | Option "SwapbuffersWait" "true"
16 | EndSection
17 |
--------------------------------------------------------------------------------
/usr/99-fbturbo.conf:
--------------------------------------------------------------------------------
1 | # This is a minimal sample config file, which can be copied to
2 | # /etc/X11/xorg.conf in order to make the Xorg server pick up
3 | # and load xf86-video-fbturbo driver installed in the system.
4 | #
5 | # When troubleshooting, check /var/log/Xorg.0.log for the debugging
6 | # output and error messages.
7 | # Run "man fbturbo" to get additional information about the extra
8 | # configuration options for tuning the driver.
9 |
10 | Section "Device"
11 | Identifier "Allwinner A10/A13/A20 FBDEV"
12 | Driver "fbturbo"
13 | Option "fbdev" "/dev/fb1"
14 |
15 | Option "SwapbuffersWait" "true"
16 | EndSection
17 |
--------------------------------------------------------------------------------
/usr/99-fbturbo.conf-HDMI:
--------------------------------------------------------------------------------
1 | # This is a minimal sample config file, which can be copied to
2 | # /etc/X11/xorg.conf in order to make the Xorg server pick up
3 | # and load xf86-video-fbturbo driver installed in the system.
4 | #
5 | # When troubleshooting, check /var/log/Xorg.0.log for the debugging
6 | # output and error messages.
7 | # Run "man fbturbo" to get additional information about the extra
8 | # configuration options for tuning the driver.
9 |
10 | Section "Device"
11 | Identifier "Allwinner A10/A13/A20 FBDEV"
12 | Driver "fbturbo"
13 | Option "fbdev" "/dev/fb0"
14 |
15 | Option "SwapbuffersWait" "true"
16 | EndSection
17 |
--------------------------------------------------------------------------------
/usr/99-fbturbo.conf-original:
--------------------------------------------------------------------------------
1 | # This is a minimal sample config file, which can be copied to
2 | # /etc/X11/xorg.conf in order to make the Xorg server pick up
3 | # and load xf86-video-fbturbo driver installed in the system.
4 | #
5 | # When troubleshooting, check /var/log/Xorg.0.log for the debugging
6 | # output and error messages.
7 | #
8 | # Run "man fbturbo" to get additional information about the extra
9 | # configuration options for tuning the driver.
10 |
11 | Section "Device"
12 | Identifier "Allwinner A10/A13 FBDEV"
13 | Driver "fbturbo"
14 | Option "fbdev" "/dev/fb0"
15 |
16 | Option "SwapbuffersWait" "true"
17 | EndSection
18 |
--------------------------------------------------------------------------------
/usr/bcm2709-rpi-2-b.dtb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lcdwiki/LCD-show-ubuntu/7e60ee85355db65d87236cf47d53cad3c950c19d/usr/bcm2709-rpi-2-b.dtb
--------------------------------------------------------------------------------
/usr/bcm2710-rpi-3-b.dtb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lcdwiki/LCD-show-ubuntu/7e60ee85355db65d87236cf47d53cad3c950c19d/usr/bcm2710-rpi-3-b.dtb
--------------------------------------------------------------------------------
/usr/cmdline.txt:
--------------------------------------------------------------------------------
1 | dwc_otg.lpm_enable=0 console=tty1 console=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait fbcon=map:10 fbcon=font:ProFont6x11 logo.nologo
2 |
--------------------------------------------------------------------------------
/usr/cmdline.txt-noobs:
--------------------------------------------------------------------------------
1 | dwc_otg.lpm_enable=0 console=tty1 console=ttyAMA0,115200 root=/dev/mmcblk0p7 rootfstype=ext4 elevator=deadline rootwait fbcon=map:10 fbcon=font:ProFont6x11 logo.nologo
2 |
--------------------------------------------------------------------------------
/usr/cmdline.txt-original:
--------------------------------------------------------------------------------
1 | net.ifnames=0 dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=LABEL=writable rootfstype=ext4 elevator=cfq fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
2 |
--------------------------------------------------------------------------------
/usr/inittab:
--------------------------------------------------------------------------------
1 | # /etc/inittab: init(8) configuration.
2 | # $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $
3 |
4 | # The default runlevel.
5 | id:2:initdefault:
6 |
7 | # Boot-time system configuration/initialization script.
8 | # This is run first except when booting in emergency (-b) mode.
9 | si::sysinit:/etc/init.d/rcS
10 |
11 | # What to do in single-user mode.
12 | ~~:S:wait:/sbin/sulogin
13 |
14 | # /etc/init.d executes the S and K scripts upon change
15 | # of runlevel.
16 | #
17 | # Runlevel 0 is halt.
18 | # Runlevel 1 is single-user.
19 | # Runlevels 2-5 are multi-user.
20 | # Runlevel 6 is reboot.
21 |
22 | l0:0:wait:/etc/init.d/rc 0
23 | l1:1:wait:/etc/init.d/rc 1
24 | l2:2:wait:/etc/init.d/rc 2
25 | l3:3:wait:/etc/init.d/rc 3
26 | l4:4:wait:/etc/init.d/rc 4
27 | l5:5:wait:/etc/init.d/rc 5
28 | l6:6:wait:/etc/init.d/rc 6
29 | # Normally not reached, but fallthrough in case of emergency.
30 | z6:6:respawn:/sbin/sulogin
31 |
32 | # What to do when CTRL-ALT-DEL is pressed.
33 | ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
34 |
35 | # Action on special keypress (ALT-UpArrow).
36 | #kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work."
37 |
38 | # What to do when the power fails/returns.
39 | pf::powerwait:/etc/init.d/powerfail start
40 | pn::powerfailnow:/etc/init.d/powerfail now
41 | po::powerokwait:/etc/init.d/powerfail stop
42 |
43 | # /sbin/getty invocations for the runlevels.
44 | #
45 | # The "id" field MUST be the same as the last
46 | # characters of the device (after "tty").
47 | #
48 | # Format:
49 | # :::
50 | #
51 | # Note that on most Debian systems tty7 is used by the X Window System,
52 | # so if you want to add more getty's go ahead but skip tty7 if you run X.
53 | #
54 | 1:2345:respawn:/sbin/getty --noclear 38400 tty1
55 | 2:23:respawn:/sbin/getty 38400 tty2
56 | 3:23:respawn:/sbin/getty 38400 tty3
57 | 4:23:respawn:/sbin/getty 38400 tty4
58 | 5:23:respawn:/sbin/getty 38400 tty5
59 | 6:23:respawn:/sbin/getty 38400 tty6
60 |
61 | # Example how to put a getty on a serial line (for a terminal)
62 | #
63 | #T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
64 | #T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100
65 |
66 | # Example how to put a getty on a modem line.
67 | #
68 | #T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3
69 |
70 |
71 | #Spawn a getty on Raspberry Pi serial line
72 | T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
73 |
--------------------------------------------------------------------------------
/usr/mhs24-overlay.dtb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lcdwiki/LCD-show-ubuntu/7e60ee85355db65d87236cf47d53cad3c950c19d/usr/mhs24-overlay.dtb
--------------------------------------------------------------------------------
/usr/mhs32-overlay.dtb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lcdwiki/LCD-show-ubuntu/7e60ee85355db65d87236cf47d53cad3c950c19d/usr/mhs32-overlay.dtb
--------------------------------------------------------------------------------
/usr/mhs35-overlay-20.10.dtb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lcdwiki/LCD-show-ubuntu/7e60ee85355db65d87236cf47d53cad3c950c19d/usr/mhs35-overlay-20.10.dtb
--------------------------------------------------------------------------------
/usr/mhs35-overlay.dtb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lcdwiki/LCD-show-ubuntu/7e60ee85355db65d87236cf47d53cad3c950c19d/usr/mhs35-overlay.dtb
--------------------------------------------------------------------------------
/usr/mhs35b-overlay.dtb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lcdwiki/LCD-show-ubuntu/7e60ee85355db65d87236cf47d53cad3c950c19d/usr/mhs35b-overlay.dtb
--------------------------------------------------------------------------------
/usr/mhs395-overlay-20.10.dtb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lcdwiki/LCD-show-ubuntu/7e60ee85355db65d87236cf47d53cad3c950c19d/usr/mhs395-overlay-20.10.dtb
--------------------------------------------------------------------------------
/usr/mhs395-overlay.dtb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lcdwiki/LCD-show-ubuntu/7e60ee85355db65d87236cf47d53cad3c950c19d/usr/mhs395-overlay.dtb
--------------------------------------------------------------------------------
/usr/mis35-overlay-20.10.dtb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lcdwiki/LCD-show-ubuntu/7e60ee85355db65d87236cf47d53cad3c950c19d/usr/mis35-overlay-20.10.dtb
--------------------------------------------------------------------------------
/usr/mis35-overlay.dtb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lcdwiki/LCD-show-ubuntu/7e60ee85355db65d87236cf47d53cad3c950c19d/usr/mis35-overlay.dtb
--------------------------------------------------------------------------------
/usr/modules-HDMI:
--------------------------------------------------------------------------------
1 | # /etc/modules: kernel modules to load at boot time.
2 | #
3 | # This file contains the names of kernel modules that should be loaded
4 | # at boot time, one per line. Lines beginning with "#" are ignored.
5 | # Parameters can be specified after the module name.
6 |
7 | snd-bcm2835
8 | i2c-bcm2708
9 | i2c-dev
10 |
11 | #flexfb width=320 height=480 regwidth=16 init=-1,0xb0,0x0,-1,0x11,-2,250,-1,0x3A,0x55,-1,0xC2,0x44,-1,0xC5,0x00,0x00,0x00,0x00,-1,0xE0,0x0F,0x1F,0x1C,0x0C,0x0F,0x08,0x48,0x98,0x37,0x0A,0x13,0x04,0x11,0x0D,0x00,-1,0xE1,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0xE2,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0x36,0x28,-1,0x11,-1,0x29,-3
12 | #fbtft_device debug=3 rotate=90 name=flexfb speed=16000000 gpios=reset:25,dc:24
13 | #ads7846_device model=7846 cs=1 gpio_pendown=17 keep_vref_on=1 swap_xy=1 pressure_max=255 x_plate_ohms=60 x_min=200 x_max=3900 y_min=200 y_max=3900
14 |
--------------------------------------------------------------------------------
/usr/qddpi24.dtb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lcdwiki/LCD-show-ubuntu/7e60ee85355db65d87236cf47d53cad3c950c19d/usr/qddpi24.dtb
--------------------------------------------------------------------------------
/usr/tft35a-overlay-20.10.dtb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lcdwiki/LCD-show-ubuntu/7e60ee85355db65d87236cf47d53cad3c950c19d/usr/tft35a-overlay-20.10.dtb
--------------------------------------------------------------------------------
/usr/tft35a-overlay.dtb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lcdwiki/LCD-show-ubuntu/7e60ee85355db65d87236cf47d53cad3c950c19d/usr/tft35a-overlay.dtb
--------------------------------------------------------------------------------
/usr/tft9341-overlay.dtb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lcdwiki/LCD-show-ubuntu/7e60ee85355db65d87236cf47d53cad3c950c19d/usr/tft9341-overlay.dtb
--------------------------------------------------------------------------------
/xinput-calibrator_0.7.5-1_armhf.deb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lcdwiki/LCD-show-ubuntu/7e60ee85355db65d87236cf47d53cad3c950c19d/xinput-calibrator_0.7.5-1_armhf.deb
--------------------------------------------------------------------------------
/xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lcdwiki/LCD-show-ubuntu/7e60ee85355db65d87236cf47d53cad3c950c19d/xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb
--------------------------------------------------------------------------------
/xserver-xorg-input-evdev_1%3a2.10.6-1_arm64.deb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lcdwiki/LCD-show-ubuntu/7e60ee85355db65d87236cf47d53cad3c950c19d/xserver-xorg-input-evdev_1%3a2.10.6-1_arm64.deb
--------------------------------------------------------------------------------
/xserver-xorg-input-evdev_2.10.5-1_armhf.deb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lcdwiki/LCD-show-ubuntu/7e60ee85355db65d87236cf47d53cad3c950c19d/xserver-xorg-input-evdev_2.10.5-1_armhf.deb
--------------------------------------------------------------------------------