<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>701</bug_id>
          
          <creation_ts>2011-02-07 03:37:37 +0000</creation_ts>
          <short_desc>xserver: keyboard input not working</short_desc>
          <delta_ts>2012-06-20 16:11:31 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>graphics</component>
          <version>1.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>Pending info from reporter... (11-Aug-2011) Needs Owner.</status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Wolfgang Denk">wd</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>dvhart</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>poky.adt.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>yp.kernel.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>11679</commentid>
    <comment_count>0</comment_count>
    <who name="Wolfgang Denk">wd</who>
    <bug_when>2011-02-07 03:37:37 +0000</bug_when>
    <thetext>I&apos;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 &quot;evtest&quot; I can verify that keyboard events arrive as expected.

However, none of the applications sees any keyboard input.

After manually restarting the xserver (&quot;/etc/init.d/xserver-nodm restart&quot; on the console) keyboard input starts working fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12025</commentid>
    <comment_count>1</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2011-02-23 18:38:39 +0000</bug_when>
    <thetext>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)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12043</commentid>
    <comment_count>2</comment_count>
    <who name="Wolfgang Denk">wd</who>
    <bug_when>2011-02-23 22:51:35 +0000</bug_when>
    <thetext>As mentioned above, I build for the &quot;qemuarm&quot; 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&apos;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=&quot;$ARGS -keybd keyboard&quot;
 
-        # use usb mouse if present
-        if [ -z &quot;$TSLIB_TSDEVICE&quot; ] &amp;&amp; [ -e /dev/input/mice ]; then
-          ARGS=&quot;$ARGS -mouse mouse,/dev/input/mice&quot;
-        fi
-
-        # kdrive 1.4 onwards needs -mouse args
-        if [ -n &quot;$TSLIB_TSDEVICE&quot; ]; then
-          ARGS=&quot;$ARGS -mouse tslib&quot;
-        fi
-
         # start off server in conventional location.
         case `module_id` in
                 &quot;Generic OMAP1510/1610/1710&quot;)
@@ -56,7 +46,19 @@
                         ARGS=&quot;$ARGS -mouse tslib&quot; ;;
                 &quot;Nokia 770&quot;)
                         ARGS=&quot;$ARGS -mouse tslib&quot; ;;
+		&quot;TAM3517 EVM&quot;)
+			ARGS=&quot;$ARGS -mouse tslib,device=/dev/input/touchscreen0 -mouse mouse,device=/dev/input/mouse1&quot; ;;
                 *)
+		        # use usb mouse if present
+		        if [ -z &quot;$TSLIB_TSDEVICE&quot; ] &amp;&amp; [ -e /dev/input/mice ]; then
+		          ARGS=&quot;$ARGS -mouse mouse,/dev/input/mice&quot;
+		        fi
+		
+		        # kdrive 1.4 onwards needs -mouse args
+		        if [ -n &quot;$TSLIB_TSDEVICE&quot; ]; then
+		          ARGS=&quot;$ARGS -mouse tslib&quot;
+		        fi
+		
                         ;;
         esac</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14335</commentid>
    <comment_count>3</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-06-17 14:56:59 +0000</bug_when>
    <thetext>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          &quot;AutoAddDevices&quot; &quot;True&quot;

The keyboard would not work at all.

With:
        Option          &quot;AutoAddDevices&quot; &quot;False&quot;

The keyboard would work if plugged in prior to starting X or after restarting X. Do you observe the same behavior Wolfgang?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14349</commentid>
    <comment_count>4</comment_count>
    <who name="Wolfgang Denk">wd</who>
    <bug_when>2011-06-20 03:03:55 +0000</bug_when>
    <thetext>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 &quot;AutoAddDevices&quot;
does not appear in any file in /etc.

What exactly should I do?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14353</commentid>
    <comment_count>5</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-06-20 14:06:54 +0000</bug_when>
    <thetext>This is a bit of a mess right now as I&apos;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 &quot;ServerFlags&quot;
        Option		&quot;AutoAddDevices&quot; &quot;False&quot;
EndSection

My suspicion is that xkeyboard-config is reading that - but that&apos;s just a hunch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14709</commentid>
    <comment_count>6</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2011-07-13 06:39:28 +0000</bug_when>
    <thetext>Denk, does  Darren&apos;s suggestion works for you?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15348</commentid>
    <comment_count>7</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2011-08-09 06:30:49 +0000</bug_when>
    <thetext>can we lower the priority since the reporter does not response for quite long time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15415</commentid>
    <comment_count>8</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-08-11 15:41:07 +0000</bug_when>
    <thetext>Wolfgang, is this still an issue for you?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16286</commentid>
    <comment_count>9</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2011-09-19 06:38:20 +0000</bug_when>
    <thetext>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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21387</commentid>
    <comment_count>10</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-05-16 21:33:26 +0000</bug_when>
    <thetext>This is certainly a more generic X configuration issue and not a Kernel issue. Recategorizing, it also needs a new owner.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22429</commentid>
    <comment_count>11</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-06-20 16:09:09 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22430</commentid>
    <comment_count>12</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2012-06-20 16:11:31 +0000</bug_when>
    <thetext>Rather than just closing this bug on the assumption it is fixed, I would much rather someone actually tested this; it&apos;s not hard to test.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>