Changeset 6039a39 for x/installing/xorg-config.xml
- Timestamp:
- 08/27/2017 11:41:00 AM (7 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- 8187409
- Parents:
- 94417dc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
x/installing/xorg-config.xml
r94417dc r6039a39 193 193 Linux Kernel 3.4 or later (recommended). You will need latest DRI and 194 194 DDX drivers for your hardware and <application>Xorg Server</application> 195 1.13 or later with an optional patch applied.195 1.13 or later. 196 196 </para> 197 197 198 198 <para> 199 199 <application>Xorg Server</application> should load both GPU drivers 200 automaticaly. In order to run a GLX application on a discrete GPU, you 201 will need to export the <envar>DRI_PRIME=1</envar> environment variable. 202 For example, 200 automaticaly. You can check that by running: 201 </para> 202 203 <screen><userinput>xrandr --listproviders</userinput></screen> 204 205 <para> 206 There should be two (or more) providers listed, for example: 207 </para> 208 209 <screen><computeroutput>Providers: number : 2 210 Provider 0: id: 0x7d cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 3 outputs: 4 associated providers: 1 name:Intel 211 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> 212 213 <para> 214 In order to be able to run a GLX application on a discrete GPU, you will 215 need to run the following command, where <provider> is the more 216 powerful discrete card, and <sink> is the card which has a display 217 connected: 218 </para> 219 220 <screen><userinput>xrandr --setprovideroffloadsink <replaceable><provider> <sink></replaceable></userinput></screen> 221 222 <note> 223 <para> 224 With newer <application>Xorg</application> drivers, such as modesetting 225 or intel, which are DRI3 capable, the above command is no longer 226 necessary. It does no harm however. 227 </para> 228 </note> 229 230 <para> 231 Then, you will need to export the <envar>DRI_PRIME=1</envar> environment 232 variable each time you want the powerful GPU to be used. For example, 203 233 204 234 <screen><userinput>DRI_PRIME=1 glxinfo | egrep "(OpenGL vendor|OpenGL renderer|OpenGL version)"</userinput></screen>
Note:
See TracChangeset
for help on using the changeset viewer.