mirror of
https://github.com/goodtft/LCD-show.git
synced 2026-06-15 16:42:57 +02:00
modify 3508 and 4008 driver
This commit is contained in:
11
MPI3508-show
11
MPI3508-show
@@ -42,9 +42,16 @@ sudo cp ./usr/inittab /etc/
|
||||
if [[ "$deb_version" < "12.1" ]]; then
|
||||
sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
fi
|
||||
|
||||
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo mkdir /etc/X11/xorg.conf.d
|
||||
fi
|
||||
|
||||
if [[ "$deb_version" = "13.1" ]] || [[ "$deb_version" > "13.1" ]]; then
|
||||
sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.~
|
||||
sudo cp -rf ./etc/.bash_profile /home/$username/
|
||||
fi
|
||||
|
||||
sudo cp -rf ./usr/99-calibration.conf-3508-0 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
sudo touch ./.have_installed
|
||||
echo "hdmi:resistance:3508:0:480:320" > ./.have_installed
|
||||
@@ -55,8 +62,8 @@ version=`uname -v`
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
input_result=0
|
||||
version=${version##* }
|
||||
#version=${version#*#}
|
||||
version=${version##*(}
|
||||
version=${version%%-*}
|
||||
echo $version
|
||||
if test $version -lt 2017;then
|
||||
echo "reboot"
|
||||
|
||||
13
MPI4008-show
13
MPI4008-show
@@ -34,6 +34,7 @@ sudo echo "hdmi_cvt 480 800 60 6 0 0 0" >> ./boot/config.txt.bak
|
||||
sudo echo "dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900" >> ./boot/config.txt.bak
|
||||
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
|
||||
|
||||
if [[ "$deb_version" < "13.1" ]]; then
|
||||
if [ $hardware_model -eq 5 ]; then
|
||||
sudo sed -i "/xrandr -o/d" /etc/xdg/lxsession/LXDE-pi/autostart
|
||||
sudo echo "xrandr -o 1" >> /etc/xdg/lxsession/LXDE-pi/autostart
|
||||
@@ -49,9 +50,17 @@ sudo cp ./usr/inittab /etc/
|
||||
if [[ "$deb_version" < "12.1" ]]; then
|
||||
sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||
sudo mkdir /etc/X11/xorg.conf.d
|
||||
fi
|
||||
|
||||
if [[ "$deb_version" = "13.1" ]] || [[ "$deb_version" > "13.1" ]]; then
|
||||
sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.~
|
||||
sudo cp -rf ./etc/.bash_profile /home/$username/
|
||||
fi
|
||||
|
||||
sudo cp -rf ./usr/99-calibration.conf-397-270 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||
sudo touch ./.have_installed
|
||||
echo "hdmi:resistance:397:270:480:800" > ./.have_installed
|
||||
@@ -62,8 +71,8 @@ version=`uname -v`
|
||||
#if test "$nodeplatform" = "raspberrypi";then
|
||||
#echo "this is raspberrypi kernel"
|
||||
input_result=0
|
||||
version=${version##* }
|
||||
#version=${version#*#}
|
||||
version=${version##*(}
|
||||
version=${version%%-*}
|
||||
echo $version
|
||||
if test $version -lt 2017;then
|
||||
echo "reboot"
|
||||
|
||||
Reference in New Issue
Block a user