我使用的是 Ubuntu 14.04(64 位),内核版本为 3.16.0-40-generic。我的 nvidia 是
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107M [GeForce GT 650M] [10de:0fd1] (rev a1) (prog-if 00 [VGA controller])
Subsystem: Samsung Electronics Co Ltd Device [144d:c0d1]
Flags: bus master, fast devsel, latency 0, IRQ 16
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
这意味着它是 GeForce GT 650M。因此,我去了nvidia 搜索检查哪个 nvidia 适合我的笔记本电脑。我找到了版本 346.72。但是,当我安装它时。我无法登录我的电脑。当我登录时,它总是重复登录屏幕。我需要卸载它。然后它才能再次登录。我的问题是什么?如何解决?我也尝试过其他方法,例如
$ sudo add-apt-repository ppa:xorg-edgers/ppa -y
$ sudo apt-get update
# install the latest version
$ sudo apt-get install nvidia-current
但是它显示(注意我之前安装过 304 版本但我卸载了它)
nvidia-current is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
cuda-drivers : Depends: nvidia-340 (>= 340.29) but it is not going to be installed
Depends: nvidia-340-dev (>= 340.29) but it is not going to be installed
Depends: nvidia-modprobe (>= 340.29) but it is not going to be installed
Depends: libcuda1-340 (>= 340.29) but it is not going to be installed
Depends: nvidia-libopencl1-340 (>= 340.29) but it is not going to be installed
Depends: nvidia-opencl-icd-340 (>= 340.29) but it is not going to be installed
nvidia-340-uvm : Depends: nvidia-340 (>= 340.29) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
更新错误:当我尝试卸载当前 nvidia 并安装新的 nvidia 331 版本时,它显示为
Error! Bad return status for module build on kernel: 3.19.0-20-generic (x86_64)
Consult /var/lib/dkms/nvidia-331/331.113/build/make.log for more information.
Setting up nvidia-331-uvm (331.113-0ubuntu1~xedgers14.04.1) ...
Loading new nvidia-331-uvm-331.113 DKMS files...
First Installation: checking all kernels...
Building only for 3.19.0-20-generic
Building for architecture x86_64
Building initial module for 3.19.0-20-generic
Error! Bad return status for module build on kernel: 3.19.0-20-generic (x86_64)
Consult /var/lib/dkms/nvidia-331-uvm/331.113/build/make.log for more information.
Setting up nvidia-opencl-icd-331 (331.113-0ubuntu1~xedgers14.04.1) ...
Setting up nvidia-prime (0.6.2) ...
nvidia-prime start/running, process 13152
Setting up nvidia-settings (352.09-0ubuntu0~xedgers14.04.1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
Processing triggers for ureadahead (0.100.0-16) ...
删除所有 nvidia 后,我输入 sudo ubuntu-drivers devices 它显示
~# sudo ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00000FD1sv0000144Dsd0000C0D1bc03sc00i00
model : GK107M [GeForce GT 650M]
vendor : NVIDIA Corporation
driver : nvidia-349 - third-party free
driver : nvidia-352 - third-party free recommended
driver : nvidia-331 - third-party free
driver : nvidia-340 - third-party free
driver : nvidia-346 - third-party free
driver : xserver-xorg-video-nouveau - distro free builtin
driver : nvidia-331-updates - distro non-free
driver : nvidia-304-updates - distro non-free
driver : nvidia-304 - third-party free
重新安装 ubuntu 后,我根据 Plo 的建议,我认为我安装成功了
$lspci -knn | egrep 'VGA|3D' -A2
or Graphics Controller [8086:0166] (rev 09)
Subsystem: Samsung Electronics Co Ltd Device [144d:c0d1]
Kernel driver in use: i915
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107M [GeForce GT 650M] [10de:0fd1] (rev a1)
Subsystem: Samsung Electronics Co Ltd Device [144d:c0d1]
Kernel driver in use: nvidia
答案1
首先,我建议删除所有 nvidia 驱动程序。
sudo apt-get purge nvidia*
对于 Ubuntu 14.04,默认和首选的驱动程序是 nvidia-331。
可以通过以下方式安装
sudo apt-get install nvidia-331
您可以选择升级内核并安装更新的驱动程序。
升级内核到 3.19
sudo apt-get install linux-generic-lts-vivid
重启
然后从 xorg-edgers 安装 nvidia-346
sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-346 nvidia-prime nvidia-settings
sudo add-apt-repository -r ppa:xorg-edgers/ppa
安装时查找错误。在大多数情况下,驱动程序运行良好,但这取决于安装的图形堆栈版本、集成适配器型号等。
如果驱动程序不工作且图形不启动,请按 Ctrl+Alt+F1,登录控制台并运行
sudo apt-get purge nvidia*