<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>The RandR-"unable to set rotation" issue in AMD Geode LX platform</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P DIR=LTR><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Hi, Tim & Frank,</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"> <FONT SIZE=2 FACE="Courier New">From the Ubuntu BTS:</FONT></SPAN><SPAN LANG="en-us"> </SPAN><A HREF="https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-geode"><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><U></U><U><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-geod</FONT><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">e</FONT></U></SPAN><SPAN LANG="en-us"></SPAN></A><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">, I sum up two unsolved issue.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"> <FONT SIZE=2 FACE="Courier New">The first issue is about the geode driver do not display 1024x600 screen in some 16:9 netbook, because the Geode LX driver does not support the 16:9 screen, in common situation, the default is setup to 4:3 screen (1024x768), so some guys want to set 1024x</FONT><FONT SIZE=2 FACE="Courier New">6</FONT><FONT SIZE=2 FACE="Courier New">00, the only method is add a common line in xorg.conf file, see following:</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">in Section "Monitor"</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Add: Modeline "1024x600" 48.96 1024 1064 1168 1312 600 601 604 622 -Hsync +Vsync</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"> <FONT SIZE=2 FACE="Courier New">After that, the Geode-driver may run on a unstable environment, but I suggest</FONT> <FONT SIZE=2 FACE="Courier New">some guys use this method test the machine on a long run time. Once occur the unstable instance, through BTS to tell me. I'll follow it.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"> <FONT SIZE=2 FACE="Courier New">The second issue is the RandR-"unable to set rotation" issue, now I have been established three Xorg environments, on</FONT><FONT SIZE=2 FACE="Courier New">ly use the XRandR client program (it can download from</FONT></SPAN><SPAN LANG="en-us"> </SPAN><A HREF="http://cgit.freedesktop.org/xorg/"><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><U></U><U><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">http://cgit.freedesktop.org/xorg/</FONT></U></SPAN><SPAN LANG="en-us"></SPAN></A><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New"> ).</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">The phenomenon, see below:</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">1).Xserver-1.6.4/Geode driver-2.11.7</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"> <FONT SIZE=2 FACE="Courier New">Run: xrandr --output default --rotate left </FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"> <FONT SIZE=2 FACE="Courier New">Phenome</FONT><FONT SIZE=2 FACE="Courier New">non: The screen properly rotate </FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"> <FONT SIZE=2 FACE="Courier New">Run: xrandr --output default --rotate normal --auto</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"> <FONT SIZE=2 FACE="Courier New">Phenomenon: The screen return to normal state 2).Xserver-1.7.1/Geode driver-2.11.7</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"> <FONT SIZE=2 FACE="Courier New">Run: xrandr --output default --rotate left </FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"> <FONT SIZE=2 FACE="Courier New">Phenomenon: The screen turn to black </FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"> <FONT SIZE=2 FACE="Courier New">R</FONT><FONT SIZE=2 FACE="Courier New">un: xrandr --output default --rotate normal --auto</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"> <FONT SIZE=2 FACE="Courier New">Phenomenon: The screen return to normal state 3).Xserver-1.8.99/Geode driver-2.11.8</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"> <FONT SIZE=2 FACE="Courier New">Run: xrandr --output default --rotate left </FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"> <FONT SIZE=2 FACE="Courier New">Phenomenon: The screen turn to black </FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"> <FONT SIZE=2 FACE="Courier New">Run: xrandr --output default --rota</FONT><FONT SIZE=2 FACE="Courier New">te normal --auto</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"> <FONT SIZE=2 FACE="Courier New">Phenomenon: The screen does not return to normal state, still black</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"> <FONT SIZE=2 FACE="Courier New">Now the problem become more and more urgent, I use ddd tools to trace the part of Xserver-ProcRRDispatch, Alex Deucher (from xorg-devel) suggest focus on the randr crtc</FONT><FONT SIZE=2 FACE="Courier New"> hooks for allocating the shadow pixmap used for rotation (shadow_create, shadow_allocate, shadow_destroy). I'll follow this issue.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Thanks,</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Hunk Cui</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New"> </FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">-----Original Message-----</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">From: Cui, Hunk</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Sent: Thursday, May 27, 2010 10:36 AM</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">To: Writer, Tim</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Cc: Huang, FrankR; Torres, Rigo</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Subject: RE: About "unable to set rotation" issue</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Hi, Tim,</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"> <FONT SIZE=2 FACE="Courier New">I gave a try with 1.7.1 server on rotation following your suggestion. Geode driver 2.11.7, In our platform, the <OUTPUT> name is "default",</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">(BTW: In general use $</FONT><FONT SIZE=2 FACE="Courier New"> xrandr -q to discover the appropriate output names for your configuration, the reference link:</FONT></SPAN><SPAN LANG="en-us"> </SPAN><A HREF="http://www.thinkwiki.org/wiki/Xorg_RandR_1.2"><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><U></U><U><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">http://www.thinkwiki.org/wiki/Xorg_RandR_1.2</FONT></U></SPAN><SPAN LANG="en-us"></SPAN></A><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">)</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">When I tried: "xrandr --output default --rotate left".</FONT> <FONT SIZE=2 FACE="Courier New">The screen turn to black.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Then tried: "xrandr --output default --rotate normal --auto". The screen return to normal.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Now we doubt it is a bug, because from 1.6.4 server to 1.7.1 server, the part of RandR have been updated and changed from source code.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Ti</FONT><FONT SIZE=2 FACE="Courier New">m, Are there any other ideas?</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Thanks,</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Hunk Cui</FONT></SPAN></P>
<BR>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">-----Original Message-----</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">From: Huang, FrankR</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Sent: Thursday, May 27, 2010 9:30 AM</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">To: Torres, Rigo</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Cc: Writer, Tim; Cui, Hunk</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Subject: RE: About "unable to set rotation" issue</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Rigo,</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"> <FONT SIZE=2 FACE="Courier New">Ok. Hunk will give a try with 1.7.1 server on rotation following Tim's suggestion.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"> <FONT SIZE=2 FACE="Courier New">If you have any question on build.sh method, please feel free to mail me.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Thanks,</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Frank</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">-----Original Message-----</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">From: Torres, Rigo</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Sent: 2010</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="宋体">年</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">5</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="宋体">月</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">27</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="宋体">日</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New"> 1:00</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">To: Huang, Fra</FONT><FONT SIZE=2 FACE="Courier New">nkR</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Cc: Writer, Tim; Cui, Hunk</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Subject: RE: About "unable to set rotation" issue</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Hi Frank,</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">I have not upgraded to Xserver 1.7.1, so I have not tested rotation with Xserver 1.7.1.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">I am still having trouble with jhbuild even after Tim's suggestions.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">If I ca</FONT><FONT SIZE=2 FACE="Courier New">n't get it to build this week. I will just try your long build method.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Let us know if Tim's suggestions for ration work with Xserver 1.7.1.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Rigo</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">-----Original Message-----</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">From: Writer, Tim [</FONT></SPAN><SPAN LANG="en-us"></SPAN><A HREF="mailto:Tim.Writer@amd.com"><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><U></U><U><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">mailto:Tim.Writer@amd.com</FONT></U></SPAN><SPAN LANG="en-us"></SPAN></A><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">]</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Sent: Wednesday, May 26, 2010 8:14 AM</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">To: Cui, Hunk</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Cc: Torres, Rigo; Huang, FrankR</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Subject: Re: About "unable to set rotation" issue</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">On Wed, May 26 2010, "Cui, Hunk" <Hunk.Cui@amd.com> wrote:</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">> Hi, Rigo,</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">> </FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">> As you said on Ubuntu BTS, </FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">></FONT></SPAN><SPAN LANG="en-us"> </SPAN><A HREF="https://bugs.launchpad.net/ubuntu/+source/"><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><U></U><U><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">https://bugs.launchpad.net/ubuntu/+source/</FONT></U></SPAN><SPAN LANG="en-us"></SPAN></A><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">> xserver-xorg-video-geode/+bug/377929</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">> About “</FONT><FONT SIZE=2 FACE="Courier New">unable to set rotation on AMD Geode LX800”</FONT><FONT SIZE=2 FACE="Courier New">, you used Ubuntu </FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">> 9.10 which comes with generic kernel 2.6.31-17</FONT> <FONT SIZE=2 FACE="Courier New">and Xserver 1.6.4, </FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">> geode-driver 2.11.6, I also able to rotate the screen just fine with </FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">> the default geode driver that comes with this distribution using </FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">> Xrandr. Rotation is working just fine with 'xrandr'. I used command such as:</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">>> xrandr -o left</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">>> xrandr -o right</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">>> xrandr -o inverted</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">>> xrandr -o normal</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">> </FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">> When I use Xserver 1.7.1, geode-driver 2.11.7,</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">>> xrandr -o left</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">>> xrandr -o right</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">>> xrandr -o inverted</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">> The screen are black and unable to return.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Have you tried:</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New"> xrandr --output OUTPUT --rotate left</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">where OUTPUT would be replaced by one of the outputs shown when you run `xrandr' without any options.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">The `-o' options is a RandR 1.0/1.1 command and may exercise a different driver code path from the RandR 1.2 `-</FONT><FONT SIZE=2 FACE="Courier New">-rotate' option. RandR 1.2 introduced per-output rotation which wasn't available in earlier versions. Consequently, `xrandr -o' is equivalent to rotating the entire desktop (composed of all the outputs) rather than just a specific output. Depeding on the</FONT> <FONT SIZE=2 FACE="Courier New">G</FONT><FONT SIZE=2 FACE="Courier New">eode driver's support for multiple outputs and which outputs are connected, using `xrandr -o' could confuse the driver.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">If the screen still goes black, it would be interesting to see what this script does:</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New"> #!/bin/sh</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New"> OUTPUT=<insert output name></FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New"> </FONT> <FONT SIZE=2 FACE="Courier New"> xrandr --output $OUTPUT --rotate left</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New"> sleep 15</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New"> xrandr --output $OUTPUT --rotate normal --auto</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Tim</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN></P>
</BODY>
</HTML>