Add additional search path for brightness
Change-Id: Ib1f032d87aafd7732d460caeca1e3ae6745a563d
This commit is contained in:
committed by
Gerrit Code Review
parent
bf4efa39e4
commit
9c102b536d
@@ -953,6 +953,7 @@ void DataManager::SetDefaultValues()
|
||||
if (findbright.empty()) {
|
||||
// Attempt to locate the brightness file
|
||||
findbright = Find_File::Find("brightness", "/sys/class/backlight");
|
||||
if (findbright.empty()) findbright = Find_File::Find("brightness", "/sys/class/leds/lcd-backlight");
|
||||
}
|
||||
if (findbright.empty()) {
|
||||
LOGINFO("Unable to locate brightness file\n");
|
||||
|
||||
Reference in New Issue
Block a user