Nvidia settings not sticking on reboot

Hi, I’ve just installed Pop_os on my desktop after using it on my laptop for a few months. My issue is that my Nvidia settings are not sticking after I reboot. I’m using Nvidia setting because I’m using custom resolutions for my side monitors. They are 1920x1080, and my main monitor is 3440x1440, so in order for everything to look good I always run them at 2560x1440 in windows. I can manage to get the monitors to run at 2560x1440 trough the Nvidia settings. I start by opening nvidia-settings with sudo, then change settings as desired, and save it as /etc/X11/xorg.conf.d/20-nvidia.conf.

However it wont stick on reboot, I have also tried to follow this.

I’m running driver version 435.21

This is my 20-nvidia.conf:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 435.21


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    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"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Ancor Communications Inc ASUS VE278"
    HorizSync       24.0 - 92.0
    VertRefresh     50.0 - 85.0
    Option         "DPMS"
EndSection

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

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Coolbits" "4"
    Option         "Coolbits" "8"
    Option         "Coolbits" "12"
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-5"
    Option         "metamodes" "DVI-D-0: 1440x2560_60 +6000+0 {rotation=right, viewportin=1440x2560, ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}, HDMI-1: 2560x1440_60 +3440+1120 {viewportin=2560x1440, ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}, DP-2: 3440x1440_95 +0+1120 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Are there any other files in /etc/X11/xorg.conf.d/? Does /etc/X11/xorg.conf still exist? If so, those other files may be overriding the NVIDIA settings.

It would also be helpful to post the Xorg logs from /var/logs/ (I forget the exact layout/filename. Generally you should always make logs available when asking for help :slight_smile:

Good luck.