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
This commit is contained in:
LuK1337 2018-07-23 15:29:59 +02:00 committed by Danny Baumann
parent 9757014338
commit 3ee06defb7
2 changed files with 6 additions and 0 deletions

View file

@ -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)

View file

@ -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