Skip to content

Implement PowerHAL integration

Alfred Neumayer requested to merge personal/fredldotme/powerhal into main

This MR implements a simple-enough performance-booster to keep the overall design intact.

  • Communicates over binder (via gbinder) with the Halium-side PowerHAL.
  • Turns interactive mode on or off depending on screen state.
  • Implementation of PowerHints based on the default Android PowerHAL interface
  • Implements optional PowerScene support for Unisoc/Sprd hardware like the JingPad

PowerScenes can be configured based on libdeviceinfo configs:

  • RepowerdPowerHalSceneOnName for screen-on scene
  • RepowerdPowerHalSceneOffName for screen-off scene
Edited by Alfred Neumayer

Merge request reports