Please assist with Dual Monitor setup

Hello team,

Please help me.

I made fresh and clean install of Manjaro Linux 21.3.4 XFCE minimal, with Kernel 5.18.12, (after trying this consumer grade toy Zorirn OS, i found that Zorin OS is nowhere near the quality, stability and relaibility of Manjaro, Not hate, not trolling, just personal opinion) Nvidia 470.xx series driver, Nvidia Quadro P2200 videocard and dual monitors setup.

When I execute Xserver, to setup my monitors to my liking, i am able to do so, in a temporary fashion.
The problem is when i try to apply and save changes, to become permanent, it says that it cannot update the conf file, and when i exit the Xserver, it says i have pending operations apply and save. by this time i already clicked apply, the monitors entered the settings i like and on the confirmation windows with the count down timer, i confirm that i want to keep these settings. Please assist me with this issue.

Thank you in advance.

Hello,

Manjaro uses MHWD to install the drivers for your GPU, hence will also provide a default config in /etc/X11/mhwd.d/nvidia.conf with a symlink to it in /etc/X11/xorg.conf.d/90-mhwd.conf

I do not recommend that. It will try to write whatever you try to configure into the /etc/X11/xorg.conf and that files does not exist, and it shouldn’t exist on Manjaro because of the MHWD.
So does the nvidia-settings, but at least you can set up your Monitors the way you want, and then from Preview just copy the Layout and a few more lines to the /etc/X11/mhwd.d/nvidia.conf

You should end up with something like this:

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

Section "Files"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "freetype"
    Load           "glx"
EndSection

Section "InputDevice"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "LG Electronics"
    ModelName      "LG Electronics W2253"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 960"
    Option  "ConnectToAcpid"    "Off"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "DVI-I-1: 1920x1080_60 +0+0 {ForceCompositionPipeline=On}, DVI-D-0: 1920x1080_60 +1920+0 {ForceCompositionPipeline=On}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "COMPOSITE" "Enable"
EndSection

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

but of course with your Monitor model and details, with your GPU model, and with the GPU connectors you will use.

1 Like

Thank you for your suggestion, will try it, and update you with feedback. :slightly_smiling_face:

These are my settigns as generated by Xserver:

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

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

Section "Files"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "freetype"
    Load           "glx"
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      "DELL U2410"
    HorizSync       30.0 - 81.0
    VertRefresh     56.0 - 76.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro P2200"
EndSection

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

Hello Manjaro team, my issue is solved, thanks for your suggestion.

However i had to figure out what is happening.
The files in question were read only, why they were read only? Because user root had ownership oever the files. To take ownership I had to use SU Root, to gain root, then i had to use chown myuser:myuser on the / etc/x11/mhwd.d folder and all files in, to take ownership, then removed the read only attributes and managed and updated all files as they should be. issue is solved monitors are set up as per my liking. I must say i love a good challenge and Manjaro does not disappoint.

Thank you @bogdancovaciu for your suggestion. It worked, once i figured out how to update the files.

Please make it visible and available for other people who have this same issue.

Good luck Manjaro team, respect!

Because everything in / is for a reason.

DO NOT do that. Restore your backup (you make regular backups, right?) and don’t do things like that again.

See:

All you had to do was edit the the file with elevated privileges using your favorite text editor like nano, micro, vim, etc.; i.e.,

sudo nano /etc/X11/mhwd.d/nvidia.conf
2 Likes

I am afraid that we are not done yet, it appeares i broke one thing to fix another.

As i used the following
I had to use SU Root , to gain root, then i had to use chown myuser:myuser on the / etc/x11/mhwd.d folder and all files in, to take ownership, i believe i broke Sudo and su root, withthe same error, cannot gain privileges, because su root and sudo do not belong to user 0 - system root, but they belong to user 1000 - my user.

My Idea to fix the issue is to give back the entire etc folder back to user 0, but i cannot run chown, i cannot run sudo, i cannot su root. Any idea how to put my system back together? as it was before my usage of Su root and chown?

Please don’t create another topic with no context to what started here. At least link the previous post for reference. I merged your new topic here.

It’s also quite rude to ask for help again after you’ve already been given an answer you obviously ignored.

“Yet another issue” is not a proper topic title.

Please see:

I just told you.

not yet. i wanted to have my system fully set up and fully configured and fully updated before backup.
Is there anything i can run from live media using it as rescue media?

Since you just did a clean install, it would be better to learn your lesson and start over.

This time, make a backup after you’re done configuring and customizing. Make sure to setup scheduled backups with Timeshift and/or Back in Time (for example).

well looks like it. As i said, manjaro is full of challenges :-), but it is great Linux Distro, and Manjaro team did dreat work!

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