Bug 5279

Summary: usb mouse and keyboard don't work at liveboot on emenlow
Product: [Build System, Metadata & Runtime] BSPs Reporter: Ada Solcan <ada-mihaela.solcan>
Component: bsps-meta-intelAssignee: Nitin Kamble <nitin.a.kamble>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: alexandru.c.georgescu, alexandrux.palalau, ross.burton, tom.zanussi
Version: 1.5   
Target Milestone: 1.5 M5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: No (bug/feature does not impact docs)

Description Ada Solcan 2013-09-26 14:03:04 UTC
meta-intel: 67b58a79279ad1beaf8dc0c68fb411f1d440abe4
poky: 4d8ab87d25ea6e59dc88375813ef88ee0ac813d0
image: http://autobuilder03.jf.intel.com/pub/nightly-meta-intel/CURRENT/machines/emenlow/emenlow/core-image-sato-sdk-emenlow.hddimg

On liveboot from USB, keyboard and mouse doesn't work.
Comment 1 Ada Solcan 2013-09-26 14:20:35 UTC
Also when installing the system from USB the keyboard and mouse don't work.
Comment 2 Darren Hart 2013-09-26 15:09:19 UTC
Nitin, can you determine if this is the result of Ross's recent xorg refactor?
Comment 3 Nitin Kamble 2013-09-26 18:03:01 UTC
This happened on fri2 also. And reverting the Rosses' xorg change fixes the issue.


Nitin
Comment 4 Ross Burton 2013-09-26 18:30:55 UTC
*Messed up*.  Can you replicating fixing it with a xorg.conf that just contains the input hotplug fragment?  If so, logs from both working and not working would be good.

I'm about to disappear for a bit so don't have time to check the BSPs, but check that you've the xf86-input-evdev driver installed too.
Comment 5 Nitin Kamble 2013-09-27 19:16:26 UTC
The issue is specific to X server, all of our EMGD & noemgd bsps are broken due to this change. And all of these have older version of X. Rest of the BSPs like, sugerbay, nuc & jasperforest are not broken.

I will send fixes for the broken BSPs.
Comment 6 Ross Burton 2013-09-27 20:40:07 UTC
Hm, check the xorg logs when it loads the drivers - it may be warning that module versions don't match.  This shouldn't happen since the driver ABI dependencies landed in 1.4, but you never know.
Comment 7 Alexandru Georgescu 2013-09-30 10:57:40 UTC
crownbay-noemgd has this problem too
Comment 8 Alexandru Palalau 2013-10-01 07:24:59 UTC
Also, on FRI2 after install.
Comment 9 Nitin Kamble 2013-10-01 19:00:25 UTC
diff of xorg logs:

--- Xorg.0.log.working.0        2013-09-27 12:32:41.886833352 -0700
+++ Xorg.0.log.broken.0 2013-09-27 12:32:28.204773752 -0700
@@ -13,15 +13,14 @@
  Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
- (==) Log file: "/var/log/Xorg.0.log", Time: Fri Sep 27 18:33:13 2013
+ (==) Log file: "/var/log/Xorg.0.log", Time: Fri Sep 27 18:35:08 2013
  (==) Using config file: "/etc/X11/xorg.conf"
  (==) Using system config directory "/usr/share/X11/xorg.conf.d"
  (==) ServerLayout "Default Layout"
  (**) |-->Screen "Default Screen" (0)
  (**) |   |-->Monitor "Generic Monitor"
  (**) |   |-->Device "gma500"
- (**) Option "AutoAddDevices" "False"
- (**) Not automatically adding devices
+ (==) Automatically adding devices
  (==) Automatically enabling devices
  (==) Automatically adding GPU devices
  (WW) The directory "/usr/share/fonts/X11/misc/" does not exist.
@@ -39,12 +38,8 @@
  (==) FontPath set to:

  (==) ModulePath set to "/usr/lib/xorg/modules"
- (==) |-->Input Device "<default pointer>"
- (==) |-->Input Device "<default keyboard>"
- (==) The core pointer device wasn't specified explicitly in the layout.
-       Using the default mouse configuration.
- (==) The core keyboard device wasn't specified explicitly in the layout.
-       Using the default keyboard configuration.
+ (II) The server relies on udev to provide the list of input devices.
+       If no devices become available, reconfigure udev or disable AutoAddDevices.
  (II) Loader magic: 0x823db00
  (II) Module ABI versions:
        X.Org ANSI C Emulation: 0.4
@@ -91,18 +86,6 @@
        compiled for 1.14.0, module version = 0.8.0
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 14.1
- (II) LoadModule: "mouse"
- (II) Loading /usr/lib/xorg/modules/input/mouse_drv.so
- (II) Module mouse: vendor="X.Org Foundation"
-       compiled for 1.14.0, module version = 1.9.0
-       Module class: X.Org XInput Driver
-       ABI class: X.Org XInput driver, version 19.1
- (II) LoadModule: "kbd"
- (II) Loading /usr/lib/xorg/modules/input/kbd_drv.so
- (II) Module kbd: vendor="X.Org Foundation"
-       compiled for 1.14.0, module version = 1.7.0
-       Module class: X.Org XInput Driver
-       ABI class: X.Org XInput driver, version 19.1
  (II) modesetting: Driver for Modesetting Kernel Drivers: kms
  (--) using VT number 2

@@ -242,34 +225,7 @@
  (II) GLX: no usable GL providers found for screen 0
  (II) modesetting(0): Damage tracking initialized
  (II) modesetting(0): Setting screen physical size to 270 x 203
- (II) Using input driver 'mouse' for '<default pointer>'
- (**) Option "CorePointer" "on"
- (**) <default pointer>: always reports core events
- (WW) <default pointer>: No Device specified, looking for one...
- (II) <default pointer>: Setting Device option to "/dev/input/mice"
- (--) <default pointer>: Device: "/dev/input/mice"
- (==) <default pointer>: Protocol: "Auto"
- (**) <default pointer>: always reports core events
- (**) Option "Device" "/dev/input/mice"
- (==) <default pointer>: Emulate3Buttons, Emulate3Timeout: 50
- (**) <default pointer>: ZAxisMapping: buttons 4 and 5
- (**) <default pointer>: Buttons: 9
- (II) XINPUT: Adding extended input device "<default pointer>" (type: MOUSE, id 6)
- (**) <default pointer>: (accel) keeping acceleration scheme 1
- (**) <default pointer>: (accel) acceleration profile 0
- (**) <default pointer>: (accel) acceleration factor: 2.000
- (**) <default pointer>: (accel) acceleration threshold: 4
- (II) <default pointer>: Setting mouse protocol to "ExplorerPS/2"
- (II) <default pointer>: ps2EnableDataReporting: succeeded
- (II) Using input driver 'kbd' for '<default keyboard>'
- (**) Option "CoreKeyboard" "on"
- (**) <default keyboard>: always reports core events
- (**) <default keyboard>: always reports core events
- (**) Option "Protocol" "standard"
- (**) Option "XkbRules" "base"
- (**) Option "XkbModel" "pc105"
- (**) Option "XkbLayout" "us"
- (II) XINPUT: Adding extended input device "<default keyboard>" (type: KEYBOARD, id 7)
  (II) config/udev: Adding drm device (/dev/dri/card0)
  (II) config/udev: Adding input device USB Keyboard (/dev/input/mouse0)
- (II) AutoAddDevices is off - not adding device.
+ (II) No input driver specified, ignoring this device.
+ (II) This device may have been added with another device file.
Comment 10 Ross Burton 2013-10-01 19:17:05 UTC
  (II) config/udev: Adding input device USB Keyboard (/dev/input/mouse0)
  (II) No input driver specified, ignoring this device.

Huh. Now I've seen that before which is totally annoying.  Broken udev, iirc.  Pinging a friend.

Can you verify that the evdev, mouse and keyboard xf86-input drivers are installed in the image?  A full broken xorg log would be useful.
Comment 11 Nitin Kamble 2013-10-01 21:58:31 UTC
I noticed that the target image does not have the evdev kernel driver, which provides the /dev/input/event* device files, which xserver is looking for.

Adding this to kernel config gets the event files, and fixes the issue.

CONFIG_INPUT_EVDEV=y
Comment 12 Nitin Kamble 2013-10-03 19:42:18 UTC
These commits in meta-intel repo fixes the issue.

0484d58 emenlow: linux-yocto v3.8 & v3.10 update srcrevs
4517528 crownbay: linux-yocto v3.8 & v3.10 update srcrevs
6d0fc50 fri2: linux-yocto v3.8 & v3.10 update srcrevs
3bf806b sys940x: linux-yocto v3.8 & v3.10 update srcrevs
4721ab3 sugarbay: linux-yocto v3.8 & v3.10 update srcrevs
88e5a61 jasperforest: linux-yocto v3.8 & v3.10 update srcrevs
6f003a9 chiefriver: linux-yocto v3.8 & v3.10 update srcrevs
a1138af nuc: linux-yocto v3.8 & v3.10 update srcrevs
Comment 13 Ada Solcan 2013-10-08 08:09:12 UTC
Verified on emenlow