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

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

前段时间我问过类似的问题关于 Ubuntu 14.04

现在我刚刚安装Ubuntu 16.04,希望新版本可以轻松识别显卡。遗憾的是我仍然遇到类似的问题。

我有一个华硕 N551JW配有以下两块显卡的笔记本电脑:

  • 集成英特尔® 高清显卡 4600
  • NVIDIA® GeForce® GTX 960M 2G GDDR5

默认情况下,Ubuntu 可以识别英特尔显卡,但不能识别 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

安装程序要求我禁用安全启动因为不兼容问题,我同意禁用它。

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

系统设置 > 软件和更新 > 附加软件现在我看到了这个:

在此处输入图片描述

但我仍然看到“英特尔® Haswell 移动版“ 在系统 > 详细信息(如上图第一张所示)。

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

答案1

该文件已被修改,Community2016 年 5 月 7 日之后没有新的时间戳,但 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 网站上有关于upgradingDebian(Ubuntu 所基于的基础)与全新安装的缺点的说明。

还请注意,Nvidia 网站可能有针对 Haswell 的特殊说明,但是他们当前的驱动程序从我的低端 GT650M 到 OP 的 GT760M 使用相同的驱动程序,但基于英特尔 CPU 和/或 systemd 或 Debian,系统的其他区域可能会有各种建议的更改。

此外,还存在类似 OP 的特殊情况,其中集成显卡和独立显卡(又称“混合显卡”)内置于主板中。

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

答案2

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

最好使用最新版本的 Ubuntu。如果是 LTS 版本,那么我们应该安装最新的版本。14.04 应该是 14.04.2,14.04.3 将于 8 月底发布。16.04 应该会在 7 月底获得第一个版本 (16.04.1)。这些版本的目的是使版本与 LTS 发布后推出的硬件驱动程序保持同步。

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

sudo ubuntu-drivers autoinstall

这将安装推荐的专有视频驱动程序。您使用哪种方法?此命令将列出官方可用的专有视频驱动程序:

ubuntu-drivers list

等待命令生效。还将安装 Nvidia 设置实用程序。使用它可以从集成显卡切换到 Nvidia 显卡。

答案3

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

ppa 信息页面 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

答案4

转到终端并使用sudo prime-select nvidia。其中有三个: sudo prime-select intel(使用英特尔卡) sudo prime-select nvidia(使用 nvidia 卡) sudo prime-select query(查看选择了哪一个)输入 i 终端选择语句 intel 或 nvidia 后注销并登录或重新启动笔记本电脑。

适用于配备英特尔和 nvidia gtx960m 的戴尔 inspiron 7559

相关内容