在Debian Compton配置中设置分辨率,主要有以下两种方法:
xrandr -q。cvt生成新模型线,如cvt 1920 1080,会输出类似Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync的内容。xrandr --newmode创建新模式,将上述模型线内容替换进去。xrandr --addmode将新模式添加到显示器,如xrandr --addmode HDMI-1 1920x1080_60.00(HDMI-1替换为实际显示器名称)。xrandr --output设置新分辨率为当前分辨率,如xrandr --output HDMI-1 --mode 1920x1080_60.00。/etc/X11/xorg.conf文件不存在,用sudo Xorg -configure生成。Section "Monitor"
Identifier "Configured Monitor"
Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
Option "PreferredMode" "1920x1080_60.00"
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection
Section "Device"
Identifier "Configured Video Device"
EndSection