解决Ubuntu10.04安装Nvidia私有驱动后开机花屏
安装完Nvidia私有驱动后:
安装一些包
sudo apt-get install v86d hwinfo
查看framebuffer
sudo hwinfo –framebuffer
比如我机器的信息是:

找个一个比较合适的分辨率,我选择1920x1200 -24。
接下来,修改一些文件
sudo gedit /etc/default/grub
修改grub文件
——————————————————————————————————————-
# If you change this file, run ‘update-grub’ afterwards to update
# /boot/grub/grub.cfg.
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash nomodeset video=uvesafb:mode_option=1920×1200-24,mtrr=3,scroll=ywrap”
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=1920×1200
# 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″
——————————————————————————————————————-
sudo gedit /etc/initramfs-tools/modules
修改initramfs:
——————————————————————————————————————-
# 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_mod
uvesafb mode_option=1920×1200-24 mtrr=3 scroll=ywrap
——————————————————————————————————————-
然后是几条命令:
echo FRAMEBUFFER=y | sudo tee /etc/initramfs-tools/conf.d/splash #强制使用Framebuffer
sudo update-grub2 #更新grub和initramfs
sudo update-initramfs -u
最后重启
还没有评论