
저는 새로운 Linux 사용자이고 표시되는 옵션이 없기 때문에 화면 해상도를 변경하려고 합니다. 온라인 가이드를 따라 새 해상도를 성공적으로 추가했습니다. 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
답변1
새로운 사용자 정의 해상도를 추가하고 적용하는 데 필요한 단계는 다음과 같습니다. 다음 단계는 1920x1080 해상도를 추가하기 위한 것이지만 원하는 다른 해상도에 사용할 수 있습니다. 하지만 모니터와 온보드 그래픽 카드가 해당 해상도를 지원하는지 확인하세요.
# 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"
원본 출처:https://gist.github.com/debloper/2793261
또한 이 모든 단계를 자동화하는 스크립트도 작성했습니다. 위 단계가 너무 복잡하다면 다음을 시도해 보세요.https://gist.github.com/chirag64/7853413
답변2
/ 옵션을 사용할 수 있습니다 --size
:-s
xrandr -s 1440x900
RandR
버전 1.1 이상 에서 작동해야 합니다 .
답변3
나는 같은 문제를 가지고있다. 디스플레이 설정에서 최대 해상도는 1280x720입니다. 그래서:
- xrandr 명령을 사용하여 모니터 이름과 해상도 목록을 보았습니다.
- 나는 스크립트를 실행했습니다: xrandr --output {모니터 이름} --mode {해상도}
예를 들어:
xrandr --output DP-2-1 --mode 2560x1440
답변4
난 달린다:
xrandr --verbose
그러면 크기 라벨과 해당 픽셀 값 목록이 제공됩니다.
그런 다음 나는
xrandr -s 6
1920x1080 해상도 선택