如何将驱动程序更改为 nvidia-current?

如何将驱动程序更改为 nvidia-current?

好的,我之前已经安装了 nvidia 驱动程序,但由于无法更改分辨率,所以不得不再次停用它们。

现在我想再次激活它们以支持 HDMI。附加驱动程序窗口显示驱动程序 nvidia-current 已激活,但未使用。需要什么才能再次将其用作主驱动程序?我已经检查过互联网,但找不到任何帮助。

编辑:如果我运行nvidia-xconfig并重新登录,我的分辨率会冻结在 640x480,我无法在任何地方更改它。这是我的内容xorg.conf,因为这似乎是导致问题的原因。一旦我删除 xorg.conf,一切都会恢复正常,但没有 nvidia 驱动程序。

xorg.conf:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 304.64  (buildmeister@swio-display-x86-rhel47-12)  Tue Oct 30 12:04:46 PDT 2012


Section "ServerLayout"
    Identifier     "Default Layout"
    Screen         "Default Screen" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "keyboard"
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 "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Configured Video Device"
    Driver         "nvidia"
EndSection

Section "Screen"
    Identifier     "Default Screen"
    Device         "Configured Video Device"
    Monitor        "Monitor0"
    SubSection     "Display"
        Modes      "nvidia-auto-select"
    EndSubSection
EndSection

答案1

运行 Nvidia-settings 并配置驱动程序。保存设置,它将写出 xorg.conf 文件,该文件将在您下次登录时激活。

如果需要重新安装驱动程序:

sudo apt-get --reinstall install nvidia-current

如果尚未安装 nvidia-settings:

sudo apt-get install nvidia-settings

您也可以尝试更新驱动程序:

sudo apt-get install nvidia-current-updates

并再次删除它们:

sudo apt-get remove nvidia-current-updates

一般来说,移除和安装应该重新安装和重新配置模块。如果您想要 GUI 解决方案,您还应该能够从“附加驱动程序”执行相同的操作。

相关内容