Я выполнил поиск и выполнил сценарий:
$cat ./xrandr cvt 3840 2160 59.91 xrandr --newmode "4K" 711.75 3840 4160 4576 5312 2160 2163 2168 2237 -hsync +vsync xrandr --addmode XWAYLAND1 4K xrandr --output XWAYLAND1 --mode 4K`Но теперь даже в настройках -> устройства -> разрешение экрана у меня не было режима 3840x2160 для выбора в списке.
Когда я запускаю свой скрипт:
$ bash -x ./xrandr
+ cvt 3840 2160 59.91
# 3840x2160 59.90 Hz (CVT) hsync: 133.99 kHz; pclk: 711.75 MHz
Modeline "3840x2160_59.91" 711.75 3840 4160 4576 5312 2160 2163 2168 2237 -hsync +vsync
+ xrandr --newmode 4K 711.75 3840 4160 4576 5312 2160 2163 2168 2237 -hsync +vsync
X Error of failed request: BadName (named color or font does not exist)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 16 (RRCreateMode)
Serial number of failed request: 18
Current serial number in output stream: 18
+ xrandr --addmode XWAYLAND1 4K
+ xrandr --output XWAYLAND1 --mode 4K
xrandr: Configure crtc 0 failed
Какое решение для этого? У меня Ubuntu 17.10. У меня была эта резолюция раньше ... она просто исчезает.
Вы можете перенастроить xOrg. Я сделал это, создав файл в моем каталоге /usr/share/X11/xorg.conf.d.
Я сделал это с помощью vim:
sudo vim /usr/share/X11/xorg.conf.d/5-monitor.conf
Вот пример моего файла
Section "Monitor"
Identifier "Monitor0"
Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
Modeline "3840x2160_30.0" 297.00 3840 4016 4104 4400 2160 2168 2178 2250 +hsync +vsync
Modeline "4096x2160_24.0" 297.00 4096 5116 5204 5500 2160 2168 2178 2250 +hsync +vsync
EndSection
Section "Device"
Identifier "Device0"
Driver "intel"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "3840x2160" "1920x1080"
EndSubSection
EndSection
Для инструкций о том, как это сделать, вы можете следовать этому руководству: https://wiki.gentoo.org/wiki/Xorg/Multiple_monitors