You are not logged in.

#1 2019-07-04 19:11:09

killkrt
Member
From: Italy
Registered: 2016-02-24
Posts: 35

[SOLVED] Dual monitor issue with i3

Hi,

I have a PC with a nVidia GTX 970 and two monitors connected, one (old Samsung SyncMaster) via HDMI and other one (Dell P2715Q) via DP.
Today I've installed i3 window manager and I noticed this issue: my Dell monitor seems to be not recognized anymore at boot if it is in sleep mode, as you can see in my Xorg.0.log:

[    10.771] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[    10.775] (--) NVIDIA(GPU-0): CRT-0: disconnected
[    10.775] (--) NVIDIA(GPU-0): CRT-0: 400.0 MHz maximum pixel clock
[    10.775] (--) NVIDIA(GPU-0): 
[    10.779] (--) NVIDIA(GPU-0): DFP-0: disconnected
[    10.779] (--) NVIDIA(GPU-0): DFP-0: Internal TMDS
[    10.779] (--) NVIDIA(GPU-0): DFP-0: 330.0 MHz maximum pixel clock
[    10.779] (--) NVIDIA(GPU-0): 
[    10.795] (--) NVIDIA(GPU-0): Samsung SyncMaster (DFP-1): connected
[    10.795] (--) NVIDIA(GPU-0): Samsung SyncMaster (DFP-1): Internal TMDS
[    10.795] (--) NVIDIA(GPU-0): Samsung SyncMaster (DFP-1): 165.0 MHz maximum pixel clock
[    10.795] (--) NVIDIA(GPU-0): 
[    10.795] (--) NVIDIA(GPU-0): DFP-2: disconnected
[    10.795] (--) NVIDIA(GPU-0): DFP-2: Internal DisplayPort
[    10.795] (--) NVIDIA(GPU-0): DFP-2: 960.0 MHz maximum pixel clock
[    10.795] (--) NVIDIA(GPU-0): 
[    10.795] (--) NVIDIA(GPU-0): DFP-3: disconnected
[    10.795] (--) NVIDIA(GPU-0): DFP-3: Internal TMDS
[    10.795] (--) NVIDIA(GPU-0): DFP-3: 165.0 MHz maximum pixel clock
[    10.795] (--) NVIDIA(GPU-0): 
[    10.795] (--) NVIDIA(GPU-0): DFP-4: disconnected
[    10.795] (--) NVIDIA(GPU-0): DFP-4: Internal TMDS
[    10.795] (--) NVIDIA(GPU-0): DFP-4: 330.0 MHz maximum pixel clock

Anyway if I launch xrandr I get this output:

Screen 0: minimum 8 x 8, current 1680 x 1050, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 459mm x 296mm
   1680x1050     59.88*+  59.95  
   1280x1024     75.02    60.02  
...
DP-0 connected primary (normal left inverted right x axis y axis)
   3840x2160     60.00 +  29.98  
   2560x1440     59.95  
   1920x1200     59.88  
...

Then if I launch nvidia-settings the Dell display is listed (as xrandr states) but shown as disabled, enabling it makes everything work again, anyway until next reboot.
While I've noticed that if I choose deepin as windows manager the Dell monitor automatically wakes up and everything is working correctly.

Another strange thing, if the Dell display is not in sleep mode at Linux boot, it is detected correctly, despite it is then layouted on the wrong side (despite my settings in the xorg.conf file).
BTW Dell display goes in sleep mode very quickly if it is not receiving any signal, so it is very annoying and hard to avoid.

Any idea how to fix it?

Thank you

P.S.:
I am using nVidia proprietary driver (version 430.26)

Last edited by killkrt (2019-07-05 10:58:16)

Offline

#2 2019-07-04 19:35:58

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: [SOLVED] Dual monitor issue with i3

Hmm, maybe run xrandr --auto in your sway i3 startup, e.g. with exec_once?

Edit: Why did I write sway instead of i3? i wanted to talk about i3 and xrandr is clearly for xorg and not wayland...

Last edited by progandy (2019-07-04 20:40:05)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#3 2019-07-04 20:05:14

killkrt
Member
From: Italy
Registered: 2016-02-24
Posts: 35

Re: [SOLVED] Dual monitor issue with i3

Thank for the quick reply.

I have tried to add

exec --no-startup-id xrandr --auto

to my i3 config file (I am not using sway), it makes the monitor wakes up, but the two screens sharing the same origin, so the Dell monitor (that is a 4K display) is mirroring in its top left corner what is shown in the other display. So it seems that is ignoring my Xorg file, that it is the following:

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

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      "Samsung SyncMaster"
    HorizSync       30.0 - 81.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor1"
    VendorName     "Dell"
    ModelName      "DELL P2715Q"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 970"
    Option         "ConnectToAcpid" "0"
    Option         "RegistryDwords" "EnableBrightnessControl=1"
EndSection

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

Thank you.

Offline

#4 2019-07-04 20:19:19

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,762

Re: [SOLVED] Dual monitor issue with i3

Please remove that file and instead add sth. like: /etc/X11/xorg.conf.d/11-monitor.conf

Section "Monitor"
	Identifier "HDMI-0"
	Option	"Enable"	"True"
EndSection

Section "Monitor"
	Identifier "DP-0"
	Option	"Enable"	"True"
	Option	"RightOf"	"HDMI-0"
EndSection

If things still fail, please post your xorg log.
In general avoid static configurations and especially those written by nvidia-xconfig/nvidia-settings.

Offline

#5 2019-07-05 10:58:48

killkrt
Member
From: Italy
Registered: 2016-02-24
Posts: 35

Re: [SOLVED] Dual monitor issue with i3

Thank you very much @seth, that solved the issue!

Offline

Board footer

Powered by FluxBB