我最近将 Ubuntu 22.04 安装到带有 Mesa Intel® HD Graphics 620 (KBL GT2) 的 Dell Inc. Vostro 5568 上,本机显示器可用的最大分辨率为 1366x768。
我尝试添加 1920x1080 和 1600x900,但都没有成功。
xrandr 的输出是;
Screen 0: minimum 16 x 16, current 1366 x 768, maximum 32767 x 32767
XWAYLAND0 connected 1360x768+0+0 (normal left inverted right x axis y axis) 340mm x 190mm
1360x768 59.80*+
1024x768 59.92
800x600 59.86
640x480 59.38
320x240 59.52
720x480 59.71
640x400 59.95
320x200 58.96
1280x720 59.86
1024x576 59.90
864x486 59.92
720x400 59.55
640x350 59.77
cvt 1600 900 的输出是
1600x900 59.95 Hz (CVT 1.44M9) hsync: 55.99 kHz; pclk: 118.25 MHz
Modeline "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync
所以我运行以下命令没有错误,但分辨率没有出现在设置菜单中
xrandr --newmode "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync
xrandr --addmode XWAYLAND0 "1600x900_60.00"
我还将这些行添加到 gedit ~/.profile 没有任何效果,我已经尝试 xrandr --fb 1600x900 没有错误
我得到错误的唯一地方是 xrandr --output XWAYLAND0 --mode "1600x900_60.00" 产生以下错误;
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 139 (RANDR)
Minor opcode of failed request: 21 (RRSetCrtcConfig)
Value in failed request: 0x0
Serial number of failed request: 22
Current serial number in output stream: 22
对于那些在未来发现这一点的人来说,似乎无法覆盖,但是我通过安装Tweaks并使用 Scaling Factor 来解决这个问题以获得更高分辨率的外观。