系統(tǒng):Linux Mint 18.2 Cinnamon 64-bit
硬件:GeForce GT 425M
Linux Mint的安裝步驟,和Ubuntu一樣,網(wǎng)上教程比較多,這里略過
主要講一下雙顯卡如何安裝NVIDIA官方閉源驅(qū)動,其他的軟件都好說,就這個的坑比較多
1)軟件"源"很關(guān)鍵
首先,使用默認(rèn)的”源”,改動的可以恢復(fù)過來,不然后面會出現(xiàn)各種"依賴"問題,比較麻煩,我們從源頭上防止其發(fā)生
"依賴"問題:
E:無法修正錯誤,因為您要求某些軟件包保持現(xiàn)狀,就是它們破壞了軟件包間的依賴關(guān)系。
2)干掉Nouveau
Nouveau是由第三方為NVIDIA顯卡開發(fā)的一個開源3D驅(qū)動,也沒能得到NVIDIA的認(rèn)可與支持歌殃。雖然Nouveau Gallium3D在游戲速度上還遠遠無法和NVIDIA官方閉源驅(qū)動相提并論响蓉,不過確讓Linux更容易的應(yīng)對各種復(fù)雜的NVIDIA顯卡環(huán)境,讓用戶安裝完系統(tǒng)即可進入桌面并且有不錯的顯示效果夫嗓,所以,很多Linux發(fā)行版默認(rèn)集成了Nouveau驅(qū)動究珊,在遇到NVIDIA顯卡時默認(rèn)安裝瓤摧。企業(yè)版的Linux更是如此竿裂,幾乎所有支持圖形界面的企業(yè)Linux發(fā)行版都將Nouveau收入其中。
不過對于個人桌面用戶來說照弥,處于成長階段的Nouveau并不完美腻异,與企業(yè)版不一樣,個人用戶除了想讓正常顯示圖形界面外很多時候還需要一些3D特效这揣,Nouveau多數(shù)時候并不能完成悔常,而用戶在安裝NVIDIA官方閉源驅(qū)動的時候Nouveau又成為了阻礙,不干掉Nouveau安裝時總是報錯给赞。
1.檢查nouveau驅(qū)動是否被禁用
終端輸入:
lsmod | grep nouveau
如果有任何輸出信息机打,表明nouveau驅(qū)動被啟用。
2.禁用nouveau驅(qū)動
不用開啟終端,直接GUI界面修改
把nouveau驅(qū)動加入黑名單:
編輯 /etc/modprobe.d/blacklist-modem.conf 片迅,在文件后面加入
blacklist nouveau option nouveau modeset=0
3.重新生成kernel initramfs残邀,終端輸入:
sudo update-initramfs -u
3)nomodeset模式下安裝nvidia驅(qū)動
關(guān)于 nomodeset 的描述一:
Note that this option is sometimes needed for nVidia cards when using the default "nouveau" drivers.
Installing proprietary nvidia drivers usually makes this option no longer necessary, so it may not be needed to make this option permanent, just for one boot until you installed the nvidia drivers.
關(guān)于nomodeset的描述二:
The newest kernels have moved the video mode setting into the kernel. So all the programming of the hardware specific clock rates and registers on the video card happen in the kernel rather than in the X driver when the X server starts.. This makes it possible to have high resolution nice looking splash (boot) screens and flicker free transitions from boot splash to login screen. Unfortunately, on some cards this doesn’t work properly and you end up with a black screen. Adding the nomodeset parameter instructs the kernel to not load video drivers and use BIOS modes instead until X is loaded.
綜上,
nomodeset – 告訴內(nèi)核在系統(tǒng)啟動并運行之前不啟動視頻驅(qū)動程序。
1.nomodeset模式
這里可以讓系統(tǒng)臨時進入nomodeset模式柑蛇,它采用了一種”軟顯示“模式芥挣。
重啟系統(tǒng)進入nomodeset模式:
參考:
https://www.linuxmint.com/rel_serena_cinnamon.php
里的Solving freezes部分。
筆者采用的第三種方式,在GNU界面,按鍵盤 ’e’鍵,依照視頻操作,
刪除quiet和splash唯蝶,添加上nomodeset參數(shù)(如圖)九秀,按Ctrl+x啟動引導(dǎo),進入系統(tǒng)
2.安裝官驅(qū)
在nomodeset模式下粘我,先按2)步驟1檢查nouveau驅(qū)動是否被禁用鼓蜒,確保其禁用。再安裝nvidia驅(qū)動,如下圖所示:
筆者,因為系統(tǒng)推薦的375,所以選擇這個,大家可以依個人喜好,選上驅(qū)動后,點擊右下角的應(yīng)用更改,下載軟件包,安裝.....
3.驗證nvidia驅(qū)動安裝成功
重啟后終端輸入:
cat /proc/driver/nvidia/version
輸出版本號征字,說明nvidia驅(qū)動安裝成功都弹。