]> git.sur5r.net Git - i3/i3.github.io/blob - docs/multi-monitor.html
multi-monitor: update the document for the nvidia driver version 302.17
[i3/i3.github.io] / docs / multi-monitor.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"\r
2     "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\r
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">\r
4 <head>\r
5 <link rel="icon" type="image/png" href="/favicon.png">\r
6 <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />\r
7 <meta name="generator" content="AsciiDoc 8.6.6" />\r
8 <title>i3: The multi-monitor situation</title>\r
9 <link rel="stylesheet" href="/css/style.css" type="text/css" />\r
10 <link rel="stylesheet" href="/css/xhtml11.css" type="text/css" />\r
11 <script type="text/javascript">\r
12 /*<![CDATA[*/\r
13 window.onload = function(){asciidoc.footnotes(); asciidoc.toc(2);}\r
14 /*]]>*/\r
15 </script>\r
16 <script type="text/javascript" src="/js/asciidoc-xhtml11.js"></script>\r
17 </head>\r
18 <body class="article">\r
19 \r
20         <div id="main">\r
21             <a href="/"><h1 id="title">i3 - improved tiling WM</h1></a>\r
22                         <ul id="nav">\r
23                                 <li><a style="border-bottom: 2px solid #fff" href="/docs">Docs</a></li>\r
24                                 <li><a href="/screenshots">Screens</a></li>\r
25                                 <li><a href="/contact">Contact</a></li>\r
26                                 <li><a href="http://bugs.i3wm.org/">Bugs</a></li>\r
27                         </ul>\r
28         <br style="clear: both">\r
29 <div id="content">\r
30 <div id="header">\r
31 <h1>The multi-monitor situation</h1>\r
32 <span id="author">Michael Stapelberg</span><br />\r
33 <span id="email"><tt>&lt;<a href="mailto:michael@i3wm.org">michael@i3wm.org</a>&gt;</tt></span><br />\r
34 <span id="revdate">July 2012</span>\r
35 <div id="toc">
36   <div id="toctitle">Table of Contents</div>
37   <noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript>
38 </div>\r
39 </div>\r
40 <div id="preamble">\r
41 <div class="sectionbody">\r
42 <div class="paragraph"><p>…or: oh no, I have an nVidia graphics card!</p></div>\r
43 </div>\r
44 </div>\r
45 <div class="sect1">\r
46 <h2 id="_the_quick_fix">1. The quick fix</h2>\r
47 <div class="sectionbody">\r
48 <div class="paragraph"><p>If you are using the nVidia binary graphics driver (also known as <em>blob</em>)\r
49 you need to upgrade to at least version 302.17 (released in June 2012).</p></div>\r
50 <div class="paragraph"><p>In case you cannot update the driver to 302.17 or newer on your machine for\r
51 some reason, use the <tt>--force-xinerama</tt> flag (in your .xsession) when starting\r
52 i3, like so:</p></div>\r
53 <div class="listingblock">\r
54 <div class="title">Example:</div>\r
55 <div class="content">\r
56 <pre><tt>exec i3 --force-xinerama -V &gt;&gt;~/.i3/i3log 2&gt;&amp;1</tt></pre>\r
57 </div></div>\r
58 <div class="paragraph"><p>…or use <tt>force_xinerama yes</tt> in your configuration file.</p></div>\r
59 </div>\r
60 </div>\r
61 <div class="sect1">\r
62 <h2 id="_the_explanation">2. The explanation</h2>\r
63 <div class="sectionbody">\r
64 <div class="paragraph"><p>Starting with version 3.ε (March 2010), i3 uses the RandR (Rotate and Resize)\r
65 API instead of Xinerama. The reason for this, is that RandR provides more\r
66 information about your outputs and connected screens than Xinerama does. To be\r
67 specific, the code which handled on-the-fly screen reconfiguration (meaning\r
68 without restarting the X server) was a very messy heuristic and most of the\r
69 time did not work correctly&#8201;&#8212;&#8201;that is just not possible with the little\r
70 information Xinerama offers (just a list of screen resolutions, no identifiers\r
71 for the screens or any additional information). Xinerama simply was not\r
72 designed for dynamic configuration.</p></div>\r
73 <div class="paragraph"><p>So RandR came along, as a more powerful alternative (RandR 1.2 to be specific).\r
74 It offers all of Xinerama’s possibilities and lots more. Using the RandR API\r
75 made our code much more robust and clean. Also, you can now reliably assign\r
76 workspaces to output names instead of some rather unreliable screen identifier\r
77 (position inside the list of screens, which could change, and so on…).</p></div>\r
78 <div class="paragraph"><p>As RandR has been around for about three years as of this writing, it seemed\r
79 like a very good idea to us, and it still is a very good one. What we did not\r
80 expect, however, was the nVidia binary driver. It did not support RandR until\r
81 mid 2012, even though nVidia had announced that it will support RandR\r
82 previously. What does missing RandR support mean for you? First of all, you are\r
83 stuck with TwinView and cannot use <tt>xrandr</tt>. While this ruins the user\r
84 experience, the more grave problem is that the nVidia driver not only does not\r
85 support dynamic configuration using RandR, it also does not expose correct\r
86 multi-monitor information via the RandR API. So, in some setups, i3 will not\r
87 find any screens; in others, it will find one large screen which actually\r
88 contains both of your physical screens (but it will not know that these are two\r
89 screens).</p></div>\r
90 <div class="paragraph"><p>For this very reason, we decided to implement the following workaround: As\r
91 long as the nVidia driver does not support RandR, an option called\r
92 <tt>--force-xinerama</tt> is available in i3 (alternatively, you can use the\r
93 <tt>force_xinerama</tt> configuration file directive). This option gets the list of\r
94 screens <strong>once</strong> when starting, and never updates it. As the nVidia driver cannot\r
95 do dynamic configuration anyways, this is not a big deal.</p></div>\r
96 <div class="paragraph"><p>Also note that your output names are not descriptive (like <tt>HDMI1</tt>) when using\r
97 Xinerama, instead they are counted up, starting at 0: <tt>xinerama-0</tt>, <tt>xinerama-1</tt>, …</p></div>\r
98 </div>\r
99 </div>\r
100 <div class="sect1">\r
101 <h2 id="_see_also">3. See also</h2>\r
102 <div class="sectionbody">\r
103 <div class="paragraph"><p>For more information on how to use multi-monitor setups, see the i3 User’s\r
104 Guide.</p></div>\r
105 </div>\r
106 </div>\r
107 </div>\r
108 <div id="footnotes"><hr /></div>\r
109 <div id="footer" lang="de">\r
110 © 2009-2011 Michael Stapelberg, <a href="/impress.html">Impressum</a>\r
111 </div>\r
112 </body>\r
113 </html>\r