PAC-ROM/android_hardware_sony_thermanager

Name: android_hardware_sony_thermanager

Owner: PAC-ROM

Description: null

Created: 2015-10-30 03:01:54.0

Updated: 2015-10-30 03:02:14.0

Pushed: 2015-11-25 19:18:06.0

Homepage: null

Size: 26

Language: C

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Overview

Thermanager is an attempt to simplify & unify thermal management for platforms requiring it. It was initially written to enable users outside of Sony Mobile to customize and potentially improve the thermal management of Xperia devices, which previously had been managed using proprietary applications.

The core concept behind thermanager is to move most platform and device specific configuration into a simple configuration file, adding code only when it makes sense. This way, when porting thermal configurations to a new device or platform, only the configuration file needs to be updated. This also has the benifit of allowing users to tweak the configuration without requiring any knowledge of programming in general.

Thermanager currently uses an XML based configuration file, but can be easily modified to parse any DOM-like format. There are three important types of sections within the configuration file, which are intended to allow a wide range of configuration possibilities:

Resources Types

Resources are used to provide I/O functionality. There are several different types of resources, which provide different types of I/O capabilities:

Control

Control sections are intended to define a list of mitigation levels for a specific mitigation plan. Classic examples would be mitigating the CPU frequency, or enabling active cooling. The mitigation levels should start at 0 and increase from there. Each mitigation can contain any number of 'values' which are written to specified resources which the mitigation level is activated. A control will only have one mitigation level active at a time, and it will be the highest level selected by any configuration threshold.

Configuration

A configuration section lists the thresholds at which mitigations should be activated. Each threshold contains the mitigation levels which should be activated when the threshold is entered. Each threshold has a 'trigger' and 'clear' attribute, specifying within what range the threshold should activate based on the configuration's sensor. If the sensor's value rises above 'trigger' the threshold's mitigations will be activated. If the sensor's value then falls below 'clear' the threshold's mitigations will be deactivated. The default threshold's 'trigger' and 'clear' attributes should be unspecified.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.