' 디스플레이 설정 '

저는 디스플레이 아래에 옵션이 없기 때문에 화면 해상도를 변경하려는 새로운 Linux 사용자입니다. 온라인 가이드에 따라 fluke에서 새로운 해상도를 성공적으로 추가했습니다. GPU가 없습니다. , 이것이 문제인지 모르겠습니다. 아래는 xrandr -q 출력입니다.

root@kali:~# xrandr -q xrandr: Failed to get size of gamma for output default Screen 0: minimum 1280 x 1024, current 1280 x 1024, maximum 1280 x 1024 default connected 1280x1024+0+0 0mm x 0mm 1280x1024 0.0* 1920x1200_60.00 (0x145) 193.2MHz h: width 1920 start 2056 end 2256 total 2592 skew 0 clock 74.6KHz v: height 1200 start 1203 end 1209 total 1245 clock 59.9Hz 1440x900_59.90 (0x156) 106.3MHz h: width 1440 start 1520 end 1672 total 1904 skew 0 clock 55.8KHz v: height 900 start 901 end 904 total 932 clock 59.9Hz 

댓글

  • xrandr -q는 설명서에 없습니다.

답변

새 맞춤 해상도를 추가하고 적용하는 데 필요한 단계는 다음과 같습니다. 다음 단계는 1920×1080 해상도를 추가하는 단계이지만 원하는 다른 해상도에 사용할 수 있습니다.하지만 모니터와 온보드 그래픽을 확인하세요. 해당 해상도를 지원합니다.

 # First we need to get the modeline string for xrandr # Luckily, the tool "gtf" will help you calculate it. # All you have to do is to pass the resolution & the- # refresh-rate as the command parameters: gtf 1920 1080 60 # In this case, the horizontal resolution is 1920px the # vertical resolution is 1080px & refresh-rate is 60Hz. # IMPORTANT: BE SURE THE MONITOR SUPPORTS THE RESOLUTION # Typically, it outputs a line starting with "Modeline" # e.g. "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync # Copy this entire string (except for the starting "Modeline") # Now, use "xrandr" to make the system recognize a new # display mode. Pass the copied string as the parameter # to the --newmode option: xrandr --newmode "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync # Well, the string within the quotes is the nick/alias # of the display mode - you can as well pass something # as "MyAwesomeHDResolution". But, careful! :-| # Then all you have to do is to add the new mode to the # display you want to apply, like this: xrandr --addmode VGA1 "1920x1080_60.00" # VGA1 is the display name, it might differ for you. # Run "xrandr" without any parameters to be sure. # The last parameter is the mode-alias/name which # you"ve set in the previous command (--newmode) # It should add the new mode to the display & apply it. # Usually unlikely, but if it doesn"t apply automatically # then force it with this command: xrandr --output VGA1 --mode "1920x1080_60.00"  

원본 s ource : https://gist.github.com/debloper/2793261

또한이 모든 단계를 자동으로 수행하는 스크립트를 작성했습니다. 위 단계가 너무 복잡해 보인다면 시도해 볼 수 있습니다. https://gist.github.com/chirag64/7853413

의견

  • 마지막 단계 실패 …
  • 어떤 오류가 발생 했습니까? 답변 끝에 링크 한 자동화 된 스크립트를 사용해보세요.
  • 파일을 실행할 때 chmod +x Desktop/xrandr.sh 오류가 없거나 변화가 없습니다.
  • chmod +x Desktop/xrandr.sh는 해당 파일을 실행할 수있는 권한 만 제공합니다. Desktop/xrandr.sh를 실행하여 실행해야합니다.
  • gtf 대신 , 예 : cvt 1920 1080gtf와 동일한 출력을 생성하지만 유효한 새로 고침 빈도도 계산합니다. (gtf에 새로 고침 빈도를 직접 제공하면 항상 지원되는 출력 값이 제공되지 않을 수 있습니다.)

답변

--size / -s 옵션을 사용할 수 있습니다.

xrandr -s 1440x900 

RandR 버전 1.1 이상에서 작동해야합니다.

댓글

  • 이 작업을 수행 할 때 응답은 다음과 같습니다. 사용 가능한 모드에서 크기 1440x900을 찾을 수 없음
  • @nick 내가 추론 한 질문에 포함 된 출력에서 사용할 수 있어야합니다. ‘ xrandr --verbose의 출력은 무엇입니까?
  • xrandr : 출력 기본 화면 0에 대한 감마 크기를 가져 오지 못했습니다. : 최소 1024 x 768, 현재 1024 x 768, 최대 1024 x 768 기본 연결됨 1024×768 + 0 + 0 (0x138) 정상 (정상) 0mm x 0mm 식별자 : 0x137 타임 스탬프 : 5048 하위 픽셀 : 알 수없는 클론 : CRTC : 0 CRTC : 0 변환 : 1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 1.000000 필터 :
  • 1024×768 (0x138) 0.0MHz * 현재 h : 폭 1024 시작 0 끝 0 총 1024 스큐 0 클럭 0.0KHz v : 높이 768 시작 0 끝 0 총 768 클럭 0.0Hz
  • 따라서 사용 가능한 유일한 해상도는 1024×768 인 것 같습니다. 이 해상도를 설정 하시겠습니까?

답변

같은 문제가 발생했습니다. 디스플레이 설정에서 최대 해상도는 1280x720입니다. 그래서 :

  1. xrandr 명령을 사용하여이 모니터의 이름과 해상도 목록을 확인했습니다.
  2. 나는 “스크립트를 실행했습니다 : xrandr –output {name of monitor}- -mode {resolution}

예 :

xrandr --output DP-2-1 --mode 2560x1440 

Answer

#IntelMaker #Joule SUNFOUNDER 7 INCH TFT COLOR MONITOR를 사용하여 기본 해상도에서 작동하도록하기 위해 1024 * 600 해상도로 나열되었지만 대신 1280x720으로 선택되었습니다.

첫째, Linux 4.4.15-yocto-standard x86_64 기반 Intel Joule에는 gtf(1) 가없는 것 같습니다. 따라서 적절한 숫자를 계산하기 위해 다른 시스템을 사용해야했습니다.

$ gtf 1024 600 60 # 1024x600 @ 60.00 Hz (GTF) hsync: 37.32 kHz; pclk: 48.96 MHz Modeline "1024x600_60.00" 48.96 1024 1064 1168 1312 600 601 604 622 -HSync +Vsync $ 

그런 다음 적절한 명령으로 파일을 만듭니다.

# cat > 1024x600.sh xrandr --newmode "1024x600_60.00" 48.96 1024 1064 1168 1312 600 601 604 622 -HSync +Vsync xrandr --addmode HDMI1 "1024x600_60.00" xrandr --output HDMI1 --mode "1024x600_60.00" ^D # chmod +x 1024x600.sh 

그런 다음 startx 또는 startxfce4./1024x600.sh를 실행하면 다음이 xrandr(1) a에서보고됩니다. >.

# xrandr Screen 0: minimum 8 x 8, current 1024 x 600, maximum 32767 x 32767 DP1 disconnected (normal left inverted right x axis y axis) HDMI1 connected 1024x600+0+0 (normal left inverted right x axis y axis) 697mm x 392mm 1280x720 60.00 + 50.00 59.94 1920x1080 60.00 50.00 59.94 1920x1080i 60.00 50.00 59.94 1280x1024 75.02 1440x900 74.98 59.90 1024x768 75.08 70.07 60.00 1024x600 60.00 800x600 72.19 75.00 60.32 56.25 720x576 50.00 720x576i 50.00 720x480 60.00 59.94 720x480i 60.00 59.94 640x480 75.00 72.81 60.00 59.94 720x400 70.08 1024x600_60.00 60.00* HDMI2 disconnected (normal left inverted right x axis y axis) VIRTUAL1 disconnected (normal left inverted right x axis y axis) # 

댓글

  • 답변에는 관련없는 개인 사용자 및 호스트 이름이 포함되며 ‘ 출력에서 명령을 명확하게 분리하지 마십시오.이 모든 것은 독자들에게 혼동을 줄 수 있습니다. 무언가가 명령이라는 것을 전달하는 표준 방법은 단순히 $ 접두사를 붙이는 것입니다. Kali ‘의 기본 WM은 XFCE가 아닌 GNOME이기도합니다. startxfce4 명령은 XFCE 버전 4를 실행하는 사용자만을위한 것임을 분명히해야합니다.다른 많은 사용자가 정확히 Linux 4.4.15-yocto-standard x86_64를 실행할 가능성은 저에게 ‘ 높지 않은 것 같으므로 ‘ d 대신 gtf (또는 cvt)를 먼저 설치해야 할 수도 있다고 작성합니다.

답변

스크립트를 저장하고 실행합니다 (bash script.sh 1024720 60 ) 해당 스크립트로 사용자 지정 해상도를 설정할 수 있지만 로그 아웃하고 다시 로그인 할 때마다 임시 솔루션입니다. 스크립트를 다시 실행해야합니다. bash.bashrc 프로필에 2 줄의 코드를 추가하여 스크립트를 직접 실행할 수 있습니다. 터미널.

#!/bin/bash # xrandr.sh #If no argument is specified, ask for it and exit if [[ -z "$@" ]]; then echo "An argument is needed to run this script"; exit else arg="$@" #Basic check to make sure argument number is valid. If not, display error and exit if [[ $(($(echo $arg | grep -o "\s" | wc --chars) / 2 )) -ne 2 ]]; then echo "Invalid Parameters. You need to specify parameters in the format "width height refreshRate"" echo "For example setResolution "2560 1440 60"" exit fi #Save stuff in variables and then use xrandr with those variables modename=$(echo $arg | sed "s/\s/_/g") display=$(xrandr | grep -Po ".+(?=\sconnected)") if [[ "$(xrandr|grep $modename)" = "" ]]; then xrandr --newmode $modename $(gtf $(echo $arg) | grep -oP "(?<="\s\s).+") && xrandr --addmode $display $modename fi xrandr --output $display --mode $modename #If no error occurred, display success message if [[ $? -eq 0 ]]; then echo "Display changed successfully to $arg" fi fi 

답변

실행했습니다 :

xrandr --verbose 

크기 태그 및 해당 픽셀 값 목록을 제공

그런 다음 사용했습니다

xrandr -s 6 

1920×1080 해상도 선택

A nswer

내 문제는 노트북 해상도에 다음과 같습니다.

Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767 eDP1 connected 1920x1080+0+0 ... 1366x768 60.00*+ 47.98 <=== MaxResolution (Default/Primary) 1360x768 59.80 59.96 1280x720 60.00 ... 

기본 / 기본 화면은 1366×768.

하지만 내 노트북에서 1920×1080 (DesireResolution) 해상도를 테스트하고 싶습니다.

모든 것을 시도했습니다.

내 노트북이이 stackexchange 질문 요청과 같이 해상도를 높이기 위해 xrandr의 addmode 또는 newmode 명령을 허용하지 않기 때문에 해결책을 찾을 수 없습니다.

그래서 몇 가지 수학을했습니다!

1920/1366 = 1.4055636896 1080/768 = 1.40625 

기본적으로 DesireResolution / MaxResolution

이 명령을 실행합니다.

xrandr --output eDP1 --mode 1366x768 --panning 1920x1080 --scale 1.40556369x1.40625

원래 해상도를 복원해야하는 경우

xrandr --output eDP1 --mode 1366x768 --panning 1366x768 --scale 1x1 

원하는 해상도로 조정할 수 있습니다.

답글 남기기

이메일 주소를 발행하지 않을 것입니다. 필수 항목은 *(으)로 표시합니다