Thursday, December 8, 2016

Commonly used sections in a typical xorg.conf file VI

Commonly used sections in a typical xorg.conf file VI


The next section is the Screen section, which binds your video board
to your monitor. Here is an example:




Section "Screen"

  Identifier   "Screen[0]"

    Device      "VMware SVGA"

    Monitor     "vmware"

    # Don't specify DefaultColorDepth unless you know what you're

    # doing. It will override the driver's preferences which can

    # cause the X server not to run if the host doesn't support the

    # depth.


    Subsection "Display"

        # VGA mode: better left untouched

        Depth       4

        Modes       "640x480"

        ViewPort    0 0

    EndSubsection


    Subsection "Display"

        Depth       8

        Modes       "1024x768"

        ViewPort    0 0

    EndSubsection


    Subsection "Display"

        Depth       15

        Modes       "1024x768"

        ViewPort    0 0

    EndSubsection


    Subsection "Display"

        Depth       16

        Modes       "1024x768"

        ViewPort    0 0

    EndSubsection


    Subsection "Display"

        Depth       24

        Modes       "1024x768"

        ViewPort    0 0

    EndSubsection

EndSection



The video board is specified by the Device directive, whereas your
monitor is specified by the Monitor directive. The

device-id

used in the Device directive in the Screen section must match
the Identifier directive within the Device section of the file (which
will be discussed next).

The syntax is as follows:



    Section "Screen"

        Identifier "name"

        Device     "device_id"

        Monitor    "monitor_id"

        SubSection "Display"

           ...

        EndSubSection

        ...

    EndSection



As you can see in the preceding examples, each Screen section can have
multiple Display subsections. You can use the following directives within each
Display subsection:


• Depth depth

  Specifies the color depth as the number of bits per pixel. Most video
  drivers support color depths of 8, 15, 16, and 24.


• Modes mode_name

  Specifies the list of video modes to use (contained in quotes). Each

  mode must match the appropriate entry in the Monitor section.


• ViewPort x y

  Sets the upper-left corner of the display.




The next section you need to be familiar with is the Device section.
There must be one Device section for each video adapter installed in your system.

Here is a sample Device section:



Section "Device"

    Identifier  "VMware SVGA"

    Driver      "vmware"

EndSection



The Identifier directive defines a unique name for the video adapter.The Driver 
directive specifies which driver should be used for this video adapter.




LX0-104 Exam Objectives (H)

No comments:

Post a Comment