阅读量:2
在Debian Compton配置中设置分辨率,主要有以下两种方法:
- 使用xrandr命令行工具:
- 查看当前显示器支持的分辨率:在终端输入
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
以上就是关于“Debian Compton配置中分辨率设置技巧”的相关介绍,筋斗云是国内较早的云主机应用的服务商,拥有10余年行业经验,提供丰富的云服务器、租用服务器等相关产品服务。云服务器资源弹性伸缩,主机vCPU、内存性能强悍、超高I/O速度、故障秒级恢复;电子化备案,提交快速,专业团队7×24小时服务支持!
简单好用、高性价比云服务器租用链接:https://www.jindouyun.cn/product/cvm