mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-21 11:55:31 -04:00
universal7885: Enable dt2w support
Signed-off-by: SamarV-121 <samarvispute121@gmail.com> Change-Id: I94472cb028204aee3ff8379f4638848a90698234
This commit is contained in:
parent
a13a3e7023
commit
d48312f054
2 changed files with 1 additions and 6 deletions
|
|
@ -137,11 +137,9 @@ Return<void> Power::setFeature(Feature feature __unused, bool activate __unused)
|
||||||
initialize();
|
initialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef TAP_TO_WAKE_NODE
|
|
||||||
if (feature == Feature::POWER_FEATURE_DOUBLE_TAP_TO_WAKE) {
|
if (feature == Feature::POWER_FEATURE_DOUBLE_TAP_TO_WAKE) {
|
||||||
set(TAP_TO_WAKE_NODE, activate ? "1" : "0");
|
set("/sys/class/sec/tsp/cmd", activate ? "aot_enable,1" : "aot_enable,0");
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
return Void();
|
return Void();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,4 @@ static const std::vector<std::string> cpuInteractivePaths = {
|
||||||
"/sys/devices/system/cpu/cpu4/cpufreq/interactive"
|
"/sys/devices/system/cpu/cpu4/cpufreq/interactive"
|
||||||
};
|
};
|
||||||
|
|
||||||
/* double tap to wake node */
|
|
||||||
//#define TAP_TO_WAKE_NODE "/sys/class/sec/tsp/dt2w_enable"
|
|
||||||
|
|
||||||
#endif // SAMSUNG_POWER_H
|
#endif // SAMSUNG_POWER_H
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue