universal7885: switch to using AOD DT2W

Samsung touchscreens support using double-tap to wake to trigger
always on display. Implement support for the sysfs API used to
en/disable this. Note that this requires a kernel change to send
KEY_POWER on the dt2w event instead of KEY_BLACK_UI_GESTURE - e.g.
b783d5e0fd

[Linux4: This makes DT2W work on full screen instead of only lower half]

Change-Id: I80898c8810216a90cc11b4e8b0f12a1918cd17a3
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
Simon Shields 2018-01-29 17:08:32 +11:00 committed by roynatech2544
commit e20d70740a
No known key found for this signature in database
GPG key ID: 9675C32163D88D30

View file

@ -43,8 +43,8 @@
"Name": "DoubleTapToWakeEnable",
"Path": "/sys/class/sec/tsp/cmd",
"Values": [
"aot_enable,0",
"aot_enable,1"
"aod_enable,0",
"set_aod_rect,720,1560,0,0",
],
"DefaultIndex": 0,
"ResetOnInit": false
@ -113,7 +113,7 @@
"PowerHint": "DOUBLE_TAP_TO_WAKE",
"Node": "DoubleTapToWakeEnable",
"Duration": 0,
"Value": "aot_enable,1"
"Value": "set_aod_rect,720,1560,0,0"
},
{
"PowerHint": "AUDIO_STREAMING_LOW_LATENCY",