| Summary: | xserver: keyboard input not working | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Wolfgang Denk <wd> |
| Component: | graphics | Assignee: | Saul Wold <sgw> |
| Status: | RESOLVED OBSOLETE | QA Contact: | |
| Severity: | normal | ||
| Priority: | Low | CC: | bluelightning, dvhart, jessica.zhang, meta.mr.watcher, meta.watcher, poky.adt.watcher, poky.watcher, yp.kernel.watcher, yp.watcher |
| Version: | 1.0 | ||
| Target Milestone: | 1.3 | ||
| Hardware: | All | ||
| OS: | arm | ||
| Whiteboard: | Pending info from reporter... (11-Aug-2011) Needs Owner. | ||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
Hi Denk, could you provide more info on the configuration, especially: - Which ARM board are you using - which kernel version - The xserver config file (/etc/X11/xorg.conf) As mentioned above, I build for the "qemuarm" configuration, which is generic enough for me to be used on several different boards, including a QONG eval board (Freescale i.MX31 based, see http://denx-cs.de/?q=QONG) and a TWISTER eval board (TI Sitara AM3517 based, see http://denx-cs.de/?q=TAM3517). I'm using our own (basicly mainline) kernel on the Qong (2.6.36 based),and the vendor-provided kernel tree on the Twister (2.6.32 based). For /etc/X11/xorg.conf I used both the unmodified version from the poky build and with the following tuning for the twister board: --- etc/X11/Xserver.ORIG 2011-02-02 18:45:28.000000000 +0000 +++ etc/X11/Xserver 2011-02-03 11:09:06.000000000 +0000 @@ -34,16 +34,6 @@ ARGS="$ARGS -keybd keyboard" - # use usb mouse if present - if [ -z "$TSLIB_TSDEVICE" ] && [ -e /dev/input/mice ]; then - ARGS="$ARGS -mouse mouse,/dev/input/mice" - fi - - # kdrive 1.4 onwards needs -mouse args - if [ -n "$TSLIB_TSDEVICE" ]; then - ARGS="$ARGS -mouse tslib" - fi - # start off server in conventional location. case `module_id` in "Generic OMAP1510/1610/1710") @@ -56,7 +46,19 @@ ARGS="$ARGS -mouse tslib" ;; "Nokia 770") ARGS="$ARGS -mouse tslib" ;; + "TAM3517 EVM") + ARGS="$ARGS -mouse tslib,device=/dev/input/touchscreen0 -mouse mouse,device=/dev/input/mouse1" ;; *) + # use usb mouse if present + if [ -z "$TSLIB_TSDEVICE" ] && [ -e /dev/input/mice ]; then + ARGS="$ARGS -mouse mouse,/dev/input/mice" + fi + + # kdrive 1.4 onwards needs -mouse args + if [ -n "$TSLIB_TSDEVICE" ]; then + ARGS="$ARGS -mouse tslib" + fi + ;; esac I believe this is due to the AutoAdd clause in the xorg.conf under ServerFlags, at least it caused similar behavior for me on the beagleboard:
With:
Option "AutoAddDevices" "True"
The keyboard would not work at all.
With:
Option "AutoAddDevices" "False"
The keyboard would work if plugged in prior to starting X or after restarting X. Do you observe the same behavior Wolfgang?
Sorry, but I did not understand what exactly you want me to test. There is no /etc/X11/xorg.conf fine in my image (nor any xorg.conf in the whole file system image). Also, the string "AutoAddDevices" does not appear in any file in /etc. What exactly should I do? This is a bit of a mess right now as I'm experimenting with replacing kdrive with xf86-lite. However, for your immediate question, try creating /etc/X11/xorg.conf and adding the following to it:
Section "ServerFlags"
Option "AutoAddDevices" "False"
EndSection
My suspicion is that xkeyboard-config is reading that - but that's just a hunch.
Denk, does Darren's suggestion works for you? can we lower the priority since the reporter does not response for quite long time. Wolfgang, is this still an issue for you? FWIW I have seen this same problem with a recent build from master on an atom-pc system. Using the suggested workaround fixes it assuming you have the keyboard plugged in at X startup; surely however we want users to be able to plug in a keyboard at any time? This is certainly a more generic X configuration issue and not a Kernel issue. Recategorizing, it also needs a new owner. As the sumbitter has not updated information in a number of months, I am closing this, it can be repoened if the issue re-appears. Rather than just closing this bug on the assumption it is fixed, I would much rather someone actually tested this; it's not hard to test. |
I'm testing poky-image-sato-sdk, current top of tree, in the qemuarm configuration on real ARM hardware. When attaching a USB keyboard, it gets properly recognized by the Linux kernel; by running "evtest" I can verify that keyboard events arrive as expected. However, none of the applications sees any keyboard input. After manually restarting the xserver ("/etc/init.d/xserver-nodm restart" on the console) keyboard input starts working fine.