<?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>4992</bug_id>
          
          <creation_ts>2013-08-07 17:05:21 +0000</creation_ts>
          <short_desc>Mouse unusable on NUC</short_desc>
          <delta_ts>2013-10-21 13:19:28 +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>BSPs</product>
          <component>bsps-meta-intel</component>
          <version>unspecified</version>
          <rep_platform>NUC</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Nitin Kamble">nitin.a.kamble</assigned_to>
          <cc>dvhart</cc>
    
    <cc>ionutx.chisanovici</cc>
    
    <cc>ross.burton</cc>
    
    <cc>tom.zanussi</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>35466</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-08-07 17:05:21 +0000</bug_when>
    <thetext>With a fairly standard Logitech USB mouse, if it is plugged into the NUC during boot it is powered off and non-functional by the time X starts up. Unplugging it and plugging it back in makes it work, but after 3 seconds of inactivity it powers off and stops working. I strongly suspect this has to do with USB auto-suspend; the problem though is there doesn&apos;t seem to be any way of waking it up other than re-plugging, which is somewhat impractical.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35467</commentid>
    <comment_count>1</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2013-08-07 17:24:47 +0000</bug_when>
    <thetext>Paul,
  You are right about this being a USB suspend issue. FYI, key press on keyboard wakes up the mouse. There is also a kernel parameter to disable USB suspend to overcome the issue, if you need that let me know. But IMO this needs further investigation, to understand why is it happening.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35470</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-08-07 17:50:07 +0000</bug_when>
    <thetext>If I press keys on the keyboard it does not wake up the mouse. The way I have things currently plugged in (mostly by chance) I have the keyboard plugged into the front port and the mouse into one of the ones on the rear, so at first I thought that maybe this was because the front and rear ports were on separate hubs. However, lsusb -t seems to show that this is not the case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35473</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2013-08-07 18:32:08 +0000</bug_when>
    <thetext>I note that meta-nuc turns on autosuspend globally for all devices via a kernel parameter.  I&apos;m pretty sure this isn&apos;t encouraged by upstream (as it&apos;s not default) and they&apos;re taking the approach of whitelisting devices that *do* suspend or letting people with known working configurations turn it on globally on a case-by-case basis.

(I&apos;ve got a ThinkPad USB keyboard/trackpoint, and when it suspends only keyboard input wakes it, and that takes ~one second to actually wake fully)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35492</commentid>
    <comment_count>4</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-08-08 14:39:32 +0000</bug_when>
    <thetext>Nitin, could you please have a look at this today or tomorrow?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35509</commentid>
    <comment_count>5</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2013-08-08 17:19:21 +0000</bug_when>
    <thetext>Darren,
  ok, I will to some poking here. I think this is not NUC specific. Possibly the generic kernel config meta data in v3.8 kernel repo.

Nitin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35514</commentid>
    <comment_count>6</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2013-08-08 17:59:32 +0000</bug_when>
    <thetext>I think a udev rules like this should solve the issue. I will be testing it out soon.

SUBSYSTEM==&quot;input&quot;, ACTION==&quot;add&quot;, ATTR{power/control}=&quot;on&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35524</commentid>
    <comment_count>7</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2013-08-09 00:57:06 +0000</bug_when>
    <thetext>A fix sent to linux-yocto mailing list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35529</commentid>
    <comment_count>8</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2013-08-09 09:12:42 +0000</bug_when>
    <thetext>So my thought that autosuspend was globally enabled on NUC was incorrect, it&apos;s globally enabled on atom-pc (which is why I was seeing on my NUC occasionally).  I&apos;ll send a patch to fix that too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35548</commentid>
    <comment_count>9</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2013-08-09 15:09:39 +0000</bug_when>
    <thetext>
The linux-yocto-3.8 kernel repo is updated to change the kernel config for Intel BSPs. Now all Intel BSPs using linux-yocto-3.8 kernel need to update the commit of their meta branch, which will solve the issue. I will be doing this for bunch of BSPs from meta-intel layer. Rest of the Intel BSPs need to be updated by their maintainers.

Thanks,
Nitin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35596</commentid>
    <comment_count>10</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2013-08-13 03:20:24 +0000</bug_when>
    <thetext>commit a6b7129fa25bf295a5b0f6ae5fd3f28ef04974ad
Author: Nitin A Kamble &lt;nitin.a.kamble@intel.com&gt;
Date:   Fri Aug 9 17:14:58 2013 +0000

    nuc:linux-yocto-3.8: update meta branch srcrev
    
    This fixes USB autosuspend issues related to non-responsive mice &amp; keyboards.
    
    Fixes bug:
    [YOCTO #4992]
    
    Signed-off-by: Nitin A Kamble &lt;nitin.a.kamble@intel.com&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38108</commentid>
    <comment_count>11</comment_count>
    <who name="Ionut Chisanovici">ionutx.chisanovici</who>
    <bug_when>2013-10-21 13:19:28 +0000</bug_when>
    <thetext>Verified, usb mouse and keyboard are working normally without interruptions on NUC, mouse is working/functional after minutes of inactivity.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>