<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=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@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:"Segoe UI";
panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="border:none;padding:0in"><b>From: </b><a href="mailto:ddeyo@tireprofiles.com">David Deyo</a><br>
<b>Sent: </b>Monday, August 2, 2021 3:53 PM<br>
<b>To: </b><a href="mailto:ppaalanen@gmail.com">Pekka Paalanen</a><br>
<b>Subject: </b>RE: xrandr and xwayland</p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">On Fri, 30 Jul 2021 23:30:38 +0100<o:p></o:p></p>
<p class="MsoNormal">Carsten Haitzler <raster@rasterman.com> wrote:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">> On Fri, 30 Jul 2021 16:28:02 +0000 David Deyo <ddeyo@tireprofiles.com> said:<o:p></o:p></p>
<p class="MsoNormal">> <o:p></o:p></p>
<p class="MsoNormal">> No - this is up to the compositor itself to do in its own internal ways. Far<o:p></o:p></p>
<p class="MsoNormal">> too many abuses have happened over the years with xrandr available to any<o:p></o:p></p>
<p class="MsoNormal">> client anywhere. While in theory a wayland compositor could create an extension<o:p></o:p></p>
<p class="MsoNormal">> that works like xrandr, it'd be problematic to make it general-access like<o:p></o:p></p>
<p class="MsoNormal">> xrandr.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">>>>Indeed.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">> > <o:p></o:p></p>
<p class="MsoNormal">> > Hello everyone,<o:p></o:p></p>
<p class="MsoNormal">> > <o:p></o:p></p>
<p class="MsoNormal">> > I need to rotate my screen 90 degrees and back to normal in xwayland on an<o:p></o:p></p>
<p class="MsoNormal">> > iMX8 running gatesgarth distro.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">>>>Maybe you could explain your top-level use case for this, and the<o:p></o:p></p>
<p class="MsoNormal">>>>general system architecture (which relevant programs are running and<o:p></o:p></p>
<p class="MsoNormal">>>>what their responsibilities are)?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#548235">Distro:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#548235">I am working on a product that our company is creating. It uses an imx8 som from Boundary. The system is not a normal desktop.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#548235">The DISTRO is created by yocto using the gatesgarth branch. Just recently we were notified that Xwayland was working, so I don’t expect we will be removing it just yet.<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#548235">Use case:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#548235">We will have a kiosk-looking desktop. Some of our pages will have the option for the end user to enter text from an on-screen keyboard.<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="color:#548235">Since our display will be so small (</span><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#548235">68.04mm (2.68") x 120.96mm (4.76")</span><span style="color:#548235">), we will have to
turn our unit sideways to make the keyboard fit. We have already done this on a smaller screen (1.0).</span><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:#548235">On our 1.0 product, we used Segger as our graphics library. Compared to Android, and the like, it seems like rotating the screen would be a standard capability.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#548235"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#548235">I believe our compositor (Weston) can do it, transform=90, but to use this method, it has to be restarted; causing our gui app to crash and lose all entered data.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#548235">The client probably needs to drive the orientation. Considering our gui will likely be in python3/tkinter, I will need some way create a page and rotate the display.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#548235"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#548235">I am somewhat limited by the packages available to me in my distro.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#548235"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#548235">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#548235"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#548235">-dwd<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#548235"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">>>>Quite likely the solution will start by removing Xwayland from the<o:p></o:p></p>
<p class="MsoNormal">>>>equation, and to have the compositor you use to automatically apply<o:p></o:p></p>
<p class="MsoNormal">>>>that rotation when needed, but how to achieve that depends on your use<o:p></o:p></p>
<p class="MsoNormal">>>>case. Can the compositor do it all on its own, does the client need to<o:p></o:p></p>
<p class="MsoNormal">>>>synchronise to the orientation change, does the client need to drive<o:p></o:p></p>
<p class="MsoNormal">>>>the orientation change, etc.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">>>>Also sounds like this might not be a normal desktop system you are<o:p></o:p></p>
<p class="MsoNormal">>>>working on, which means you have more options on how to design this<o:p></o:p></p>
<p class="MsoNormal">>>>than on normal desktop systems with arbitrary applications.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">>>>Thanks,<o:p></o:p></p>
<p class="MsoNormal">>>>pq<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">> > <o:p></o:p></p>
<p class="MsoNormal">> > Does anyone know if xrandr can be coerced/modified to make rotations work?<o:p></o:p></p>
<p class="MsoNormal">> > I’m in the middle of xserver, libX11, libxrandr and xrandr source.<o:p></o:p></p>
<p class="MsoNormal">> > <o:p></o:p></p>
<p class="MsoNormal">> > How would a client communicating to Xwayland as the xserver request a<o:p></o:p></p>
<p class="MsoNormal">> > rotation? Does Xwayland listen to a unix socket and pass commands on to the<o:p></o:p></p>
<p class="MsoNormal">> > kernel?<o:p></o:p></p>
<p class="MsoNormal">> > <o:p></o:p></p>
<p class="MsoNormal">> > (Thanks Hans,)<o:p></o:p></p>
<p class="MsoNormal">> > <o:p></o:p></p>
<p class="MsoNormal">> > -dwd<o:p></o:p></p>
<p class="MsoNormal">> > David<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">
<b><span style="color:red">David Deyo</span><o:p></o:p></b></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="margin-left:.15in;border-collapse:collapse">
<tbody>
<tr>
<td width="150" valign="top" style="width:112.5pt;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal"><img border="0" width="170" height="82" style="width:1.7708in;height:.8541in" id="Picture_x0020_3" src="cid:image003.png@01D787B6.7E306F20"><span style="font-size:1.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</td>
<td width="474" valign="top" style="width:355.5pt;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal"><span style="font-size:1.0pt;font-family:"Times New Roman",serif"> </span><b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#F52D00;text-transform:uppercase"><o:p></o:p></span></b></p>
<p class="MsoNormal" style="line-height:10.5pt"><b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#121145">Firmware Engineer
<o:p></o:p></span></b></p>
<p class="MsoNormal" style="line-height:10.5pt"><b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#F52D00;text-transform:uppercase">TPI- Tire Profiles<o:p></o:p></span></b></p>
<p class="MsoNormal" style="line-height:10.5pt"><b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#F52D00">O:
</span></b><span style="font-size:9.0pt;font-family:"Arial",sans-serif">214-396-3063<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:10.5pt"><b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#F52D00">E:</span></b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#121145">
</span><a href="mailto:ddeyo@tireprofiles.com"><span style="font-size:9.0pt;font-family:"Arial",sans-serif">ddeyo@tireprofiles.com</span></a><span style="font-size:9.0pt;color:#121145">
</span><b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#F52D00">| W:
</span></b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#121145"> </span><a href="http://www.tireprofiles.com/" target="_blank"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#0563C1">www.tireprofiles.com</span></a><span style="font-size:9.0pt"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:10.5pt"><b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#F52D00">A:</span></b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#121145"> 3010 Story Rd W, Irving, TX 75038</span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From: </b><a href="mailto:ppaalanen@gmail.com">Pekka Paalanen</a><br>
<b>Sent: </b>Monday, August 2, 2021 3:54 AM<br>
<b>To: </b><a href="mailto:ddeyo@tireprofiles.com">David Deyo</a><br>
<b>Cc: </b><a href="mailto:raster@rasterman.com">Carsten Haitzler</a>; <a href="mailto:wayland-devel@lists.freedesktop.org">
wayland-devel@lists.freedesktop.org</a><br>
<b>Subject: </b>Re: xrandr and xwayland<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>