xrandr 사용법
xrandr
SSH 등 GUI 가 아닌 터미널에서 작업할 경우
-display :0.0
을 지정해야 한다.
xrandr -display :0.0
모니터 및 지원 해상도 목록 보기
xrandr
그러면 출력, 해상도, 주사율, 활성화된 목록을 확인 할 수 있다.
Screen 0: minimum 8 x 8, current 5760 x 2160, maximum 32767 x 32767
HDMI-0 disconnected (normal left inverted right x axis y axis)
HDMI-1 connected primary 3840x2160+1920+0 (normal left inverted right x axis y axis) 600mm x 340mm
3840x2160 60.00*+ 59.94 50.00 30.00 29.97 25.00 23.98
...
640x480 59.94 59.93
HDMI-2 connected (normal left inverted right x axis y axis)
640x400 59.94 +
...
640x480 59.93
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 connected 1920x1080+0+643 (normal left inverted right x axis y axis) 527mm x 296mm
1920x1080 60.00*+
...
640x480 75.00 59.94
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)
여기서 출력은 HDMI-0
, HDMI-1
, HDMI-2
, DP-0
같은 것이다.
각 출력별 선택된 모드와 해상도에 *이 표시되어 있다.
다른 소프트웨어에 의해 출력이 꺼졌을때 켜는 방법
xrandr --output <출력> --auto
즉시 설정 방법
해상도 변경
xrandr --output <출력> --mode 3840x2160 --rate 60.00