மறுபிரவேசம்

repowerd is Ubuntu Touch's power management daemon and handler for common functionality like Double-Tap-To-Wake. Like many other components of the Operating System it can be configured for the device in its deviceinfo.yaml configuration, including quirks that are specific to a certain set of devices, SoCs, etc.

Script-based performance booster

repowerd features an interesting performance boost mechanism called the ScriptPerformanceBooster. This performance booster allows a port maintainer to set CPU and GPU frequency scaling, adjust suspension behavior on devices without Opportunistic Autosuspend, and further kernel tweaks based on screen-on state and interactivity. This allows a device maintainer to implement sophisticated performance boosting strategies, enable suspension of user processes and services, and more. For example, this is also used on the JingPad A1 to implement freezing and thawing of user processes when the device is supposed to go into suspension, which it cannot natively do on its kernel with vendor-provided drivers.

Overview of all repowerd keys:

<devicename>:
  BacklightSysfsPath: </path/to/the/device>
  DoubleTapToWake:
    - </path/to/node>|<enable>|<disable>
    - ...

சாதன வினோதங்கள்

விசை

விவரம்

மதிப்பு (கள்)

பின்னணியில் உள்ள பின்னணியில்

பின்னொளி கருவியிற்கு கோப்பு பாதை

கோப்பு பாதை

டபுள் டாப்டோஅக்

DT2W ஐ மாற்றுவதற்கான உள்ளமைவு

வடிவமைக்கப்பட்ட சரங்களின் பட்டியல்: <பாதை>|<இயக்கு>|<முடக்கு>

RepowerdScriptPerfBoostLowPower

Command to execute when going into suspension

A regular binary or script executed via system(value), like: /opt/halium-overlay/boost-script.sh --low-power

RepowerdScriptPerfBoostScreenOff

Command to execute when turning screen off

Similar, like: /opt/halium-overlay/boost-script.sh --screen-off

RepowerdScriptPerfBoostSustained

Command to execute for setting screen-on policy

Similar, like /opt/halium-overlay/boost-script.sh --sustained

RepowerdScriptPerfBoostInteractive

Command to execute for user input/interactivity pulses

Similar, like /opt/halium-overlay/boost-script.sh --interactive

எடுத்துக்காட்டுகள்

கருவி மாதிரி பயன்படுத்துதல்:

  • தனிப்பயன் பின்னொளி SYSF கள் பின்னொளியைக் கட்டுப்படுத்தும் பாதையின் தன்னியக்கத்தை முடக்குவதற்கான பாதை

  • கருவியை எழுப்ப இரட்டை தட்டுதல் அனுமதிக்க, இரண்டு சாத்தியமான பாதைகளைக் குறிப்பிடும் இரட்டை தட்டுவதற்கு இரட்டை தட்டவும் (DT2W) உள்ளமைவு
    • பல உள்ளீடுகளைக் குறிப்பிட இது அனுமதிக்கப்படுகிறது, தவறான அல்லது இல்லாத பாதைகள் அகற்றப்படும்

  • ScriptPerformanceBooster set up to run scripts on screen-on and -off events

Config file:

$ cat /etc/deviceinfo/devices/sample.yaml
sample:
  BacklightSysfsPath: /sys/class/backlight/panel0-backlight
  DoubleTapToWake:
    - /proc/touchpanel/double_tap_enable|1|0
    - /sys/devices/platform/soc/a84000.i2c/i2c-2/2-0020/input/input1/wake_gesture|on|off
  RepowerdScriptPerfBoostScreenOff:
    - /opt/halium-overlay/perf-scripts/screen-off
  RepowerdScriptPerfBoostSustained:
    - /opt/halium-overlay/perf-scripts/sustained