Skip to content

Commit

Permalink
Merge pull request #2 from fxpdev/thermanager-backlight
Browse files Browse the repository at this point in the history
thermanager: Update backlight values and enable it
  • Loading branch information
Alin Jerpelea committed Jan 5, 2015
2 parents 7a06a42 + 77e2c72 commit 7522ddf
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions rootdir/system/etc/thermanager.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@
</resource>

<!-- device-specific -->
<!-- XXX: driver broken:
<resource name="backlight" type="sysfs">/sys/class/leds/wled:backlight/max_brightness</resource>
-->
<resource name="backlight" type="echo" />

<resource name="temp-emmc" type="msm-adc">/sys/devices/qpnp-vadc-e4910000/emmc_therm</resource>
<resource name="temp-batt" type="msm-adc">/sys/devices/qpnp-vadc-e4910000/batt_therm</resource>
Expand Down Expand Up @@ -118,10 +115,10 @@
</control>

<control name="backlight">
<mitigation level="off"><value resource="backlight">4095</value></mitigation>
<mitigation level="1"><value resource="backlight">3200</value></mitigation>
<mitigation level="2"><value resource="backlight">2400</value></mitigation>
<mitigation level="3"><value resource="backlight">1600</value></mitigation>
<mitigation level="off"><value resource="backlight">255</value></mitigation>
<mitigation level="1"><value resource="backlight">200</value></mitigation>
<mitigation level="2"><value resource="backlight">150</value></mitigation>
<mitigation level="3"><value resource="backlight">100</value></mitigation>
</control>

<control name="gpu">
Expand Down

0 comments on commit 7522ddf

Please sign in to comment.