It seems the most feasible solution is to ask the developer of the application for a self-rotating mode.<br><br><div class="gmail_quote">On Thu, Nov 27, 2008 at 2:12 AM, The Rasterman Carsten Haitzler <span dir="ltr">&lt;<a href="mailto:raster@rasterman.com">raster@rasterman.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Thu, 27 Nov 2008 00:53:01 +0000 Al Johnson &lt;<a href="mailto:openmoko@mazikeen.demon.co.uk">openmoko@mazikeen.demon.co.uk</a>&gt;<br>

babbled:<br>
<div><div></div><div class="Wj3C7c"><br>
&gt; On Thursday 27 November 2008, Carsten Haitzler wrote:<br>
&gt; &gt; On Thu, 27 Nov 2008 03:04:03 +0300 &quot;Alexander Chemeris&quot;<br>
&gt; &gt;<br>
&gt; &gt; &lt;<a href="mailto:alexander.chemeris@gmail.com">alexander.chemeris@gmail.com</a>&gt; babbled:<br>
&gt; &gt; &gt; On Thu, Nov 27, 2008 at 2:39 AM, The Rasterman Carsten Haitzler<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &lt;<a href="mailto:raster@rasterman.com">raster@rasterman.com</a>&gt; wrote:<br>
&gt; &gt; &gt; &gt; On Thu, 27 Nov 2008 01:43:49 +0300 &quot;Alexander Chemeris&quot;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &lt;<a href="mailto:Alexander.Chemeris@sipez.com">Alexander.Chemeris@sipez.com</a>&gt; babbled:<br>
&gt; &gt; &gt; &gt;&gt; On Wed, Nov 26, 2008 at 10:03 PM, Bernd PrĂ¼nster<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt; &lt;<a href="mailto:bernd.pruenster@gmail.com">bernd.pruenster@gmail.com</a>&gt; wrote:<br>
&gt; &gt; &gt; &gt;&gt; &gt; Alexander Chemeris schrieb:<br>
&gt; &gt; &gt; &gt;&gt; &gt;&gt; Is there any possibility to rotate screen for a selected<br>
&gt; &gt; &gt; &gt;&gt; &gt;&gt; application? Now I use &quot;xrandr -o 1 &amp;&amp; app &amp;&amp; xrandr -o 0&quot; to run<br>
&gt; &gt; &gt; &gt;&gt; &gt;&gt; application in landscape mode, but this rotates screen for the<br>
&gt; &gt; &gt; &gt;&gt; &gt;&gt; whole system. I rather want to rotate single application window.<br>
&gt; &gt; &gt; &gt;&gt; &gt;<br>
&gt; &gt; &gt; &gt;&gt; &gt; sure it is, just make shellscript which does the rotation, then<br>
&gt; &gt; &gt; &gt;&gt; &gt; launches the application an then rotates tzhe screen back. you can<br>
&gt; &gt; &gt; &gt;&gt; &gt; also change the keycode for the aux button just for one application<br>
&gt; &gt; &gt; &gt;&gt; &gt; in the same way! (just look at the scummvm wiki page if you want to<br>
&gt; &gt; &gt; &gt;&gt; &gt; have a good example!)<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt; That&#39;s exactly what I&#39;m doing - &quot;xrandr -o 1 &amp;&amp; app &amp;&amp; xrandr -o 0&quot;<br>
&gt; &gt; &gt; &gt;&gt; But this change screen orientation for the whole X. If you tap on the<br>
&gt; &gt; &gt; &gt;&gt; top, choose &quot;Home&quot;, you&#39;ll see it also rotated. What I&#39;m asking for<br>
&gt; &gt; &gt; &gt;&gt; is an ability to rotate a single aplpication, leaving illume and other<br>
&gt; &gt; &gt; &gt;&gt; apps in portrait orientation.<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt; Btw, thanks for pointing to ScummVM, I should try this. :)<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; you will need to make the app itself handle its own rotated drawing.<br>
&gt; &gt; &gt; &gt; it&#39;s up to the app.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; That&#39;s what I expected.<br>
&gt; &gt; &gt; I wonder why there are still no such feature in illume. A handful of<br>
&gt; &gt; &gt; applications<br>
&gt; &gt; &gt; want this.<br>
&gt; &gt;<br>
&gt; &gt; nothing to do with illume. this is x. apps draw their own window contents<br>
&gt; &gt; and handle their own window even inputs. the app would need to rotate its<br>
&gt; &gt; own draws and translate all input even co-ordinates.<br>
&gt;<br>
&gt; I was thinking of a window manager plugin that applies rotation when the<br>
&gt; window is activated. Compiz can apply many of its effects selectively<br>
&gt; according to application (window name?) so I&#39;m guessing wildly that calling<br>
&gt; an xrandr setting by name on change of active window should be possible. Then<br>
&gt; again I know nothing abut the internals of window managers...<br>
<br>
</div></div>that would require xevie (so every mouse event go through the compositor and<br>
it can try translate (rotate them), so you will add more latency to mouse<br>
events), and compositing (which will slow down rendering as all rendering now<br>
has to happen to a backing pixmap) AND you will not have accelerated<br>
rotates/transforms as xrender is unaccelerated on glamo - so your output will<br>
become nice and slow... really slow.<br>
<br>
as such you could selectively rotate thew WHOLE screen if a particular window<br>
is focused, but e has no such code - a module could be written that does just<br>
that. but then the keyboard, top-bar etc. will also rotate.<br>
<div class="Ih2E3d"><br>
--<br>
------------- Codito, ergo sum - &quot;I code, therefore I am&quot; --------------<br>
</div><div class="Ih2E3d">The Rasterman (Carsten Haitzler) &nbsp; &nbsp;<a href="mailto:raster@rasterman.com">raster@rasterman.com</a><br>
<br>
<br>
</div><div><div></div><div class="Wj3C7c">_______________________________________________<br>
Openmoko community mailing list<br>
<a href="mailto:community@lists.openmoko.org">community@lists.openmoko.org</a><br>
<a href="http://lists.openmoko.org/mailman/listinfo/community" target="_blank">http://lists.openmoko.org/mailman/listinfo/community</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>---------------------------------------------------------<br>Atilla Filiz<br>Eindhoven University of Technology<br>Embedded Systems, Master&#39;s Programme<br>
--------------------------------------------------------<br>