linux分辨率设置方法与问题

发布时间:2019-07-24编辑:脚本学堂
本文介绍下,在linux下设置分辨率的方法,以及xwindow中的下拉列表丢失的问题的解决方法,有需要的朋友参考下。

linux的分辨率,原来是1280*1024,要修改成1024*768的,然后logout。
修改后界面太小,需要修改改回来,结果发现下xwindow的下拉列表里,那些选项都没有了。

这里记录下解决心得,供大家作个参考。

首先,设置分辩率的文件:
位于/etc/X11/xorg.conf .orginal文件和//etc/X11/.xorg.conf .backup 和一个备份文件xorg.conf的内容:
 

复制代码 代码示例:

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "206STUDIO"
HorizSync 30.0 - 70.0
VertRefresh 50.0 - 160.0
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection

当改成1024*768后,发现在 "section screen ”中,没有发现Modes,所以加上:
 

复制代码 代码示例:
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280*1024"
EndSubSection
EndSection

保存退出:x

由于该文件对root 是可写的,所以建议在root下进行操作,重新logout一下即可。