System Admin

본문 바로가기

사이트 내 전체검색


System Admin
RedHat Linux >> System Administration for Redhat Linux
[목차]
제5장 X 윈도우 시스템

    2. /etc/X11/XF86Config 파일 수정하기

Xconfigurator 나 xf86config 등으로 X윈도우를 설정했다 하더라도 좀더 세밀한 X윈도우의 설정을 할 필요성이 생기게 마련입니다. 이런 경우, X윈도우 환경설정파일인 /etc/X11/XF86Config 파일을 수정해야 합니다.

# cd /etc/X11
# ls -l
합계 88
drwxr-xr-x    2 root     root         4096  6월 24 03:01 WindowMaker
lrwxrwxrwx    1 root     root           31  6월 25 10:30 X -> ../../usr/X11R6/bin
/XF86_Mach64
-rw-r--r--    1 root     root        14180  7월  4 16:45 XF86Config
-rw-r--r--    1 root     root         1392  6월 25 10:31 XF86Config-4
-rw-r--r--    1 root     root          575 11월 14  2000 Xmodmap
drwxr-xr-x    2 root     root         4096  6월 24 02:46 app-defaults
drwxr-xr-x    9 root     root         4096  6월 24 03:03 applnk
drwxr-xr-x    2 root     root         4096  6월 24 03:02 fs
drwxr-xr-x    2 root     root         4096  6월 24 02:43 fvwm2
drwxr-xr-x    6 root     root         4096  6월 24 02:43 gdm
drwxr-xr-x    2 root     root         4096  6월 24 03:01 lbxproxy
-rwxr-xr-x    1 root     root         1386  1월 12 15:46 prefdm
drwxr-xr-x    2 root     root         4096  6월 24 03:01 proxymngr
drwxr-xr-x    4 root     root         4096  6월 24 03:01 rstart
drwxr-xr-x    2 root     root         4096  6월 24 03:02 twm
drwxr-xr-x    2 root     root         4096  7월 13  2000 wmconfig
drwxr-xr-x    3 root     root         4096  6월 24 03:02 xdm
drwxr-xr-x    3 root     root         4096  6월 24 03:02 xinit
lrwxrwxrwx    1 root     root           27  6월 24 03:01 xkb -> ../../usr/X11R6/lib/X11/xkb
drwxr-xr-x    2 root     root         4096  6월 24 03:01 xserver
drwxr-xr-x    2 root     root         4096  6월 24 03:01 xsm

#

목록을 보면, XF86Config와 XF86Config-4가 있습니다. X윈도우가 4.x로 버전이 올라가면서, 3.x에서 지원됐던 그래픽카드가 지원되지 않은 것이 있습니다. 그래서, 3.x버전의 드라이버가 같이 설치 될 수도 있습니다. 드라이버가 3.x 버전 일 경우, XF86Config 설정 파일을 사용합니다. 4.x 버전의 드라이버를 사용할 경우는 XF86Config-4 설정 파일을 사용합니다. 버전에 맞는 설정 파일을 수정하면 됩니다.

/etc/X11/X라는 링크가 어떤 것을 지시하고 있느냐에 따라 XF86 버전이 3인지, 4인지가 결정됩니다. 이는 과도기적인 현상으로 XF86 4 버전에서 지원하지 않은 하드웨어를 버전 3으로 라도 쓸 수 해둔 것입니다.

/etc/X11/X가 /usr/X11R6/bin/XF86_Mach64의 링크로 되어있으면 XFree86-3.3.6을  쓰고 있는 것이며 /usr/X11R6/bin/XFree86의 링크로 되어 있으면 XFree86-4.0.1을 쓰는 것입니다. XFree86 버전 3에서는 각 그래픽 카드의 드라이브가 별도의 파일로서 독립적으로 만들어져 있었지만 XFree86 버전 4에서는 모듈로서 로딩할 수 있게 되었습니다. 만약 XFree86 버전 4를 사용한다면 이 설정 파일에 관해서도 알아야 할 것입니다.

# rpm -qa|grep XF

XFree86-devel-4.0.3-5
XFree86-xfs-4.0.3-5
XFree86-75dpi-fonts-4.0.3-5
XFree86-libs-4.0.3-5
XFree86-100dpi-fonts-4.0.3-5
XFree86-tools-4.0.3-5
XFree86-xdm-4.0.3-5
XFree86-4.0.3-5
XFree86-twm-4.0.3-5
XFree86-Mach64-3.3.6-33

XF86Config 파일에는 X윈도우 실행에 필요한 몇가지 사항들이 섹션으로 나누어져 있습니다. 예를 들어 X윈도우에서 사용하는 폰트나 비디오 카드의 정보 모니터 해상도의 정보 등을 담고 있는 부분으로 구분됩니다. 이런 여러 개의 섹션들이 모여 하나의 XF86Config 파일을 만드는 것입니다. 이제 각각의 섹션별로 하나하나 살펴보도록 하겠습니다.

각각의 섹션은 Section 이라는 문자열로 시작해서 EndSection 이라는 문자열로 끝납니다. 이 하나의 단위가 한 섹션을 이루는 것이고 이런 섹션들이 모여서 하나의 XF86Config파일을 만듭니다.

참고로 내용중 #으로 시작하는 문장은 주석입니다.

가. Files 섹션

파일 섹션에는 X윈도우에서 사용하는 RGB 색상 관련 파일의 위치와 폰트의 위치를 지정하는 내용이 들어 있습니다. RgbPath에 RGB 색상 데이터가 들어 있는 곳을 지정하는 것으로 이는 사용자가 특별히 수정할 필요가 없는 부분입니다. FontPath에는 X윈도우에서 사용하는 폰트의 위치를 지정하는 것입니다. 레드햇 6.0부터 폰트 서버를 사용해서 X윈도우를 실행하는 것이 기본으로 설정되어 있습니다.

# File generated by anaconda.

# **********************************************************************

# Refer to the XF86Config(4/5) man page for details about the format of

# this file.

# **********************************************************************

# **********************************************************************

# Files section. This allows default font and rgb paths to be set

# **********************************************************************

Section "Files"

# The location of the RGB database. Note, this is the name of the

# file minus the extension (like ".txt" or ".db"). There is normally

# no need to change the default.

RgbPath "/usr/X11R6/lib/X11/rgb"

# Multiple FontPath entries are allowed (they are concatenated together)

# By default, Red Hat 6.0 and later now use a font server independent of

# the X server to render fonts.

FontPath "unix/:-1"

# 위문장이 폰트 서버를 사용한다는 것을 의미합니다. 이렇게 폰트 서버를 통해서 X윈도우에서 사용할 폰트를 불러들이고 싶다면 먼저 폰트 서버가 반드시 실행 중이어야합니다. 이는 ntsysv 명령어로 확인할 수 있는데 ntsysv 명령을 실행하면 나타나는 목록중에 xfs라는 항목에 체크가 되어있어야 합니다.

EndSection


나. server flages 섹션

server flages 섹션은 x윈도우에 일반적인 사항을 설정하는 곳으로 모두 주석처리 되어 있는 것을 알 수 있습니다. 여기서 특별히 고칠 필요가 있는 부분은 없습니다.

# **********************************************************************

# **********************************************************************

# Server flags section.

# **********************************************************************

Section "ServerFlags"

# Uncomment this to cause a core dump at the spot where a signal is

# received. This may leave the console in an unusable state, but may

# provide a better stack trace in the core dump to aid in debugging

# NoTrapSignals

# Uncomment this to disable the <Crtl><Alt><BS> server abort sequence

# This allows clients to receive this key event.

X윈도우를 실행중에 강제 종료를 할때 사용하는 <ctrl><alt><backspace>를 비활성화시키고 싶다면 문장의 #을 삭제하면 됩니다.

# DontZap

# Uncomment this to disable the <Crtl><Alt><KP_+>/<KP_-> mode switching

# sequences. This allows clients to receive these key events.

X윈도우 실행중에 해상도를 변경해주는 <ctrl><alt><+> 또는 <->를 비활성화시키고 싶다면 문장의 #을 삭제하면 됩니다.

# DontZoom

EndSection

다. keyboard 섹션

keyboard 섹션은 키보드 설정에 관계된 것으로 특별히 고칠 필요가 없는 부분입니다.

# **********************************************************************

# Keyboard section

# **********************************************************************

Section "Keyboard"

Protocol "Standard"

# when using XQUEUE, comment out the above line, and uncomment the

# following line

# Protocol "Xqueue"

AutoRepeat 500 5

# Let the server do the NumLock processing. This should only be

# required when using pre-R6 clients

특별히 X윈도우가 실행될 때 숫자키(NumLock)가 켜 있는 것을 원한다면 다음 문장의 주석처리 부분(#)을 삭제하면 X윈도우가 실행될 때 자동으로 숫자키가 활성화 되어 숫자 키패드를 이용할 수 있게 됩니다.

# ServerNumLock

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))

# Xleds 1 2 3

# To set the LeftAlt to Meta, RightAlt key to ModeShift,

# RightCtl key to Compose, and ScrollLock key to ModeLock:

LeftAlt Meta

RightAlt Meta

ScrollLock Compose

RightCtl Control

# To disable the XKEYBOARD extension, uncomment XkbDisable.

# XkbDisable

# To customise the XKB settings to suit your keyboard, modify the

# lines below (which are the defaults). For example, for a non-U.S.

# keyboard, you will probably want to use:

# XkbModel "pc102"

# If you have a US Microsoft Natural keyboard, you can use:

# XkbModel "microsoft"

#

# Then to change the language, change the Layout setting.

# For example, a german layout can be obtained with:

# XkbLayout "de"

# or:

# XkbLayout "de"

# XkbVariant "nodeadkeys"

#

# If you'd like to switch the positions of your capslock and

# control keys, use:

# XkbOptions "ctrl:nocaps"

XkbRules "xfree86"

XkbModel "pc101"

XkbLayout "en_US"

EndSection

라. pointer 섹션

pointer 섹션은 마우스에 관계된 설정을 하는 곳으로 device 항목을 보면 어떤 마우스 장치를 사용하는지 알 수 있습니다. 이 부분도 특별히 사용자가 수동으로 설정할 곳은 없습니다.

# **********************************************************************

# Pointer section

# **********************************************************************

Section "Pointer"

Protocol "PS/2"

Device "/dev/mouse"

# When using XQUEUE, comment out the above two lines, and uncomment

# the following line.

# Protocol "Xqueue"

# Baudrate and SampleRate are only for some Logitech mice

# BaudRate 9600

# SampleRate 150

# Emulate3Buttons is an option for 2-button Microsoft mice

# Emulate3Timeout is the timeout in milliseconds (default is 50ms)

X윈도우에서는 Copy&Paste를 할 때 마우스를 가지고 간편하게 수행할 수 있는데, Copy는 마우스로 복사할 곳을 블록화 시키면 되고 Paste를 마우스의 가운데 버튼을 누르면 됩니다. 만일 2버튼 마우스를 사용한다면 이런 작업이 불가능하게 됩니다. 만일 2버튼 마우스를 사용하고 있다면 위에서 다음 문장에 주석을 삭제하시면 왼쪽마우스 버튼과 오른쪽 마우스 버튼을 동시에 누르는 것으로 가운데 버튼을 누른 것과 동일한 결과를 얻을 수 있게 할 수 있습니다. 이를 3버튼 에뮬레이트라고 합니다.

Emulate3Buttons

Emulate3Timeout 50

# ChordMiddle is an option for some 3-button Logitech mice

# ChordMiddle

EndSection

마. monitor 섹션

monitor 섹션에서 사용자가 특별히 수정해야 할 내용은 horizsynbc와 vertrefresh modeline입니다. horizsynbc는 모니터의 수평 주파수(khz)를 입력하는곳으로 위와 같이 범위를 입력하거나 또는 하나의 숫자만 기입해도 됩니다. vertrefresh는 모니터의 수직 주파수(hz)를 입력하는 곳으로 입력방식은 수평주파수와 동일합니다.

modeline은 사용자가 수동으로 직접 입력하는 경우는 거의 드뭅니다. 만일 수동으로 모니터의 주파수와 해상도 등을 바탕으로 입력하고자 한다면 /usr/doc/howto/xfree86-video-timings-howto 문서를 참고하시기 바랍니다.

참고로, x윈도우를 실행했지만 모니터 화면의 중간에 화면이 위치하고 있지 않을 경우 xvidtune와 같은 프로그램을 사용해서 화면의 위치를 조절하고 그값을 바탕으로 modeline을 수정하는 경우가 대부분입니다.

identifier, vendorname, modelname 에는 아무정보나 입력해도 되지만, identifier는 뒷부분이 해상도와 색상을 결정하는 screen 섹션에서 monitor 항목과 이름이 같아야 합니다.물론, 사용자가 수동으로 이 항목들을 변경할 필요는 거의 없습니다.

# **********************************************************************

# Monitor section

# **********************************************************************

# Any number of monitor sections may be present

Section "Monitor"

Identifier "Generic Monitor"

VendorName "Unknown"

ModelName "Unknown"

HorizSync 31.5

VertRefresh 60

ModeLine "640x480" 25.175 640 664 760 800

480 491 493 525

EndSection

Section "Monitor"

Identifier "ADI DMC-2304"

VendorName "Unknown"

ModelName "Unknown"

# HorizSync is in kHz unless units are specified.

# HorizSync may be a comma separated list of discrete values, or a

# comma separated list of ranges of values.

# NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S

# USER MANUAL FOR THE CORRECT NUMBERS.

HorizSync 30.6-36.0

# VertRefresh is in Hz unless units are specified.

# VertRefresh may be a comma separated list of discrete values, or a

# comma separated list of ranges of values.

# NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S

# USER MANUAL FOR THE CORRECT NUMBERS.

VertRefresh 50.0-90.0

# Modes can be specified in two formats. A compact one-line format, or

# a multi-line format.

# These two are equivalent

# ModeLine "1024x768i" 45 1024 1048 1208 1264 768 776 784 817 Interlace

# Mode "1024x768i"

# DotClock 45

# HTimings 1024 1048 1208 1264

# VTimings 768 776 784 817

# Flags "Interlace"

# EndMode

# This is a set of standard mode timings. Modes that are out of monitor spec

# are automatically deleted by the server (provided the HorizSync and

# VertRefresh lines are correct), so there's no immediate need to

# delete mode timings (unless particular mode timings don't work on your

# monitor). With these modes, the best standard mode that your monitor

# and video card can support for a given resolution is automatically

# used.

# Low-res Doublescan modes

# If your chipset does not support doublescan, you get a 'squashed'

# resolution like 320x400.

# --320x200--

# 320x200 @ 70 Hz, 31.5 kHz hsync, 8:5 aspect ratio

Modeline "320x200" 12.588 320 336 384 400

200 204 205 225 Doublescan

# 320x240 @ 60 Hz, 31.5 kHz hsync, 4:3 aspect ratio

Modeline "320x240" 12.588 320 336 384 400

240 245 246 262 Doublescan

# 320x240 @ 72 Hz, 36.5 kHz hsync

Modeline "320x240" 15.750 320 336 384 400

240 244 246 262 Doublescan

# --400x300--

# 400x300 @ 56 Hz, 35.2 kHz hsync, 4:3 aspect ratio

ModeLine "400x300" 18 400 416 448 512

300 301 302 312 Doublescan

# 400x300 @ 60 Hz, 37.8 kHz hsync

Modeline "400x300" 20 400 416 480 528

300 301 303 314 Doublescan

# 400x300 @ 72 Hz, 48.0 kHz hsync

Modeline "400x300" 25 400 424 488 520

300 319 322 333 Doublescan

# 480x300 @ 56 Hz, 35.2 kHz hsync, 8:5 aspect ratio

ModeLine "480x300" 21.656 480 496 536 616

300 301 302 312 Doublescan

# 480x300 @ 60 Hz, 37.8 kHz hsync

Modeline "480x300" 23.890 480 496 576 632

300 301 303 314 Doublescan

# 480x300 @ 63 Hz, 39.6 kHz hsync

Modeline "480x300" 25 480 496 576 632

300 301 303 314 Doublescan

# 480x300 @ 72 Hz, 48.0 kHz hsync

Modeline "480x300" 29.952 480 504 584 624

300 319 322 333 Doublescan

# Normal video modes

# -- 512x384

# 512x384 @ 78 Hz, 31.50 kHz hsync

Modeline "512x384" 20.160 512 528 592 640

384 385 388 404 -HSync -VSync

# 512x384 @ 85 Hz, 34.38 kHz hsync

Modeline "512x384" 22 512 528 592 640

384 385 388 404 -HSync -VSync

# -- 640x400 --

# 640x400 @ 70 Hz, 31.5 kHz hsync

Modeline "640x400" 25.175 640 664 760 800

400 409 411 450

# 640x400 @ 85 Hz, 37.86 kHz hsync

Modeline "640x400" 31.5 640 672 736 832

400 401 404 445 -HSync +VSync

# --- 640x480 ---

# 640x480 @ 60 Hz, 31.5 kHz hsync

Modeline "640x480" 25.175 640 664 760 800

480 491 493 525

# 640x480 @ 72 Hz, 36.5 kHz hsync

Modeline "640x480" 31.5 640 680 720 864

480 488 491 521

# 640x480 @ 75 Hz, 37.50 kHz hsync

ModeLine "640x480" 31.5 640 656 720 840

480 481 484 500 -HSync -VSync

# 640x480 @ 85 Hz, 43.27 kHz hsync

Modeline "640x480" 36 640 696 752 832

480 481 484 509 -HSync -VSync

# 640x480 @ 100 Hz, 53.01 kHz hsync

Modeline "640x480" 45.8 640 672 768 864

480 488 494 530 -HSync -VSync

# --- 800x600 ---

# 800x600 @ 56 Hz, 35.15 kHz hsync

ModeLine "800x600" 36 800 824 896 1024

600 601 603 625

# 800x600 @ 60 Hz, 37.8 kHz hsync

Modeline "800x600" 40 800 840 968 1056

600 601 605 628 +hsync +vsync

# 800x600 @ 72 Hz, 48.0 kHz hsync

Modeline "800x600" 50 800 856 976 1040

600 637 643 666 +hsync +vsync

# 800x600 @ 85 Hz, 55.84 kHz hsync

Modeline "800x600" 60.75 800 864 928 1088

600 616 621 657 -HSync -VSync

# 800x600 @ 100 Hz, 64.02 kHz hsync

Modeline "800x600" 69.65 800 864 928 1088

600 604 610 640 -HSync -VSync

# --- 1024x768 ---

# 1024x768 @ 60 Hz, 48.4 kHz hsync

Modeline "1024x768" 65 1024 1032 1176 1344

768 771 777 806 -hsync -vsync

# 1024x768 @ 87 Hz interlaced, 35.5 kHz hsync

Modeline "1024x768" 44.9 1024 1048 1208 1264

768 776 784 817 Interlace

# 1024x768 @ 70 Hz, 56.5 kHz hsync

Modeline "1024x768" 75 1024 1048 1184 1328

768 771 777 806 -hsync -vsync

# 1024x768 @ 76 Hz, 62.5 kHz hsync

Modeline "1024x768" 85 1024 1032 1152 1360

768 784 787 823

# 1024x768 @ 85 Hz, 70.24 kHz hsync

Modeline "1024x768" 98.9 1024 1056 1216 1408

768 782 788 822 -HSync -VSync

# 1024x768 @ 100Hz, 80.21 kHz hsync

Modeline "1024x768" 115.5 1024 1056 1248 1440

768 771 781 802 -HSync -VSync

# --- 1152x864 ---

# 1152x864 @ 60 Hz, 53.5 kHz hsync

Modeline "1152x864" 89.9 1152 1216 1472 1680

864 868 876 892 -HSync -VSync

# 1152x864 @ 70 Hz, 62.4 kHz hsync

Modeline "1152x864" 92 1152 1208 1368 1474

864 865 875 895

# 1152x864 @ 78 Hz, 70.8 kHz hsync

Modeline "1152x864" 110 1152 1240 1324 1552

864 864 876 908

# 1152x864 @ 84 Hz, 76.0 kHz hsync

Modeline "1152x864" 135 1152 1464 1592 1776

864 864 876 908

# 1152x864 @ 89 Hz interlaced, 44 kHz hsync

ModeLine "1152x864" 65 1152 1168 1384 1480

864 865 875 985 Interlace

# 1152x864 @ 100 Hz, 89.62 kHz hsync

Modeline "1152x864" 137.65 1152 1184 1312 1536

864 866 885 902 -HSync -VSync

# -- 1280x1024 --

# 1280x1024 @ 61 Hz, 64.2 kHz hsync

Modeline "1280x1024" 110 1280 1328 1512 1712

1024 1025 1028 1054

# 1280x1024 @ 70 Hz, 74.59 kHz hsync

Modeline "1280x1024" 126.5 1280 1312 1472 1696

1024 1032 1040 1068 -HSync -VSync

# 1280x1024 @ 74 Hz, 78.85 kHz hsync

Modeline "1280x1024" 135 1280 1312 1456 1712

1024 1027 1030 1064

# 1280x1024 @ 76 Hz, 81.13 kHz hsync

Modeline "1280x1024" 135 1280 1312 1416 1664

1024 1027 1030 1064

# 1280x1024 @ 85 Hz, 91.15 kHz hsync

Modeline "1280x1024" 157.5 1280 1344 1504 1728

1024 1025 1028 1072 +HSync +VSync

# 1280x1024 @ 87 Hz interlaced, 51 kHz hsync

Modeline "1280x1024" 80 1280 1296 1512 1568

1024 1025 1037 1165 Interlace

# 1280x1024 @ 100 Hz, 107.16 kHz hsync

Modeline "1280x1024" 181.75 1280 1312 1440 1696

1024 1031 1046 1072 -HSync -VSync

# -- 1600x1200 --

# 1600x1200 @ 60Hz, 75.00 kHz hsync

Modeline "1600x1200" 162 1600 1664 1856 2160

1200 1201 1204 1250 +HSync +VSync

# 1600x1200 @ 70 Hz, 87.50 kHz hsync

Modeline "1600x1200" 189 1600 1664 1856 2160

1200 1201 1204 1250 -HSync -VSync

# 1600x1200 @ 75 Hz, 93.75 kHz hsync

Modeline "1600x1200" 202.5 1600 1664 1856 2160

1200 1201 1204 1250 +HSync +VSync

# 1600x1200 @ 85 Hz, 105.77 kHz hsync

Modeline "1600x1200" 220 1600 1616 1808 2080

1200 1204 1207 1244 +HSync +VSync

# -- 1800x1400 --

# 1800x1440 @ 64Hz, 96.15 kHz hsync

ModeLine "1800X1440" 230 1800 1896 2088 2392

1440 1441 1444 1490 +HSync +VSync

# 1800x1440 @ 70Hz, 104.52 kHz hsync

ModeLine "1800X1440" 250 1800 1896 2088 2392

1440 1441 1444 1490 +HSync +VSync

EndSection

바. graphics device 섹션

device 섹션은 비디오 카드의 종류와 비디오 메모리의 크기들을 설정하는 곳입니다. 특별히 사용자가 수정할 부분은 없습니다.

identifier는 screen섹션의 device와 같은 이름이어야 합니다.

# **********************************************************************

# Graphics device section

# **********************************************************************

Section "Device"

Identifier "Generic VGA Card"

VendorName "Unknown"

BoardName "Unknown"

Chipset "generic"

EndSection

Section "Device"

Identifier "S3 Trio64V2 (generic)"

VendorName "S3 Incorporated. 86C775/86C785"

# VideoRam은 X윈도우가 시작될 때 비디오 메모리 크기를 자동으로 인식하기 때문에 굳이 주석을 지울 필요는 없습니다.

# VideoRam 1024

EndSection

사. screen 섹션

위의 screen 섹션들을 구분하는 것은 driver 항목을 보면 쉽게 구분을 할 수 있습니다.

# **********************************************************************

# Screen section

# **********************************************************************

# The kernel framebuffer server

Section "Screen"

Driver "fbdev"

Device "Generic VGA Card"

Monitor "ADI DMC-2304"

Subsection "Display"

# Depth 16

Modes "default"

EndSubsection

EndSection

# The 16-color VGA server

Section "Screen"

Driver "vga16"

Device "Generic VGA Card"

Monitor "ADI DMC-2304"

Subsection "Display"

Modes "640x480" "800x600"

ViewPort 0 0

EndSubsection

EndSection

# The Mono server

Section "Screen"

Driver "vga2"

Device "Generic VGA Card"

Monitor "ADI DMC-2304"

Subsection "Display"

Modes "640x480" "800x600"

ViewPort 0 0

EndSubsection

EndSection

# The svga server

Section "Screen"

Driver "svga"

Device "S3 Trio64V2 (generic)"

Monitor "ADI DMC-2304"

Subsection "Display"

Depth 16

Modes "640x480"

ViewPort 0 0

EndSubsection

Subsection "Display"

Depth 8

Modes "800x600" "640x480"

ViewPort 0 0

EndSubsection

EndSection

# The accel server

Section "Screen"

Driver "accel"

Device "S3 Trio64V2 (generic)"

Monitor "ADI DMC-2304"

Subsection "Display"

Depth 16

Modes "640x480"

ViewPort 0 0

EndSubsection

Subsection "Display"

Depth 8

Modes "800x600" "640x480"

ViewPort 0 0

EndSubsection

EndSection

# 위의 accel은 비디오 카드에서 제공하는 그래픽모드를 가속해 주는 액셀레이터 기능을 x윈도우에서 사용하는 것입니다. 이 기능을 사용하면 x윈도우가 보다 "빠르게 동작하기 때문에 매우 유용합니다.

# 각섹션은 display 라는 하위 섹션이 존재하는데 이것은 각각의 색상에 맞는 해상도를 지정하는 곳입니다. 색상의 종류는 하위 섹션의 depth에 따라 결정됩니다. 각각의 색상에 따른 해상도는 modes라는 항목에서 지정합니다. 800x600, 640x480을 지정했다면 두가지의 해상도를 사용한다는 의미입니다. 여러개의 display 섹션이 있다면 x윈도우가 실행될 때 사용하고 싶은 색상수를 지정해야만 사용자가 원하는 색상을 사용할 수 가 있습니다. 만일 지정하지 않으면 8비트 색상을 사용하게 됩니다.

"defaultcolordepth 사용하고_싶은_비트"라는 문장을 screen 섹션에 적어주면 x윈도우가 지정한 비트로 실행됩니다. 위에 16비트라는 것을 지정했다면 x윈도우에서 16비트 색상을 사용하게 됩니다.

[목차]


개인정보취급방침 서비스이용약관
Copyright © www.leelab.co.kr All rights reserved.
상단으로
TEL. 063-469-4551 FAX. 063-469-4560
전북 군산시 대학로 558
군산대학교 컴퓨터정보공학과
PC 버전으로 보기