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

來源:互聯網
上載者:User

 

筆記本聯想Y450,Ubuntu 10.04.3 LTS

 

1.可以解決的問題:

 

(1)安裝驅動後開機和關機畫面花屏,解析度低;

(2)開機畫面直接出現,一閃而過,錯過點點進度過程。

2.解決方案:uvesafb 替代vesafb(具體什麼意思我也不知道)

3.所需包:

(1)v86d(uvesafb需要)

(2)hwinfo(查看framebuffer)

4.步驟

(1)安裝驅動:

方法一,Nvidia官網下載最新驅動,但是得先屏蔽掉nouveau,而且安裝後會出現Nvidia巨大的Logo,我沒有用 這種方法。

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

 

我使用的是第一種,不過有點問題,需要先禁用系統內建的nouveau

 

步驟如下:

 

用官方驅動安裝,將驅動拷到主資料夾,然後按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,完成。

 

如果照著上面的做了,還會提示nouveau在使用,那就是沒有完全屏蔽掉,因為核心還是在載入nouveau。10.04.3LTS和10.10以後版本好像都不行。解決方案:

 

產生"/etc/modprobe.d/nvidia-installer-disable-nouveau.conf"檔案後,要執行:

 

1

update-initramfs -u

2

update-grub2

再重啟系統,就可以安裝NVIDIA官方驅動了。

(2)安裝所需包:

 

1

sudo apt-get install v86d hwinfo

 

(3)查看framebuffer

 

1

sudo hwinfo --framebuffer

結果如下:

 

01

tsl0922@ubuntu:~$ sudo hwinfo --framebuffer

02

02: None 00.0: 11001 VESA Framebuffer                         

03

  [Created at bios.464]

04

  Unique ID: rdCR.wTajKRFEdh8

05

  Hardware Class: framebuffer

06

  Model: "NVIDIA GT216 Board - 0695a340"

07

  Vendor: "NVIDIA Corporation"

08

  Device: "GT216 Board - 0695a340"

09

  SubVendor: "NVIDIA"

10

  SubDevice:

11

  Revision: "Chip Rev"

12

  Memory Size: 14 MB

13

  Memory Range: 0xcf000000-0xcfdfffff (rw)

14

  Mode 0x0300: 640x400 (+640), 8 bits

15

  Mode 0x0301: 640x480 (+640), 8 bits

16

  Mode 0x0303: 800x600 (+800), 8 bits

17

  Mode 0x0305: 1024x768 (+1024), 8 bits

18

  Mode 0x0307: 1280x1024 (+1280), 8 bits

19

  Mode 0x030e: 320x200 (+640), 16 bits

20

  Mode 0x030f: 320x200 (+1280), 24 bits

21

  Mode 0x0311: 640x480 (+1280), 16 bits

22

  Mode 0x0312: 640x480 (+2560), 24 bits

23

  Mode 0x0314: 800x600 (+1600), 16 bits

24

  Mode 0x0315: 800x600 (+3200), 24 bits

25

  Mode 0x0317: 1024x768 (+2048), 16 bits

26

  Mode 0x0318: 1024x768 (+4096), 24 bits

27

  Mode 0x031a: 1280x1024 (+2560), 16 bits

28

  Mode 0x031b: 1280x1024 (+5120), 24 bits

29

  Mode 0x0330: 320x200 (+320), 8 bits

30

  Mode 0x0331: 320x400 (+320), 8 bits

31

  Mode 0x0332: 320x400 (+640), 16 bits

32

  Mode 0x0333: 320x400 (+1280), 24 bits

33

  Mode 0x0334: 320x240 (+320), 8 bits

34

  Mode 0x0335: 320x240 (+640), 16 bits

35

  Mode 0x0336: 320x240 (+1280), 24 bits

36

  Mode 0x033d: 640x400 (+1280), 16 bits

37

  Mode 0x033e: 640x400 (+2560), 24 bits

38

  Mode 0x0345: 1600x1200 (+1600), 8 bits

39

  Mode 0x0346: 1600x1200 (+3200), 16 bits

40

  Mode 0x034a: 1600x1200 (+6400), 24 bits

41

  Mode 0x034b: 1360x768 (+1360), 8 bits

42

  Mode 0x034c: 1360x768 (+2720), 16 bits

43

  Mode 0x034d: 1360x768 (+5440), 24 bits

44

  Mode 0x0360: 1280x800 (+1280), 8 bits

45

  Mode 0x0361: 1280x800 (+5120), 24 bits

46

  Mode 0x0371: 1360x768 (+5440), 24 bits

47

  Config Status: cfg=new, avail=yes, need=no, active=unknown

48

tsl0922@ubuntu:~$

我的筆記本解析度是1366x768的所以我需要的是:1360x768-24

 

(4)修改grub檔案

 

 

1

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:

 

1

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:

 

1

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

(7)更新grub和initramfs:

1

sudo update-grub2

2

sudo update-initramfs -u

(8)重啟

 

摘自 tsl0922的部落格

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.