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

Commit be3b8762 authored by ivanmeler's avatar ivanmeler
Browse files

Add lineage power profile support

parent a69ad5a3
Loading
Loading
Loading
Loading
+35 −0
Original line number Diff line number Diff line
@@ -206,6 +206,17 @@
                ""
            ],
            "Type": "Property"
        },
        {
            "Name": "PowerHALPerfProfileState",
            "Path": "vendor.powerhal.perf_profile",
            "Values": [
                "POWER_SAVE",
                "BIAS_POWER_SAVE",
                "BIAS_PERFORMANCE",
                "HIGH_PERFORMANCE"
            ],
            "Type": "Property"
        }
    ],
    "Actions": [
@@ -466,6 +477,30 @@
            "Node": "DoubleTapToWakeRect",
            "Duration": 0,
            "Value": "set_aod_rect,1440,2560,0,0"
        },
        {
            "PowerHint": "PROFILE_POWER_SAVE",
            "Node": "PowerHALPerfProfileState",
            "Duration": 0,
            "Value": "POWER_SAVE"
        },
        {
            "PowerHint": "PROFILE_BIAS_POWER_SAVE",
            "Node": "PowerHALPerfProfileState",
            "Duration": 0,
            "Value": "BIAS_POWER_SAVE"
        },
        {
            "PowerHint": "PROFILE_BIAS_PERFORMANCE",
            "Node": "PowerHALPerfProfileState",
            "Duration": 0,
            "Value": "BIAS_PERFORMANCE"
        },
        {
            "PowerHint": "PROFILE_HIGH_PERFORMANCE",
            "Node": "PowerHALPerfProfileState",
            "Duration": 0,
            "Value": "HIGH_PERFORMANCE"
        }
    ]
}