Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1307814
  • 博文数量: 860
  • 博客积分: 425
  • 博客等级: 下士
  • 技术积分: 1464
  • 用 户 组: 普通用户
  • 注册时间: 2011-08-20 19:57
个人简介

对技术执着

文章分类

全部博文(860)

文章存档

2019年(16)

2018年(12)

2015年(732)

2013年(85)

2012年(15)

我的朋友

分类: LINUX

2015-03-14 16:04:58


1.可以解决的问题:
(1)安装驱动后开机和关机画面花屏,分辨率低;
(2)开机画面直接出现,一闪而过,错过点点进度过程。(这个我原来幼稚地认为是10.04的开机速度太快,进度条来不及显示呢。呵呵)
2.解决方案:uvesafb 替代 vesafb(具体什么意思我也不知道)
3.所需包:
(1)v86d(uvesafb需要)
(2)hwinfo(查看framebuffer)
4.步骤
(1)安装驱动:
方法一,Nvidia官网下载最新驱动,但是得先屏蔽掉nouveau,而且安装后会出现Nvidia巨大的Logo,我没有用 这种方法。
方法二,System-->Administration-->Hardware Drivers,我选的是那个Recommended。
附件:
Screenshot.png 
Screenshot.png [ 439.44 KiB | 被浏览 7921 次 ]


(2)安装所需包:
sudo apt-get install v86d hwinfo
(3)查看framebuffer
sudo hwinfo --framebuffer
附件:
Screenshot-1.png 
Screenshot-1.png [ 87.56 KiB | 被浏览 7921 次 ]


我的显示器分辨率是1280x800的所以我需要的是:1280x800-24
(4)修改grub文件
sudo gedit /etc/default/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=1280x800-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=1280x800

# 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/grub.d/00_header

找到
代码:
set gfxmode=${GRUB_GFXMODE}

在其下一行添加
代码:
set gfxpayload=keep


第三步:
代码:
sudo update-grub


(5)修改initramfs:
sudo gedit /etc/initramfs-tools/modules


-------------------------------------------------------------------------------------------------------------------
# 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=1280x800-24 mtrr=3 scroll=ywrap
-------------------------------------------------------------------------------------------------------------------


(6)强制使用Framebuffer:
echo FRAMEBUFFER=y | sudo tee /etc/initramfs-tools/conf.d/splash

有些机器不使用Framebuffer更好,所以应该关闭Framebuffer
echo FRAMEBUFFER=n | sudo tee /etc/initramfs-tools/conf.d/splash

(7)更新grub和initramfs:
sudo update-grub2
sudo update-initramfs -u
(8)重启

阅读(449) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~