使用lspci命名查看显卡系列
lspci -vnn | grep -i VGA 12
输出
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107 [GeForce GT 630 OEM] [10de:0fc2] (rev a1) (prog-if 00 [VGA controller])
Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:275c]
Flags: bus master, fast devsel, latency 0, IRQ 46
Memory at f6000000 (32-bit, non-prefetchable) [size=16M]
Memory at e0000000 (64-bit, prefetchable) [size=256M]
Memory at f0000000 (64-bit, prefetchable) [size=32M]
I/O ports at e000 [size=128]
Expansion ROM at f7000000 [disabled] [size=512K]
Capabilities: <access denied>
Kernel driver in use: nouveau
可以看到显卡系列是GeForce GT 630 OEM
访问Nvidia官方网址,输入显卡类型,点击search按钮,则会显示需要安装的驱动版本。
Version: 340.58
Release Date: 2014.11.5
Operating System: Linux 64-bit
Language: English (US)
File Size: 69.00 MB
运行以下命令更新源:
sudo add-apt-repository ppa:xorg-edgers/ppa -y
sudo apt-get update
运行以下命令安装驱动:
sudo apt-get install nvidia-340
运行以下命令:
lspci -vnn | grep -i VGA 12
输出
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107 [GeForce GT 630 OEM] [10de:0fc2] (rev a1) (prog-if 00 [VGA controller])
Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:275c]
Flags: bus master, fast devsel, latency 0, IRQ 46
Memory at f6000000 (32-bit, non-prefetchable) [size=16M]
Memory at e0000000 (64-bit, prefetchable) [size=256M]
Memory at f0000000 (64-bit, prefetchable) [size=32M]
I/O ports at e000 [size=128]
Expansion ROM at f7000000 [disabled] [size=512K]
Capabilities: <access denied>
Kernel driver in use: nvidia
可见Kernel driver in user显示使用的内核驱动为nvidia
使用nvidia-settings命令配置驱动。
如果安装驱动导致系统无法启动,需要卸载驱动,运行以下命令:
sudo apt-get purge nvidia*
很多教程说安装了nvidia驱动后需要把nouveau放入黑名单,其实并不需要,因为nvidia驱动会自动把它放入黑名单。 运行以下命令:
grep 'nouveau' /etc/modprobe.d/* | grep nvidia
输出:
/etc/modprobe.d/nvidia-340_hybrid.conf:blacklist nouveau
/etc/modprobe.d/nvidia-340_hybrid.conf:blacklist lbm-nouveau
/etc/modprobe.d/nvidia-340_hybrid.conf:alias nouveau off
/etc/modprobe.d/nvidia-340_hybrid.conf:alias lbm-nouveau off
/etc/modprobe.d/nvidia-graphics-drivers.conf:blacklist nouveau
/etc/modprobe.d/nvidia-graphics-drivers.conf:blacklist lbm-nouveau
/etc/modprobe.d/nvidia-graphics-drivers.conf:alias nouveau off
/etc/modprobe.d/nvidia-graphics-drivers.conf:alias lbm-nouveau off
说明已经把它放到黑名单了,即系统启动时不会自动加载这些模块。
参照英文博客
2023年1月04日 21:46
To install the Nvidia driver on Ubuntu, you will need to download the driver from the Nvidia website. Once the driver is downloaded, you will need to open it and install it. Once the Outdoor Recreational Sports driver is installed, you will need to reboot your computer for the changes to take effect. After your computer has rebooted, you will be able to use the Nvidia drivers.
2023年4月26日 00:05
Thanks for sharing nice information with us. i like your post and all you share with us is uptodate and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job. disney crocs adults
2023年4月26日 00:09
Thank you again for all the knowledge you distribute,Good post. I was very interested in the article, it's quite inspiring I should admit. I like visiting you site since I always come across interesting articles like this one.Great Job, I greatly appreciate that.Do Keep sharing! Regards, disney crocs adults
2023年4月27日 19:38
this is really nice to read..informative post is very good to read..thanks a lot! buy AWS certification Exam
2023年4月28日 18:57 I am very happy to discover your post as it will become on top in my collection of favorite blogs to visit. maxi24-az
2023年4月29日 00:03 Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!THANKS!!!!!! jordan outfits
2023年4月29日 15:08
This article gives the light in which we can observe the reality. This is very nice one and gives indepth information. Thanks for this nice article. cfcode
2023年4月30日 12:08
Really a great addition. I have read this marvelous post. Thanks for sharing information about it. I really like that. Thanks so lot for your convene. nephtaliproject
2023年4月30日 19:16
I have read your article, it is very informative and helpful for me.I admire the valuable information you offer in your articles. Thanks for posting it..<a href="https://www.beste-wettanbieter.biz">beste-wettanbieter</a>
2023年4月30日 19:16
I have read your article, it is very informative and helpful for me.I admire the valuable information you offer in your articles. Thanks for posting it..beste-wettanbieter
2023年5月01日 01:14
What a fantabulous post this has been. Never seen this kind of useful post. I am grateful to you and expect more number of posts like these. Thank you very much. symbianguru
2023年5月03日 05:01
Dashiki Store Verkauf weiße Dashiki-Shirts und schwarze Dashiki-Shirts, die für Dashiki für Männer und Dashiki-Frauen geeignet sind Schwarzes Dashiki
2023年5月05日 21:10
I really appreciate the kind of topics you post here. Thanks for sharing us a great information that is actually helpful. Good day! List of 1000-watt Mixer Grinder
2023年5月07日 22:30
Thanks for your information, it was really very helpfull.. zenbusiness
2023年5月09日 12:24
This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post. hognose snake for sale
2023年5月11日 17:59
That is really nice to hear. thank you for the update and good luck. fqa
2023年5月12日 22:05
I appreciated your work very thanks group benefits broker
2023年5月12日 22:44
thanks for this usefull article, waiting for this article like this again.incfile
2023年5月12日 23:23
Wonderful article, thanks for putting this together! This is obviously one great post. Thanks for the valuable information and insights you have so provided here. property crowdfunding
2023年5月13日 00:01
Wow what a Great Information about World Day its very nice informative post. thanks for the post. nevada registered agents
2023年5月13日 23:38
Great post I would like to thank you for the efforts you have made in writing this interesting and knowledgeable article. registered agent georgia
2023年5月14日 13:36
Thank you again for all the knowledge you distribute,Good post. I was very interested in the article, it's quite inspiring I should admit. I like visiting you site since I always come across interesting articles like this one.Great Job, I greatly appreciate that.Do Keep sharing! Regards, registered agent new york
2023年5月14日 19:19
very interesting keep posting. new jersey registered agent
2023年5月16日 16:03
That is really nice to hear. thank you for the update and good luck. Koreansk hudpleje
2023年5月19日 02:38
That is really nice to hear. thank you for the update and good luck. bud light tee
2023年5月20日 18:01
Wonderful article, thanks for putting this together! This is obviously one great post. Thanks for the valuable information and insights you have so provided here. raffia cross body bag
2023年5月25日 17:29
Thanks for your information, it was really very helpfull.. bokep indo
2023年5月28日 12:06
Thank you very much for the sharing! COOL.. video porno
2023年5月28日 18:12
New web site is looking good. Thanks for the great effort. situs porno
2023年5月29日 22:53
I really appreciate the kind of topics you post here. Thanks for sharing us a great information that is actually helpful. Good day! link bokep
2023年5月31日 20:06
Thank you very much for the sharing! COOL.. link bokep
2023年6月01日 23:49
very interesting keep posting. soap2day.lat
2023年6月02日 15:38
That is really nice to hear. thank you for the update and good luck. truco online