<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:796148765;
mso-list-type:hybrid;
mso-list-template-ids:-1924861834 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level2
{mso-level-tab-stop:1.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level3
{mso-level-tab-stop:1.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level4
{mso-level-tab-stop:2.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level5
{mso-level-tab-stop:2.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level6
{mso-level-tab-stop:3.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level7
{mso-level-tab-stop:3.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level8
{mso-level-tab-stop:4.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level9
{mso-level-tab-stop:4.5in;
mso-level-number-position:left;
text-indent:-.25in;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi ALL:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I run weston 1.5.0 with XWayland support using fb backend, but Xserver and Xterm were stuck in waiting events.
<o:p></o:p></p>
<p class="MsoNormal">I build xserver according the following URL, and xserver is listening.<o:p></o:p></p>
<p class="MsoNormal">
<o:p></o:p></p>
<p class="MsoNormal">[08:36:59.390] xserver listening on display :0<o:p></o:p></p>
<p class="MsoNormal"><a href="http://wayland.freedesktop.org/xserver.html">http://wayland.freedesktop.org/xserver.html</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Can anyone give some advice to me, thanks a lot.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in;text-indent:-.25in;mso-list:l0 level1 lfo1">
<![if !supportLists]><b><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">
</span></span></b><![endif]><b>Xserver starting seem ok, it is the same with X Application run in RebeccaBlack image<o:p></o:p></b></p>
<p class="MsoListParagraph" style="margin-left:.25in">root@imx6qsabresd:~# xterm<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">Date: 2014-06-17 UTC<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">[01:35:14.261] forked X server, pid 843<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">[01:35:14.834] xfixes version: 5.0<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">[01:35:14.903] created wm, root 71
<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in"><o:p> </o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in;text-indent:-.25in;mso-list:l0 level1 lfo1">
<![if !supportLists]><b><span style="mso-list:Ignore">2.<span style="font:7.0pt "Times New Roman"">
</span></span></b><![endif]><b>Xserver stuck in WaitForSomething<o:p></o:p></b></p>
<p class="MsoListParagraph" style="margin-left:.25in">/*****************<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">* WaitForSomething:<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">* Make the server suspend until there is<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">* 1. data from clients or<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">* 2. input events available or<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">* 3. ddx notices something of interest (graphics<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">* queue ready, etc.) or<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">* 4. clients that have buffered replies/events are ready<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">*<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">* If the time between INPUT events is<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">* greater than ScreenSaverTime, the display is turned off (or<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">* saved, depending on the hardware). So, WaitForSomething()<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">* has to handle this also (that's why the select() has a timeout.<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">* For more info on ClientsWithInput, see ReadRequestFromClient().<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">* pClientsReady is an array to store ready client->index values into.<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">*****************/<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.25in">0x76c50a0c in select () from /lib/libc.so.6<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.25in">(gdb) bt<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.25in">#0 0x76c50a0c in select () from /lib/libc.so.6<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.25in">#1 0x0013ec7c in WaitForSomething (pClientsReady=0x0,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.25in"> pClientsReady@entry=0x1737ec <dispatchException>)<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.25in"> at /usr/src/debug/xserver-xorg/2_git-r0/git/os/WaitFor.c:226<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.25in">#2 0x00110734 in Dispatch ()<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.25in"> at /usr/src/debug/xserver-xorg/2_git-r0/git/dix/dispatch.c:361<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.25in">#3 0x0011474c in dix_main (argc=10, argv=0x11474c <dix_main+1052>,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.25in"> envp=<optimized out>)<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.25in"> at /usr/src/debug/xserver-xorg/2_git-r0/git/dix/main.c:296<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.25in">#4 0x76b9f2bc in __libc_start_main () from /lib/libc.so.6<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.25in">#5 0x0002d57c in _start () at ../ports/sysdeps/arm/start.S:124<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in;text-indent:-.25in;mso-list:l0 level1 lfo1">
<![if !supportLists]><b><span style="mso-list:Ignore">3.<span style="font:7.0pt "Times New Roman"">
</span></span></b><![endif]><b>Xterm stuck in read_block.<o:p></o:p></b></p>
<p class="MsoListParagraph" style="margin-left:.25in">0x76d2ebd8 in poll () from /lib/libc.so.6<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">(gdb) bt<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">#0 0x76d2ebd8 in poll () from /lib/libc.so.6<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">#1 0x76c28bdc in read_block (len=8, buf=0x6adc8, fd=3)<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in"> at /usr/src/debug/libxcb/1.10-r0/libxcb-1.10/src/xcb_in.c:382<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">#2 _xcb_in_read_block (c=c@entry=0x6ae80, buf=<optimized out>,<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in"> len=len@entry=8)<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in"> at /usr/src/debug/libxcb/1.10-r0/libxcb-1.10/src/xcb_in.c:978<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">#3 0x76c26b1c in read_setup (c=0x6ae80)<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in"> at /usr/src/debug/libxcb/1.10-r0/libxcb-1.10/src/xcb_conn.c:148<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">#4 xcb_connect_to_fd (fd=<optimized out>, auth_info=auth_info@entry=0x0)<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in"> at /usr/src/debug/libxcb/1.10-r0/libxcb-1.10/src/xcb_conn.c:330<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">#5 0x76c2a310 in xcb_connect_to_display_with_auth_info (<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in"> displayname=<optimized out>, auth=0x0, screenp=0x0)<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in"> at /usr/src/debug/libxcb/1.10-r0/libxcb-1.10/src/xcb_util.c:472<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">#6 0x76dfc9c0 in _XConnectXCB () from /usr/lib/libX11.so.6<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">#7 0x76dee2d0 in XOpenDisplay () from /usr/lib/libX11.so.6<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">#8 0x76ef3164 in XtOpenDisplay () from /usr/lib/libXt.so.6<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">#9 0x76ef36d0 in _XtAppInit () from /usr/lib/libXt.so.6<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">#10 0x76efcbd4 in XtOpenApplication () from /usr/lib/libXt.so.6<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in">#11 0x0003bc1c in ?? ()
<o:p></o:p></p>
<p class="MsoListParagraph"><o:p> </o:p></p>
<p class="MsoNormal">Best regards<o:p></o:p></p>
<p class="MsoNormal">Yong Gan<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>