内容也适合在虚拟机上安转ubuntu的情况
1.可以解决的问题:(1)安装驱动后开机和关机画面花屏、显示低分辨率超大“ubuntu”Logo。(2)开机画面直接出现,一闪而过,错过点点进度过程。
2.解决方案:uvesafb 替代 vesafb(不懂……知道就行)
3.所需包:(1)v86d(uvesafb需要)(2)hwinfo(查看framebuffer)
4.步骤:(1)安装驱动:
System–>Administration–>Hardware Drivers,我选的是那个Recommended(中文汉化后显示“推荐”)
(2)安装所需包:sudo apt-get install v86d hwinfo
(3)查看framebuffersudo hwinfo –framebuffer
Termial里会显示你的显卡及其分辨率信息:(以下是我的显卡信息,不用看太多)
02: None 00.0: 11001 VESA Framebuffer [Created at bios.464] Unique ID: rdCR.VSBbdW2x3qC Hardware Class: framebuffer Model: "NVIDIA G86 Board – NV_NB8M " Vendor: "NVIDIA Corporation" Device: "G86 Board – NV_NB8M " SubVendor: "NVIDIA" SubDevice: Revision: "Chip Rev" Memory Size: 14 MB Memory Range: 0xd5000000-0xd5dfffff (rw) Mode 0x0300: 640×400 (+640), 8 bits Mode 0x0301: 640×480 (+640), 8 bits Mode 0x0303: 800×600 (+800), 8 bits Mode 0x0305: 1024×768 (+1024), 8 bits Mode 0x0307: 1280×1024 (+1280), 8 bits Mode 0x030e: 320×200 (+640), 16 bits Mode 0x030f: 320×200 (+1280), 24 bits Mode 0x0311: 640×480 (+1280), 16 bits Mode 0x0312: 640×480 (+2560), 24 bits Mode 0x0314: 800×600 (+1600), 16 bits Mode 0x0315: 800×600 (+3200), 24 bits Mode 0x0317: 1024×768 (+2048), 16 bits Mode 0x0318: 1024×768 (+4096), 24 bits Mode 0x031a: 1280×1024 (+2560), 16 bits Mode 0x031b: 1280×1024 (+5120), 24 bits Mode 0x0330: 320×200 (+320), 8 bits Mode 0x0331: 320×400 (+320), 8 bits Mode 0x0332: 320×400 (+640), 16 bits Mode 0x0333: 320×400 (+1280), 24 bits Mode 0x0334: 320×240 (+320), 8 bits Mode 0x0335: 320×240 (+640), 16 bits Mode 0x0336: 320×240 (+1280), 24 bits Mode 0x033d: 640×400 (+1280), 16 bits Mode 0x033e: 640×400 (+2560), 24 bits Mode 0x0345: 1600×1200 (+1600), 8 bits Mode 0x0346: 1600×1200 (+3200), 16 bits Mode 0x0347: 1400×1050 (+1400), 8 bits Mode 0x0348: 1400×1050 (+2800), 16 bits Mode 0x0349: 1400×1050 (+5600), 24 bits ……(还有一些不copy了)
我的显卡是需要 Mode 0x0349: 1400×1050 (+5600), 24 bits 这个。所以后面有多个地方修改是1400×1050-24
(4)修改grub文件sudo gedit /etc/default/grub
(以下是grub文件内容,红色是修改后的内容,绿色为修改前的内容)
# If you change this file, run ‘update-grub’ afterwards to update# /boot/grub/grub.cfg.GRUB_DEFAULT=0GRUB_HIDDEN_TIMEOUT=0GRUB_HIDDEN_TIMEOUT_QUIET=trueGRUB_TIMEOUT=10GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset video=uvesafb:mode_option=1400×1050-24,mtrr=3,scroll=ywrap"
(原来是:GRUB_CMDLINE_LINUX_DEFAULT="quiet splash",注意mode_option这里就是你要修改的分辨率了)GRUB_CMDLINE_LINUX=""# Uncomment to disable graphical terminal (grub-pc only)#GRUB_TERMINAL=console# The resolution used on graphical terminal# note that you can use only modes which your graphic card supports via VBE# you can see them in real GRUB with the command `vbeinfo’GRUB_GFXMODE=1400×1050
(原来是:#GRUB_GFXMODE=640×480,注意要把#也删除,1400×1050是你要修改的分辨率)
# Uncomment if you don’t want GRUB to pass "root=UUID=xxx" parameter to Linux#GRUB_DISABLE_LINUX_UUID=true# Uncomment to disable generation of recovery mode menu entries#GRUB_DISABLE_LINUX_RECOVERY="true"# Uncomment to get a beep at grub start#GRUB_INIT_TUNE="480 440 1"
(5)修改initramfs: sudo gedit /etc/initramfs-tools/modules
(以下为modules文件内容,直接加上红色语句,1400×1050-24这个你懂的)
# List of modules that you want to include in your initramfs.## Syntax: module_name [args …]## You must run update-initramfs(8) to effect this change.## Examples:## raid1# sd_moduvesafb mode_option=1400×1050-24 mtrr=3 scroll=ywrap
(6)强制使用Framebuffer: echo FRAMEBUFFER=y | sudo tee /etc/initramfs-tools/conf.d/splash
(7)更新grub和initramfs:sudo update-grub2sudo update-initramfs -u
(8)重启
我爱你….为了你的幸福,我愿意放弃一切—包括你。