Remove PRIME patch, augment Hybrid graphics instructions

+ one unrelated tag

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@19111 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Pierre Labastie 2017-08-27 11:41:00 +00:00
parent 94417dcfe2
commit 6039a3956f
5 changed files with 54 additions and 11 deletions

View File

@ -1,12 +1,12 @@
<!-- $LastChangedBy$ $Date$ -->
<!ENTITY day "26"> <!-- Always 2 digits -->
<!ENTITY day "27"> <!-- Always 2 digits -->
<!ENTITY month "08"> <!-- Always 2 digits -->
<!ENTITY year "2017">
<!ENTITY copyrightdate "2001-&year;">
<!ENTITY copyholder "The BLFS Development Team">
<!ENTITY version "&year;-&month;-&day;">
<!ENTITY releasedate "August 26th, &year;">
<!ENTITY releasedate "August 27th, &year;">
<!ENTITY pubdate "&year;-&month;-&day;"> <!-- metadata req. by TLDP -->
<!ENTITY blfs-version "svn"> <!-- svn|[release #] -->
<!ENTITY lfs-version "development"> <!-- x.y|development -->

View File

@ -42,6 +42,18 @@
</listitem>
-->
<listitem>
<para>August 27th, 2017</para>
<itemizedlist>
<listitem>
<para>[pierre] - Remove PRIME patch for xorg-server, and augment
instructions about Hybrid graphics in <quote>Xorg-7 Testing and
Configuration</quote>. Fixes
<ulink url="&blfs-ticket-root;9636">#9636</ulink>.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>August 26th, 2017</para>
<itemizedlist>

View File

@ -41,7 +41,7 @@
There is no need for special instructions since
<application>X</application> support is automatically detected.</para>
&lfs80_checked;
&lfs81_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">

View File

@ -192,14 +192,44 @@ OpenGL version string: 3.0 Mesa 10.4.5</computeroutput></screen>
In order to use PRIME for GPU switching, make sure that you are using
Linux Kernel 3.4 or later (recommended). You will need latest DRI and
DDX drivers for your hardware and <application>Xorg Server</application>
1.13 or later with an optional patch applied.
1.13 or later.
</para>
<para>
<application>Xorg Server</application> should load both GPU drivers
automaticaly. In order to run a GLX application on a discrete GPU, you
will need to export the <envar>DRI_PRIME=1</envar> environment variable.
For example,
automaticaly. You can check that by running:
</para>
<screen><userinput>xrandr --listproviders</userinput></screen>
<para>
There should be two (or more) providers listed, for example:
</para>
<screen><computeroutput>Providers: number : 2
Provider 0: id: 0x7d cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 3 outputs: 4 associated providers: 1 name:Intel
Provider 1: id: 0x56 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 6 outputs: 1 associated providers: 1 name:radeon</computeroutput></screen>
<para>
In order to be able to run a GLX application on a discrete GPU, you will
need to run the following command, where &lt;provider&gt; is the more
powerful discrete card, and &lt;sink&gt; is the card which has a display
connected:
</para>
<screen><userinput>xrandr --setprovideroffloadsink <replaceable>&lt;provider&gt; &lt;sink&gt;</replaceable></userinput></screen>
<note>
<para>
With newer <application>Xorg</application> drivers, such as modesetting
or intel, which are DRI3 capable, the above command is no longer
necessary. It does no harm however.
</para>
</note>
<para>
Then, you will need to export the <envar>DRI_PRIME=1</envar> environment
variable each time you want the powerful GPU to be used. For example,
<screen><userinput>DRI_PRIME=1 glxinfo | egrep "(OpenGL vendor|OpenGL renderer|OpenGL version)"</userinput></screen>

View File

@ -69,7 +69,8 @@
</para>
</listitem>
</itemizedlist>
<!-- Prime support is now automatically added in DRI3, and this patch
may break things on some setups.
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
<itemizedlist spacing="compact">
<listitem>
@ -78,7 +79,7 @@
<ulink url="&patch-root;/xorg-server-&xorg-server-version;-add_prime_support-1.patch"/>
</para>
</listitem>
</itemizedlist>
</itemizedlist>-->
<bridgehead renderas="sect3">Xorg Server Dependencies</bridgehead>
@ -127,13 +128,13 @@
<sect2 role="installation">
<title>Installation of Xorg Server</title>
<!-- Patch removed
<para>
If you have downloaded the optional patch, apply it by running the
following command:
</para>
<screen><userinput>patch -Np1 -i ../xorg-server-&xorg-server-version;-add_prime_support-1.patch</userinput></screen>
<screen><userinput>patch -Np1 -i ../xorg-server-&xorg-server-version;-add_prime_support-1.patch</userinput></screen>-->
<para>
Install the server by running the following commands: