|
版权所有,不得用于商业目的!!
目前大家谈到的分辨率设置,都是指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 |
|