From 8b3360aadebff3b0b83bf6a24af1dc34b58b7106 Mon Sep 17 00:00:00 2001 From: Kshitij Gupta Date: Sat, 22 Aug 2020 18:32:31 +0000 Subject: [PATCH] LG8n: init: Fix backlight on charger Change-Id: I10115623f79dcf9ebe6904c9f736885eab0b3233 Signed-off-by: fjrXTR Signed-off-by: Shirayuki39 --- rootdir/etc/init/hw/init.mt6789.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rootdir/etc/init/hw/init.mt6789.rc b/rootdir/etc/init/hw/init.mt6789.rc index 6149e5d..fc3d1ad 100644 --- a/rootdir/etc/init/hw/init.mt6789.rc +++ b/rootdir/etc/init/hw/init.mt6789.rc @@ -61,6 +61,10 @@ on late-init # mount different fs start on charger + # Turn backlight on and switch to backlight trigger + write /sys/class/leds/lcd-backlight/brightness "1000" + write /sys/class/leds/lcd-backlight/trigger "backlight" + chmod 0660 /dev/spm chown system system /dev/spm start spm_script