無法切換到 Nvidia 331 顯示卡驅動程式

無法切換到 Nvidia 331 顯示卡驅動程式

我正在嘗試讓 HDMI 視訊輸出在 Ubuntu 14.04 LTS 中工作,但到目前為止我還沒有成功。所以我安裝了專有的 Nvidia 331 驅動程式。

但是系統似乎仍然默認使用 Intel 驅動程式

    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(效能模式)。然而,這似乎不起作用,並且選擇仍然是英特爾(省電模式)。我也嘗試過命令行來切換它 -

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

為什麼會發生這種情況?或者如果失敗的話,我想如果有人可以推荐一個好的程式來執行此操作,那麼刪除英特爾驅動程式可能是一個選擇?

答案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

相關內容