glimmer : Bring in touch-control script from link

We used this optional script in the Link overlay to disable acpi wakeups
for touchscreen and touchpad from the power manager. This provided
an extra level of protection from spurious wakes.
(see crbug.com/224255).

Lets bring this back for Glimmer, and have it unconditionally
disable the touchscreen, in case the wakeup int is floating.

Signed-off-by: Benson Leung <bleung@chromium.org>

BUG=chrome-os-partner:27508
TEST=Manually test touch script disables/enables the wake sources.
1. /opt/google/touch/touch-control.sh --disable
2. cat /proc/acpi/wakeup
3. Check that the following two lines are there:
TPAD          S3    *disabled  pnp:00:0b
TSCR          S3    *disabled  pnp:00:0c
4. /opt/google/touch/touch-control.sh --enable
5. cat /proc/acpi/wakeup
6. Check that the following two lines are there:
TPAD          S3    *enabled   pnp:00:0b
TSCR          S3    *disabled  pnp:00:0c

Note that the TSCR should always be disabled.

Change-Id: I1dd47fc8dcce236c542327c00d4bffc543134965
Reviewed-on: https://chromium-review.googlesource.com/192948
Reviewed-by: Bernie Thompson <bhthompson@chromium.org>
Tested-by: Benson Leung <bleung@chromium.org>
Commit-Queue: Benson Leung <bleung@chromium.org>
(cherry picked from commit 5caa280ad294c48dae773ae043e37a525d3695ba)
Reviewed-on: https://chromium-review.googlesource.com/193282
3 files changed