sm7125: livedisplay: Fix Adaptive backlight path

Change-Id: Ic591e7a135fd96635e04d0b84ce3fb8d4f3f2c39
fourteen-wip
Willi Ye 5 years ago committed by Simon1511
parent b1562dd140
commit 8a3a8e973e
  1. 4
      livedisplay/AdaptiveBacklight.cpp

@ -31,7 +31,7 @@ namespace livedisplay {
namespace V2_0 {
namespace samsung {
static constexpr const char* kBacklightPath = "/sys/class/lcd/panel/power_reduce";
static constexpr const char* kBacklightPath = "/sys/class/lcd/panel/alpm";
bool AdaptiveBacklight::isSupported() {
std::fstream backlight(kBacklightPath, backlight.in | backlight.out);
@ -51,7 +51,7 @@ Return<bool> AdaptiveBacklight::isEnabled() {
}
Return<bool> AdaptiveBacklight::setEnabled(bool enabled) {
return WriteStringToFile(enabled ? "1" : "0", kBacklightPath, true);
return WriteStringToFile(enabled ? "2" : "0", kBacklightPath, true);
}
} // namespace samsung

Loading…
Cancel
Save