# FRAMEBUFFER RESOLUTION SETTINGS
# +————————————————-+
# | 640×480 800×600 1024×768 1280×1024
# —-+——————————————–
# 256 | 0x301=769 0x303=771 0x305=773 0x307=775
# 32K | 0x310=784 0x313=787 0x316=790 0x319=793
# 64K | 0x311=785 0x314=788 0x317=791 0x31A=794
# 16M | 0x312=786 0x315=789 0x318=792 0x31B=795
# +————————————————-+
ubuntu 9.10 使用了最新的grub2,启动参数好像有不少变动,虚拟机的分辨率调整:
方法1,还是原来的vga=788
编辑 /etc/default/grub ,中的GRUB_CMDLINE_LINUX=”vga=788″
保存以后运行update-grub
但是这样子会显示
vga=788 is deprecated and asks me to use “set gfxpayload=800x600x16;800×600” before the linux line.
意思就是vga参数已经是建议不要使用了,要用另外一种方法:
方法2:
编辑/boot/grub/grub.cfg
找到引导linux那几行
增加 set gfxpayload=800x600x16,注意不要带分号,如下:
### BEGIN /etc/grub.d/10_linux ###
menuentry “Ubuntu, Linux 2.6.31-14-generic-pae” {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search –no-floppy –fs-uuid –set 9a441a57-5a71-4800-b46d-2e4c1cec6dee
set gfxpayload=800x600x16
linux /boot/vmlinuz-2.6.31-14-generic-pae root=UUID=9a441a57-5a71-4800-b46d-2e4c1cec6dee ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic-pae
}
Leave a Reply