From 11c6bdb6f92118e7ab2562cac3d11ebbd1dec997 Mon Sep 17 00:00:00 2001 From: Midas Chien Date: Wed, 24 Nov 2021 21:12:39 +0800 Subject: [PATCH] display: update sysfs early_wake Allow HWC to modfiy display early_wakeup. Bug: 207615889 Test: check node attribute Test: early wakeup works Change-Id: I29d4cb8c867071f49a882920692dd013dc0b601f --- conf/init.gs201.rc | 4 ++++ powerhint.json | 2 +- powerhint_a0.json | 14 ++++++++++++++ powerhint_a1.json | 14 ++++++++++++++ 4 files changed, 33 insertions(+), 1 deletion(-) diff --git a/conf/init.gs201.rc b/conf/init.gs201.rc index 6e134af3..86bacd69 100644 --- a/conf/init.gs201.rc +++ b/conf/init.gs201.rc @@ -535,6 +535,10 @@ on fs chown system system /sys/class/dqe/atc/threshold_3 chown system system /sys/class/dqe/atc/gain_limit chown system system /sys/class/dqe/atc/lt_calc_ab_shift + chown system system /sys/devices/platform/1c240000.drmdecon/early_wakeup + chmod 0220 /sys/devices/platform/1c240000.drmdecon/early_wakeup + chown system system /sys/devices/platform/1c242000.drmdecon/early_wakeup + chmod 0220 /sys/devices/platform/1c242000.drmdecon/early_wakeup # Copy DRM Key # copy /system/app/wv.keys /factory/wv.keys diff --git a/powerhint.json b/powerhint.json index 6f4d4641..846440de 100644 --- a/powerhint.json +++ b/powerhint.json @@ -223,7 +223,7 @@ }, { "Name": "DisplayWakeup", - "Path": "/sys/devices/platform/1c300000.drmdecon/early_wakeup", + "Path": "/sys/devices/platform/1c240000.drmdecon/early_wakeup", "Values": [ "1", "0" diff --git a/powerhint_a0.json b/powerhint_a0.json index fce4033b..feafbef2 100644 --- a/powerhint_a0.json +++ b/powerhint_a0.json @@ -84,6 +84,14 @@ ], "ResetOnInit": true }, + { + "Name": "DisplayWakeup", + "Path": "/sys/devices/platform/1c240000.drmdecon/early_wakeup", + "Values": [ + "1", + "0" + ] + }, { "Name": "PowerHALRenderingState", "Path": "vendor.powerhal.rendering", @@ -365,6 +373,12 @@ "PowerHint": "DISPLAY_UPDATE_IMMINENT", "Type": "EndHint", "Value": "DISABLE_TA_BOOST" + }, + { + "PowerHint": "DISPLAY_UPDATE_IMMINENT", + "Node": "DisplayWakeup", + "Duration": 50, + "Value": "1" } ] } diff --git a/powerhint_a1.json b/powerhint_a1.json index ed596636..6ab15f5e 100644 --- a/powerhint_a1.json +++ b/powerhint_a1.json @@ -104,6 +104,14 @@ ], "ResetOnInit": true }, + { + "Name": "DisplayWakeup", + "Path": "/sys/devices/platform/1c240000.drmdecon/early_wakeup", + "Values": [ + "1", + "0" + ] + }, { "Name": "LimitFlashCurrent", "Path": "vendor.camera.max_flash_current", @@ -402,6 +410,12 @@ "Type": "EndHint", "Value": "DISABLE_TA_BOOST" }, + { + "PowerHint": "DISPLAY_UPDATE_IMMINENT", + "Node": "DisplayWakeup", + "Duration": 50, + "Value": "1" + }, { "PowerHint": "THERMAL_FLASH_LED_REDUCE_CRITICAL", "Node": "LimitFlashCurrent",