modify lcd35 driver for new system

This commit is contained in:
goodtft 2025-11-19 10:31:51 +00:00
parent 735a12105e
commit 99f12f75bc
4 changed files with 6 additions and 24 deletions

View File

@ -39,7 +39,9 @@ fi
if [[ "$deb_version" = "13.1" ]] || [[ "$deb_version" > "13.1" ]]; then
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.~
sudo cp -rf ./etc/rc_x11.local /etc/rc.local
sudo cp -rf ./etc/.bash_profile /home/$username/
#sudo cp -rf ./etc/rc_x11.local /etc/rc.local
fi
#if test "$root_dev" = "/dev/mmcblk0p7";then

2
etc/.bash_profile Normal file
View File

@ -0,0 +1,2 @@
export FRAMEBUFFER=/dev/fb1
startx 2> /tmp/log_output.txt

View File

@ -1,23 +0,0 @@
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi
export FRAMEBUFFER=/dev/fb1
startx 2> /tmp/log_output.txt &
exit 0

View File

@ -3,6 +3,7 @@
big_version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
deb_version=`cat /etc/debian_version | tr -d '\n'`
hw_result=`tr -d '\0' < /proc/device-tree/model`
username=`logname | tr -d '\n'`
if [ $(getconf WORD_BIT) = '32' ] && [ $(getconf LONG_BIT) = '64' ] ; then
hardware_arch=64