红联Linux门户
Linux帮助

Fedora 7 修改文本模式下的分辨率

发布时间:2007-10-14 00:18:06来源:红联作者:compat
# vi /etc/grub.conf
给kernel传一个vga的参数

在tabel行下加入一行:
vga=771

注意:
771 代表 800x600x8位(256)色模式
791 代表 1024x768x16位(65536)色模式
792 代表 1024x768x32位(65536)色模式

grub:
在image行后加入 vga=771

如:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,2)
# kernel /boot/vmlinuz-version ro root=/dev/sda3
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,2)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.21-1.3194.fc7)
root (hd0,2)
kernel /boot/vmlinuz-2.6.21-1.3194.fc7 ro root=LABEL=/ rhgb quiet vga=791
initrd /boot/initrd-2.6.21-1.3194.fc7.img
title Other
rootnoverify (hd0,0)
chainloader +1

附显示模式表
640x480  800x600  1024x768  1280x1024
256色  0x301   0x303   0x305     0x307
32K色  0x310   0x313   0x316     0x319
64K色  0x311   0x314   0x317     0x31A
16M色  0x312   0x315   0x318     0x31B
文章评论

共有 1 条评论

  1. gxf 于 2007-10-14 00:28:40发表:

    亮牌:0L