Bug 4164 - usb mouse and keyboard don't work at liveboot on atom-pc
Summary: usb mouse and keyboard don't work at liveboot on atom-pc
Status: VERIFIED OBSOLETE
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-meta-intel (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ major
Target Milestone: 1.4 M6
Assignee: Darren Hart
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-04-01 12:51 UTC by Alexandru Georgescu
Modified: 2013-11-18 15:05 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandru Georgescu 2013-04-01 12:51:39 UTC
meta-intel: 2e8760d272aa2c62b41cbf768445c99569604c5e
poky: bdca49274173153b1b0a72887de6321b4756b684
image: http://autobuilder.yoctoproject.org/pub/nightly/20130327-1/machines/atom-pc/core-image-sato-sdk-atom-pc.hddimg

machine: Lenovo S10-3

On liveboot, keyboard and mouse doesn't work.
Comment 1 Darren Hart 2013-04-02 21:22:25 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
Comment 2 Darren Hart 2013-04-02 21:23:55 UTC
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?
Comment 3 Darren Hart 2013-04-02 22:14:42 UTC
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.
Comment 4 Darren Hart 2013-04-02 22:40:49 UTC
Patch sent to oe-core.
Comment 5 Darren Hart 2013-04-05 17:20:51 UTC
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
Comment 6 Alexandru Georgescu 2013-04-10 09:12:35 UTC
(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.
Comment 7 Alexandru Georgescu 2013-11-18 15:05:07 UTC
Verified - obsolete