免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 652 | 回复: 0
打印 上一主题 下一主题

linux登陆前后分辨率不一致的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-03-29 15:35 |只看该作者 |倒序浏览
问题描述:linux登陆前后分辨率不一致,登陆前分辨率高,登陆后正常。两台显卡一样的机器遇到同样的问题,但解决办法不同。
解决办法:修改/etc/x11/xorg.conf文件。
1、现将机器1的xorg.conf的文件列出:
.......
Section "Monitor"
### Comment all HorizSync and VertSync values to use DDC:
Identifier   "Monitor0"
ModelName    "Monitor 1024x768"
### Comment all HorizSync and VertSync values to use DDC:
HorizSync    31.5 - 57.0
VertRefresh  50.0 - 70.0
Option     "dpms"
EndSection
Section "Device"
Identifier  "Videocard0"
Driver      "i810"
EndSection
Section "Screen"
Identifier "Screen0"
Device     "Videocard0"
Monitor    "Monitor0"
DefaultDepth     24
SubSection "Display"
  Modes "1024x768"
  Viewport   0 0
  Depth     24
EndSubSection
EndSection
由于此文件中缺少红色部分,导致以上问题,可在文件中加入此句,便可解决。
2、现将机器2的xorg.conf的文件列出:
Section "Monitor"
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
Identifier   "Monitor0"
ModelName    "Monitor 1024x768"
### Comment all HorizSync and VertSync values to use DDC:
HorizSync    31.5 - 57.0
VertRefresh  50.0 - 70.0
#ModeLine     "1024x768_75.00" 81.8 1024 1080 1192 1360 768 769 772 802 -hsync +vsync
Option     "dpms"
EndSection
Section "Device"
Identifier  "Videocard0"
Driver      "i810"
EndSection
Section "Screen"
Identifier "Screen0"
Device     "Videocard0"
Monitor    "Monitor0"
DefaultDepth     24
SubSection "Display"
  Modes     "1024x768"
  Viewport   0 0
  Depth     24
EndSubSection
EndSection
由于此文件中多了红色部分,导致以上问题,可在文件中注释掉此句,便可解决。


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/56834/showart_511369.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP