Ubuntu 检测到错误的 GPU 型号

Ubuntu 检测到错误的 GPU 型号

我有一个相对较旧的设置,使用 Nvidia 9500GS GPU 运行,一切运行正常。请记住,我一直只使用一个 GPU,我不想运行双设置

几天前我买了一台 Geforce GTS 450,从那时起我就一直试图让它运行。当我更换 GPU(9500 出 - 450 入)时,Ubuntu 仍然将 GPU 识别为 9500,并且不允许我安装最新的驱动程序。9500 在 nvidia-340 驱动程序上运行,而 Nvidia 网站建议我为 450 使用 390 驱动程序。(对此的澄清:当我访问 Nvidia 网站并输入我的 GPU 型号时,它会提示我下载一个名为的文件NVIDIA-Linux-x86_64-390.87.run。我没有执行这个 .run 文件,因为这里的许多人都说这是安装驱动程序的错误方式,我无法理解这一点,因为像 Nvidia 这样的公司怎么会不对所有版本的 Ubuntu 驱动程序进行测试,但这个讨论在这里是题外话)。

我已尝试以下步骤:

使用 清除 nvidia 驱动程序sudo apt-get purge nvidia-*,使用 和 添加存储库,sudo add-apt-repository ppa:graphics-drivers/ppa然后sudo apt-get update使用 安装 390 驱动程序sudo apt-get install nvidia-390,然后重新启动。这只会让我进入登录循环,所以我不得不再次清除驱动程序。重新启动后,GPU 现在显示为 GeForce 9400 GT,如 的结果所示lspci -nnv

01:00.0 VGA compatible controller [0300]: NVIDIA Corporation G96 [GeForce 9400 GT] [10de:0641] (rev a1) (prog-if 00 [VGA controller])
    Subsystem: ASUSTeK Computer Inc. G96 [GeForce 9400 GT] [1043:82be]
    Physical Slot: 2
    Flags: bus master, fast devsel, latency 0, IRQ 31
    Memory at f2000000 (32-bit, non-prefetchable) [size=16M]
    Memory at d0000000 (64-bit, prefetchable) [size=256M]
    Memory at f0000000 (64-bit, non-prefetchable) [size=32M]
    I/O ports at 2000 [size=128]
    Expansion ROM at <unassigned> [disabled]
    Capabilities: <access denied>
    Kernel driver in use: nouveau
    Kernel modules: nvidiafb, nouveau

结果sudo lshw -C display是一样的:

*-display               
       description: VGA compatible controller
       product: G96 [GeForce 9400 GT]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nouveau latency=0
       resources: irq:31 memory:f2000000-f2ffffff memory:d0000000-dfffffff memory:f0000000-f1ffffff ioport:2000(size=128)

我读到可能是 PCI 数据库的问题,所以我下载了最新的快照,但sudo update-pciids没有成功。我检查了数据库,发现入口对于 Nvidia 450 GS,所以问题仍然是 Ubuntu 无法正确识别 GPU。

顺便说一下,我还尝试运行上面下载的 Nvidia 的 .run 文件,但收到以下警告:

The NVIDIA GeForce 9400 GT GPU installed in this system is          
           supported through the NVIDIA 340.xx legacy Linux graphics drivers.  
           Please visit http://www.nvidia.com/object/unix.html for more        
           information.  The 390.87 NVIDIA Linux graphics driver will ignore   
           this GPU.

WARNING: You do not appear to have an NVIDIA GPU supported by the 390.87     
           NVIDIA Linux graphics driver installed in this system.  For further 
           details, please see the appendix SUPPORTED NVIDIA GRAPHICS CHIPS in 
           the README available on the Linux driver download page at           
           www.nvidia.com.

我在 16.04 LTS 上尝试了这些步骤,现在已升级到 18.04.1 LTS,希望问题能够得到解决,但同样无济于事。

有什么想法吗?谢谢!

答案1

如果您在 Google 上搜索 PCI ID 1043:82be,结果是华硕制造的 nVidia 9400 GT,这就是 Ubuntu 对其进行标识的。10de:0641 也显示为 9400...

您是否 100% 确定这是错误的,并且该卡实际上是 GTS 450?

相关内容