12.04 无法加载模块“nvidia”(模块不存在,0)

12.04 无法加载模块“nvidia”(模块不存在,0)

我有一台华硕 UL50Vt,配有 nvidia optimus 混合显卡 (GeForce 210M)。我最近安装了 ubuntu 12.04,在“详细信息”应用程序中,它显示我使用的是英特尔视频驱动程序。因此,我安装了 bumblebee,重新启动后,“详细信息”显示“VESA:GT218 主板 - 0698a740”由于 VESA 与 NVIDIA 不同,我卸载了 bumblebee,但错误并没有消失 :(

现在我的 Xorg.0.log 包含:

cat /var/log/Xorg.0.log | grep nvidia
[    12.616] (II) LoadModule: "nvidia"
[    12.634] (WW) Warning, couldn't open module nvidia
[    12.634] (II) UnloadModule: "nvidia"
[    12.634] (II) Unloading nvidia
[    12.634] (EE) Failed to load module "nvidia" (module does not exist, 0)
[    12.634] (==) Matched nvidia as autoconfigured driver 0
[    12.634] (II) LoadModule: "nvidia"
[    12.634] (WW) Warning, couldn't open module nvidia
[    12.634] (II) UnloadModule: "nvidia"
[    12.634] (II) Unloading nvidia
[    12.634] (EE) Failed to load module "nvidia" (module does not exist, 0)

附加驱动程序表明 NVIDIA 已激活但目前未使用:

jockey-text --list | grep nvidia
kmod:nvidia_current - nvidia_current (Proprietary, Disabled, Not in use)
kmod:nvidia_current_updates - nvidia_current_updates (Proprietary, Enabled, Not in     use)
kmod:nvidia_experimental_304 - Experimental NVIDIA binary Xorg driver, kernel module and VDPAU library (Proprietary, Disabled, Not in use)
kmod:nvidia_experimental_310 - Experimental NVIDIA binary Xorg driver, kernel module and VDPAU library (Proprietary, Disabled, Not in use)

NVIDIA X Server Settings 在启动时写入:

您似乎没有使用 NVIDIA X 驱动程序。请编辑您的 X 配置文件(只需nvidia-xconfig以 root 身份运行),然后重新启动 X 服务器。

建议来自https://askubuntu.com/a/121612/165811

sudo apt-get install linux-headers-`uname -r`
sudo dpkg-reconfigure nvidia-current
sudo nvidia-xconfig
sudo reboot

没有任何变化。我仍然使用后备 VESA 驱动程序。分辨率为 1280x768,而不是 1366x768。

我如何才能找出为什么 nvidia-current 无法加载 nvidia 模块(我相信该模块存在):

modprobe -l | grep nvidia
kernel/drivers/video/nvidia/nvidiafb.ko
kernel/drivers/net/ethernet/nvidia/forcedeth.ko
updates/dkms/nvidia_current.ko
updates/dkms/nvidia_current_updates.ko
updates/dkms/nvidia.ko

如果有帮助的话,这是我的 xorg.conf:

cat /etc/X11/xorg.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 304.88  (buildmeister@swio-display-x86-rhel47-06)  Wed Mar 27 15:32:58 PDT 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

另外,如何切换到之前为我提供良好服务的板载英特尔显卡?

更新

lshw 显示我的显示屏未被认领:

*-display UNCLAIMED
            description: VGA compatible controller
            product: GT218 [GeForce G210M]
            vendor: NVIDIA Corporation
            physical id: 0
            bus info: pci@0000:01:00.0
            version: a2
            width: 64 bits
            clock: 33MHz
            capabilities: pm msi pciexpress vga_controller bus_master cap_list
            configuration: latency=0
            resources: memory:fd000000-fdffffff memory:e0000000-efffffff memory:fa000000-fbffffff ioport:dc00(size=128) memory:f0000000-f007ffff

看起来 Linux 根本不知道我的集成显卡:

lspci | grep VGA
01:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce G210M] (rev a2)

答案1

我建议您卸载 nvidia 驱动程序并确保您正在运行 intel 驱动程序。此后,请按照 wiki 中的说明进行操作: https://wiki.ubuntu.com/Bumblebee

请报告在按照指南中指定的方式运行时可能遇到的任何具体问题。

祝你好运!

相关内容