Skip to content

Commit

Permalink
sm8550-common: power: Use correct node for dt2w
Browse files Browse the repository at this point in the history
Change-Id: If4237095d7f06aae0b83e896511d17fc0d00cdd9
  • Loading branch information
hellobbn committed Jan 12, 2024
1 parent 6cee8e6 commit beb3273
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions power/power-mode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ bool isDeviceSpecificModeSupported(Mode type, bool* _aidl_return) {
bool setDeviceSpecificMode(Mode type, bool enabled) {
switch (type) {
case Mode::DOUBLE_TAP_TO_WAKE:
::android::base::WriteStringToFile(enabled ? "sod_enable,1" : "sod_enable,0",
"/sys/devices/virtual/sec/tsp/cmd");
::android::base::WriteStringToFile(enabled ? "1" : "0",
"/sys/devices/virtual/input/lxs_ts_input/enable_knock");
::android::base::WriteStringToFile(enabled ? "1" : "0",
"/sys/devices/dsi_panel_driver/pre_sod_mode");
return true;
Expand All @@ -53,4 +53,4 @@ bool setDeviceSpecificMode(Mode type, bool enabled) {
} // namespace power
} // namespace hardware
} // namespace android
} // namespace aidl
} // namespace aidl

0 comments on commit beb3273

Please sign in to comment.