tag:blogger.com,1999:blog-58290131975459317182024-03-13T11:03:53.367+00:00Ubuntu NationBETABob Hazardhttp://www.blogger.com/profile/15244693817559226798noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-5829013197545931718.post-24319140445967401752009-11-23T21:29:00.005+00:002009-11-23T21:53:59.357+00:00HOWTO: Rotate the screen in Linux using NvidiaWhen you open the normal display options in Ubuntu the choice to rotate your display in landscape or portrait mode is disabled if you are using proprietary NVIDIA drivers.<div><br /></div><div>It turns out that NVIDIA disabled it for performance reasons and if you edit the xorg.conf file you can rotate the screen using xrandr.</div><div><br /></div><div><span class="Apple-style-span" style="font-size:small;"> TIP: If you are uncomfortable editing the system files make a backup of xorg.conf first because you might loose the desktop if you make a mistake. Copying the file back will restore the previous settings.</span></div><div><span class="Apple-style-span" style="font-size:small;"><br /></span></div><div><span class="Apple-style-span" style="font-size:small;"><br /></span></div><div>Open the /etc/X11/xorg.conf file in a text editor as root such as</div><div><blockquote><span class="Apple-style-span" style="font-family:'courier new';">gksu gedit /etc/X11/xorg.conf</span></blockquote><br /></div><div>Then look for the device section which should have the name of your graphics card, and add an option at the end which I have highlighted in bold:</div><div><br /></div><div><div><span class="Apple-style-span" style="font-family:'courier new';"></span></div><blockquote><div><span class="Apple-style-span" style="font-family:'courier new';">Section "Device"</span></div><div><span class="Apple-style-span" style="font-family:'courier new';"> Identifier "Device0"</span></div><div><span class="Apple-style-span" style="font-family:'courier new';"> Driver "nvidia"</span></div><div><span class="Apple-style-span" style="font-family:'courier new';"> VendorName "NVIDIA Corporation"</span></div><div><span class="Apple-style-span" style="font-family:'courier new';"> BoardName "GeForce 8800 GTS"</span></div><div><span class="Apple-style-span" style="font-family:'courier new';"></span><b><span class="Apple-style-span" style="font-family:'courier new';"> Option "RandRRotation" "true"</span></b></div><div><span class="Apple-style-span" style="font-family:'courier new';">EndSection</span></div></blockquote><div><span class="Apple-style-span" style="font-family:'courier new';"></span></div></div><div><br /></div><div>If you are using twinview with two monitors then you may have a second device1 add this line to that section as well</div><div><br /></div><div><br /></div><div>Save the file and log out so that the xserver will restart and apply the changes.</div><div><br /></div><div><br /></div><div>Now you can rotate the screen using the xrandr command (x rotate & resize) such as:</div><div><blockquote><span class="Apple-style-span" style="font-family:'courier new';">xrandr -o left</span></blockquote><br />To restore the rotation use<br /><blockquote><span class="Apple-style-span" style="font-family:'courier new';">xrandr -o normal</span></blockquote></div><div>There are many options which you can see using <span class="Apple-style-span" style="font-family:'courier new';">xrandr --help</span> or a quick google search</div>Bob Hazardhttp://www.blogger.com/profile/15244693817559226798noreply@blogger.com29