| Summary: | usb mouse and keyboard don't work at liveboot on atom-pc | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BSPs | Reporter: | Alexandru Georgescu <alexandru.c.georgescu> |
| Component: | bsps-meta-intel | Assignee: | Darren Hart <dvhart> |
| Status: | VERIFIED OBSOLETE | QA Contact: | |
| Severity: | major | ||
| Priority: | Medium+ | CC: | tom.zanussi |
| Version: | unspecified | ||
| Target Milestone: | 1.4 M6 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Alexandru Georgescu
2013-04-01 12:51:39 UTC
Sent the following to oe-core: Current master atom-pc build + pending 3.8 kernel update us using rootless X, but X fails to open the event devices. Do we need some kind of default group permissions for the /dev/input/* devices? root@atom-pc:/etc/X11# cat /var/log/Xorg.0.log | grep EE | grep "event" [3430478.394] (EE) evdev: Power Button: Unable to open evdev device "/dev/input/event2". [3430478.398] (EE) evdev: Video Bus: Unable to open evdev device "/dev/input/event3". [3430478.401] (EE) evdev: Power Button: Unable to open evdev device "/dev/input/event1". [3430478.410] (EE) evdev: HP HP Wireless Mini Keyboard: Unable to open evdev device "/dev/input/event5". [3430478.414] (EE) evdev: HP HP Wireless Mini Keyboard: Unable to open evdev device "/dev/input/event6". [3430478.421] (EE) evdev: AT Translated Set 2 keyboard: Unable to open evdev device "/dev/input/event4". [3430478.434] (EE) synaptics: SynPS/2 Synaptics TouchPad: no synaptics event device found ... root@atom-pc:/etc/X11# cat /etc/group | grep xuser tty:x:5:xuser audio:x:29:xuser video:x:44:xuser xuser:x:1000: root@atom-pc:/etc/X11# ls -la /dev/input/event event0 event1 event2 event3 event4 event5 event6 event7 root@atom-pc:/etc/X11# ls -la /dev/input/event* crw-r----- 1 root root 13, 64 Apr 2 20:38 /dev/input/event0 crw-r----- 1 root root 13, 65 Apr 2 20:38 /dev/input/event1 crw-r----- 1 root root 13, 66 Apr 2 20:38 /dev/input/event2 crw-r----- 1 root root 13, 67 Apr 2 20:38 /dev/input/event3 crw-r----- 1 root root 13, 68 Apr 2 20:38 /dev/input/event4 crw-r----- 1 root root 13, 69 Apr 2 20:52 /dev/input/event5 crw-r----- 1 root root 13, 70 Apr 2 20:52 /dev/input/event6 crw-r----- 1 root root 13, 71 Apr 2 20:38 /dev/input/event7 This is a rootless X permissions issue and not a BSP or kernel issue. Note that changing the permissions of /dev/input/* to a+rw causes X to start working again. This could be a udev rule. We could also make them part of the xuser group. We could also not run X as non-root. This seems to come up over and over. Who is enabling rootless X? Who is testing it before it goes in? Discussed with RP. Approach: Add input group Add udev rule for /dev/input/* to be in input group and g+rw Add xuser to input group Patch written and currently under build/test. Patch sent to oe-core. commit 12c9f9a83572423185455dbfee5d2083cbf826df Author: Darren Hart <dvhart@linux.intel.com> Date: Wed Apr 3 12:49:41 2013 -0700 xserver-nodm-init: Add xuser to input group (In reply to comment #5) > commit 12c9f9a83572423185455dbfee5d2083cbf826df > Author: Darren Hart <dvhart@linux.intel.com> > Date: Wed Apr 3 12:49:41 2013 -0700 > > xserver-nodm-init: Add xuser to input group Will verify this on the next release. Verified - obsolete |