'Fedora 10의 X 윈도우 해상도 설정'에 해당되는 글 1건

  1. 2009.08.14 Fedora 10의 X 윈도우 해상도 설정
61.Linux2009. 8. 14. 11:03
반응형
Fedora 10의 X 윈도우 해상도 설정
Fedora 10에서는 xorg.conf가 없이 작동하는 경우가 많다.

Fedora 10에 설치된 Xorg 7은 auto detection 기능을 이용해서 장치나 해상도를 결정할 수 있기 때문에, 잘 나오는 경우라면 그냥 무난하게 사용하면 된다. 하지만 VGA의 최대 해상도가 잘 나오지 않거나, Virtualbox, VMware같은 장치를 사용하면 모니터를 auto detection 하지 못해서 해상도가 제대로 잡히지 않는다.

이럴땐 /etc/X11/xorg.conf를 설정해주면 된다.

그러나 간혹 이 파일이 없는 경우가 있다. 바로 자동 감지로 Xorg가 작동한 경우이다. 그래서 먼저 기본 설정의 xorg.conf를 생성해야 한다. (아래 방법이 귀찮으신 분들은 system-config-display 패키지를 설치해도 된다. 이 패키지를 설치하고 실행하면 즉시 xorg.conf를 생성한다)

[root@localhost X11]# Xorg -configure :1

X.Org X Server 1.5.3
Release Date: 5 November 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.18-92.1.18.el5 i686
Current Operating System: Linux localhost.localdomain 2.6.27.9-159.fc10.i686 #1 SMP Tue Dec 16 15:12:04 EST 2008 i686
Build Date: 11 December 2008  05:27:37PM
Build ID: xorg-x11-server 1.5.3-6.fc10
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Fri Feb 20 18:45:34 2009
...생략...
(++) Using config file: "/root/xorg.conf.new"

Xorg detected your mouse at device /dev/input/mice.
Please check your config if the mouse is still not
operational, as by default Xorg tries to autodetect
the protocol.

Your xorg.conf file is /root/xorg.conf.new

To test the server, run 'X -config /root/xorg.conf.new'


이제 /root/xorg.conf.new에 생성된 파일을 /etc/X11/xorg.conf로 복사해온 뒤에 파일을 열어보자. 아랫 부분에 Section "Screen"이 있는데 여기서 24bit 색상 부분인 SubSection의 Depth가 24인 부분을 수정한다. (24bit 는 트루컬러를 의미한다)

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection



방법은 위 Depth 24라인 아래에 Modes 다음에 해상도를 넣어주면 된다.

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
...생략...
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024" "1280x960"
EndSubSection
EndSection


위의 예는 1280x1024와 1280x960의 해상도를 지원하도록 넣어둔 것이다. 설정이 끝났으면 X 윈도우를 재시작하면 된다. 재시작 방법은 여러가지가 있으나 제일 편한 것은 <CTRL-ALT-DELETE>로 강제 종료시켜버리는 것이다. 그러나 초보자라서 X 윈도우 재시작을 잘 모른다면 그냥 재부팅하는게 편하다.
Posted by 1010