Changeset 7612749
- Timestamp:
- 05/08/2017 06:04:32 PM (6 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, kea, ken/inkscape-core-mods, lazarus, lxqt, perl-modules, plabs/python-mods, qt5new, trunk, upgradedb, xry111/intltool, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- a81e1b3
- Parents:
- 58896f1b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
x/installing/xorg-config.xml
r58896f1b r7612749 37 37 <note><para>When testing <application>Xorg</application> with the 38 38 <application>twm</application> window manager, there will be several 39 warnings in the Xorg log file, <filename>/var/log/Xorg.0.log</filename>, 39 warnings in the Xorg log file, <filename revision="sysv"> 40 /var/log/Xorg.0.log</filename><filename revision="systemd"> 41 $HOME/.local/share/xorg/Xorg.0.log</filename>, 40 42 about missing font files. In addition, there will be several warnings on 41 43 the text mode terminal (usually tty1) about missing fonts. These warnings … … 50 52 51 53 <sect2 role="configuration" id="checking-dri" xreflabel="Checking the DRI installation"> 52 <title>Checking the Direct Rendering Infrastructure (DRI) Installation</title> 53 54 <para> 55 DRI is a framework for allowing software to access graphics hardware in a safe and 56 efficient manner. It is installed in <application>X</application> by default 57 (using <application>Mesa</application>) if you have a supported video card. 54 <title>Checking the Direct Rendering Infrastructure (DRI) 55 Installation</title> 56 57 <para> 58 DRI is a framework for allowing software to access graphics hardware in 59 a safe and efficient manner. It is installed in 60 <application>X</application> by default (using 61 <application>Mesa</application>) if you have a supported video card. 58 62 </para> 59 63 60 64 <para> 61 65 To check if DRI drivers are installed properly, check the log file 62 <filename>/var/log/Xorg.0.log</filename> for statements such as: 66 <filename revision="sysv">/var/log/Xorg.0.log</filename><filename 67 revision="systemd">$HOME/.local/share/xorg/Xorg.0.log</filename> for 68 statements such as: 63 69 </para> 64 70 … … 79 85 80 86 <para> 81 Although all users can use software acceleration, any hardware acceleration (DRI2) 82 is only available to <systemitem class="username">root</systemitem> and members 83 of the <systemitem class="groupname">video</systemitem> group. 84 </para> 85 <!-- 86 <para> 87 To see if hardware acceleration is available for your driver, look in 88 <filename>/var/log/Xorg.0.log</filename> for statements like: 89 </para> 90 91 <screen><literal>(II) intel(0): direct rendering: DRI2 Enabled</literal></screen> 92 --> 93 <para> 94 If your driver is supported, add any users that might use X to that group: 95 </para> 96 97 <screen role="root"><userinput>usermod -a -G video <replaceable><username></replaceable></userinput></screen> 87 Although all users can use software acceleration, any hardware 88 acceleration (DRI2) is only available to <systemitem 89 class="username">root</systemitem> and members of the <systemitem 90 class="groupname">video</systemitem> group, but 91 <phrase revision="sysv"><emphasis>ConsoleKit2</emphasis></phrase> 92 <phrase revision="systemd"><emphasis>systemd-logind</emphasis></phrase> 93 takes care of adding any logged in user to the user ACL's of 94 <filename>/dev/dri/card*</filename>, the special file(s) allowing access 95 to hardware acceleration.<phrase revision="systemd"> So, no further 96 configuration is needed.</phrase> 97 </para> 98 99 <para revision="sysv"> 100 If your driver is supported and <emphasis>ConsoleKit2</emphasis> is not 101 installed, add any users that might use X to the <systemitem 102 class="groupname">video</systemitem> group: 103 </para> 104 105 <screen role="root" revision="sysv"><userinput>usermod -a -G video <replaceable><username></replaceable></userinput></screen> 98 106 99 107 <para> … … 110 118 <para> 111 119 If direct rendering is enabled, you can add verbosity by running 112 <command>LIBGL_DEBUG=verbose glxinfo</command>. This will show the drivers,113 d evice nodes and files used by the DRI system.120 <command>LIBGL_DEBUG=verbose glxinfo</command>. This will show the 121 drivers, device nodes and files used by the DRI system. 114 122 </para> 115 123 … … 125 133 <para> 126 134 If your hardware does not have any DRI2 driver available, it will use a 127 Software Rasterizer for Direct Rendering. In such cases, you can use a new,128 LLVM-accelerated, Software Rasterizer called LLVMPipe. In order to build129 LLVMPipe just make sure that <xref linkend="llvm"/> is present at Mesa130 build time. Note that all decoding is done on the CPU instead of the GPU,131 so the display will run slower than with hardware acceleration.132 To check if you are using LLVMpipe, 133 review the output ot the glxinfo command above. An example of the134 output using the Software Rasterizeris shown below:135 Software Rasterizer for Direct Rendering. In such cases, you can use a 136 new, LLVM-accelerated, Software Rasterizer called LLVMPipe. In order to 137 build LLVMPipe just make sure that <xref linkend="llvm"/> is present at 138 Mesa build time. Note that all decoding is done on the CPU instead of 139 the GPU, so the display will run slower than with hardware acceleration. 140 To check if you are using LLVMpipe, review the output of the glxinfo 141 command above. An example of the output using the Software Rasterizer 142 is shown below: 135 143 </para> 136 144 … … 140 148 141 149 <para> 142 You can also force LLVMPipe by exporting the <envar>LIBGL_ALWAYS_SOFTWARE=1</envar> 143 environment variable when starting Xorg. 150 You can also force LLVMPipe by exporting the 151 <envar>LIBGL_ALWAYS_SOFTWARE=1</envar> environment variable when 152 starting Xorg. 144 153 </para> 145 154 … … 157 166 </sect2> 158 167 159 <sect2 role="configuration" id="hybrid-graphics" xreflabel="Hybrid Graphics"> 168 <sect2 role="configuration" id="hybrid-graphics" xreflabel="Hybrid 169 Graphics"> 160 170 <title>Hybrid Graphics</title> 161 171 162 172 <para> 163 Hybrid Graphics is still in experimental state for Linux. Xorg Developers have 164 developed a technology called PRIME that can be used for switching between 165 integrated and muxless discrete GPU at will. Automatic switching is not 166 possible at the moment. 167 </para> 168 169 <para> 170 In order to use PRIME for GPU switching, make sure that you are using Linux 171 Kernel 3.4 or later (recommended). You will need latest DRI and DDX drivers 172 for your hardware and <application>Xorg Server</application> 1.13 or later 173 with an optional patch applied. 174 </para> 175 176 <para> 177 <application>Xorg Server</application> should load both GPU drivers automaticaly. 178 In order to run a GLX application on a discrete GPU, you will need to export 179 the <envar>DRI_PRIME=1</envar> environment variable. For example, 173 Hybrid Graphics is still in experimental state for Linux. Xorg Developers 174 have developed a technology called PRIME that can be used for switching 175 between integrated and muxless discrete GPU at will. Automatic switching 176 is not possible at the moment. 177 </para> 178 179 <para> 180 In order to use PRIME for GPU switching, make sure that you are using 181 Linux Kernel 3.4 or later (recommended). You will need latest DRI and 182 DDX drivers for your hardware and <application>Xorg Server</application> 183 1.13 or later with an optional patch applied. 184 </para> 185 186 <para> 187 <application>Xorg Server</application> should load both GPU drivers 188 automaticaly. In order to run a GLX application on a discrete GPU, you 189 will need to export the <envar>DRI_PRIME=1</envar> environment variable. 190 For example, 180 191 181 192 <screen><userinput>DRI_PRIME=1 glxinfo | egrep "(OpenGL vendor|OpenGL renderer|OpenGL version)"</userinput></screen> … … 203 214 <title>Setting up X Input Devices</title> 204 215 <para>For most input devices, no additional configuration will be 205 necessary. 216 necessary. This section is provided for informational purposes only.</para> 206 217 207 218 <para>A sample default XKB setup could look like the following (executed as 208 219 the <systemitem class="username">root</systemitem> user):</para> 209 220 210 <screen ><userinput role="username">cat > /etc/X11/xorg.conf.d/xkb-defaults.conf << "EOF"221 <screen role="root"><userinput>cat > /etc/X11/xorg.conf.d/xkb-defaults.conf << "EOF" 211 222 Section "InputClass" 212 223 Identifier "XKB Defaults" 213 224 MatchIsKeyboard "yes" 225 Option "XkbLayout" "fr" 214 226 Option "XkbOptions" "terminate:ctrl_alt_bksp" 215 227 EndSection 216 228 EOF</userinput></screen> 217 229 230 <para> 231 The <quote>XkbLayout</quote> line is an example for a French (AZERTY) 232 keyboard. Change it to your keyboard model. That line is not needed for 233 a QWERTY (US/GB) keyboard. 234 </para> 218 235 </sect3> 219 236
Note:
See TracChangeset
for help on using the changeset viewer.