调整ubuntu启动界面vga分辨率的方法
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>首先,了解下老式Framebuffer的resolution settings<br>
</p>
<div class="msgheader" style='margin: 3px auto 0px; padding: 0px 3px; outline: none; line-height: 21.6px; clear: both; border-width: 1px; border-style: solid; border-color: rgb(0, 153, 204); background: rgb(246, 251, 255); overflow: hidden; font-family: tahoma, arial, "Microsoft YaHei";'>
<div class="right">
<span><u>复制代码</u></span>
</div>
<p>
代码如下:</p>
</div>
<div class="msgborder" id="phpcode78" style='margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; font-family: tahoma, arial, "Microsoft YaHei";'>
<br>
# FRAMEBUFFER RESOLUTION SETTINGS<br>
# +————————————————-+<br>
# | 640×480 800×600 1024×768 1280×1024<br>
# —-+——————————————–<br>
# 256 | 0×301=769 0×303=771 0×305=773 0×307=775<br>
# 32K | 0×310=784 0×313=787 0×316=790 0×319=793<br>
# 64K | 0×311=785 0×314=788 0×317=791 0×31A=794<br>
# 16M | 0×312=786 0×315=789 0×318=792 0×31B=795<br>
# +————————————————-+</div>
<p>
<br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>ubuntu 9.10 使用了最新的grub2,启动参数好像有不少变动,虚拟机的分辨率调整:</span></p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
方法1,还是原来的vga=788<br>
编辑 /etc/default/grub ,中的GRUB_CMDLINE_LINUX=”vga=788″<br>
保存以后运行update-grub<br>
但是这样子会显示<br>
vga=788 is deprecated and asks me to use “set gfxpayload=800×600x16;800×600″ before the linux line.<br>
意思就是vga参数已经是建议不要使用了,要用另外一种方法:</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
方法2:<br>
编辑/boot/grub/grub.cfg<br>
找到引导linux那几行<br>
增加 set gfxpayload=800×600x16,注意不要带分号,如下:</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
</p>
<div class="msgheader" style='margin: 3px auto 0px; padding: 0px 3px; outline: none; line-height: 21.6px; clear: both; border-width: 1px; border-style: solid; border-color: rgb(0, 153, 204); background: rgb(246, 251, 255); overflow: hidden; font-family: tahoma, arial, "Microsoft YaHei";'>
<div class="right">
<span><u>复制代码</u></span>
</div>
<p>
代码如下:</p>
</div>
<div class="msgborder" id="phpcode79" style='margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; font-family: tahoma, arial, "Microsoft YaHei";'>
<br>
### BEGIN /etc/grub.d/10_linux ### <br>
menuentry “Ubuntu, Linux 2.6.31-14-generic-pae” { <br>
recordfail=1 <br>
if [ -n ${have_grubenv} ]; then save_env recordfail; fi <br>
set quiet=1 <br>
insmod ext2 <br>
set root=(hd0,1) <br>
search –no-floppy –fs-uuid –set 9a441a57-5a71-4800-b46d-2e4c1cec6dee <br>
set gfxpayload=800×600x16 <br>
linux /boot/vmlinuz-2.6.31-14-generic-pae root=UUID=9a441a57-5a71-4800-b46d-2e4c1cec6dee ro quiet splash <br>
initrd /boot/initrd.img-2.6.31-14-generic-pae <br>
}</div>
頁:
[1]