无法切换到 Nvidia 331 显卡驱动程序

无法切换到 Nvidia 331 显卡驱动程序

我正在尝试在 Ubuntu 14.04 LTS 中实现 HDMI 视频输出,但目前还没有任何效果。因此我安装了专有的 Nvidia 331 驱动程序。

然而系统似乎仍然默认使用英特尔驱动程序

    lspci -k | grep VGA -A2
    00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 18)
    Subsystem: Dell Device 044f
    Kernel driver in use: i915
    --
    01:00.0 VGA compatible controller: NVIDIA Corporation GT216M [GeForce GT 330M] (rev ff)
    Kernel driver in use: nouveau
    01:00.1 Audio device: NVIDIA Corporation GT216 HDMI Audio Controller (rev ff)

因此我运行了 Nvida X 服务器设置实用程序

nvidia-settings

它允许您选择要使用的 GPU。所以我选择了 NVIDIA(性能模式)。然而这似乎不起作用,选择仍然在 Intel(省电模式)。我还尝试了命令行来切换它 -

sudo prime-switch nvidia

/etc/modprobe.d is not a file
/etc/modprobe.d is not a file
/etc/modprobe.d is not a file
/etc/modprobe.d is not a file
update-alternatives: error: no alternatives for x86_64-linux-gnu_gfxcore_conf

为什么会发生这种情况?我该如何切换到 Nvidia 驱动程序?或者如果失败的话,我猜删除 Intel 驱动程序可能是一个选项,如果有人能推荐一个好的方法来做到这一点?

答案1

根据您的输出,Nvidia 驱动程序未安装。请按此方式安装

sudo apt-get install --reinstall nvidia-331 nvidia-prime

然后重新启动。

nvidia-prime 的正确命令是:

prime-select query

查看正在使用哪个适配器。

sudo prime-select nvidia

切换到 Nvidia

sudo prime-select intel

切换到英特尔。

您需要注销并重新登录才能应用适配器切换。

答案2

我遇到了同样的问题。对我来说,它发生在 BIOS 重置之后。我尝试重新安装 nvidia 驱动程序,重新配置步骤告诉我我的主板处于安全启动模式(之前没有),如果不设置密码就无法加载驱动程序。我在 BIOS 中将安全启动类型从 Windows 切换到其他操作系统,它又可以正常工作了。我怀疑关闭安全启动会起作用。

登录时跟踪系统日志让我查看图形驱动程序(第一行和最后一行):

[...] gnome-session[18439]: gnome-session-is-accelerated: No hardware 3D support.
[...] gnome-session[18439]: gnome-session-check-accelerated: Helper exited with code 256
[...] rtkit-daemon[17158]: Successfully made thread 18472 of process 18472 (n/a) owned by '1000' high priority at nice level -11.
[...] rtkit-daemon[17158]: Supervising 6 threads of 2 processes of 2 users.
[...] rtkit-daemon[17158]: Supervising 6 threads of 2 processes of 2 users.
[...] rtkit-daemon[17158]: Successfully made thread 18477 of process 18472 (n/a) owned by '1000' RT at priority 5.
[...] rtkit-daemon[17158]: Supervising 7 threads of 2 processes of 2 users.
[...] rtkit-daemon[17158]: Supervising 7 threads of 2 processes of 2 users.
[...] rtkit-daemon[17158]: Successfully made thread 18478 of process 18472 (n/a) owned by '1000' RT at priority 5.
[...] rtkit-daemon[17158]: Supervising 8 threads of 2 processes of 2 users.
[...] gnome-session[18439]: gnome-session-is-accelerated: No hardware 3D support.
[...] gnome-session[18439]: gnome-session-check-accelerated: Helper exited with code 256
[...] gnome-session[18439]: gnome-session-binary[18439]: WARNING: software acceleration check failed: Child process exited with code 1
[...] gnome-session[18439]: gnome-session-binary[18439]: CRITICAL: We failed, but the fail whale is dead. Sorry....
[...] gnome-session-binary[18439]: WARNING: software acceleration check failed: Child process exited with code 1
[...] gnome-session-binary[18439]: CRITICAL: We failed, but the fail whale is dead. Sorry....
[...] lightdm[17017]: /etc/modprobe.d is not a file
[...] lightdm[17017]: message repeated 4 times: [ /etc/modprobe.d is not a file]
[...] lightdm[17017]: update-alternatives: error: no alternatives for x86_64-linux-gnu_gfxcore_conf

相关内容