[25d73a9] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[25d73a9] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="x-config">
|
---|
[a5723248] | 9 | <?dbhtml filename="xconfig.html"?>
|
---|
| 10 |
|
---|
| 11 | <sect1info>
|
---|
[93f3de5] | 12 | <othername>$LastChangedBy$</othername>
|
---|
| 13 | <date>$Date$</date>
|
---|
[a5723248] | 14 | </sect1info>
|
---|
| 15 |
|
---|
| 16 | <title>Additional X Window System Configuration</title>
|
---|
| 17 |
|
---|
[abfff1a5] | 18 | <!-- XFREE86
|
---|
[a5723248] | 19 | <para>Below you will find information on fine tuning the components of both
|
---|
[99fb6aa] | 20 | variants of the <application>X Window System</application>. The documentation
|
---|
[a5723248] | 21 | links are specifically for <application>XFree86</application>, however, the
|
---|
[abfff1a5] | 22 | XFREE86 -->
|
---|
| 23 | <para>Below you will find information on fine tuning the components
|
---|
| 24 | of the <application>X Window System</application>. The documentation
|
---|
| 25 | links are specifically for <application>XFree86</application>,
|
---|
| 26 | which has been retired in BLFS, however, the
|
---|
[a5723248] | 27 | information contained in those documents usually pertains to
|
---|
[acf44a9d] | 28 | <application>Xorg</application> as well. Detailed descriptions are also
|
---|
[abfff1a5] | 29 | located in the <filename>xorg.conf</filename> man page.</para>
|
---|
| 30 | <!-- XFREE86
|
---|
| 31 | or <filename>XF86Config</filename> man pages.</para>
|
---|
| 32 | XFREE86 -->
|
---|
[6c42d4e] | 33 |
|
---|
[a5723248] | 34 | <sect2 id='xinput'>
|
---|
| 35 | <title>Setting up X Input Devices</title>
|
---|
| 36 |
|
---|
[99fb6aa] | 37 | <para condition="html" role="usernotes">User Notes:
|
---|
[468419d] | 38 | <ulink url="&blfs-wiki;/XInputDevices"/></para>
|
---|
[a5723248] | 39 |
|
---|
| 40 | <sect3 id='xkeyboard'>
|
---|
| 41 | <title>Keyboards</title>
|
---|
| 42 |
|
---|
[99fb6aa] | 43 | <para>The following external links provide a good introduction
|
---|
[acf44a9d] | 44 | to setting up various keyboards.</para>
|
---|
[99fb6aa] | 45 |
|
---|
[a5723248] | 46 | <para><ulink url="http://www.xfree86.org/current/XKB-Config.html">The
|
---|
| 47 | <application>XKB</application> Configuration Guide</ulink></para>
|
---|
| 48 |
|
---|
| 49 | <para><ulink url="http://www.xfree86.org/current/XKB-Enhancing.html">How
|
---|
[ad16af6] | 50 | to further enhance <application>XKB</application>
|
---|
[a5723248] | 51 | configuration</ulink></para>
|
---|
| 52 |
|
---|
| 53 | </sect3>
|
---|
| 54 |
|
---|
| 55 | <sect3 id='xmice'>
|
---|
| 56 | <title>Mice</title>
|
---|
| 57 |
|
---|
| 58 | <para>Multi-button mice can be used to their full potential by mapping
|
---|
| 59 | the additional buttons to X button events. Wheel mice are a common example.
|
---|
| 60 | The ordinary ones contain two buttons, and a scroll wheel that doubles as
|
---|
| 61 | a third button. As far as <application>X</application> is concerned, there
|
---|
| 62 | are 5 buttons as it counts the 'scroll up' and 'scroll down' functions
|
---|
| 63 | (internally they are buttons). Here is an example 'InputDevice' section for
|
---|
| 64 | a typical PS/2 wheel mouse:</para>
|
---|
| 65 |
|
---|
| 66 | <screen><literal>Section "InputDevice"
|
---|
| 67 | Identifier "Mouse 0"
|
---|
| 68 | Driver "mouse"
|
---|
| 69 | Option "Device" "/dev/input/mice"
|
---|
| 70 | Option "Protocol" "IMPS/2"
|
---|
| 71 | Option "ZAxisMapping" "4 5"
|
---|
| 72 | Option "Buttons" "5"
|
---|
| 73 | EndSection</literal></screen>
|
---|
| 74 |
|
---|
| 75 | <para>Button assignments differ for every mouse type. On more exotic
|
---|
| 76 | mice, you may find that the rocker wheel buttons are 6 and 7. Simply
|
---|
| 77 | add those values to the <option>ZAxisMapping</option> option, and set
|
---|
| 78 | the <option>Buttons</option> option appropriately to enable side to
|
---|
| 79 | side scrolling. Additional information on button assignment can be
|
---|
| 80 | found in the following <application>XFree86</application>
|
---|
| 81 | document:</para>
|
---|
| 82 |
|
---|
| 83 | <para><ulink url="http://www.xfree86.org/current/mouse.html">Mouse
|
---|
| 84 | Support in <application>XFree86</application></ulink></para>
|
---|
[25d73a9] | 85 |
|
---|
[a5723248] | 86 | </sect3>
|
---|
| 87 |
|
---|
| 88 | </sect2>
|
---|
| 89 |
|
---|
[99fb6aa] | 90 | <sect2 id='xdisplay'>
|
---|
[a5723248] | 91 | <title>Fine Tuning Display Settings</title>
|
---|
| 92 |
|
---|
[99fb6aa] | 93 | <para condition="html" role="usernotes">User Notes:
|
---|
| 94 | <ulink url="&blfs-wiki;/xdisplay"/></para>
|
---|
| 95 |
|
---|
[a5723248] | 96 | <sect3>
|
---|
| 97 | <title>The 'Monitor' Section</title>
|
---|
| 98 |
|
---|
[acf44a9d] | 99 | <para>One or more monitor sections specify the characteristics of your
|
---|
[99fb6aa] | 100 | monitor(s). Usually, the setup program can probe your monitor and setup
|
---|
| 101 | a monitor properly, however, this does not always work. The most common
|
---|
| 102 | entries that need to be updated are <option>HorizSync</option> and
|
---|
| 103 | <option>VertRefresh</option>. If the configuration program does not set
|
---|
| 104 | these properly, you will notice a resolution much lower than desired.
|
---|
| 105 | The default <option>HorizSync</option> setting is 28-33kHz which is very
|
---|
| 106 | conservative. The default <option>VertRefresh</option> is 43-72Hz.
|
---|
[98078a63] | 107 | Consult your monitor documentation or search online for the proper
|
---|
[99fb6aa] | 108 | settings for your monitor.</para>
|
---|
| 109 |
|
---|
| 110 | <para>It is also possible to control many detailed timing characteristics
|
---|
| 111 | of a monitor with a <option>Modeline</option> setting. Most users will
|
---|
| 112 | not need to do this, but details are in the man page referenced above.
|
---|
| 113 | </para>
|
---|
| 114 |
|
---|
| 115 | <warning><para>Incorrect monitor settings can destroy your monitor or
|
---|
| 116 | even set it on fire! For most newer monitors, the result of overly
|
---|
| 117 | aggressive settings is a blank screen, but older monitors do not all have
|
---|
| 118 | built in safeguards.</para></warning>
|
---|
| 119 |
|
---|
| 120 | <para>Other items that may be of interest in this section is the
|
---|
| 121 | <option>DPMS</option> and associated <option>StandbyTime</option>,
|
---|
| 122 | <option>SuspendTime</option>, and <option>OffTime</option> options.
|
---|
[acf44a9d] | 123 | These parameters control the energy saving features of your monitor. They
|
---|
| 124 | may also be controlled at runtime with the <command>xset</command> command
|
---|
[99fb6aa] | 125 | or via a graphical interface such as <application>KDE</application>'s
|
---|
| 126 | Control Center.</para>
|
---|
| 127 |
|
---|
[98078a63] | 128 | <para>A typical monitor section will normally look like:</para>
|
---|
[99fb6aa] | 129 |
|
---|
| 130 | <screen><literal>Section "Monitor"
|
---|
| 131 | DisplaySize 400 300 # mm
|
---|
| 132 | Identifier "Monitor0"
|
---|
| 133 | VendorName "VSC"
|
---|
| 134 | ModelName "G810-2"
|
---|
| 135 | HorizSync 30.0 - 92.0
|
---|
| 136 | VertRefresh 50.0 - 180.0
|
---|
[9f12e36] | 137 | Option "DPMS"
|
---|
[99fb6aa] | 138 | Option "StandbyTime" "10"
|
---|
| 139 | Option "SuspendTime" "20"
|
---|
| 140 | Option "OffTime" "30"
|
---|
| 141 | EndSection</literal></screen>
|
---|
[9f12e36] | 142 |
|
---|
[a5723248] | 143 | </sect3>
|
---|
| 144 |
|
---|
| 145 | <sect3>
|
---|
| 146 | <title>The 'Device' Section</title>
|
---|
| 147 |
|
---|
[99fb6aa] | 148 | <para>This section basically controls your video card. The key entry is
|
---|
| 149 | the <option>Driver</option> setting. This can be a driver from the
|
---|
| 150 | <application>X</application> distribution you are using, from the kernel
|
---|
| 151 | source, or a proprietary driver for devices such as a Nvidia graphics
|
---|
| 152 | adaptor. The driver often is a kernel module or built into the kernel
|
---|
[acf44a9d] | 153 | itself, but there are also separate non-kernel components usually found
|
---|
[99fb6aa] | 154 | in the <filename
|
---|
| 155 | class='directory'>/usr/X11R6/lib/modules/drivers/</filename> directory.
|
---|
| 156 | These were either built with the <application>X</application> server or
|
---|
[96ffdca] | 157 | installed via external (i.e., proprietary) programs.</para>
|
---|
[99fb6aa] | 158 |
|
---|
| 159 | <para>There are many options for device drivers and most are specific to
|
---|
| 160 | the driver being used. Documentation for many drivers can be found at
|
---|
| 161 | the <ulink url="http://www.xfree86.org/current/manindex4.html">XFree86
|
---|
| 162 | Driver Manual Pages</ulink>.</para>
|
---|
| 163 |
|
---|
| 164 | <para>A typical Device section will look like:</para>
|
---|
| 165 |
|
---|
| 166 | <screen><literal>Section "Device"
|
---|
| 167 | Identifier "Videocard0"
|
---|
| 168 | Driver "radeon"
|
---|
| 169 | VendorName "Videocard vendor"
|
---|
| 170 | BoardName "ATI Radeon 7500"
|
---|
| 171 | EndSection</literal></screen>
|
---|
[a5723248] | 172 |
|
---|
| 173 | </sect3>
|
---|
| 174 |
|
---|
| 175 | </sect2>
|
---|
| 176 |
|
---|
[99fb6aa] | 177 | <sect2 id='xlayouts'>
|
---|
| 178 | <title>Display Layouts</title>
|
---|
| 179 |
|
---|
| 180 | <para condition="html" role="usernotes">User Notes:
|
---|
| 181 | <ulink url="&blfs-wiki;/xlayouts"/></para>
|
---|
| 182 |
|
---|
[9f12e36] | 183 | <para>Within the <application>X Window System</application> configuration
|
---|
[99fb6aa] | 184 | file there may be multiple layout sections like:</para>
|
---|
| 185 |
|
---|
| 186 | <screen><literal>Section "ServerLayout"
|
---|
| 187 | Identifier "X.org Configured"
|
---|
| 188 | Screen 0 "Screen0" 0 0
|
---|
| 189 | InputDevice "Mouse0" "CorePointer"
|
---|
| 190 | InputDevice "Keyboard0" "CoreKeyboard"
|
---|
| 191 | EndSection</literal></screen>
|
---|
[9f12e36] | 192 |
|
---|
[99fb6aa] | 193 | <para>The default layout is the first, but if you have special needs,
|
---|
[9f12e36] | 194 | you can create others with different configurations. The
|
---|
[99fb6aa] | 195 | <option>Identifier</option> line in each section is the key. Different
|
---|
| 196 | layouts can be created using different Screen and InputDevice sections.</para>
|
---|
| 197 |
|
---|
| 198 | <para>After the configuration file is updated, an alternate configuration
|
---|
| 199 | can be specified on the <command>startx</command> line. For instance,
|
---|
| 200 | to start <application>X</application> with an alternate layout with an
|
---|
| 201 | Identifier of "layout2", use the following command line:</para>
|
---|
| 202 |
|
---|
| 203 | <screen><command>startx -- -layout layout2</command></screen>
|
---|
| 204 |
|
---|
| 205 |
|
---|
| 206 | </sect2>
|
---|
| 207 |
|
---|
[a5723248] | 208 | </sect1>
|
---|