Changeset 7612749 for x/installing


Ignore:
Timestamp:
05/08/2017 06:04:32 PM (7 years ago)
Author:
Pierre Labastie <pieere@…>
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:
a81e1b3
Parents:
58896f1b
Message:

Add some systemd information to the Xorg Configuration page, plus formatting
and add an example of XkbLayout for non-qwerty keyboard.*

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@18702 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • x/installing/xorg-config.xml

    r58896f1b r7612749  
    3737    <note><para>When testing <application>Xorg</application> with the
    3838    <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>,
    4042    about missing font files.  In addition, there will be several warnings on
    4143    the text mode terminal (usually tty1) about missing fonts.  These warnings
     
    5052
    5153    <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.
    5862    </para>
    5963
    6064    <para>
    6165      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:
    6369    </para>
    6470
     
    7985
    8086    <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>&lt;username&gt;</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>&lt;username&gt;</replaceable></userinput></screen>
    98106
    99107    <para>
     
    110118    <para>
    111119      If direct rendering is enabled, you can add verbosity by running
    112       <command>LIBGL_DEBUG=verbose glxinfo</command>. This will show the drivers,
    113       device 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.
    114122    </para>
    115123
     
    125133    <para>
    126134      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 build
    129       LLVMPipe just make sure that <xref linkend="llvm"/> is present at Mesa
    130       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 the
    134       output using the Software Rasterizer is 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:
    135143    </para>
    136144
     
    140148
    141149    <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.
    144153    </para>
    145154
     
    157166    </sect2>
    158167
    159     <sect2 role="configuration" id="hybrid-graphics" xreflabel="Hybrid Graphics">
     168    <sect2 role="configuration" id="hybrid-graphics" xreflabel="Hybrid
     169    Graphics">
    160170    <title>Hybrid Graphics</title>
    161171
    162172    <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,
    180191
    181192<screen><userinput>DRI_PRIME=1 glxinfo | egrep "(OpenGL vendor|OpenGL renderer|OpenGL version)"</userinput></screen>
     
    203214    <title>Setting up X Input Devices</title>
    204215    <para>For most input devices, no additional configuration will be
    205     necessary.  This section is provided for informational purposes only.</para>
     216    necessary. This section is provided for informational purposes only.</para>
    206217
    207218    <para>A sample default XKB setup could look like the following (executed as
    208219    the <systemitem class="username">root</systemitem> user):</para>
    209220
    210 <screen><userinput role="username">cat &gt; /etc/X11/xorg.conf.d/xkb-defaults.conf &lt;&lt; "EOF"
     221<screen role="root"><userinput>cat &gt; /etc/X11/xorg.conf.d/xkb-defaults.conf &lt;&lt; "EOF"
    211222Section "InputClass"
    212223    Identifier "XKB Defaults"
    213224    MatchIsKeyboard "yes"
     225    Option "XkbLayout" "fr"
    214226    Option "XkbOptions" "terminate:ctrl_alt_bksp"
    215227EndSection
    216228EOF</userinput></screen>
    217229
     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>
    218235  </sect3>
    219236
Note: See TracChangeset for help on using the changeset viewer.