LinuxSir.cn,穿越时空的Linuxsir!

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

如何修改fedora11分辨率

[复制链接]
发表于 2009-8-2 11:19:13 | 显示全部楼层 |阅读模式
我是刚刚装的fedora11,分辨率只显示是800x600.如何调整成1024x768
发表于 2009-8-2 11:44:04 | 显示全部楼层
安装显卡驱动了吗 如果安装了显卡驱动 可以在应用程序--系统工具里面看到你安装的那个驱动设置 打开她 里面有分辨率设置

也可以在 系统--首选项--硬件--屏幕分辨率里面设置

好像 系统--管理--显示里面也可以设置
回复 支持 反对

使用道具 举报

发表于 2009-8-12 19:16:20 | 显示全部楼层
Post by wunaitiantian;2011737
我是刚刚装的fedora11,分辨率只显示是800x600.如何调整成1024x768
/etc/X11/xorg.conf

Section "Screen"
Identifier "Screen0"
Device     "Videocard0"
DefaultDepth     24
   SubSection "Display"
Viewport   0 0
Depth     24
Modes "1024x768" "1280x960" "1152x864" "800x600"
EndSubSection
EndSection
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-15 12:08:14 | 显示全部楼层
谢谢两位朋友的参与,但是首先X11下面没有xorg.conf这个文件,在系统-首选项目里面有个display,里面分辨率和刷新率都是灰白的,不能编辑,难道是没有安装显卡驱动 ?fedora11不是自带有显卡驱动吗?
回复 支持 反对

使用道具 举报

发表于 2009-8-15 15:41:10 | 显示全部楼层
什么显卡?默认的驱动效果一般不是很好,需要特别设置,尤以 NV 为甚。
回复 支持 反对

使用道具 举报

发表于 2009-8-16 07:10:55 | 显示全部楼层

煮人为快乐之本 欢迎加入 linux

煮人为快乐之本 欢迎加入 linux

举例来说

进入 命令行


启动时加参数 3

例如

title Fedora (2.6.27.29-170.2.78.fc10.i686)
        root (hd0,0)
        kernel /vmlinuz-2.6.27.29-170.2.78.fc10.i686 ro root=UUID=127b113b-8fc4-4a4e-a20c-6e3b28815b85 rhgb quiet 3
        initrd /initrd-2.6.27.29-170.2.78.fc10.i686.img




进入菜单时 按E键编辑  按回车保存  b 键引导

第二部就这样了


Xorg -configure

ls
xorg.conf.new

cp xorg.conf.new /etc/X11/xorg.conf

测试 自己试
回复 支持 反对

使用道具 举报

发表于 2009-8-16 07:16:47 | 显示全部楼层
如何分区如何双启动 网络设置 自己看手册等等

默认安装后

# Xorg -configure

  这会在 /root 中生成一个叫做 xorg.conf.new 的配置文件 (无论您使用 su(1) 或直接登录,都会改变默认的 $HOME 目录变量)。 X11 程序将尝试探测系统中的图形硬件,并将探测到的硬件信息写入配置文件,以便加载正确的驱动程序。

  下一步是测试现存的配置文件, 以确认 Xorg 能够同系统上的图形设备正常工作。 要完成这个任务,只需:

# Xorg -config xorg.conf.new

  如果用户看到一个黑灰的格子和一个 X 形的鼠标指针,那么配置就是成功的。 要退出测试,只要同时按下 Ctrl+Alt+Backspace。


不成功 如下



我一般就不测试直接上gonme2


xorg.conf.new  内容修改两处   涉及显示器参数

很容易 这句话 要理解  Xorg 能够自动地通过 I2C/DDC 信息来自动获取宽屏显示器的分辨率信息, 并处理显示器支持的频率和分辨率。


看我的 参数

默认Xorg -configure   xorg.conf.new  参数

只看两段  也就修改这两段

显示器 硬件参数
Section "Monitor"
        #DisplaySize      320   240     # mm
        Identifier   "Monitor0"
        VendorName   "LEN"
        ModelName    "LXB-HF769A"
### Comment all HorizSync and VertRefresh values to use DDC:
        HorizSync    30.0 - 70.0 这里要注意阿液晶显示器也有此项参数如果没有的话显示分辩率不正常
        VertRefresh  50.0 - 160.0
        Option      "DPMS"
EndSection


默认启动桌面 分辨率参数


Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection


第一部分修改 注意看




Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "LEN"
        ModelName    "LXB-HF769A"
        HorizSync    30.0 - 70.0
        VertRefresh  50.0 - 160.0
        Option      "DPMS"
EndSection

把注解的说明去掉用显示器默认的I2C/DDC 信息 仔细看我去掉了那些东西

第二项

分辨率 仔细看

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth 24      (我比较懒增添该行默认24)
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes "1024x768"  (告诉系统分辨率为1024x768)
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

一般这样做可以直接测试成功

修改后的 xorg.conf.new   要 cp xorg.conf.new  /etc/X11/xorg.conf 后就OK
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-22 12:32:39 | 显示全部楼层
我的 是 INTEL 845主板集成的显卡,不好意思,我 还是 不明白 你的做法,直接在 命令下输入# Xorg -configure提示不 存在,前面的 那 部分我 没有 看 懂,能否 详细一点?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-1-10 19:09:39 | 显示全部楼层
兄弟,我已经新建了xorg.conf 默认情况下 没有是没有相关的分辨率设置 然后我按照你的方法添加了垂直和水平分辨率 重启后屏幕的大小还是一样,可用画面右边离显示器边框有很大的黑边 左边也有 不过稍微少一点  与之前没改时相比,唯一区别是所有画面的 的字体变得很小了  请问 这个画面可以调大的吗?是否填满这个显示器屏幕?
这是我原来的CONF      Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath   "/usr/lib/xorg/modules"
        FontPath     "catalogue:/etc/X11/fontpath.d"
        FontPath     "built-ins"
EndSection

Section "Module"
        Load  "dbe"
        Load  "dri2"
        Load  "dri"
        Load  "extmod"
        Load  "record"
        Load  "glx"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "rotocol" "auto"
        Option            "Device" "/dev/input/mice"
        Option            "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"                    # [<bool>]
        #Option     "SWcursor"                   # [<bool>]
        #Option     "ColorKey"                   # <i>
        #Option     "CacheLines"                 # <i>
        #Option     "Dac6Bit"                    # [<bool>]
        #Option     "DRI"                        # [<bool>]
        #Option     "NoDDC"                      # [<bool>]
        #Option     "ShowCache"                  # [<bool>]
        #Option     "XvMCSurfaces"               # <i>
        #Option     "ageFlip"                   # [<bool>]
        Identifier  "Card0"
        Driver      "intel"
        Option "Tiling""False"
        VendorName  "Intel Corporation"
        BoardName   "82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device"
        BusID       "CI:0:2:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection
回复 支持 反对

使用道具 举报

发表于 2010-3-16 22:48:36 | 显示全部楼层
我也有类似的问题。我的显示器是18.5寸的宽屏LCD,分辨率应该是1366*768,已经安装好了Nvidia的驱动(显卡是Geforce 4 MX440),如果在SubSection "Display"里面指定Modes "1366x768",进入桌面后分辨率永远只是1024*768,画面变形;如果加上Virtual 1366 768的话,画面虽然是1366*768了(PrintScreen后保存出来的截图是这个大小),但显示器上画面被拉的很长,超出LCD的实际显示范围,鼠标向右移出画面后,屏幕要向右移动很多距离才到底,就像有滚动条一样。
我的xorg.conf是这样的:

# Xorg configuration created by system-config-display

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

Section "Files"
        ModulePath   "/usr/lib/xorg/modules/extensions/nvidia"
        ModulePath   "/usr/lib/xorg/modules"
        FontPath     "catalogue:/etc/X11/fontpath.d"
        FontPath     "built-ins"
EndSection

Section "Module"
        Load  "dri2"
        Load  "record"
        Load  "glx"
        Load  "dbe"
        Load  "extmod"
EndSection

Section "ServerFlags"
        Option            "AIGLX" "on"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "rotocol" "auto"
        Option            "Device" "/dev/input/mice"
        Option            "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor LCD 1360 768"
        HorizSync    30.0 - 80.0
        VertRefresh  50.0 - 60.0
        ModeLine     "1366x768_60.00" 85.9 1368 1440 1584 1800 768 769 772 795 -hsync +vsync
        Option            "dpms"
EndSection

Section "Device"

        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "SWcursor"                   # [<bool>]
        #Option     "HWcursor"                   # [<bool>]
        #Option     "NoAccel"                    # [<bool>]
        #Option     "ShadowFB"                   # [<bool>]
        #Option     "VideoKey"                   # <i>
        #Option     "FPDither"                   # [<bool>]
        #Option     "FPScale"                    # [<bool>]
        #Option     "ScalingMode"                # <str>
        #Option     "EXAPixmaps"                 # [<bool>]
        Identifier  "Card0"
        Driver      "nvidia"
        VendorName  "nVidia Corporation"
        BoardName   "NV18 [GeForce4 MX 440 AGP 8x]"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth     24
        Option            "AddARGBGLXVisuals" "True"
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Modes      "1366x760_60" "1024x768_60" "800x600_60"
                        Virtual     1366 768
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

Section "Extensions"
        Option            "Composite" "Enable"
EndSection

使用Virtual 1366 768的话,画面实际显示为图中红色的部分,可以想象这一部分显示在16:9的显示器上画面会有多扁……
回复 支持 反对

使用道具 举报

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

本版积分规则

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