1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2024-10-03 05:56:39 +02:00

fix lcd backlight problem

This commit is contained in:
DanyLE 2023-07-09 18:28:04 +02:00
parent 2f8f6f5542
commit d63ce8ee33
2 changed files with 7 additions and 7 deletions

View File

@ -2,8 +2,8 @@
BBPATH .= ":${LAYERDIR}"
# We have recipes-* directories, add to BBFILES
BBFILES += " ${LAYERDIR}/recipes-*/*/*.bb \
${LAYERDIR}/recipes-*/*/*.bbappend "
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
${LAYERDIR}/recipes-*/*/*.bbappend"
BBFILE_COLLECTIONS += "meta-rpi-diya"
BBFILE_PATTERN_meta-rpi-diya = "^${LAYERDIR}/"
@ -43,7 +43,7 @@ ENABLE_SPI_BUS = "0"
ENABLE_I2C = "0"
# KERNEL_MODULE_AUTOLOAD:rpi += " i2c-dev "
VC4DTBO = "vc4-kms-v3d,nocomposite,noaudio"
VC4DTBO = "vc4-kms-v3d,noaudio"
KERNEL_DEVICETREE:append = " overlays/vc4-kms-dpi-generic.dtbo overlays/dpi24.dtbo "
@ -56,12 +56,11 @@ dtoverlay=waveshare-28dpi-4b \n']['${RPI_USE_wS_28_DPI_LCD}' == '1']}"
RPI_EXTRA_CONFIG += '\n\
#start_x=1 # essential \n\
#dtparam=audio=on \n\
#gpu_mem=128 # at least, or maybe more if you wish \n\
#disable_camera_led=1 # optional \n\
'
# extra kernel CMDLINE_RNDIS option
# CMDLINE_RNDIS += ""
CMDLINE_RNDIS += " video=DPI-1:480x640,rotate=90 "
# accept license for wifi and bluetooth firmware
LICENSE_FLAGS_ACCEPTED = "synaptics-killswitch"

View File

@ -6,8 +6,9 @@ DESC="Auto deployment configuration from media"
case "$1" in
start)
echo -n "Start $DESC: "
dmesg | tee /boot/kern.log
lsmod | tee /boot/lsmod.txt
# for some reason the LCD backlight is turned off
# need to turn it on manually
echo 0 > /sys/class/backlight/backlight/bl_power
if [ -f "/boot/fs_resize" ]; then
/usr/bin/expandfs.sh
touch /boot/home_partition_should_be_formated