sdm710-common: power-libperfmgr: move dt2w mode on top of setMode switch
* fixed dt2w after reboot Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
This commit is contained in:
parent
069088dff8
commit
2caf49b8dd
1 changed files with 5 additions and 5 deletions
|
@ -109,6 +109,11 @@ ndk::ScopedAStatus Power::setMode(Mode type, bool enabled) {
|
||||||
PowerSessionManager::getInstance()->updateHintMode(toString(type), enabled);
|
PowerSessionManager::getInstance()->updateHintMode(toString(type), enabled);
|
||||||
}
|
}
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
case Mode::DOUBLE_TAP_TO_WAKE:
|
||||||
|
{
|
||||||
|
sysfs_write("/sys/class/touch/tp_dev/gesture_on", enabled ? "1" : "0");
|
||||||
|
}
|
||||||
|
break;
|
||||||
case Mode::LOW_POWER:
|
case Mode::LOW_POWER:
|
||||||
break;
|
break;
|
||||||
case Mode::SUSTAINED_PERFORMANCE:
|
case Mode::SUSTAINED_PERFORMANCE:
|
||||||
|
@ -122,11 +127,6 @@ ndk::ScopedAStatus Power::setMode(Mode type, bool enabled) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
[[fallthrough]];
|
[[fallthrough]];
|
||||||
case Mode::DOUBLE_TAP_TO_WAKE:
|
|
||||||
{
|
|
||||||
sysfs_write("/sys/class/touch/tp_dev/gesture_on", enabled ? "1" : "0");
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case Mode::FIXED_PERFORMANCE:
|
case Mode::FIXED_PERFORMANCE:
|
||||||
[[fallthrough]];
|
[[fallthrough]];
|
||||||
case Mode::EXPENSIVE_RENDERING:
|
case Mode::EXPENSIVE_RENDERING:
|
||||||
|
|
Loading…
Reference in a new issue