检测(显然)手动安装的 Nvidia 驱动程序

检测(显然)手动安装的 Nvidia 驱动程序

我有同样的问题这里解决方案说我手动安装了驱动程序,这导致了问题。太好了!但是我如何检测所述驱动程序(并将其卸载)?

我尝试了网上的各种想法:

$> 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也会删除该应用程序。

相关内容