Настройка X-Windows


Файл настройки лежит в /usr/X11R6/lib/X11/XF86Config

Здесь я просто приведу пример работающего файла системы на карточке ATI и 17'' мониторе.

Section "ServerLayout"
        Identifier "XFree86 Configured"
        Screen 0 "Screen0" 0 0
        InputDevice "Mouse0" "CorePointer"
        InputDevice "Keyboard0" "CoreKeyboard"
    EndSection

    Section "Files"
        RgbPath "/usr/X11R6/lib/X11/rgb"
        ModulePath "/usr/X11R6/lib/modules"
        FontPath "/usr/X11R6/lib/X11/fonts/misc/"
        FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
        FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
        FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
        FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"

    EndSection

    Section "Module"
        Load "dbe"
        Load "dri"
        Load "extmod"
        Load "glx"
        Load "pex5"
        Load "record"
        Load "xie"
        Load "xtrap"
        Load "speedo"
        Load "type1"
    EndSection

    Section "InputDevice"
        Identifier "Keyboard0"
        Driver "keyboard"
    EndSection

    Section "InputDevice"
        Identifier "Mouse0"
        Driver "mouse"
        Option "Protocol" "MouseSystems"
        Option "Device" "/dev/sysmouse"
    EndSection

    Section "Monitor"
        #DisplaySize 330 250 # mm
            Identifier "Monitor0"
            VendorName "GSM"
            ModelName ""
            Option "DPMS"
            HorizSync 35-70     #Задаем горизонтальную синхронизацию
            VertRefresh 85        #Задаем вертикальную развертку
        EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "accel" # [<bool>]
#Option "crt_screen" # [<bool>]
#Option "composite_sync" # [<bool>]
#Option "hw_cursor" # [<bool>]
#Option "linear" # [<bool>]
#Option "mmio_cache" # [<bool>]
#Option "probe_clocks" # [<bool>]
#Option "reference_clock" # <freq>
#Option "shadow_fb" # [<bool>]
#Option "sw_cursor" # [<bool>]
        Identifier "Card0"
        Driver "ati"
        VendorName "ATI"
        BoardName "Mach64 GB"
        ChipSet "ati"
        ChipId 0x4742
        ChipRev 0x5c
        BusID "PCI:1:0:0"
    EndSection

Section "Screen"
        Identifier "Screen0"
        Device "Card0"
        Monitor "Monitor0"
            DefaultDepth 24         # прописываем глубину цвета монитора
        SubSection "Display"
            Depth 1
        EndSubSection
        SubSection "Display"
            Depth 4
        EndSubSection
        SubSection "Display"
            Depth 8
        EndSubSection
        SubSection "Display"
            Depth 15
        EndSubSection
        SubSection "Display"
            Depth 16
            Modes "1024x768" 
        EndSubSection
        SubSection "Display"
            Depth 24 
            Modes "1024x768" "800x600"   # указываем режимы разрешения экрана
        EndSubSection
    EndSection


оглавление

Hosted by uCoz