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