<?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>9828</bug_id>
          
          <creation_ts>2016-06-27 09:05:10 +0000</creation_ts>
          <short_desc>[Beaglebone] mouse doesn&apos;t work when system startup</short_desc>
          <delta_ts>2016-08-23 01:49:43 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Matchbox</product>
          <component>matchbox</component>
          <version>2.2</version>
          <rep_platform>x86</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>2.2 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Plauchu Edwin">edwin.plauchu.camacho</assigned_to>
          <cc>jose.perez.carranza</cc>
    
    <cc>ke.zou</cc>
    
    <cc>kexin.hao</cc>
    
    <cc>leonardo.sandoval.gonzalez</cc>
    
    <cc>ross.burton</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
          
          <qa_contact name="Yi Zhao">yi.zhao</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</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>63336</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2016-06-27 09:05:10 +0000</bug_when>
    <thetext>Image location: http://autobuilder.yoctoproject.org/pub/releases/yocto-2.2_M1.rc2/machines/beaglebone/

Git rev: master/6f0c5537e02c59e1c8f3b08f598dc049ff8ee098

Steps:
1. Download beaglebone rootfs and install it to MMC
2. Boot up the system

The matchbox can startup without problem, but there is no mouse.
When I use keyboard to launch an application (e.g. Terminal), the mouse is back and run without problems.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63522</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-06-30 14:47:01 +0000</bug_when>
    <thetext>My spider-sense says this is something to do with formfactor.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63861</commentid>
    <comment_count>2</comment_count>
    <who name="Plauchu Edwin">edwin.plauchu.camacho</who>
    <bug_when>2016-07-12 18:56:19 +0000</bug_when>
    <thetext>Mouse is working well!

# hexdump -v -e &apos;3/1 &quot;%02x &quot; &quot;\n&quot;&apos; /dev/input/mice
18 ff 00
18 fe 00
18 ff 00
18 ff 00
18 ff 00
18 ff 00
18 ff 00
18 ff 00
18 ff 00
08 01 00

It is mostly a problem related to mouse visualization that disappears when use keyboard to launch an application.

It is even possible launching an application with mouse when it is still invisible.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63922</commentid>
    <comment_count>3</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-07-13 14:47:56 +0000</bug_when>
    <thetext>Just a comment: For this kind of situations, you may do a git bisect in case you know a good commit (you know the bad one). At the end, bisect takes &apos;just&apos; log2(n) steps. The problem is that is too time consuming building a whole image each time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63953</commentid>
    <comment_count>4</comment_count>
    <who name="Plauchu Edwin">edwin.plauchu.camacho</who>
    <bug_when>2016-07-13 22:59:26 +0000</bug_when>
    <thetext>When an application is launched, it&apos;ll be called &quot;launcher_start&quot; within:
matchbox-desktop-2/tree/libtaku/launcher-util.c

This call will end up over a method xcb_flush &quot;https://xcb.freedesktop.org/manual/group__XCB__Core__API.html#ga9361ead09eb756ba9cc8953c4569a789&quot;. So mouse is back and run without problems.

Gdb Breakpoints utilized to get such details:

break launcher_start
break sn_launcher_context_initiate
break sn-launcher.c:291
break sn-xmessages.c:221</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64003</commentid>
    <comment_count>5</comment_count>
    <who name="Plauchu Edwin">edwin.plauchu.camacho</who>
    <bug_when>2016-07-14 19:43:01 +0000</bug_when>
    <thetext>&quot;Mouse is working as expected with xf86-video-fbdev when system startup&quot;

It seems a configuration problem related to xf86-video-modesetting</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64246</commentid>
    <comment_count>6</comment_count>
    <who name="Plauchu Edwin">edwin.plauchu.camacho</who>
    <bug_when>2016-07-20 16:56:32 +0000</bug_when>
    <thetext>We switched to 4.1 instead of 4.4

root@beaglebone:~# uname -mnr
beaglebone 4.1.24-yocto-standard armv7l

Mouse is still invisible when using modesetting</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64461</commentid>
    <comment_count>7</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2016-07-26 02:19:01 +0000</bug_when>
    <thetext>This issue still happens on 2.2 M2 RC1
Git rev: master/36feb38045b7a2af86ece147fec54b0db3bf491f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64490</commentid>
    <comment_count>8</comment_count>
    <who name="Plauchu Edwin">edwin.plauchu.camacho</who>
    <bug_when>2016-07-26 16:04:38 +0000</bug_when>
    <thetext>The mouse is working well over 

X.Org X Server 1.18.4
Release Date: 2016-07-19

:)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64534</commentid>
    <comment_count>9</comment_count>
    <who name="Plauchu Edwin">edwin.plauchu.camacho</who>
    <bug_when>2016-07-27 16:00:27 +0000</bug_when>
    <thetext>X.Org X Server 1.18.4
Release Date: 2016-07-19

tested on and working well
** qemux86
** qemuarm
** real x86-64</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64537</commentid>
    <comment_count>10</comment_count>
    <who name="Plauchu Edwin">edwin.plauchu.camacho</who>
    <bug_when>2016-07-27 16:17:41 +0000</bug_when>
    <thetext>PATCH to upgrade xserver version from 1.18.3 to 1.18.4
http://lists.openembedded.org/pipermail/openembedded-core/2016-July/124393.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65434</commentid>
    <comment_count>11</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2016-08-23 01:49:43 +0000</bug_when>
    <thetext>Verified with 20160819 build.
git rev: master/f038f069977170e323c9c6884c69e0b9e1cf1c6f</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>