用vi编译器或者gedit使用~/.profile即可
vim ~/.profile
如果是HDMI,则在最后面加入(由于我笔记本CPU自带显卡是HD4000,性能渣,只能带得动2560x1440最高44fps,所以在后面加了个44)
# HDMI-1
cvt 2560 1440 44
xrandr --newmode "2560x1440_44.00" 222.75 2560 2720 2992 3424 1440 1443 1448 1479 -hsync +vsync
xrandr --addmode HDMI-1 "2560x1440_44.00"
xrandr --output HDMI1 --mode "2560x1440_44.00"
如果不是,则先xrandr -q,看看电脑上接了那些可显示设备
Screen 0: minimum 8 x 8, current 2560 x 1440, maximum 16384 x 16384
LVDS-1 connected
1366x768 60.10 +
1360x768 59.80 59.96
1024x768 60.04 60.00
960x720 60.00
928x696 60.05
896x672 60.01
960x600 60.00
960x540 59.99
800x600 60.00 60.32 56.25
840x525 60.01 59.88
800x512 60.17
700x525 59.98
640x512 60.02
72