Monitor frequency not saved (nvidia, plasma 5, xorg)

hi

it’s quite a simple case, 1 monitor setup and I would like to run it at 120mhz.

  1. nvidia-settings, set it from auto to 1920x1080 120mhz, apply. Reboot, back at 60mhz
  2. KDE settings, display and monitor, advanced settings, change auto to 120mhz, apply. Reboot, back at 60mhz
  3. nvidia-settings, make it create an xorg.conf, preview it, take the relevant sections and put them in a /etc/X11/xorg.conf.d/99-benq.conf. Reboot, back at 60mhz
Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "BenQ XL2420T"
    HorizSync       30.0 - 140.0
    VertRefresh     56.0 - 120.0
    Option         "DPMS"
EndSection

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

From this last try the Xorg.0.log shows this in relation to the resolution/freqency:

    22.419] (**) NVIDIA(0): Option "MetaModes" "1920x1080_120 +0+0"
    23.308] (II) NVIDIA(0): Validated MetaModes:
    23.308] (II) NVIDIA(0):     "1920x1080_120+0+0"
    23.368] (II) NVIDIA(0): Setting mode "1920x1080_120+0+0"
    40.256] (II) NVIDIA(0): Setting mode "DVI-D-0: nvidia-auto-select @1920x1080 +0+0 {ViewPortIn=1920x1080, ViewPortOut=1920x1080+0+0}"

if I remove the 99-benq.conf then Xorg.0.log shows none of the above, so it seems the 99-benq.conf file gets loaded and then something (about 17sec) later resets it.

I would rather not even use a xorg.conf file as something this simple should be set in the “KDE settings, display and monitor”, but I have found very little info about this tool it appears to not save its settings.

so any idea’s would be appreciated as this should be a quiet basic thing.

Thanks, Xil

this always happens just after you post here I guess.

got another idea and that solved it, so if anybody else runs into this issue, this works for me:

  • make the 99-benq.conf file as in the above post
  • KDE system settings, startup en shutdown, background services, disable Kscreen2, reboot, 120mhz :slight_smile:

Xorg.0.log shows

    23.163] (**) NVIDIA(0): Option "MetaModes" "1920x1080_120 +0+0"
    24.047] (II) NVIDIA(0): Validated MetaModes:
    24.047] (II) NVIDIA(0):     "1920x1080_120+0+0"
    24.103] (II) NVIDIA(0): Setting mode "1920x1080_120+0+0"

So it was Kscreen who set it back despite setting it to 120mhz there.