[oe-commits] Tom Rini : udev: Update touchscreen rule for ID_INPUT_TOUCHSCREEN
git at git.openembedded.org
git at git.openembedded.org
Wed Oct 30 13:24:39 UTC 2013
Module: openembedded-core.git
Branch: master
Commit: 5abcfcd4380aacafc45d776f557738fb18089113
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=5abcfcd4380aacafc45d776f557738fb18089113
Author: Tom Rini <trini at ti.com>
Date: Tue Oct 22 12:37:10 2013 -0400
udev: Update touchscreen rule for ID_INPUT_TOUCHSCREEN
Since udev 174 udev has been running input_id as a built-in command and
setting this value in the environment for touchscreens. Use this logic
to detect when to make a touchscreen0 symlink.
Signed-off-by: Tom Rini <trini at ti.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
meta/recipes-core/udev/udev/local.rules | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-core/udev/udev/local.rules b/meta/recipes-core/udev/udev/local.rules
index d0cbf91..f06002c 100644
--- a/meta/recipes-core/udev/udev/local.rules
+++ b/meta/recipes-core/udev/udev/local.rules
@@ -19,5 +19,4 @@ ACTION=="add", DEVPATH=="/devices/*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe
# Create a symlink to any touchscreen input device
# Trigger based on input type, that the evbit (-e) has EV_SYN and EV_ABS,
# has an EV_ABS value (-a) which is used for touchscreen type devices.
-SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{modalias}=="input:*-e0*,3,*a0,1,*", SYMLINK+="input/touchscreen0"
-
++SUBSYSTEM=="input", KERNEL=="event[0-9]*", ENV{ID_INPUT_TOUCHSCREEN}=="1", SYMLINK+="input/touchscreen0"
More information about the Openembedded-commits
mailing list