From 44fd68da7c5b00555e8f32b9a8d0bf24b42c26cd Mon Sep 17 00:00:00 2001 From: Zhai Edwin Date: Fri, 26 Aug 2011 19:59:54 +0800 Subject: xserver-nodm-init: Change hidraw mode to allow normal user access USB HID like touch screen could be presented as hidraw* device, this change make user under rootless X can access them. (From OE-Core rev: ddb54d4a467b51f5f8f305f532bd5ea64df92876) Signed-off-by: Zhai Edwin Signed-off-by: Richard Purdie --- meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta/recipes-graphics/x11-common') diff --git a/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm b/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm index 858af0b67e..c707a4bdb8 100755 --- a/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm +++ b/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm @@ -34,6 +34,10 @@ case "$1" in chmod o+w /var/log chmod g+r /dev/tty[0-3] chmod o+rw /dev/input/* + # hidraw device is probably needed + if [ -e /dev/hidraw0 ]; then + chmod o+rw /dev/hidraw* + fi fi # Using su rather than sudo as latest 1.8.1 cause failure [YOCTO #1211] su -l -c '/etc/X11/Xserver&' $username -- cgit v1.2.3-54-g00ecf