<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://workspace.onionmixer.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Linux_XRandR</id>
	<title>Linux XRandR - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://workspace.onionmixer.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Linux_XRandR"/>
	<link rel="alternate" type="text/html" href="https://workspace.onionmixer.net/wiki/index.php?title=Linux_XRandR&amp;action=history"/>
	<updated>2026-05-07T17:12:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://workspace.onionmixer.net/wiki/index.php?title=Linux_XRandR&amp;diff=176&amp;oldid=prev</id>
		<title>Onionmixer: linux에서 xrandr로 화면 회전시키는 tip 내용추가</title>
		<link rel="alternate" type="text/html" href="https://workspace.onionmixer.net/wiki/index.php?title=Linux_XRandR&amp;diff=176&amp;oldid=prev"/>
		<updated>2013-02-15T07:50:49Z</updated>

		<summary type="html">&lt;p&gt;linux에서 xrandr로 화면 회전시키는 tip 내용추가&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==linux에서 xrandr로 화면 회전시키기==&lt;br /&gt;
&lt;br /&gt;
모니터를 물리적으로 pivot시킨다고해서 알아서 화면이 돌아가줄리는 없다.&lt;br /&gt;
&lt;br /&gt;
그런경우 대단히 유용하게 사용할 수 있는 스크립트.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
rotation=`xrandr -q | grep &amp;quot;Current rotation&amp;quot; | cut -d&amp;quot;-&amp;quot; -f2`&lt;br /&gt;
if [ $rotation = &amp;quot;normal&amp;quot; ] ;&lt;br /&gt;
then&lt;br /&gt;
  xrandr -o left&lt;br /&gt;
else&lt;br /&gt;
  xrandr -o normal&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
위의 script는 화면을 toggle해주는 방식이다.&lt;br /&gt;
&lt;br /&gt;
때문에 잘못쓰면 귀찮은 경우가 가끔....&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
그래서 나는 이렇게 쓴다&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
xrandr -display :0.2 -o left&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
여기서 display는 해당되는 화면을 회전시키겠다는 의미.&lt;br /&gt;
&lt;br /&gt;
xinerama를 안쓰고 각 화면을 따로 관리하는 경우에 유용하다.&lt;br /&gt;
&lt;br /&gt;
4개화면이 한꺼번에 pivot으로 돈다면 그것도 나름 에러&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===참고자료===&lt;br /&gt;
&lt;br /&gt;
* http://blog.gammal.org/2006/06/screen-rotation-using-xrandr.html&lt;/div&gt;</summary>
		<author><name>Onionmixer</name></author>
	</entry>
</feed>