| #!/bin/sh | |
| # Copyright (c) 2014 The Chromium OS Authors. All rights reserved. | |
| # Use of this source code is governed by a BSD-style license that can be | |
| # found in the LICENSE file. | |
| logger "$0" "$@" | |
| export DISPLAY=:0.0 | |
| export XAUTHORITY=/home/chronos/.Xauthority | |
| . /opt/google/mouse/common | |
| for device_id in $(find_touchscreen); do | |
| # Only process device id that's integer | |
| if echo $device_id | egrep -q '^[0-9]+$'; then | |
| xinput set-prop $device_id --type=int --format=32 "Enable Debug Log" $1 | |
| fi | |
| done |