[yocto] Problem with mouse and keyboard detection in yocto (core-image-sato on emenlow)

Andreas Enbacka aenbacka at gmail.com
Mon Apr 8 05:12:51 PDT 2013


I rebuilt xf86-input-keyboard and xf86-input-mouse (as well as the core-image-sato image), and now the mouse / keyboard works ok in X. Thanks for the assistance.

I checked the Xorg log file, it seems to add the mouse using the mouse_drv.so module, not evdev_drv.so. Do I need to rebuild xf86-input-evdev as well to get the mouse added using evdev? This because I have a custom application that handles the touch screen calibration running on top of X, and itexpects the mouse to be added via evdev. 

//Andreas

-----Original Message-----
From: Burton, Ross [mailto:ross.burton at intel.com] 
Sent: 8. huhtikuuta 2013 13:34
To: Andreas Enbacka
Cc: yocto at yoctoproject.org
Subject: Re: [yocto] Problem with mouse and keyboard detection in yocto (core-image-sato on emenlow)

On 8 April 2013 10:50, Andreas Enbacka <aenbacka at gmail.com> wrote:
> Thanks for your reply, very much appreciated. I am currently using Poky master. I have attached the complete Xorg.0.log; it does not contain any mentions of evdev, only mouse, which would imply that evdev does not get loaded of some reason.

That's interesting, it should be loading the evdev module.  Can you confirm that it's present in /usr/lib/xorg/modules/input?

Your log shows that it didn't load the kbd and mouse modules because the versions don't match:

[3901748.190] (II) LoadModule: "mouse"
[3901748.191] (II) Loading /usr/lib/xorg/modules/input/mouse_drv.so
[3901748.208] (II) Module kbd: vendor="X.Org Foundation"
[3901748.208]   compiled for 1.13.1, module version = 1.6.2
[3901748.203] (EE) module ABI major version (18) doesn't match the server's version (11) [3901748.204] (EE) Failed to load module "mouse" (module requirement mismatch, 0)

This shouldn't happen in master because the server and the modules have runtime-dependences injected to stop this happening:

$ dpkg -I xf86-input-mouse_1.8.1-r21.0.0_armv5te.ipk
...
 Depends: xorg-abi-input-19, libc6 (>= 2.17)

$ dpkg -I xserver-xorg_1.14.0-r8.0.0_armv5te.ipk
...
 Provides: xserver-xorg-extension-extmod, xserver-xorg-extension-dri, xorg-abi-video-14, xorg-abi-input-19, xserver-xorg-extension-dbe, xserver-xorg-extension-record, xserver-xorg-extension-dri2

Something went wrong and your drivers were built with a newer version of the server (1.13.1) than you're actually running (1.9.3). I suspect what's happened is that you've done a non-emenlow build (say, atom-pc) in the same build directory and your emenlow build is re-using the drivers.  Rebuilding the drivers should help, so "bitbake -ccleansstate xorg-input-keyboard xorg-input-mouse" and then re-build your image.

Ross




More information about the yocto mailing list