![检测(显然)手动安装的 Nvidia 驱动程序](https://linux22.com/image/881126/%E6%A3%80%E6%B5%8B%EF%BC%88%E6%98%BE%E7%84%B6%EF%BC%89%E6%89%8B%E5%8A%A8%E5%AE%89%E8%A3%85%E7%9A%84%20Nvidia%20%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F.png)
我有同样的问题这里解决方案说我手动安装了驱动程序,这导致了问题。太好了!但是我如何检测所述驱动程序(并将其卸载)?
我尝试了网上的各种想法:
$> nvidia-settings -q NvidiaDriverVersion
ERROR: Error resolving target specification '' (No targets match target specification), specified in query 'NvidiaDriverVersion'.
$> grep -i "x driver" /var/log/Xorg.0.log
""
$> lspci -k | grep -EA2 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
Subsystem: CLEVO/KAPOK Computer Device 0170
Kernel driver in use: i915
--
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)
Subsystem: CLEVO/KAPOK Computer Device 0170
03:00.0 Network controller: Intel Corporation Wireless 7265 (rev 59)
如果有人想知道-我是nvidia-settings
单独安装的。
答案1
打开终端并执行:
lspci -k | grep -EA2 'VGA|3D'
输出内容如下:
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
Subsystem: CLEVO/KAPOK Computer Device 3501
Kernel driver in use: i915
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 860M] (rev a2)
Subsystem: CLEVO/KAPOK Computer Device 3501
Kernel driver in use: nvidia
现在你可以看到 NVIDIA 驱动程序正在使用 ->Kernel driver in use: nvidia
要卸载驱动程序,请执行以下操作:
sudo apt-get purge nvidia*
sudo reboot
这nvidia-settings
也会删除该应用程序。