본문 바로가기
OS-OE Knowledge/Linux-Unix KB

Linux 원하는 해상도 설정하기 (Revised)

by 스쳐가는인연 2023. 3. 9.

1. 사용 가능 해상도 확인 (GUI 실행)
# xrandr -q
# xrandr

Note. 결과에 현재 변경 가능한 해상도 외 특정 장치에 연결된 정보가 표시된다.

(e.g.) VGA-1 connected, 연결 장치는 장치마다 다르게 표시될 수 있음)

2. cvt 명령으로 변경하고자 하는 해상도의 modeline 확인 (변경 가능 해상도가 없는 경우)
# cvt 1600 960
--------------------------
# 1600x960 59.92 Hz (CVT) hsync: 59.68 kHz; pclk: 127.00 MHz
Modeline "1600x960_60.00"  127.00  1600 1696 1864 2128  960 963 973 996 -hsync +vsync
--------------------------
Note. 결과 값을 사용하기 위해 별도 기록 및 보관

3. 원하는 해상도를 추가
a. Step 2에서 확인한 modeline 추가
# xrandr --newmode "1600x960_60.00"  127.00  1600 1696 1864 2128  960 963 973 996 -hsync +vsync
b. 변경 가능 목록에 추가 (Step 1에서 확인한 연결된 장치)
# xrandr --addmode VGA-1 1600x960

4. 사용가능 해상도 확인(Step 1)

5. 변경하고자 하는 해상도 선택 
GUI: 바탕화면 우클릭 > Display Setting > 해상도 선택 > 적용(Apply) - Keep change
CLI: 
# xrandr -s 1600x960

Note. 지속 적용
# vim /etc/gdm/Init/Default
---------------------------------
PATH=/usr/bin:$PATH
OLD_IFS=$IFS
---------------------------------
위 항목 밑에 추가:
---------------------------------
xrandr --newmode "1600x960_60.00"  127.00  1600 1696 1864 2128  960 963 973 996 -hsync +vsync
xrandr --addmode VGA-1 1600x960
xrandr --output VGA1 --mode 1600x960_60.00
---------------------------------

 

출처:
https://tibyte.kr/243
https://arachnoid.com/modelines/
https://www.ubuntugeek.com/how-change-display-resolution-settings-using-xrandr.html

 

 

 

Legacy Linux:

/etc/X11/xorg.conf

Section "Device"
        Option "ModeValidation" "NoDFPNativeResolutionCheck"

Section "Screen"
        Identifier "Screen0"
        Device "Videocard0"
        Monitor "Monitor0"
        DefaultDepth 24
        SubSection "Display"
                Viewport 0 0
                Depth 24
                Modes "1600x1200" "800x600" "640x480"
        EndSubSection
EndSection

출처 : 웹

 

 

 

 

 

반응형