Skip to content

Commit

Permalink
Start ts_uinput when touchscreen device is available
Browse files Browse the repository at this point in the history
  • Loading branch information
kedder committed Jun 15, 2020
1 parent 453d60e commit 749e7ca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion recipes-support/tslib_support/files/sunxi4-ts.rules
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ACTION=="add|change", KERNEL=="event[0-9]*", ENV{ID_PATH_TAG}=="platform-1c25000_rtp", ENV{LIBINPUT_IGNORE_DEVICE}="1" SYMLINK+="input/touchscreen0"
ACTION=="add|change", KERNEL=="event[0-9]*", ENV{ID_PATH_TAG}=="platform-1c25000_rtp", ENV{LIBINPUT_IGNORE_DEVICE}="1" ENV{SYSTEMD_WANTS}+="ts_uinput.service" SYMLINK+="input/touchscreen0" TAG+="systemd"
4 changes: 0 additions & 4 deletions recipes-support/tslib_support/files/ts_uinput.service
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
[Unit]
Description=touchscreen input
After=dev-input-ts.device
RequiresMountsFor=/etc/ts.env

[Service]
Type=forking
EnvironmentFile=/etc/ts.env
ExecStart=/usr/bin/ts_uinput -d

[Install]
WantedBy=multi-user.target

0 comments on commit 749e7ca

Please sign in to comment.