From 99f12f75bcada410bf8d55f0918ec69dfaa4c8ab Mon Sep 17 00:00:00 2001 From: goodtft Date: Wed, 19 Nov 2025 10:31:51 +0000 Subject: [PATCH] modify lcd35 driver for new system --- LCD35-show | 4 +++- etc/.bash_profile | 2 ++ etc/rc_x11.local | 23 ----------------------- system_config.sh | 1 + 4 files changed, 6 insertions(+), 24 deletions(-) create mode 100644 etc/.bash_profile delete mode 100755 etc/rc_x11.local diff --git a/LCD35-show b/LCD35-show index 6e311b2..e0622a7 100755 --- a/LCD35-show +++ b/LCD35-show @@ -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 diff --git a/etc/.bash_profile b/etc/.bash_profile new file mode 100644 index 0000000..d9c6fae --- /dev/null +++ b/etc/.bash_profile @@ -0,0 +1,2 @@ +export FRAMEBUFFER=/dev/fb1 +startx 2> /tmp/log_output.txt diff --git a/etc/rc_x11.local b/etc/rc_x11.local deleted file mode 100755 index 6f4bae8..0000000 --- a/etc/rc_x11.local +++ /dev/null @@ -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 diff --git a/system_config.sh b/system_config.sh index 8c09501..4af4aa8 100755 --- a/system_config.sh +++ b/system_config.sh @@ -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