Author: pierre
Date: Sun Aug 27 04:41:00 2017
New Revision: 19111
Log:
Remove PRIME patch, augment Hybrid graphics instructions
+ one unrelated tag
Modified:
trunk/BOOK/general.ent
trunk/BOOK/introduction/welcome/changelog.xml
trunk/BOOK/postlfs/editors/vim.xml
trunk/BOOK/x/installing/xorg-config.xml
trunk/BOOK/x/installing/xorg-server.xml
Modified: trunk/BOOK/general.ent
==============================================================================
--- trunk/BOOK/general.ent Sat Aug 26 22:03:17 2017 (r19110)
+++ trunk/BOOK/general.ent Sun Aug 27 04:41:00 2017 (r19111)
@@ -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 -->
Modified: trunk/BOOK/introduction/welcome/changelog.xml
==============================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml Sat Aug 26 22:03:17
2017 (r19110)
+++ trunk/BOOK/introduction/welcome/changelog.xml Sun Aug 27 04:41:00
2017 (r19111)
@@ -43,6 +43,18 @@
-->
<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>
<listitem>
Modified: trunk/BOOK/postlfs/editors/vim.xml
==============================================================================
--- trunk/BOOK/postlfs/editors/vim.xml Sat Aug 26 22:03:17 2017 (r19110)
+++ trunk/BOOK/postlfs/editors/vim.xml Sun Aug 27 04:41:00 2017 (r19111)
@@ -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">
Modified: trunk/BOOK/x/installing/xorg-config.xml
==============================================================================
--- trunk/BOOK/x/installing/xorg-config.xml Sat Aug 26 22:03:17 2017
(r19110)
+++ trunk/BOOK/x/installing/xorg-config.xml Sun Aug 27 04:41:00 2017
(r19111)
@@ -192,14 +192,44 @@
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 <provider> is the more
+ powerful discrete card, and <sink> is the card which has a display
+ connected:
+ </para>
+
+<screen><userinput>xrandr --setprovideroffloadsink
<replaceable><provider> <sink></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>
Modified: trunk/BOOK/x/installing/xorg-server.xml
==============================================================================
--- trunk/BOOK/x/installing/xorg-server.xml Sat Aug 26 22:03:17 2017
(r19110)
+++ trunk/BOOK/x/installing/xorg-server.xml Sun Aug 27 04:41:00 2017
(r19111)
@@ -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:
--
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page