zoukankan      html  css  js  c++  java
  • ubuntu启动界面vga分辨率的调整

    先了解一下老式Framebuffer的resolution settings

    #  FRAMEBUFFER RESOLUTION SETTINGS
    #     +————————————————-+
    #          | 640×480    800×600    1024×768   1280×1024
    #      —-+——————————————–
    #      256 | 0×301=769  0×303=771  0×305=773   0×307=775
    #      32K | 0×310=784  0×313=787  0×316=790   0×319=793
    #      64K | 0×311=785  0×314=788  0×317=791   0×31A=794
    #      16M | 0×312=786  0×315=789  0×318=792   0×31B=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=800×600x16;800×600″ before the linux line.

    意思就是vga参数已经是建议不要使用了,要用另外一种方法:

    方法2:

    编辑/boot/grub/grub.cfg

    找到引导linux那几行

    增加 set gfxpayload=800×600x16,注意不要带分号,如下:

    ### 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=800×600x16 
            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 
    }
  • 相关阅读:
    主动找智能钥匙 PKE取代RKE是大势所趋
    OBD-II Protocol -- SAE J1850 VPW PWM
    STM32F4: GENERATING A SINE WAVE
    Using PWM Output as a Digital-to-Analog Converter
    Spartan-6
    MAX II Device Compatibility with 5.0-V CMOS Devices
    ARM FPGA Extended Memory Interface
    STM32 100 pin 多个外设译码方案
    SILICA Xynergy-M4 Board -- STM32F417 meets XILINX Spartan-6
    Xilinx Platform Usb Cable
  • 原文地址:https://www.cnblogs.com/lei1016cn/p/1830517.html
Copyright © 2011-2022 走看看