Patchwork [1/3] udev: add a link between /dev/input/event* with keyboard

login
register
mail settings
Submitter Xiaofeng Yan
Date Dec. 16, 2011, 9:15 a.m.
Message ID <e9b09040a8b888e263e1975675cfd0386953a916.1324025415.git.xiaofeng.yan@windriver.com>
Download mbox | patch
Permalink /patch/17107/
State New
Headers show

Comments

Xiaofeng Yan - Dec. 16, 2011, 9:15 a.m.
From: Xiaofeng Yan <xiaofeng.yan@windriver.com>

keyboard device could be one of event*.
For getting keyboard device to user easier, I make a link between the event of keyboard \
with keyboard0.

Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
---
 meta/recipes-core/udev/udev-164/local.rules |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/recipes-core/udev/udev-164/local.rules b/meta/recipes-core/udev/udev-164/local.rules
index 625e49a..d96f840 100644
--- a/meta/recipes-core/udev/udev-164/local.rules
+++ b/meta/recipes-core/udev/udev-164/local.rules
@@ -32,4 +32,5 @@  ACTION=="add", DEVPATH=="/devices/*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe
 
 # Create a symlink to any touchscreen input device
 SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{modalias}=="input:*-e0*,3,*a0,1,*18,*", SYMLINK+="input/touchscreen0"
-
+# Create a symlink to any keyboard input device
+SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{name}=="*keyboard", SYMLINK+="input/keyboard0"