Use miyoo video driver to get driver name and parameters for modprobe (#73)

This commit is contained in:
tiopex
2024-01-03 08:48:42 +01:00
committed by GitHub
parent 40a58380b6
commit 05272fc242

View File

@@ -34,8 +34,7 @@ umtprd >> "${LOGS}" 2>&1 &
## automatically from rootfs/lib/modules/VERSION
# The uEnv.txt is autogenerated by u-boot from HW which outputs
## environmental variables needed for ID of screen type
video=`cat ${BOOTDIR}/uEnv.txt |grep -a "CONSOLE_VIDEO" | cut -d "=" -f 2 | cut -d "." -f 1`
params=`cat ${BOOTDIR}/uEnv.txt |grep -a "CONSOLE_PARAMETERS" | cut -d "=" -f 2-`
video=`cat /sys/kernel/miyoo_video/miyoo_video`
BACKLIGHT=$(cat ${HOME}/.backlight.conf)
@@ -63,7 +62,7 @@ else
#FLIP & INVERT options.cfg setting
export flip=$(grep -o FLIP=[0-1] "${HOME}/options.cfg" | tr '[:upper:]' '[:lower:]')
export invert=$(grep -o INVERT=[0-1] "${HOME}/options.cfg" | tr '[:upper:]' '[:lower:]')
modprobe $video $params $flip $invert
modprobe $video $flip $invert
else
(cd "${BOOTDIR}" && sh modules.custom.sh ) >> "${LOGS}" 2>&1
fi