LINUX/Linux TIP

X윈도 해상도 및 주파수 문제

쭈꾸댕이 2010. 8. 9. 16:57

이 방법은 CentOS를 그래픽 모드로 설치를 하고, 부팅을 하는데 X윈도우에 들어가는 순간부터 마우스 포인터만 보이고 진행이 안 되는 현상에서 사용하는 방법이다.

Text 모드의 경우에는 커널모드로 사용 할 수 있지만, 로컬에서 X윈도우를 사용 할 때 위와 같은 증상으로 사용 할 수 없다면 아래와 같은 방법을 통하여 사용 하도록 한다.




X윈도 해상도 설정

X윈도의 해상도 설정 파일은 /etc/X11/xorg.conf 에 위치한다.

centos# vi /etc/X11/xorg.conf
# Xorg configuration created by pyxf86config

Section "ServerLayout"
        Identifier     "Default Layout"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "us"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "vesa"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection


Screen 섹션을 보면 mode라는 명령어가 없는데 아래와 같이 추가 하면 된가.

# Xorg configuration created by pyxf86config

Section "ServerLayout"
        Identifier     "Default Layout"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "us"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "vesa"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes "1280x1024" "1024x768" "800x600"
        EndSubSection
EndSection






X윈도 주파수 설정

CRT 모니터의 경우에는 주파수 문제가 자주 나오지 않지만, LCD 모니터의 경우에는 모니터에서 주파수를 지원하지 못하여 나오지 않을 수 있다.

LCD 모니터의 주파수를 허용하는 범위를 검색하여 맞추는 것이 좋으며, 아래 값과 같이 기본적으로 65에 맞추면 나오게 된다.

centos# vi /etc/X11/xorg.conf
# Xorg configuration created by pyxf86config

Section "ServerLayout"
        Identifier     "Default Layout"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "us"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "vesa"
EndSection

Section "Monitor"
        Identifier "Generic Monitor"
        Option    "DPMS"
        HorizSync   30-65
        VertRefresh 50-65
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection