From 8a3a8e973e6012a57e71c6936f8219e271c2c291 Mon Sep 17 00:00:00 2001 From: Willi Ye Date: Tue, 8 Oct 2019 21:30:00 +0200 Subject: [PATCH] sm7125: livedisplay: Fix Adaptive backlight path Change-Id: Ic591e7a135fd96635e04d0b84ce3fb8d4f3f2c39 --- livedisplay/AdaptiveBacklight.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/livedisplay/AdaptiveBacklight.cpp b/livedisplay/AdaptiveBacklight.cpp index 986ab12..42200af 100644 --- a/livedisplay/AdaptiveBacklight.cpp +++ b/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 AdaptiveBacklight::isEnabled() { } Return AdaptiveBacklight::setEnabled(bool enabled) { - return WriteStringToFile(enabled ? "1" : "0", kBacklightPath, true); + return WriteStringToFile(enabled ? "2" : "0", kBacklightPath, true); } } // namespace samsung