사용자 도구

사이트 도구


linux:xrandr

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
linux:xrandr [2013/12/20 23:38]
kwon37xi
linux:xrandr [2023/11/22 09:45] (현재)
kwon37xi [XRandr]
줄 1: 줄 1:
 ====== XRandr ====== ====== XRandr ======
-  * Linux 화면 해상도 정보 보기/조정 툴+  * Linux 화면 / display / monitor 해상도 정보 보기/조정 툴
   * [[https://wiki.ubuntu.com/X/Config/Resolution|X/Config/Resolution - Ubuntu Wiki]]   * [[https://wiki.ubuntu.com/X/Config/Resolution|X/Config/Resolution - Ubuntu Wiki]]
 +  * [[https://wiki.gentoo.org/wiki/Xrandr|Xrandr - Gentoo Wiki]]
   * xrandr 명령을 로그인시 마다 실행하고자 한다면 ''$HOME/.xsessionrc'' 파일에 넣어둔다.   * xrandr 명령을 로그인시 마다 실행하고자 한다면 ''$HOME/.xsessionrc'' 파일에 넣어둔다.
 +  * [[linux:gnome-randr|gnome-randr]]
 +
 ===== 해상도 변경 ===== ===== 해상도 변경 =====
   * ''xrandr'' : 전체 디스플레이 정보 보기   * ''xrandr'' : 전체 디스플레이 정보 보기
줄 9: 줄 12:
 # 모니터가 두 대 이상일 때 그냥 해상도만 지정하면 Mirror방식(동일 화면)으로 됨 # 모니터가 두 대 이상일 때 그냥 해상도만 지정하면 Mirror방식(동일 화면)으로 됨
 xrandr --output VGA1 --mode 1024x768 --rate 60 xrandr --output VGA1 --mode 1024x768 --rate 60
 +</code>
 +
 +===== 모니터 주사율(refresh rate hz) 설정 =====
 +  * [[https://askubuntu.com/questions/433855/how-to-make-custom-refresh-rate-stay-saved|nvidia - How to make custom refresh rate stay saved? - Ask Ubuntu]]
 +
 +<code sh>
 +xrandr --output DP-1-1 --mode 3840x2160 --rate 60.00
 </code> </code>
  
줄 24: 줄 34:
 # Laptop 화면을 Primary로 # Laptop 화면을 Primary로
 xrandr --output LVDS1 --primary xrandr --output LVDS1 --primary
 +</code>
 +
 +===== Scale / HiDPI =====
 +  * [[https://askubuntu.com/questions/1193940/setting-monitor-scaling-to-200-with-xrandr|xorg - Setting monitor scaling to 200% with xrandr - Ask Ubuntu]]
 +  * ''%%--%%scale 2x2''
 +<code sh>
 +xrandr \
 +  --output DP-4 --primary --pos 0x0 --scale 2x2 \
 +  --output DP-2 --pos 3840x0 --scale 2x2 \
 +  --output eDP-1-1 --off
 +</code>
 +  * [[https://nilsonsales.wordpress.com/2019/10/31/changing-monitor-dpi-on-kde-using-xrandr/|Changing monitor DPI on KDE using ‘xrandr’ – Experimental Blog]]
 +  * [[https://blog.summercat.com/configuring-mixed-dpi-monitors-with-xrandr.html|Configuring mixed DPI monitors with xrandr | The One and the Many]]
 +
 +<code sh>
 +xrandr --dpi 120
 +</code>
 +  * The recommended values are 96 (default value), 120 (25% higher), 144 (50% higher), 168 (75% higher) and 192 (100% higher).
 +
 +===== 밝기 조절 - brightness =====
 +  * [[https://askubuntu.com/questions/149054/how-to-change-lcd-brightness-from-command-line-or-via-script|How to change LCD brightness from command line (or via script)? - Ask Ubuntu]]
 +
 +<code sh>
 +xrandr -q | grep " connected"
 +# 목록에서 모니터 이름 확인
 +
 +xrandr --output LVDS1 --brightness 0.5 # 1.0 이 max
 </code> </code>
  
 ===== arandr ===== ===== arandr =====
 +  * https://christian.amsuess.com/tools/arandr/
   * **arandr**은 xrandr의 GUI 버전이다.   * **arandr**은 xrandr의 GUI 버전이다.
   * 화면을 설정한 뒤에 ''Save as...''로 셸 스크립트를 저장하고, 해당 스크립트를 시작 프로그램으로 등록하면 항상 원하는 화면으로 시작할 수 있다.   * 화면을 설정한 뒤에 ''Save as...''로 셸 스크립트를 저장하고, 해당 스크립트를 시작 프로그램으로 등록하면 항상 원하는 화면으로 시작할 수 있다.
  
 +===== autorandr =====
 +  * https://github.com/phillipberndt/autorandr
 +  * 하드웨어 자동인식으로 ''xrandr'' 실행
 +
 +===== 참조 =====
 +  * [[https://www.maketecheasier.com/change-screen-resolution-ubuntu/|How to Change the Screen Resolution in Ubuntu - Make Tech Easier]] : xrandr 의 다양한 사용법
 +  * [[https://askubuntu.com/questions/281509/how-do-i-change-the-screen-resolution-using-ubuntu-command-line|How do I change the screen resolution using Ubuntu command line? - Ask Ubuntu]]
 +  * [[https://www.baeldung.com/linux/adjust-screen-resolution|Adjusting Screen Resolution in Linux | Baeldung on Linux]]
linux/xrandr.1387550285.txt.gz · 마지막으로 수정됨: 2013/12/20 23:38 저자 kwon37xi