今天心血来潮把grub卸载了,装了grub2 ,结果ubuntu开机的时候分辨率低得一塌糊涂,以前就知道这个问题,反正对GRUB2不感冒,今天既然装了GRUB2,就解决一下问题吧,纯粹是因为显卡驱动引起的,但不装显卡驱动,又看不了高清,还是解决GRUB2 算了。
先装个软件sudo apt-get install v86d hwinfo</CODE< p>
然后查看你显卡支持的分辨率,要是知道自己的显卡分辨率,可以省去这一步
选择你自己需要的分辨率,我个人选择1360*768sudo hwinfo --framebuffer
> hal.1: read hal dataprocess 2229: arguments to dbus_move_error() were incorrect, assertion "(dest) == NULL || !dbus_error_is_set ((dest))" failed in file dbus-errors.c line 280.
This is normally a bug in some application using the D-Bus library.
libhal.c 3483 : Error unsubscribing to signals, error=The name org.freedesktop.Hal was not provided by any .service files
02: None 00.0: 11001 VESA Framebuffer
[Created at bios.464]
Unique ID: rdCR.+YwMoQWyyMD
Hardware Class: framebuffer
Model: "NVIDIA GT216 Board - 0695a2b0"
Vendor: "NVIDIA Corporation"
Device: "GT216 Board - 0695a2b0"
SubVendor: "NVIDIA"
SubDevice:
Revision: "Chip Rev"
Memory Size: 14 MB
Memory Range: 0xf1000000-0xf1dfffff (rw)
Mode 0x0300: 640x400 (+640), 8 bits
Mode 0x0301: 640x480 (+640), 8 bits
Mode 0x0303: 800x600 (+800), 8 bits
Mode 0x0305: 1024x768 (+1024), 8 bits
Mode 0x0307: 1280x1024 (+1280), 8 bits
Mode 0x030e: 320x200 (+640), 16 bits
Mode 0x030f: 320x200 (+1280), 24 bits
Mode 0x0311: 640x480 (+1280), 16 bits
Mode 0x0312: 640x480 (+2560), 24 bits
Mode 0x0314: 800x600 (+1600), 16 bits
Mode 0x0315: 800x600 (+3200), 24 bits
Mode 0x0317: 1024x768 (+2048), 16 bits
Mode 0x0318: 1024x768 (+4096), 24 bits
Mode 0x031a: 1280x1024 (+2560), 16 bits
Mode 0x031b: 1280x1024 (+5120), 24 bits
Mode 0x0330: 320x200 (+320), 8 bits
Mode 0x0331: 320x400 (+320), 8 bits
Mode 0x0332: 320x400 (+640), 16 bits
Mode 0x0333: 320x400 (+1280), 24 bits
Mode 0x0334: 320x240 (+320), 8 bits
Mode 0x0335: 320x240 (+640), 16 bits
Mode 0x0336: 320x240 (+1280), 24 bits
Mode 0x033d: 640x400 (+1280), 16 bits
Mode 0x033e: 640x400 (+2560), 24 bits
Mode 0x0345: 1600x1200 (+1600), 8 bits
Mode 0x0346: 1600x1200 (+3200), 16 bits
Mode 0x034a: 1600x1200 (+6400), 24 bits
Mode 0x034b: 1360x768 (+1360), 8 bits
Mode 0x034c: 1360x768 (+2720), 16 bits
Mode 0x034d: 1360x768 (+5440), 24 bits
Mode 0x0360: 1280x800 (+1280), 8 bits
Mode 0x0361: 1280x800 (+5120), 24 bits
Mode 0x0371: 1360x768 (+5440), 24 bits
Config Status: cfg=new, avail=yes, need=no, active=unknown
修改/etc/default/grub文件,使用uvesafb的framebuffer来启动
sudo gedit /etc/default/grub
把
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
改成GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset video=uvesafb:mode_option=1360x768-24,mtrr=3,scroll=ywrap"
把
#GRUB_GFXMODE=640×480
改成GRUB_GFXMODE=1360x768
注意,不要#号
改/etc/initramfs-tools/modules文件
sudo gedit /etc/initramfs-tools/modules
添加这一行到末尾
uvesafb mode_option=1360x768-24 mtrr=3 scroll=ywrap
运行下面的命令,启用framebuffer
echo FRAMEBUFFER=y | sudo tee /etc/initramfs-tools/conf.d/splash
然后update 一下,大功告成
sudo update-grub2
sudo update-initramfs -u