免费注册 查看新帖 |

Chinaunix

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

怎么修改redhat9.0的分辨率 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-03-23 20:29 |只看该作者 |倒序浏览
我用的是REDHAT9.0,不小心怎么把把屏幕的分辨率给改拉,现在进入系统后,字体很大,屏幕很小,打开系统设置的显示后根本看不见该分辨率的地方,我该怎么修改回来。我在网上查拉一个方法是:
先执行xrandr看看你的显示器支持什么样的分辨率和刷新频率
使用xrandr的 -q 选项:
xrandr -q
这样会给出一个列表。要使用其中的某一个模式,只需要使用xrandr的 -s 选项:
xrandr -s n
这里的 n 是 xrandr -q 列表中相应模式行最开始那个数字。
然后用
xrandr -s x -r
如xrandr -s 1024x768 -r 84就是把分辨率设成1024x768,刷新频率是84

可是我运行xrandr -q 后只有一个列表为
  *0 320x200 (108mmx68mm)  *140
qurrent rotation - normal
qurrent reflection - none
rotations possible - normal
reflections possible -none
我该怎么做才能修改回原来的设置


[ 本帖最后由 urbanhuter 于 2008-3-23 21:04 编辑 ]

未命名.JPG (71.52 KB, 下载次数: 19)

未命名.JPG

论坛徽章:
0
2 [报告]
发表于 2008-03-24 11:26 |只看该作者
试试修改 /etc/X11/XF86Config 里的Screen

论坛徽章:
0
3 [报告]
发表于 2008-03-25 17:50 |只看该作者
我该怎么修改呀

1.JPG (29.34 KB, 下载次数: 23)

1.JPG

论坛徽章:
0
4 [报告]
发表于 2008-03-25 17:52 |只看该作者
在“800x600”前添加“1024x768”保存退出

论坛徽章:
0
5 [报告]
发表于 2008-03-26 11:12 |只看该作者
我把
Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth     8
        SubSection "Display"
                Depth     16
                Modes    "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth     8
                Modes    "800x600" "640x480"
        EndSubSection
EndSection
中的DefaultDepth     8
改为16 后恢复为下图,屏幕象马赛克 我该怎么改
我的XF86config内容如下
# XFree86 4 configuration created by redhat-config-xfree86

Section "ServerLayout"
        Identifier     "Default Layout"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "DevInputMice" "AlwaysCore"
EndSection

Section "Files"

# RgbPath is the location of the RGB database.  Note, this is the name of the
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        FontPath     "unix/:7100"
EndSection

Section "Module"
        Load  "dbe"
        Load  "extmod"
        Load  "fbdevhw"
        Load  "glx"
        Load  "record"
        Load  "freetype"
        Load  "type1"
EndSection

Section "InputDevice"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#        Option        "Xleds"                "1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
#        Option        "XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults).  For example, for a non-U.S.
# keyboard, you will probably want to use:
#        Option        "XkbModel"        "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
#        Option        "XkbModel"        "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
#        Option        "XkbLayout"        "de"
# or:
#        Option        "XkbLayout"        "de"
#        Option        "XkbVariant"        "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
#        Option        "XkbOptions"        "ctrl:swapcaps"
# Or if you just want both to be control, use:
#        Option        "XkbOptions"        "ctrl:nocaps"
#
        Identifier  "Keyboard0"
        Driver      "keyboard"
        Option            "XkbRules" "xfree86"
        Option            "XkbModel" "pc105"
        Option            "XkbLayout" "us"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "Protocol" "IMPS/2"
        Option            "Device" "/dev/psaux"
        Option            "ZAxisMapping" "4 5"
        Option            "Emulate3Buttons" "no"
EndSection

Section "InputDevice"

# If the normal CorePointer mouse is not a USB mouse then
# this input device can be used in AlwaysCore mode to let you
# also use USB mice at the same time.
        Identifier  "DevInputMice"
        Driver      "mouse"
        Option            "Protocol" "IMPS/2"
        Option            "Device" "/dev/input/mice"
        Option            "ZAxisMapping" "4 5"
        Option            "Emulate3Buttons" "no"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Unknown monitor"
        HorizSync    31.5 - 37.9
        VertRefresh  50.0 - 70.0
        Option            "dpms"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "vesa"
        VendorName  "Videocard vendor"
        BoardName   "VESA driver (generic)"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth     8
        SubSection "Display"
                Depth     16
                Modes    "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth     8
                Modes    "800x600" "640x480"
        EndSubSection
EndSection

Section "DRI"
        Group        0
        Mode         0666
EndSection


各位大虾我该怎么改

2222.JPG (296.91 KB, 下载次数: 16)

2222.JPG

论坛徽章:
0
6 [报告]
发表于 2008-03-26 22:10 |只看该作者
开机时按住ctrl +alt + 加号更改屏幕分辨率试试,偶记得是这样,但没有实践过,不知有效不....

论坛徽章:
0
7 [报告]
发表于 2008-03-26 22:39 |只看该作者
备份/etc/X11/XFree86,conf文件并将原文件改名为其他,运行XFree86 -config,然后重启系统。
重启之后将/root下的XFree86.conf..XX复制到/etc/X11目录下,重命名为XFree86.conf文件,执行startx

论坛徽章:
0
8 [报告]
发表于 2008-03-26 23:13 |只看该作者
楼主,你与偶的遭遇一样呀,是新手吧,偶也是新手,想学Linux又不敢在本机上安装,是很多Linux面临的问题,偶也一样。希望你不要再花时间去在虚拟机上弄redhat9了,它会花掉你很多的时间和精力,假如说你用虚拟学学redhat与在本机上安装一个现在比较新版本的Linux来学习所产生的问题几乎一样多,可能还会更多,你还要为这些问题,到处到答案,到处寻找帮助,即使解决了,或是说在虚拟中redhat用得很熟悉了,所有问题都解决,会在本机上安装redhat吗!“redhat是很老的linux了,居然还在用”这样的话偶在很多关于Linux论坛中都看得到。到时还得跟上时代,安装新版本的Linux然后再学习,那前面你学redhat的时间和精力不就白白浪费了吗!想学Linux就大胆的在本机上安装Linux吧,建议Windows+Linux双操作系统,还要自己能独立安装Windows系统就行,学操作系统就是这样,会把系统弄得一团糟的,不要怕,即这把整个系统弄崩了也没事(你要事先把源来电脑上的重要东西放到别的地方),大不了又重新安装就是了,为什么要安装双操作系统,偶的本意是,如果在Linux学习中,把什么给弄乱了,弄得上不了网了,或是弄得启动不了,至少还可以暂时返回自己熟悉的Windows中呀,上网找答案,找帮助。
偶前几天才大胆的在本机上安装了Linux系统,QQ没弄好,结果还是返回Windows下QQ聊天了,在网上找答案的,寻帮助,准备好了,又再次“进攻”Linux吧,呵呵~~~~~

论坛徽章:
0
9 [报告]
发表于 2008-03-27 00:47 |只看该作者
[root@localhost ~]# gtf 1024 768 60 -x  

          # 1024x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 64.11 MHz
          Modeline "1024x768_60.00"  64.11  1024 1080 1184 1344  768 769 772 795  -HSync +Vsync

          [root@localhost ~]#

          在 /etc/X11中的 xorg.conf 文件中修改 Section "Monitor" 为
          Section "Monitor"
            Identifier   "Monitor0"
            VendorName   "Monitor Vendor"
            ModelName    "Unknown monitor"
            #HorizSync    31.5 - 37.9  [注释掉该行]
            #VertRefresh  50.0 - 70.0  [注释掉该行]
            Option        "dpms"
            # 1024x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 64.11 MHz
          Modeline "1024x768_60.00"  64.11  1024 1080 1184 1344  768 769 772 795  -HSync +Vsync
        EndSection

    并修改 Section "Screen" 为
    Section "Screen"
    Identifier "Screen0"
    Device     "Videocard0"
    Monitor    "Monitor0"
    DefaultDepth     24
    SubSection "Display"
        Viewport   0 0
        Depth     24
        Modes   "1024x768" "800x600" "640x480"
    EndSubSection
EndSection

论坛徽章:
0
10 [报告]
发表于 2008-03-30 15:06 |只看该作者
问题已解决,谢谢大家帮忙
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP