首先运行cvt 1920 1080
adog@kali:~$ cvt 1920 1080
# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
运行xrand
adog@kali:~$ xrandr
Screen 0: minimum 1 x 1, current 1920 x 1080, maximum 8192 x 8192
Virtual1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1920x970 60.00 +
2560x1600 59.99
1920x1440 60.00
1856x1392 60.00
1792x1344 60.00
1920x1200 59.88
1600x1200 60.00
1680x1050 59.95
1400x1050 59.98
1280x1024 60.02
1440x900 59.89
1280x960 60.00
1360x768 60.02
1280x800 59.81
1152x864 75.00
1280x768 59.87
1024x768 60.00
800x600 60.32
640x480 59.94
Virtual2 disconnected (normal left inverted right x axis y axis)
Virtual3 disconnected (normal left inverted right x axis y axis)
Virtual4 disconnected (normal left inverted right x axis y axis)
Virtual5 disconnected (normal left inverted right x axis y axis)
Virtual6 disconnected (normal left inverted right x axis y axis)
Virtual7 disconnected (normal left inverted right x axis y axis)
Virtual8 disconnected (normal left inverted right x axis y axis)
1920x1080 (0x3c4) 152.766MHz -HSync +VSync
h: width 1920 start 1970 end 2020 total 2070 skew 0 clock 73.80KHz
v: height 1080 start 1130 end 1180 total 1230 clock 60.00Hz
1920x1080_60.00 (0x3ef) 173.000MHz -HSync +VSync
h: width 1920 start 2048 end 2248 total 2576 skew 0 clock 67.16KHz
v: height 1080 start 1083 end 1088 total 1120 clock 59.96Hz
编辑/etc/profile文件
添加如下两行:
newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
addmode Virtual1 1920x1080_60.00
编辑文件 /etc/default/grub
找到#GRUB_GFXMODE=640x480,
然后将#去掉,并把640x480改为1920x1080
最后在设置–》显示中调整分辨率即可。
参考:
Failed to get size of gamma for output default when trying to add new screen resolution