Я хочу знать, хорошо ли сконфигурирован графический процессор моего ноутбука с максимальным разрешением. Я прочитал этот вопрос , чтобы узнать текущее разрешение монитора:
$ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maxiumum 8192 x 8192
Он показывает, что максимум составляет 8192 x 8192 (это максимальное разрешение монитора или графического процессора). Графический процессор представляет собой GM107M [GeForce GTX 960M] [10DE: 139B] . Его веб-сайт показывает, что он поддерживает 4K.
Как узнать, настроен ли он с максимальным разрешением?
Вы не можете установить разрешение экрана видео сверх того, которое поддерживает текущий монитор, хотя можно установить и более низкое значение.
Набрав xrandr
в своем терминале, вы увидите как показано ниже
Screen 0: minimum 320 x 320, current 1920 x 1080, maximum 8192 x 8192
минимум 320 x 320
- показывает минимум,
текущий 1920 x 1080
- показывает текущее разрешение экрана.
максимум 8192 x 8192
- максимальное разрешение что поддерживает ваш gpu
.
Если вы хотите добиться более высоких результатов, вам необходимо подключить внешний монитор с более высоким разрешением.
Также убедитесь, что ваш интерфейс подключения поддерживает более высокое разрешение, которое вы хотите использовать, поскольку это также может ограничить вас.
Ваш графический процессор поддерживает разрешение до 8192x8192
, но монитор поддерживает до 1920x1080
, как вы можете видеть.
Если вы подключите внешний монитор, вы сможете чтобы получить более высокое разрешение.
You can learn the native resolution of your LCD display by using the edid-decode
utility to decode the monitor's EDID data.
sudo apt install edid-decode
The native resolution (i.e. exactly how many pixels the display actually has) is important because, first, it is not possible to select a higher resolution, and second, if you select a lower resolution the display will either place black bars around the displayed image (which looks bad) or try to interpolate pixels to stretch the image (which looks even worse).
To use it, you will need to get the paths for your display's EDID, which are exposed in sysfs. You can use find
to find them. For example:
$ find /sys/devices -name edid
/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-HDMI-A-1/edid
/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/edid
/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-DP-2/edid
/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-HDMI-A-2/edid
/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-DP-1/edid
One will be listed for every display port the system thinks it has (even some that don't physically exist). For your laptop, the built in display will usually be eDP-1
. An external monitor may be connected to an HDMI
port or a DP
port, depending on what your laptop's ports actually are.
Run edid-decode
on each of these to decode their data, and look in the Block 0, Base EDID:
section under the Basic Display Parameters & Features:
subsection for a message about the First detailed timing
. For example, from my laptop's screen:
$ edid-decode /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/edid
....
First detailed timing includes the native pixel format and preferred refresh rate
Or, from my external monitor:
$ edid-decode /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-HDMI-A-1/edid
....
First detailed timing is preferred timing
You can then look at the Detailed Timing Descriptors:
in the same Block
to see the native resolution. For example, my laptop's screen shows:
Detailed Timing Descriptors:
DTD 1: 1920x1080 60.056 Hz 16:9 67.143 kHz 141.000 MHz (344 mm x 193 mm)
My external monitor shows:
Detailed Timing Descriptors:
DTD 1: 1920x1080 60.000 Hz 16:9 67.500 kHz 148.500 MHz (476 mm x 268 mm)
My external monitor also has a Block 1, CTA-861 Extension Block:
with additional Detailed Timing Descriptors listed. You can ignore such a block for this purpose.
If there is nothing connected to the port, you will just get an error. For example:
$ edid-decode /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-DP-1/edid
EDID extract of '/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-DP-1/edid' failed