Dual-monitor problems with NVIDIA

Hello everyone,

So I decided to return back to manajro after a long time and I am facing issues with my graphics settings.
I have 2 screens plugged in GTX 1060.The second screen uses DP to VGA adapter since its a bit old.
The problems are those 2:

First I save the nvidia configuration from nvidia-settings but after rebooting the settings are gone.I have tried all the ways mentioned in the AUR wiki but nothing worked.

The second problem is the resolution of the 2nd display.The display supports up to 1920x1080 but nvidia drivers are detecting 1280x1024 as max resolution.I tried to change it through the config but it didn’t worked.The problem seems to be with the adapter and linux compatibility.When I tried changing settings I setted both ViewPortIn and Viewportout resoloutions to 1920x1080.But after applying settings the ViewPortOut resolution is still stuck at 1280x1024.So what am I doing wrong?

Thanks in advance

Hi and welcome to the forum :+1:


  1. Provide your configuration inside a code block here as explained in that article at top of my reply.
  2. Where exactly are you saving the configuration (provide the exact pathname)
  3. How exactly are you making the Xserver load that configuration.

You could try to add these in the [Device] section of your xconfig:

Option         "ModeValidation" "AllowNonEdidModes"
Option         "ModeDebug" "true"

The first will allow to use modes that are not provided by the EDID of your monitor.
The second will log all modes the xserver is considering and/or using inside the /var/log/Xorg.0.log file.
More flags that you can check are in the documentation that is installed together with your driver under /usr/share/doc/nvidia

Thanks for your reply.

Here is my configuration in /etc/X11/xorg.conf

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 455.45.01

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"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "LG Electronics LG ULTRAWIDE"
    HorizSync       30.0 - 90.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1060 6GB"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-1"
    Option         "metamodes" "HDMI-0: nvidia-auto-select +1280+0, DP-0: nvidia-auto-select +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

And my configuration in /etc/X11/mhwd.d/nvidia.conf

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"
# HorizSync source: edid, VertRefresh source: edid
Identifier     "Monitor0"
VendorName     "Unknown"
ModelName      "LG Electronics LG ULTRAWIDE"
HorizSync       30.0 - 90.0
VertRefresh     56.0 - 75.0
Option         "DPMS"
EndSection

Section "Device"
Identifier     "Device0"
Driver         "nvidia"
VendorName     "NVIDIA Corporation"
BoardName      "GeForce GTX 1060 6GB"
EndSection

Section "Screen"
Identifier     "Screen0"
Device         "Device0"
Monitor        "Monitor0"
DefaultDepth    24
Option         "Stereo" "0"
Option         "nvidiaXineramaInfoOrder" "DFP-1"
Option         "metamodes" "HDMI-0: nvidia-auto-select +1280+0, DP-0: nvidia-auto-select +0+0"
Option         "SLI" "Off"
Option         "MultiGPU" "Off"
Option         "BaseMosaic" "off"
SubSection     "Display"
    Depth       24
EndSubSection
EndSection

In which part of the conf file should I add the options you mentioned above?

To answer that you need to answer:

Please keep in mind that that the recent Xorg server uses files under /etc/X11/xorg.conf.d instead of the old /etc/X11/xorg.conf

I added :
nvidia-settings --load-config-only
at /.xinitrc

See this info from man nvidia-settings:

–config=CONFIG
Use the configuration file CONFIG rather than the default ~/.nvidia-settings-rc

This post might also help you:

does it help when you set

 Option "metamodes" "HDMI-0: nvidia-auto-select +1920+0, DP-0: nvidia-auto-select 1920x1080+0+0 {viewportout=1920x1080, viewportin=1920x1080}"

instead of

Option         "metamodes" "HDMI-0: nvidia-auto-select +1280+0, DP-0: nvidia-auto-select +0+0"

Also if I am not mistaken /etc/X11/mhwd.d/nvidia.conf is symlinked in /etc/X11/xorg.conf.d dont know the exact symlink name but it should start with 90. I cannot check now because I am not @linux atm because of work.

So, where Should I add in my conf file the options you mentioned above

In the config file that is loaded…
By the looks of it it will be the /etc/X11/mhwd.d/nvidia.conf file that is being used…
Any changes in that file will be overwritten by an update of your driver though IINM (If Im Not Mistaken).

It’s 90-mhwd.conf :wink:

Yeah that’s the one :slightly_smiling_face:

Like @TriMoon says when you set it at the default location it can be overwritten when there is an update

Better is to set the personal options in another file like:
/etc/X11/xorg.conf.d/20-nvidia.conf
for instance, but in /etc/X11/mhwd.d/nvidia.conf is also an option.

Also don’t forget to remove /etc/X11/xorg.conf

So which steps I have to take?
Sorry but I am don’t have such experience in modifying conf fiiles

Quick Update.

I managed to fix the resolution problem.Now the only problem is that the fix it’s gone after rebooting

See:
https://wiki.manjaro.org/index.php/Configure_NVIDIA_(non-free)_settings_and_load_them_on_Startup

I have tried but still the same

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.