mirror of
https://github.com/lxsang/meta-rpi-diya.git
synced 2024-11-20 03:48:22 +01:00
fix lcd backlight problem
This commit is contained in:
parent
2f8f6f5542
commit
d63ce8ee33
@ -43,7 +43,7 @@ ENABLE_SPI_BUS = "0"
|
|||||||
ENABLE_I2C = "0"
|
ENABLE_I2C = "0"
|
||||||
# KERNEL_MODULE_AUTOLOAD:rpi += " i2c-dev "
|
# 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 "
|
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\
|
RPI_EXTRA_CONFIG += '\n\
|
||||||
#start_x=1 # essential \n\
|
#start_x=1 # essential \n\
|
||||||
#dtparam=audio=on \n\
|
|
||||||
#gpu_mem=128 # at least, or maybe more if you wish \n\
|
#gpu_mem=128 # at least, or maybe more if you wish \n\
|
||||||
#disable_camera_led=1 # optional \n\
|
#disable_camera_led=1 # optional \n\
|
||||||
'
|
'
|
||||||
|
|
||||||
# extra kernel CMDLINE_RNDIS option
|
# extra kernel CMDLINE_RNDIS option
|
||||||
# CMDLINE_RNDIS += ""
|
CMDLINE_RNDIS += " video=DPI-1:480x640,rotate=90 "
|
||||||
# accept license for wifi and bluetooth firmware
|
# accept license for wifi and bluetooth firmware
|
||||||
LICENSE_FLAGS_ACCEPTED = "synaptics-killswitch"
|
LICENSE_FLAGS_ACCEPTED = "synaptics-killswitch"
|
@ -6,8 +6,9 @@ DESC="Auto deployment configuration from media"
|
|||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
echo -n "Start $DESC: "
|
echo -n "Start $DESC: "
|
||||||
dmesg | tee /boot/kern.log
|
# for some reason the LCD backlight is turned off
|
||||||
lsmod | tee /boot/lsmod.txt
|
# need to turn it on manually
|
||||||
|
echo 0 > /sys/class/backlight/backlight/bl_power
|
||||||
if [ -f "/boot/fs_resize" ]; then
|
if [ -f "/boot/fs_resize" ]; then
|
||||||
/usr/bin/expandfs.sh
|
/usr/bin/expandfs.sh
|
||||||
touch /boot/home_partition_should_be_formated
|
touch /boot/home_partition_should_be_formated
|
||||||
|
Loading…
Reference in New Issue
Block a user