Multi Monitor setup dual gpu

Hello !

Im having hard time for a triple monitor setup
By default with manjaro architect the bumblebee was installed.

I removed bumblebee as I need to have quicly 3 monitor working on sector and the bumblebee readme told me that i would not be able to use triple monitor and move windows between desktop.
Then I installed video-nvidia-440xx then and rebooted but it seems that im still using the intel card.

Here is some information that I saw were asked on the similar posts, maybe it can help me sorting this out faster.

CPU: Intel i7-9750H (12) @ 4.500GHz
GPU: Intel UHD Graphics 630
GPU: NVIDIA GeForce GTX 1660 Ti Mobile

 ➜ inxi -SMGxxxz
mhwd -li
for p in /sys/class/drm/*/status; do con=${p%/status}; echo -n "${con#*/card?-}: "; cat $p; done
xrandr | awk ' /connected/ { print $1, $2 }'
xrandr
ls -l /etc/X11/xorg.conf.d/*.conf     
cat /etc/X11/xorg.conf.d/*.conf     
System:    Host: hello-p65 Kernel: 5.2.21-1-MANJARO x86_64 bits: 64 compiler: gcc v: 9.2.0 Desktop: i3 4.17.1 
           info: tint2, i3bar dm: LightDM 1.30.0 Distro: Manjaro Linux 
Machine:   Type: Laptop System: Micro-Star product: P65 Creator 9SD v: REV:1.0 serial: <filter> Chassis: type: 10 
           serial: <filter> 
           Mobo: Micro-Star model: MS-16Q4 v: REV:1.0 serial: <filter> UEFI: American Megatrends v: E16Q4IMS.312 
           date: 05/16/2019 
Graphics:  Device-1: Intel UHD Graphics 630 vendor: Micro-Star MSI driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:3e9b 
           Device-2: NVIDIA TU116M [GeForce GTX 1660 Ti Mobile] vendor: Micro-Star MSI driver: nvidia v: 440.26 
           bus ID: 01:00.0 chip ID: 10de:2191 
           Display: x11 server: X.Org 1.20.5 driver: modesetting alternate: fbdev,intel,vesa compositor: compton 
           resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel UHD Graphics 630 (Coffeelake 3x8 GT2) v: 4.5 Mesa 19.2.2 compat-v: 3.0 
           direct render: Yes 
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
    video-nvidia-440xx            2019.10.25               false            PCI


Warning: No installed USB configs!
DP-1: disconnected
eDP-1: connected
HDMI-A-1: disconnected
eDP-1 connected
DP-1 disconnected
HDMI-1 disconnected
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
   1920x1080     60.01*+  60.01    59.97    59.96    59.93  
   1680x1050     59.95    59.88  
   1400x1050     59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024     60.02  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1280x800      59.99    59.97    59.81    59.91  
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   640x400       59.88    59.98  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
.rw-r--r-- root root 106 B Mon Nov  4 22:00:51 2019   00-keyboard.conf
.rw-r--r-- root root 131 B Mon Nov  4 21:50:24 2019   30-touchpad.conf
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us"
EndSection
Section "InputClass"
    Identifier "touchpad"
    Driver "libinput"
    MatchIsTouchpad "on"
    Option "Tapping" "on"
EndSection
 ➜ xrandr --setprovideroutputsource modesetting nvidia
Could not find provider with name nvidia
 ➜ pacman -Qe | grep nvidia          
lib32-nvidia-440xx-utils 440.26-1
linux419-nvidia-440xx 440.26-1
linux52-nvidia-440xx 440.26-1
nvidia-440xx-utils 440.26-1

I suggest to follow this


and also make use of this after that

1 Like

Optimus-switch or optimus-manager.

I couldn't get any second screen output till I didn't switched to modesetting driver (intel free driver) which was possible with optimus manager so currently I have free modesetting intel/closed nvidia driver setup and that works for dual monitors.

From some reason, closed source intel drivers were not able to output to HDMI and Manjaro default hybrid setting are both non-free or both free drivers, nothing in between, so those were lame options.

As to the drivers, it doesn't matter if you have nvidia drivers if the configs aren't set properly. It's as if you didn't have them. That is why you need to choose some of the hybrid GPU solutions and currently optimus-switch or optimus-manager are the best ones. Not sure if optimus-switch is allowing you to choose modesetting thou. I use this setup:

You missed some info about the connectors. Which monitor connects to which GPU output and what types of connectors (both ends, ... any adapters?...).
I suggest you don't use nvidia 440, as it's still experimental (or... young...).

Also what branch? (stable, testing etc)

So I got optimus-manager which allow me to switch between intel and nvidia by logging me me out (Any way to do it without logging out ?). But if i disconnect one of my screen and reconnect it, it disapear sometime and I have to do a full reboot.

Which monitor connects to which GPU output and what types of connectors (both ends, ... any adapters?.
I dont find how to show this. And yes adaptaters vga to hdmi are used.

Thank a lot

With words...
Example:

iGPU outputs: VGA, HDMI, DVI etc
Nvidia outputs: VGA, HDMI, DVI, etc

I have no experience with optimus-manager.
In a normal setup (no optimus- utility), you may use video-nvidia (as suggested), which will use modesetting driver for Intel GPU, creating a Prime setup. In this case, you may attach monitors to any (even two) GPU output, but you have to disable (delete/remove) mhwd.conf file from /etc/X11/xorg.conf.d/ because it breaks this setup.
Usually, you need some script (Xsetup) to fix Display Manager screen, which you can do after confirming all work fine.

With optimus-manager or other, you have to seek advice from the devs, or other experienced users for multi-monitor layout.

First, no, you can't omitt re-logging. The perk of optimus-manager is that it only needs to reload and because of that it needs to use nouveau or bbswitch which can cause some issues. Optimus-swich needs to REBOOT and because of that it's simpler and less prone for issues but then again, reboot is needed. The thing is, there is no smooth way to switch and disable GPUs on Linux because the hybrid GPUs were from the begining designed for Windows.

As to the monitors plugging in and off - this is tricky and flawed process on Linux. In theory it should work in both ways and in many instances it does, but sometimes certain processes may crash and then certain functionalities will cease to function.

For example, in Plasma 5.16 plugging in and off worked well. In Plasma 5.17 there is a regression so pluging in is detected but not pluging out. The bug is submitted but they are not in a hurry to fix it, probably because they are not sure what is the cause.

The other reason for your behaviour and instability may be caused by some errors in the background. If you fix them, then pluging in/off should become more stable.

So run:

journalctl -b -p3

and google the errors, see if you can fix any of them.

When it comes to the optimus-manager and multi-monitor setup - this introduces additional variable that was not meant to be. My experience is, with Intel on modesetting, it works reliably. With nividia - bugs, bugs, bugs, bugs, bugs, bugs, bugs, bugs.... The only thing better with nvidia is lack of screen tearing on the secondary monitor. Nvidia with dual monitors is so bugged that it's hard to describe because so many little, weird things happen. Usually it's best to fix it manually with xrandr from terminal or have a script ready to launch.

If you keep multi-monitor setup, things are more or less stable. But if you keep pluging in and off, things won't be so smooth experience, especially on nvidia.

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

Forum kindly sponsored by