我的 nvidia-settings /etc/X11/xorg.conf 似乎没有保存或运行?

我的 nvidia-settings /etc/X11/xorg.conf 似乎没有保存或运行?

我刚刚安装了 Arch-Linux,并且正在运行 Gnome/GDM/Nvidia 专有驱动程序pacman -S nvidia

然后我将 显示器sudo nvidia-xconfig改为sudo nvidia-settings1920x1080、120Hz 刷新率,但当我重新启动计算机时,它只有 60Hz,我不知道为什么,当我点击保存或对配置进行任何操作时,控制台中没有错误,这是现在的配置:

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"

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      "BenQ XL2420T"
    HorizSync       30.0 - 140.0
    VertRefresh     56.0 - 120.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 660 Ti"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "1920x1080_120 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

任何帮助都将非常有帮助,每次重新启动时都必须更改设置,这非常烦人,谢谢!

答案1

nvidia-settings将其设置保存在 中$HOME/.nvidia-settings-rc。因此,如果您使用 运行它sudo,它将保存您的更改,/root/.nvidia-settings-rc因此您在重新启动后不会看到它们。

请手动编辑或以普通用户身份/etc/X11/xorg.conf运行。nvidia-settings

答案2

看来 GDM 忽略了 Xorg 配置设置。请参阅https://bbs.archlinux.org/viewtopic.php?id=38041

相关内容