Mesa 可以工作,但无法使用 nvidia 驱动程序和 nvidia-xconfig 生成的配置文件启动 Xserver 和 GUI

Mesa 可以工作,但无法使用 nvidia 驱动程序和 nvidia-xconfig 生成的配置文件启动 Xserver 和 GUI

我正在使用基于 Arch Linux 的 Manjaro 操作系统。所以我可以使用 gfx 驱动程序之间切换

sudo mhwd-gpu --setgl [mesa/nvidia]

命令。但由于 Xorg 配置错误,我无法点击我的 gfx 卡。使用 xorg 与 mesa 作为图形库:

Section "Device"
        Identifier  "Device0"
        Driver      "intel"
        BusID       "PCI:0:2:0"
        Option      "AccelMethod" "sna"
        Option      "DRI"    "true"
EndSection


Section "DRI"
        Group  "video"
        Mode   0666
EndSection


Section "Extensions"
        Option "Composite" "Enable"
        Option "RENDER"    "Enable"
EndSection


Section "InputClass"
        Identifier          "Keyboard Defaults"
        MatchIsKeyboard     "yes"
        Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

使用 nvidia-xconfig 和 nvidia 作为图形库生成的 xorg 出现故障:

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 "InputClass"
    Identifier         "Keyboard Defaults"
    MatchIsKeyboard    "yes"
    Option         "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

Section "InputClass"
    Identifier         "Keyboard Defaults"
    MatchIsKeyboard    "yes"
    Option         "XkbOptions" "terminate:ctrl_alt_bksp"
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"
EndSection

Section "Screen"
    Identifier     "Default Screen"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "AccelMethod" "sna"
    Option         "DRI" "true"
    Option         "AddARGBGLXVisuals" "True"
    SubSection     "Display"
        Depth       24
        Modes      "nvidia-auto-select"
    EndSubSection
EndSection

Section "Extensions"
    Option         "Composite" "Enable"
    Option         "RENDER" "Enable"
EndSection

你能帮我找出我做错了什么吗?

相关内容