From 3ee06defb797b4e40ee74c11a1601691c1c7f4df Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Mon, 23 Jul 2018 15:29:59 +0200 Subject: [PATCH] sdm845-common: Fix nothing being shown during offmode charging Disable initial blank, and set a default brightness that can be used by kernel to be written to panel when it's re-enabled. Change-Id: I35fbd0bc7e816a8833cbeda145415db4fe521adb --- BoardConfigCommon.mk | 3 +++ rootdir/etc/init.qcom.rc | 3 +++ 2 files changed, 6 insertions(+) diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 62143d5..a82007d 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -70,6 +70,9 @@ BOARD_ANT_WIRELESS_DEVICE := "qualcomm-hidl" # Audio USE_XML_AUDIO_POLICY_CONF := 1 +# Charger +BOARD_CHARGER_DISABLE_INIT_BLANK := true + # Dex ifeq ($(HOST_OS),linux) ifneq ($(TARGET_BUILD_VARIANT),eng) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 301f50e..fe3e177 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -39,6 +39,9 @@ on boot chown system system /sys/devices/platform/soc/ae00000.qcom,mdss_mdp/main_display/display_mode chown system system /sys/devices/platform/soc/ae00000.qcom,mdss_mdp/main_display/hbm +on charger + write /sys/class/backlight/panel0-backlight/brightness 150 + service dashd /sbin/dashd class core critical