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