我的笔记本电脑运行 Ubuntu 18.04,重启后切换到 Intel GPU。
我不太清楚是什么原因造成的,因为我几乎每周重启一次。
我注意到 FPS 下降,然后运行screenfetch
,看到输出GPU: intel
。
- 我的 GPU:GP106M [GeForce GTX 1060 移动版]
- 已安装并选择专有 NVIDIA 驱动程序 (nvidia-driver-390)
- NVIDIA GPU 被选中
nvidia-settings
- 我尝试将其设置为 Intel,然后又改回 NVIDIA
一些输出:
$ sudo prime-select nvidia
Info: the nvidia profile is already set
$ sudo nvidia-settings
ERROR: NVIDIA driver is not loaded
ERROR: Error querying enabled displays on GPU 0 (Missing Extension).
ERROR: Error querying connected displays on GPU 0 (Missing Extension).
** Message: 15:01:48.861: PRIME: Requires offloading
** Message: 15:01:48.861: PRIME: is it supported? yes
ERROR: nvidia-settings could not find the registry key file. This file should
have been installed along with this driver at
/usr/share/nvidia/nvidia-application-profiles-key-documentation. The
application profiles will continue to work, but values cannot be
prepopulated or validated, and will not be listed in the help text.
Please see the README for possible values and descriptions.
#(the application starts)
$ echo $XDG_SESSION_TYPE
x11
$ loginctl show-session c1 -p Type
Type=x11
#(I disabled Wayland to see if it fixes the problem)
$ lspci | grep "VGA"
00:02.0 VGA compatible controller: Intel Corporation Device 591b (rev 04)
01:00.0 VGA compatible controller: NVIDIA Corporation GP106M [GeForce GTX 1060 Mobile] (rev a1)
如何让 NVIDIA GPU 再次工作?谢谢!
编辑:卸载 CUDA 和所有 NVIDIA 软件包,然后重新安装驱动程序。成功了!