LinuxSir.cn,穿越时空的Linuxsir!

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

text模式下的分辨率如何设置

[复制链接]
发表于 2006-4-20 15:03:17 | 显示全部楼层 |阅读模式
版权所有,不得用于商业目的!!
目前大家谈到的分辨率设置,都是指Xwin下的屏幕设置。现在讨论如何设置Text模式下的分辨率。
一下所谈到的基于Fedora4版本。
1、修改/boot/grub/menu.lst的方法(grub.conf文件会自动更改):

原先的menu.lst文件内容:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.11-1.1369_FC4)
        root (hd0,0)
        kernel /vmlinuz-2.6.11-1.1369_FC4 ro root=/dev/VolGroup00/LogVol00 rhgbquiet
        initrd /initrd-2.6.11-1.1369_FC4.img


修改kernel行为:
            kernel /vmlinuz-2.6.11-1.1369_FC4 vga=0x301 ro root=/dev/VolGroup00/LogVol00 rhgbquiet

vga的参数表示的意义如下(参考“小牛”提供的资料,如有错误欢迎指出):
|  color | 640*400 | 640*480 | 800*600 |1024*768 | 1280*1024 | 1600*1200
| 4bit   | xxxxx      | xxxxx       | 0x302     | xxxxxx      | xxxxx          | xxxxx
| 8bit   | 0x300     | 0x301      | 0x303     | 0x305      | 0x307         | 0x31C
| 15bit | xxxxx      | 0x310      | 0x313     | 0x316      | 0x319         | 0x31D
| 16bit | xxxxx      | 0x311      | 0x314     | 0x317      | 0x31A         | 0x31E
| 24bit | xxxxx      | 0x312      | 0x315     | 0x318      | 0x31B         | 0x31F
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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