Xorg.conf not obeyed

Hello,

Although in XFCE I have my screens working correctly I have noticed that in the login screen and in qtile they are not. I have tried to fix this using xorg.conf but it does not seem as if that is being obeyed. In xfce I got the displays working using the gui tool for displays. The gpu is nvidia and I am using the proprietary drivers. How can I get the screens do show correctly DP output on left and HDMI on the right?

Section "Monitor"
### Monitor Identity - Typically HDMI-0 or DisplayPort-0
Identifier    "HDMI-0" 

### Setting Resolution and Modes
## Modeline is usually not required, but you can force resolution with it    
Modeline "1360x768"   84.75  1360 1432 1568 1776  768 771 781 798 -hsync +vsync
Option "PreferredMode" "1360x768"
Option "TargetRefresh" "60"

### Positioning the Monitor

## Basic
Option "RightOf" "DP-0"    

## Advanced
Option        "Position" "1280 0"

EndSection 

Section "Monitor"
### Monitor Identity - Typically HDMI-0 or DisplayPort-0
Identifier    "DP-0"

### Setting Resolution and Modes
## Modeline is usually not required, but you can force resolution with it
Modeline "1280x1024"  109.00  1280 1368 1496 1712  1024 1027 1034 1063 -hsync +vsync
Option "PreferredMode" "1280*1024"
Option "TargetRefresh" "60"

### Positioning the Monitor

## Basic
Option "LeftOf" "HDMI-0"

## Advanced
Option "Position" "0 0"

EndSection 

The above is located in the /etc/X11/xorg.conf.d folder.

Thanks,

Frog

As a low-tech solution you could physically move/switch the monitors around?

I could but i believe there should be a better solution.

Surely if it’s physically possible to rearrange the monitors then the solution with zero software configuration is the better solution? :thinking:

I could but I would rather have my best monitor in front and the worst on my side.

1 Like

as in kde you can move your monitors to each side
in the GUI monitor settings if this should help…

The main issue is having them be in the correct position in qtile. Using the Xfce gui they are correctly placed in Xfce.

sorry, I misunderstood, qtile would be too worksome for me, though :slight_smile:

My issue is really with why the xorg configuration is not being obeyed.

i think you need to have the

Section "Monitor"

twice, that means once for each monitor?

I thought of that but I don’t know if the should have different names? One section per monitor is the intention.

yes i guess you name it with identifiers, with the second one you add
the attribute leftof:

Section "Monitor"
    Identifier  "DVI"
EndSection

Section "Monitor"
    Identifier  "DP"
    Option      "LeftOf"   "DVI"
EndSection

something like this maybe

whats about xrandr?