Skip to content
This repository has been archived by the owner on Oct 5, 2019. It is now read-only.

Add "enable_dt2w" node #574

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public static Dt2w getInstance() {
private static final String DT2W_FT5X06 = "/sys/bus/i2c/drivers/ft5x06_i2c/5-0038/d2w_switch";
private static final String LENOVO_DT2W = "/sys/lenovo_tp_gestures/tpd_suspend_status";
private static final String DT2W_SMDK4412 = "/sys/devices/virtual/misc/touchwake/knockon";
private static final String ENABLE_DT2W = "/proc/touchpanel/enable_dt2w";

private final HashMap<String, List<Integer>> mFiles = new HashMap<>();
private final List<Integer> mLgeTouchCoreMenu = new ArrayList<>();
Expand Down Expand Up @@ -90,6 +91,7 @@ public static Dt2w getInstance() {
mFiles.put(DT2W_FT5X06, mGenericMenu);
mFiles.put(LENOVO_DT2W, mGenericMenu);
mFiles.put(DT2W_SMDK4412, mGenericMenu);
mFiles.put(ENABLE_DT2W, mGenericMenu);
}

private String FILE;
Expand Down