LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2433|回复: 7

每次开机屏幕分辨率就改回到原来

[复制链接]
发表于 2008-1-21 00:57:24 | 显示全部楼层 |阅读模式
请问怎么设置才能不让它每次开机都变回去呢。每次都要改,很麻烦。
发表于 2008-1-21 15:14:54 | 显示全部楼层
将你的etc/X11/xorg.conf中的Hsync(我记不起来全名了,反正和这个差不多, horizontal synchronal)和Vrefresh(液晶一般不超出60)的值改成你的显示器的范围看看.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-1-22 23:03:03 | 显示全部楼层
贴一下我的配置文件吧 /etc/X11xorg.conf
# Xorg configuration created by system-config-display

Section "ServerLayout"
        Identifier     "single head configuration"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "us"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "nv"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes    "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

Section "Monitor"
   Identifier   "Monitor0"
   VendorName   "Monitor Vendor"
   ModelName    "Monitor Model"
   Modeline "1024x768"     78.80   1024 1056 1152 1312    768  769  772  800 +hsync +vsync
EndSection

希望台式机CRT显示器1024*768的兄弟们能贴一下你们的配置文件让我参考一下,真是没办法了
我的系统是FC6
回复 支持 反对

使用道具 举报

发表于 2008-1-22 23:11:44 | 显示全部楼层
我也是啊,兄弟,咋们换液晶得了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-1-23 10:13:37 | 显示全部楼层
一些linux用户(常见的是nvidia显卡用户)在配置完X服务器后,已经可以进入xwin桌面,只是屏幕是歪的,怎么办?当然,用户可以利用显示器本身自带的调节按钮将它校正过来,但这样一来,你回到win下就发现win的屏幕歪向另一个方向,实际上,xwin可以在启动时自己调整,方法是:

  1、在win下调正屏幕位置,使之正中

  2、启动linux,进入xwin(这时屏幕应该是歪的),开一个字符终端小窗口,运行xvidtune,用left和right按钮调好屏幕位置,再show一下,将终端窗口上显示的那一行输出记下来,类似这样的语句

  "1024x768" 94.50 1024 1093 1168 1376 768 769 772 808 +hsync +vsync

  3、编辑/etc/X11/XF86Config-4(或XF86Config,编辑前最好先拷贝一个作好备份)文件,找到Section "Monitor"中当前分辨率的那段,应该你会看到类似

  Modeline "1024x768" 94.50 1024 1093 1168 1376 768 769 772 808 +hsync +vsync这样的语句(没有的话就将记下来的东西在开头加Modeline,将它添加到EndSection的前面),按照刚才记下来的东西修改其中的相应位置的数值,改完后保存文件,然后重起xwindow就ok了。

  (用nvidia显卡的用户请注意,如果你用系统自带的驱动按上面方法校正了屏幕偏移现象,后来又安装nvidia显卡的驱动,则很有可能在安装完nvidia驱动后xwin启动黑屏或重新出现偏移现象,这是因为 nvidia驱动本身已经校正了屏幕偏移的问题,请将调整过偏移的那行前面加#号注释掉,譬如:

  Modeline "1024x768" 94.50 1024 1093 1168 1376 768 769 772 808 +hsync +vsync改成

  #Modeline "1024x768" 94.50 1024 1093 1168 1376 768 769 772 808 +hsync +vsync,再重起xwin就ok了)

  注:此方法同样可以用来调整刷新率:运行xvidtune,用中键(或左右两键一齐按下)拖动VTotal,这时会看见Vertical sync(刷新率)值会变动,调到你自己想要的值(不要太高),然后按test试一下效果,如果没问题的话,按show,再按上面的第3点同样修改 XF86Config-4(或XF86Config)文件,保存,重起xwin。

照这个改了,也没用啊。。。。。。。。。。。。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-1-23 13:12:17 | 显示全部楼层
麻烦谁贴一下,台式机CRT显示器1024*768的兄弟们能贴一下你们的配置文件让我参考一下
回复 支持 反对

使用道具 举报

发表于 2008-1-23 20:20:25 | 显示全部楼层
[robin@bogon ~]$ more /etc/X11/xorg.conf
# Xorg configuration created by livna-config-display

Section "ServerLayout"
        Identifier     "Default Layout"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"

EndSection

Section "ServerFlags"
        Option      "AIGLX" "off"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "us+inet"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "fglrx"
        Option      "VideoOverlay" "on"
        Option      "OpenGLOverlay" "off"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

Section "Extensions"
        Option      "Composite" "Disable"
        Option      "XVideo" "Enable"
EndSection
我的配置文件,根本没有相关的设置,可是工作地很好阿。呵呵。
特别指出,我的是ATI 9550。CRT @1024X768,85HZ
回复 支持 反对

使用道具 举报

发表于 2008-1-23 22:13:56 | 显示全部楼层
我用的是 N 卡 GF6100 和17寸液晶,在 Section "Screen" 部分添加了一行:
Option     "metamodes" "1280x1024_60 +0+0; nvidia-auto-select +0+0"
如果你用的也是 N 卡、装了官方驱动,可以参照着试试
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表