Sophie

Sophie

distrib > Mageia > 7 > i586 > media > nonfree-updates > by-pkgid > a720cb256c173980abbcc5128212ffd6 > files > 42

nvidia340-doc-html-340.108-7.mga7.nonfree.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org">
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii">
<title>Chapter&nbsp;33.&nbsp;Offloading Graphics Display with RandR
1.4</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="index.html" title=
"NVIDIA Accelerated Linux Graphics Driver README and Installation Guide">
<link rel="up" href="installationandconfiguration.html" title=
"Part&nbsp;I.&nbsp;Installation and Configuration Instructions">
<link rel="prev" href="depth30.html" title=
"Chapter&nbsp;32.&nbsp;Configuring Depth 30 Displays">
<link rel="next" href="addressingcapabilities.html" title=
"Chapter&nbsp;34.&nbsp;Addressing Capabilities">
</head>
<body>
<div class="navheader">
<table width="100%" summary="Navigation header">
<tr>
<th colspan="3" align="center">Chapter&nbsp;33.&nbsp;Offloading
Graphics Display with RandR 1.4</th>
</tr>
<tr>
<td width="20%" align="left"><a accesskey="p" href=
"depth30.html">Prev</a>&nbsp;</td>
<th width="60%" align="center">Part&nbsp;I.&nbsp;Installation and
Configuration Instructions</th>
<td width="20%" align="right">&nbsp;<a accesskey="n" href=
"addressingcapabilities.html">Next</a></td>
</tr>
</table>
<hr></div>
<div class="chapter" lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title"><a name="randr14" id=
"randr14"></a>Chapter&nbsp;33.&nbsp;Offloading Graphics Display
with RandR 1.4</h2>
</div>
</div>
</div>
<p>Version 1.4 of the X Resize, Rotate, and Reflect Extension
(RandR 1.4 for short) adds a way for drivers to work together so
that one graphics device can display images rendered by another.
This can be used on Optimus-based laptops to display a desktop
rendered by an NVIDIA GPU on a screen connected to another graphics
device, such as an Intel integrated graphics device or a USB-to-VGA
adapter.</p>
<p><a name="requirements" id="requirements"></a></p>
<h3>System Requirements</h3>
<div class="itemizedlist">
<ul type="disc">
<li>
<p>X.Org X server version 1.13 or higher.</p>
</li>
<li>
<p>A Linux kernel with CONFIG_DRM enabled and the appropriate
driver interfaces present:</p>
<div class="itemizedlist">
<ul type="circle">
<li>
<p>drm_gem_prime_export</p>
</li>
<li>
<p>drm_gem_prime_import</p>
</li>
<li>
<p>gem_prime_pin</p>
</li>
<li>
<p>gem_prime_get_sg_table</p>
</li>
<li>
<p>gem_prime_import_sg_table</p>
</li>
<li>
<p>gem_prime_vmap</p>
</li>
<li>
<p>gem_prime_vunmap</p>
</li>
</ul>
</div>
<p></p>
</li>
<li>
<p>Version 1.4.0 of the xrandr command-line utility.</p>
</li>
</ul>
</div>
<p><a name="outputsource" id="outputsource"></a></p>
<h3>Using the NVIDIA Driver as a RandR 1.4 Output Source
Provider</h3>
<p>To use the NVIDIA driver as an RandR 1.4 output source provider,
the X server needs to be configured to use the NVIDIA driver for
its primary screen and to use the &ldquo;<span class=
"quote">modesetting</span>&rdquo; driver for the other graphics
device. This can be achieved by placing the following in
<code class="computeroutput">/etc/X11/xorg.conf</code>:</p>
<pre class="screen">
Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "&lt;BusID for NVIDIA device here&gt;"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection
</pre>
<p>See <a href="faq.html#busid">&ldquo;What is the format of a PCI
Bus ID?&rdquo;</a> for information on determining the appropriate
BusID string for your graphics card.</p>
<p>The X server does not automatically enable displays attached to
the non-NVIDIA graphics device in this configuration. To do that,
use the <code class="computeroutput">xrandr</code> command line
tool:</p>
<pre class="screen">
$ xrandr --setprovideroutputsource modesetting NVIDIA-0
$ xrandr --auto
</pre>
<p>This pair of commands can be added to your X session startup
scripts, for example by putting them in <code class=
"computeroutput">$HOME/.xinitrc</code> before running <code class=
"computeroutput">startx</code>.</p>
<p>Use the</p>
<pre class="screen">
$ xrandr --listproviders
</pre>
<p>command to query the capabilities of the graphics devices. If
the system requirements are met and the X server is configured
correctly, there should be a provider named <code class=
"computeroutput">NVIDIA-0</code> with the <code class=
"computeroutput">Source Output</code> capability and one named
<code class="computeroutput">modesetting</code> with the
<code class="computeroutput">Sink Output</code> capability. If
either provider is missing or doesn't have the expected capability,
check your system configuration.</p>
<p><a name="caveats" id="caveats"></a></p>
<h3>Caveats</h3>
<div class="itemizedlist">
<ul type="disc">
<li>
<p>There is no synchronization between the images rendered by the
NVIDIA GPU and the output device. This means that the output device
can start reading the next frame of video while it is still being
updated, producing a graphical artifact known as
&ldquo;<span class="quote">tearing</span>&rdquo;. Tearing is
currently expected due to limitations in the design of the X.Org X
server.</p>
</li>
<li>
<p>The NVIDIA driver currently only supports the <code class=
"computeroutput">Source Output</code> capability. It does not
support render offload and cannot be used as an output sink.</p>
</li>
</ul>
</div>
</div>
<div class="navfooter">
<hr>
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left"><a accesskey="p" href=
"depth30.html">Prev</a>&nbsp;</td>
<td width="20%" align="center"><a accesskey="u" href=
"installationandconfiguration.html">Up</a></td>
<td width="40%" align="right">&nbsp;<a accesskey="n" href=
"addressingcapabilities.html">Next</a></td>
</tr>
<tr>
<td width="40%" align="left" valign="top">
Chapter&nbsp;32.&nbsp;Configuring Depth 30 Displays&nbsp;</td>
<td width="20%" align="center"><a accesskey="h" href=
"index.html">Home</a></td>
<td width="40%" align="right" valign="top">
&nbsp;Chapter&nbsp;34.&nbsp;Addressing Capabilities</td>
</tr>
</table>
</div>
</body>
</html>