Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e408bbf6 authored by Midas Chien's avatar Midas Chien
Browse files

redfin: enable idle timer with kernel support

Enable display kernel driver idle timer, which allows dropping to lower
refresh rate earlier and without additional overhead.

Bug: 160682800
Test: track idle timer through systrace
Test: zone test, scrolling
Change-Id: I6e82b58026d7b31cf0cabc0db7bb6277f6731d12
parent b1534fba
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -198,6 +198,7 @@ include device/google/redfin/fingerprint.mk
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.set_idle_timer_ms=80
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.set_touch_timer_ms=200
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.set_display_power_timer_ms=1000
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.support_kernel_idle_timer=true
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.use_content_detection_for_refresh_rate=true

PRODUCT_PROPERTY_OVERRIDES += \
+8 −0
Original line number Diff line number Diff line
@@ -16,6 +16,14 @@

import /vendor/etc/init/hw/init.${ro.boot.hardware.platform}.rc

on property:graphics.display.kernel_idle_timer.enabled=true
    # Switch display mode to 60hz when idle
    write /sys/devices/platform/soc/soc:qcom,dsi-display-primary/idle_mode "@60"

on property:graphics.display.kernel_idle_timer.enabled=false
    # Disable aggressive idle mode switching
    write /sys/devices/platform/soc/soc:qcom,dsi-display-primary/idle_mode "none"

on property:vendor.all.modules.ready=1
    chown system system /sys/devices/virtual/sec/tsp/fw_version
    chown system system /sys/devices/virtual/sec/tsp/cmd