Bug 717155: Poke a different backlight controller. Stopgap for bug 712378. rs=jlebar
authorChris Jones <jones.chris.g@gmail.com>
Wed, 11 Jan 2012 11:56:23 -0800
changeset 85532 8f2f9ffb6ca4e315334ca4f5b9ed82d7d16db887
parent 85531 e897ce4266159516568f8a095629010de5c55ef9
child 85533 baa88d873a77108f9976178772b424bd1947af06
push id805
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 18:17:35 +0000
treeherdermozilla-aurora@6fb3bf232436 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjlebar
bugs717155, 712378
milestone12.0a1
Bug 717155: Poke a different backlight controller. Stopgap for bug 712378. rs=jlebar
hal/gonk/GonkHal.cpp
--- a/hal/gonk/GonkHal.cpp
+++ b/hal/gonk/GonkHal.cpp
@@ -308,17 +308,17 @@ GetCurrentBatteryInformation(hal::Batter
 }
 
 namespace {
 
 /**
  * RAII class to help us remember to close file descriptors.
  */
 const char *screenEnabledFilename = "/sys/power/state";
-const char *screenBrightnessFilename = "/sys/class/backlight/pwm-backlight/brightness";
+const char *screenBrightnessFilename = "/sys/class/leds/lcd-backlight/brightness";
 
 template<ssize_t n>
 bool ReadFromFile(const char *filename, char (&buf)[n])
 {
   int fd = open(filename, O_RDONLY);
   ScopedClose autoClose(fd);
   if (fd < 0) {
     HAL_LOG(("Unable to open file %s.", filename));