From: Christopher N. Hesse Date: Mon, 16 Jan 2017 23:04:45 +0000 (+0100) Subject: power: Add POWER_HINT_DISABLE_TOUCH support X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f9b8e8397598e88a7d669e9cb673867a8cf92495;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung.git power: Add POWER_HINT_DISABLE_TOUCH support Change-Id: I363df278598e3402692424539638f3547c648e26 --- diff --git a/power/power.c b/power/power.c index bcc40f6..6168ea0 100644 --- a/power/power.c +++ b/power/power.c @@ -453,6 +453,14 @@ static void samsung_power_hint(struct power_module *module, int profile = *((intptr_t *)data); set_power_profile(samsung_pwr, profile); break; + case POWER_HINT_DISABLE_TOUCH: + ALOGV("%s: POWER_HINT_DISABLE_TOUCH", __func__); + if (data) { + sysfs_write(samsung_pwr->touchscreen_power_path, "0"); + } else { + sysfs_write(samsung_pwr->touchscreen_power_path, "1"); + } + break; default: ALOGW("%s: Unknown power hint: %d", __func__, hint); break;