Ubuntu 16.04:适用于GeForce GTX 960M的nvidia驱动程序

前段时间我问了一个关于Ubuntu 14.04的类似问题。

现在我刚刚安装了Ubuntu 16.04 ,希望通过新版本的显卡可以毫不费力地得到认可。 可悲的是,我仍然有类似的问题。

我有一台带有这两块显卡的华硕N551JW笔记本电脑:

  • 集成的英特尔®高清显卡4600
  • NVIDIA®GeForce®GTX960M 2G GDDR5

默认情况下,Ubuntu识别Intel显卡但不识别NVIDIA显卡。

在此处输入图像描述

我尝试从系统设置>软件和更新>附加软件安装NVIDIA的驱动程序:

在此处输入图像描述

但是当我重新启动系统时,我无法再访问。 我看到了登录界面,但是当我输入密码时,我又回到了登录界面。

在我上面链接的问题中有一个适用于Ubuntu 14.04的解决方案,我可以在Ubuntu 16.04上使用相同的程序吗? 或者是否有正确安装NVIDIA驱动程序的新方法?


编辑

我尝试了其他答案:

使用NVIDIA显卡安装Ubuntu 16.04 / 16.10之后/之后的图形问题

以及@Amias Channer的建议。

我安装了nvidia-364

 sudo apt-get install nvidia-364 

安装要求我禁用安全启动以解决不兼容问题,我接受了禁用它。

我重新启动,登录工作正常,没有问题。

系统设置>软件和更新>附加软件中,我现在看到:

在此处输入图像描述

但我仍然在系统>详细信息中看到“ 英特尔®HaswellMobile ”(如上面的第一张图片)。

我现在应该怎么做? 如何启用NVIDIA显卡?

此文件在2016年5月7日之后由Community修改,没有新的时间戳,但2016年9月16日应该有一个,因为它出现在活动列表中。

上面的答案sudo apt-add-repository ppa:graphics-drivers/ppa今天结果如下:

  Fresh drivers from upstream, currently shipping Nvidia. ## Current Status We currently recommend: `nvidia-367`, Nvidia's current long lived branch. For GeForce 8 and 9 series GPUs use `nvidia-340` For GeForce 6 and 7 series GPUs use `nvidia-304` nvidia-370 is the current BETA release! ## What we're working on right now: - Normal driver updates - Investigating how to bring this goodness to distro on a cadence. ## WARNINGS: This PPA is currently in testing, you should be experienced with packaging before you dive in here. Give us a few days to sort out the kinks. Volunteers welcome! See also: https://github.com/mamarley/nvidia-graphics-drivers/ ### How you can help: ## Install PTS and benchmark your gear:    sudo apt-get install phoronix-test-suite Run the benchmark:    phoronix-test-suite default-benchmark openarena xonotic tesseract gputest unigine-valley and then say yes when it asks you to submit your results to openbechmarking.org. Then grab a cup of coffee, it takes a bit for the benchmarks to run. Depending on the version of Ubuntu you're using it might preferable for you to grabs PTS from upstream directly: http://www.phoronix-test-suite.com/?k=downloads ## Share your results with the community: Post a link to your results (or any other feedback to): https://launchpad.net/~graphics-drivers-testers Remember to rerun and resubmit the benchmarks after driver upgrades, this will allow us to gather a bunch of data on performance that we can share with everybody. If you run into old documentation referring to other PPAs, you can help us by consolidating references to this PPA. If someone wants to go ahead and start prototyping on `software-properties-gtk` on what the GUI should look like, please start hacking! ## Help us Help You! We use the donation funds to get the developers hardware to test and upload these drivers, please consider donating to the "community" slider on the donation page if you're loving this PPA: http://www.ubuntu.com/download/desktop/contribute More info: https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa Press [ENTER] to continue or ctrl-c to cancel adding it 

请注意,Nvidia网站上有关于upgrading Debian(Ubuntu所基于的)与清洁安装的缺点的说明。

另外请注意,Nvidia网站可能对Haswell有特别说明,但是他们目前的驱动程序使用的是从我的低端GT650M到OP的GT760M,但是在基于Intel CPU和/或系统的其他系统区域中可能存在各种建议的更改。 systemd或Debian。

还有一些特殊情况,如OP,其中集成图形和离散图形也称为“混合图形”内置于主板中。

Nvidia网站确实讨论了AU中常见问题的黑屏(Ask Ubuntu),因此对于大多数阅读OP的问题来说,这是一次值得一游的访问。

如果您添加图形驱动程序PPA,您将获得更多版本的nvidia驱动程序,其中一个应该适合您,我猜想nvidia-364

ppa info page https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa

要添加ppa并安装nvidia-364:

 sudo apt-add-repository ppa:graphics-drivers/ppa sudo apt-get update sudo apt-get install nvidia-364 nvidia-prime 

如果问题仍然存在,请尝试使用此命令生成其他nvidia驱动程序包之一:

 sudo apt-cache search '^nvidia-[:digit]' --names-only 

根据Nvidia驱动程序网站,GTX 960M由驱动程序367.35和驱动程序364.19支持。 早期的驱动程序如340.96不支持GTX 960M。

最新版本的Ubuntu更受欢迎。 如果它是LTS版本,那么我们应该安装最新的版本。 随着14.04将是14.04.2,其中14.04.3将在8月底发布。 并且16.04应该在7月底获得第一个点发布(16.04.1)。 这些版本发布的目的是使LTS发布后出现的硬件硬件驱动程序保持最新版本。

你是如何安装专有video驱动程序的? 有三种方法。 (1)安装Ubuntu时勾选该框以安装第三方软件。 (2)安装完成后,进入系统设置>软件和更新>附加驱动程序选项卡。 (3)我们使用终端并运行此命令

 sudo ubuntu-drivers autoinstall 

这将安装推荐的专有video驱动程序。 你用什么方法? 此命令将列出官方可用的专有video驱动程序:

 ubuntu-drivers list 

留出时间使命令工作。 还将安装Nvidia设置实用程序。 用它来从集成显卡切换到Nvidia图形。