Ubuntu 10.04 安裝Nvidia顯卡後開機花屏完美解決

筆記本聯想Y450,Ubuntu 10.04.3 LTSphp

1.能夠解決的問題: ios

(1)安裝驅動後開機和關機畫面花屏,分辨率低;
(2)開機畫面直接出現,一閃而過,錯過點點進度過程。
2.解決方案:uvesafb 替代 vesafb(具體什麼意思我也不知道)
3.所需包:
(1)v86d(uvesafb須要)
(2)hwinfo(查看framebuffer)
4.步驟
(1)安裝驅動:
方法一,Nvidia官網下載最新驅動,可是得先屏蔽掉nouveau,並且安裝後會出現Nvidia巨大的Logo,我沒有用 這種方法。

方法二,System-->Administration-->Hardware Drivers。shell

我使用的是第一種,不過有點問題,須要先禁用系統自帶的nouveauubuntu

步驟以下:ide

用官方驅動安裝,將驅動拷到主文件夾,而後按Ctrl+Alt+F1退到終端並登陸,sudo /etc/init.d/gdm stop,而後運行sudo sh ./Nv.......(驅動軟件名),它會提示nouveau在使用,而後會問你是否創建一個文件來禁止nnouveau,選擇Yes,一直點下去,會退出到終端界面,sudo reboot從新啓動到GDM桌面,而後按Ctrl+Alt+F1退到終端,並登陸,sudo /etc/init.d/gdm stop,退掉X桌面,再次運行sudo sh ./Nv.......(驅動軟件名),就會正常安裝驅動了,安裝完sudo reboot,完成。ui

若是照着上面的作了,還會提示nouveau在使用,那就是沒有徹底屏蔽掉,由於內核仍是在加載nouveau。10.04.3 LTS和10.10之後版本好像都不行。解決方法:this

生成"/etc/modprobe.d/nvidia-installer-disable-nouveau.conf"文件後,要執行:spa

update-initramfs -u
update-grub2

再重啓系統,就能夠安裝NVIDIA官方驅動了。

(2)安裝所需包:3d

sudo apt-get install v86d hwinfo


(3)查看framebuffercode

sudo hwinfo --framebuffer

結果以下:

tsl0922@ubuntu:~$ sudo hwinfo --framebuffer
02: None 00.0: 11001 VESA Framebuffer                           
  [Created at bios.464]
  Unique ID: rdCR.wTajKRFEdh8
  Hardware Class: framebuffer
  Model: "NVIDIA GT216 Board - 0695a340"
  Vendor: "NVIDIA Corporation"
  Device: "GT216 Board - 0695a340"
  SubVendor: "NVIDIA"
  SubDevice: 
  Revision: "Chip Rev"
  Memory Size: 14 MB
  Memory Range: 0xcf000000-0xcfdfffff (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
tsl0922@ubuntu:~$

個人筆記本分辨率是1366x768的因此我須要的是:1360x768-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=1360x768-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=1360x768

# 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

-------------------------------------------------------------------------------------------------------------------
# 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=1360x768-24 mtrr=3 scroll=ywrap
-------------------------------------------------------------------------------------------------------------------

(6)強制使用Framebuffer:

echo FRAMEBUFFER=y | sudo tee /etc/initramfs-tools/conf.d/splash

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

(8)重啓

參考:http://forum.ubuntu.org.cn/viewtopic.php?f=42&t=269452

        http://forum.ubuntu.org.cn/viewtopic.php?t=307915

相關文章
相關標籤/搜索