Hello ! I've been trying to get my dual screen setup to work on X (using XFCE) but no luck.
First, my setup : it's an MSI laptop Leopard GL65, with Intel Graphics (UHD630) and a nVidia GeForce RTX 2070 SUPER, running 14.0 RELEASE.
The BIOS does not allow to disable the discrete CPU or the Intel Graphics.
On the hardware part, I have the laptop screen, a IIYAMA screen on HDMI port, and an empty DP. It looks like (stated in Windows 11 this way and it does look like this on FreeBSD) that the laptop screen is managed by the Intel UHD, but the HDMI and DP ports belong to the NVIDIA card.
Drivers used are i915kms (modeset) and the official NVIDIA driver, and it does work fine. There's nothing special in the logs, only these errors/warnings :
Now, here is what happens : I can get both screens to work fine, but never on the same time. I do this by switching the Screen0 section from "nvidia" to "intel".
In my current setup (laptop on left, IIYAMA screen on right), I have the IIYAMA screen displaying my main screen ; the laptop screen is black, but activated (backlit) and I can smoothly put/move the pointer on it from the external screen to the internal one and vice-versa - the mouse does like if the Xinerama setup was working fine.
If I switch to a console (ie Crtl+Alt+F1), the IIYAMA screens shutdown (no signal detected), and the laptop screen gets the console display. Turning back to XFCE using CTRL+ALT+F9 works as the opposite - laptop screen turns black, and my IIYAMA turns back to XFCE.
At boot, the whole Vinit goes on the laptop screen, and it switches to the IIYAMA when SDDM is ready. Same thing when I shutdown from XFCE.
I did turn off Xinerama option for now, as it "looks to" work but it's unusable : the desktop looks to be streched correctly (no more desktop icons, my open windows are here but on the left, the mouse can be moved to the laptop screen BUT it's not appearing) but the laptop screen is still black so I can't see what I'm doing.
Using ARandR, with nVidia setup I have the following outputs : HDMI-0 (the screen I use), DP-0 and DP-1 (internal displayport), both disconnected. Booting with Intel driver (so I have the laptop screen but not the HDMI output), I only have eDP-1 output.
xrandr only list one provider, the NVIDIA or the Intel one.
Here are my relevant xorg.conf files :
(screen.conf)
(monitor.conf)
(intel.conf)
(nvidia.conf)
(layout.conf - file based on a generated one by nvidia-xconfig)
It also doesn't work in NomadBSD, BUT the setup works out of the box if I run a Live Debian (also running XFCE). I've been testing NVIDIA secondary graphics, lots of this but nothing did the trick.
Do you think I'll be able to make this to work ? Thanks for any clue !!
First, my setup : it's an MSI laptop Leopard GL65, with Intel Graphics (UHD630) and a nVidia GeForce RTX 2070 SUPER, running 14.0 RELEASE.
$ pciconf -lv|grep -B4 VGA
Code:
vgapci1@pci0:0:2:0: class=0x030000 rev=0x05 hdr=0x00 vendor=0x8086 device=0x9bc4 subvendor=0x1462 subdevice=0x12b8
vendor = 'Intel Corporation'
device = 'CometLake-H GT2 [UHD Graphics]'
class = display
subclass = VGA
--
vgapci0@pci0:1:0:0: class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de device=0x1f14 subvendor=0x1462 subdevice=0x12b8
vendor = 'NVIDIA Corporation'
device = 'TU106M [GeForce RTX 2070 Mobile / Max-Q Refresh]'
class = display
subclass = VGA
The BIOS does not allow to disable the discrete CPU or the Intel Graphics.
On the hardware part, I have the laptop screen, a IIYAMA screen on HDMI port, and an empty DP. It looks like (stated in Windows 11 this way and it does look like this on FreeBSD) that the laptop screen is managed by the Intel UHD, but the HDMI and DP ports belong to the NVIDIA card.
Drivers used are i915kms (modeset) and the official NVIDIA driver, and it does work fine. There's nothing special in the logs, only these errors/warnings :
Code:
(WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
(!!) More than one possible primary device found
(WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
(WW) NVIDIA: No DRM device: Direct render devices found but none could be used.
(II) GLX: Another vendor is already registered for screen 0
Now, here is what happens : I can get both screens to work fine, but never on the same time. I do this by switching the Screen0 section from "nvidia" to "intel".
In my current setup (laptop on left, IIYAMA screen on right), I have the IIYAMA screen displaying my main screen ; the laptop screen is black, but activated (backlit) and I can smoothly put/move the pointer on it from the external screen to the internal one and vice-versa - the mouse does like if the Xinerama setup was working fine.
If I switch to a console (ie Crtl+Alt+F1), the IIYAMA screens shutdown (no signal detected), and the laptop screen gets the console display. Turning back to XFCE using CTRL+ALT+F9 works as the opposite - laptop screen turns black, and my IIYAMA turns back to XFCE.
At boot, the whole Vinit goes on the laptop screen, and it switches to the IIYAMA when SDDM is ready. Same thing when I shutdown from XFCE.
I did turn off Xinerama option for now, as it "looks to" work but it's unusable : the desktop looks to be streched correctly (no more desktop icons, my open windows are here but on the left, the mouse can be moved to the laptop screen BUT it's not appearing) but the laptop screen is still black so I can't see what I'm doing.
Using ARandR, with nVidia setup I have the following outputs : HDMI-0 (the screen I use), DP-0 and DP-1 (internal displayport), both disconnected. Booting with Intel driver (so I have the laptop screen but not the HDMI output), I only have eDP-1 output.
xrandr only list one provider, the NVIDIA or the Intel one.
Here are my relevant xorg.conf files :
(screen.conf)
Code:
Section "Screen"
Identifier "Screen0"
Device "nvidia" #Put intel to boot to the laptop screen (eDP-1)
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "intel"
Monitor "Monitor0" #Same result:Monitor1
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
(monitor.conf)
Code:
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
Option "DPMS"
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Unknown"
ModelName "Unknown"
Option "DPMS"
#Option "LeftOf" "Monitor0"
EndSection
(intel.conf)
Code:
Section "Device"
Identifier "intel"
Driver "modesetting"
BusID "PCI:0:2:0"
#Option "PrimaryGPU" "yes" #Ignored
EndSection
(nvidia.conf)
Code:
Section "Device"
Identifier "nvidia" #Device0
Driver "nvidia"
VendorName "NVIDIA Corporation"
BusID "PCI:1:0:0"
EndSection
(layout.conf - file based on a generated one by nvidia-xconfig)
Code:
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
Screen 1 "Screen1" LeftOf "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0" #1=External screen stretched to the laptop screen correctly, but unusable as the laptop screen is black
EndSection
It also doesn't work in NomadBSD, BUT the setup works out of the box if I run a Live Debian (also running XFCE). I've been testing NVIDIA secondary graphics, lots of this but nothing did the trick.
Do you think I'll be able to make this to work ? Thanks for any clue !!