Ubuntu11设置VGA分辨率

来源:互联网 发布:mac怎么升级到10.12 编辑:程序博客网 时间:2024/06/06 03:27

在/boot/grub/grub.cfg文件中设置Ubuntu开机启动时的VGA分辨率,

本人屏幕分辨率为:1366*768,要设为24位真彩色,在文件中加入下面这句:

set gfxpayload=1366*768*24


在文件中多位置如下:


### BEGIN /etc/grub.d/10_lupin ###
menuentry "Ubuntu, Linux 2.6.38-8-generic" {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos5)'
    search --no-floppy --fs-uuid --set=root A084B86084B83A9C
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    set gfxpayload=1366*768*24
    linux /boot/vmlinuz-2.6.38-8-generic root=UUID=A084B86084B83A9C loop=/ubuntu/disks/root.di
sk ro   quiet splash
    initrd /boot/initrd.img-2.6.38-8-generic
}


原创粉丝点击