Ubuntu 14.04 无法检测到我的独立 GPU

Ubuntu 14.04 无法检测到我的独立 GPU

我最近购买了一台配备 Nvidia GeForce 860m 的笔记本电脑,并安装了 Ubuntu 14.04。在我的旧笔记本电脑上,我使用的是 12.04,它会自动用 Nvidia 驱动程序填充“附加驱动程序”。但在这台电脑上,“附加驱动程序”中只有 Qualcomm。因此,我手动安装了 Nvidia,但 X 服务器设置似乎没有检测到任何 GPU...

lspci | grep VGA仅报告我的集成英特尔 GPU,但

lspci -v报告了很多事情,包括 Nvidia GPU:

01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 860M] (rev a2)
Subsystem: ASUSTeK Computer Inc. Device 157d
Flags: fast devsel, IRQ 16
Memory at ec000000 (32-bit, non-prefetchable) [size=16M]
Memory at c0000000 (64-bit, prefetchable) [size=256M]
Memory at d0000000 (64-bit, prefetchable) [size=32M]
I/O ports at e000 [size=128]
Expansion ROM at ed000000 [disabled] [size=512K]
Capabilities: access denied

不知道这些是什么意思。不确定它是否应该表示“拒绝访问”...

我需要我的 GPU 进行 CUDA 和 OpenGL 编程。我还能做什么来找出为什么它不起作用?

编辑:根据请求,xorg.conf 的内容:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 304.117  (buildmeister@swio-display-x86-rhel47-01)  Tue Nov 26 22:29:40 PST 2013


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

答案1

通过安装 nVidia 驱动程序版本 331 可以修复此问题:

sudo apt-get purge nvidia*
sudo apt-get install nvidia-331-updates-dev

然后按照说明安装大黄蜂这里

sudo apt-get install bumblebee bumblebee-nvidia primus

重新启动后,我可以使用“optirun”命令将我的 nVidia gpu 用于特定程序。:)

相关内容