Xorg file help! External monitor off eGPU + Laptop monitor off intel graphics

Hi All,

I'm running a single external monitor off of an eGPU. I'd like to simultaneously use my laptop screen (preferably but not necessarily off of the internal card).

Currently I switch between these xorg files, symbolically linking them to xorg.conf as needed.

xorg.conf.internal
Section "Device"
    Identifier "Intel Graphics"
    Driver "intel"
    Option "TearFree" "true"
EndSection
xorg.conf.egpu
# external gpu and monitor

Section "Module"
    Load "modesetting"
EndSection

Section "Device"
    Identifier     "Device-eGPU"
    Driver         "nvidia"
    BusID          "PCI:62:0:0"
    Option         "AllowEmptyInitialConfiguration"
    Option         "AllowExternalGpus" "True"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1060 6GB"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "VTK GNV34DBE"
    HorizSync       160.0 - 160.0
    VertRefresh     48.0 - 144.0
    Option         "DPMS"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device-eGPU"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-4"
    Option         "metamodes" "3440x1440_144 +0+0 {AllowGSYNC=Off, AllowGSYNCCompatible=On}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

I'm not sure how to get both devices working simultaneously in this case. I tried something like the file below. It seems to act just like xorg.confg.egpu in practice, running my ultrawide monitor off the NVIDIA card fine without affecting the laptop monitor.

For reference, my laptop's xrandr output is eDP1 when disconnected from the eGPU, but when connected, xrandr seems to call it eDP-1-1, saying it is not disconnected but has no modes. Any ideas?

xorg.conf.egpu-and-internal
# external gpu and external monitor
# as well as internal gpu and laptop monitor

Section "Module"
    Load "modesetting"
EndSection

Section "Device"
    Identifier     "Device-eGPU"
    Driver         "nvidia"
    BusID          "PCI:62:0:0"
    Option         "AllowEmptyInitialConfiguration"
    Option         "AllowExternalGpus" "True"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1060 6GB"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "VTK GNV34DBE"
    HorizSync       160.0 - 160.0
    VertRefresh     48.0 - 144.0
    Option         "DPMS"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device-eGPU"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-4"
    Option         "metamodes" "3440x1440_144 +0+0 {AllowGSYNC=Off, AllowGSYNCCompatible=On}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection



# internal laptop GPU and monitor
Section "Device"
    Identifier     "Intel Graphics"
    Driver         "intel"
    BusID          "PCI:0:2:0"
    Option         "TearFree" "true"
    Option         "UseDisplayDevice" "eDP-1-1"
EndSection

Section "Monitor"
    Identifier     "Laptop Monitor"
    Option         "RighttOf" "Monitor0"
EndSection

Section "Screen"
    Identifier     "Laptop Screen"
    Device         "Intel Graphics"
    Monitor        "Laptop Monitor"
EndSection

Some details about my machine:

partial output of inxi -f
System:    Host: bestfriend Kernel: 5.4.43-1-MANJARO x86_64 bits: 64 Desktop: KDE Plasma 5.18.5 Distro: Manjaro Linux 
Machine:   Type: Laptop System: LENOVO product: 20KHCTO1WW v: ThinkPad X1 Carbon 6th serial: <root required> 
           Mobo: LENOVO model: 20KHCTO1WW v: SDK0J40709 WIN serial: <root required> UEFI: LENOVO v: N23ET50W (1.25 ) 
           date: 06/25/2018 
Graphics:  Device-1: Intel UHD Graphics 620 driver: i915 v: kernel 
           Device-2: NVIDIA GP106 [GeForce GTX 1060 6GB] driver: nvidia v: 440.82 
           Display: x11 server: X.Org 1.20.8 driver: modesetting,nvidia tty: N/A 
           OpenGL: renderer: GeForce GTX 1060 6GB/PCIe/SSE2 v: 4.6.0 NVIDIA 440.82 

Hello,

This might help


Also see this and previous comments to get the idea

and maybe this

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

Forum kindly sponsored by