From d63ce8ee33c1c8f5e2dd4963c75c1aa112b1c825 Mon Sep 17 00:00:00 2001 From: DanyLE Date: Sun, 9 Jul 2023 18:28:04 +0200 Subject: [PATCH] fix lcd backlight problem --- conf/layer.conf | 9 ++++----- recipes-diya/diya-overlay/files/confd | 5 +++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/conf/layer.conf b/conf/layer.conf index eb141fb..1ff368c 100644 --- a/conf/layer.conf +++ b/conf/layer.conf @@ -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" \ No newline at end of file diff --git a/recipes-diya/diya-overlay/files/confd b/recipes-diya/diya-overlay/files/confd index 7d8499e..145ffaa 100644 --- a/recipes-diya/diya-overlay/files/confd +++ b/recipes-diya/diya-overlay/files/confd @@ -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