Manjaro dual monitor setup not working. Detected but not showing anything up on second display.

So I have a Lenovo Legion Y530, there is two GPU in the computer.

The intel GPU and the NVIDIA card 1060 mobile.

First i had bumblebee and i could only see one monitor connected and then i unistalled and used only video-linux. I was able to see my second display connected but getting no signal.

Herer are the images from my Manjaro settings manager, xrandr, arandr.

When I try to apply the arandr I just get logged out and when I log in everything is the same.

I dont know what more to do, i have tried to only using the nvidia 390xx and than the second monitor started working but the laptopmonitor stopped working instead.

Have you guys had the same issues?

MY XRANDR
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 194mm
   1920x1080     60.03*+  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-1 disconnected (normal left inverted right x axis y axis)
HDMI-1-1 connected (normal left inverted right x axis y axis)
   1920x1080     60.00 +  50.00    59.94  
   1920x1080i    60.00    50.00    59.94  
   1680x1050     59.88  
   1280x1024     75.02    60.02  
   1440x900      74.98    59.90  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    72.81    66.67    60.00    59.94  
   720x400       70.08  
DP-1-2 disconnected (normal left inverted right x axis y axis)
  1680x1050 (0x4d) 119.000MHz +HSync -VSync
        h: width  1680 start 1728 end 1760 total 1840 skew    0 clock  64.67KHz
        v: height 1050 start 1053 end 1059 total 1080           clock  59.88Hz
  1280x1024 (0x4f) 108.000MHz +HSync +VSync
        h: width  1280 start 1328 end 1440 total 1688 skew    0 clock  63.98KHz
        v: height 1024 start 1025 end 1028 total 1066           clock  60.02Hz
  1024x768 (0x56) 65.000MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock  48.36KHz
        v: height  768 start  771 end  777 total  806           clock  60.00Hz
  800x600 (0x58) 40.000MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock  37.88KHz
        v: height  600 start  601 end  605 total  628           clock  60.32Hz
  640x480 (0x60) 25.175MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock  31.47KHz
        v: height  480 start  490 end  492 total  525           clock  59.94Hz

Maybe this helps.

How can you run xrandr --auto before login in?

It's an optimus laptop or a desktop?
Look into your options here.

For a "quick and dirty" or "sharp clean" solution, maybe temporary, depending the use cases:

  • Install video-nvidia with mhwd
  • Delete /etc/X11/xorg.conf.d/90-mhwd.conf (file name is IIRC)

Logout to check both monitors work.
If they work, login and setup Display Settings as you like.
If it's a laptop you may want to test power consumption on known scenarios (single monitor, dual monitor, etc).
You may need to adjust your DM, not sure in your case.

1 Like

I will do what you asked and check, am not at home right now. I have a laptop, Lenovo Legion Y530.

because it uses the intel gpu and if your hdmi is not connected to the intel gpu then you would have to leave the nvidia gpu powered on for hdmi to work.

the correct nvidia drivers for your gpu are video-nvidia which is the latest 430.xx drivers, but then only your hdmi works.

:point_up_2: this. i usually suggest prime or optimus-switch but see what fits your needs the best and go with it.

1 Like

So i am trying to follow the prime tutorial but i dont have the configs they ask me to remove and replace with....

Firstly, remove /etc/X11/xorg.conf.d/90-mhwd.conf and replace it with:

/etc/X11/xorg.conf.d/optimus.conf

While the BusID value above should be correct for most Optimus laptops you should check your values with lspci | grep -E "VGA|3D" .

I dont know what to do :frowning:

post these outputs

mhwd -li
ls -laR /etc/X11
lspci | grep -E "VGA|3D"

Man i dont know how but the file just appeared, i am very sorry to be wasting your time and i really appreciate your help! I am following the tutorial now and i will be right back with some feedback.
Best regards

if your unsure of anything, dont reboot or you'll end up with a black screen.

Step 3.2: Refine blacklisting

On this step i dont get the nvidia conf, what should i do than?

this is why i asked for outputs. are you currently using this laptop so you could just post the info? if you go through the tutorial and then realize you didnt install the drivers , when you do install them the files they create will screw up your setup. so post the outputs if you want help.

mhwd -li
ls -laR /etc/X11
lspci | grep -E "VGA|3D"
ls -la /etc/modprobe.d/*.conf
ls -la /etc/modules-load.d/*.conf
1 Like

[ninhow@valhalla ~]$ mhwd -li

Installed PCI configs:


              NAME               VERSION          FREEDRIVER           TYPE

      video-nvidia            2018.08.09               false            PCI
     network-r8168            2016.04.20                true            PCI
       video-linux            2018.05.04                true            PCI

Warning: No installed USB configs!

[ninhow@valhalla ~]$ ls -laR /etc/X11
/etc/X11:
total 32
drwxr-xr-x 5 root root 4096 12 mar 10.39 .
drwxr-xr-x 85 root root 4096 12 jul 21.39 ..
drwxr-xr-x 2 root root 4096 12 jul 21.39 mhwd.d
drwxr-xr-x 3 root root 4096 12 mar 10.40 xinit
drwxr-xr-x 2 root root 4096 12 jul 21.48 xorg.conf.d

/etc/X11/mhwd.d:
total 16
drwxr-xr-x 2 root root 4096 12 jul 21.39 .
drwxr-xr-x 5 root root 4096 12 mar 10.39 ..
-rw-r--r-- 1 root root 1458 12 jul 21.39 nvidia.conf
-rw-r--r-- 1 root root 0 12 jul 21.39 nvidia.conf.nvidia-xconfig-original

/etc/X11/xinit:
total 28
drwxr-xr-x 3 root root 4096 12 mar 10.40 .
drwxr-xr-x 5 root root 4096 12 mar 10.39 ..
-rw-r--r-- 1 root root 739 4 mar 19.31 xinitrc
drwxr-xr-x 2 root root 4096 12 mar 10.38 xinitrc.d
-rw-r--r-- 1 root root 45 4 mar 19.31 xserverrc

/etc/X11/xinit/xinitrc.d:
total 20
drwxr-xr-x 2 root root 4096 12 mar 10.38 .
drwxr-xr-x 3 root root 4096 12 mar 10.40 ..
-rwxr-xr-x 1 root root 318 9 nov 2018 40-libcanberra-gtk-module.sh
-rwxr-xr-x 1 root root 203 12 mar 08.36 50-systemd-user.sh

/etc/X11/xorg.conf.d:
total 20
drwxr-xr-x 2 root root 4096 12 jul 21.48 .
drwxr-xr-x 5 root root 4096 12 mar 10.39 ..
-rw-r--r-- 1 root root 266 12 jul 20.55 00-keyboard.conf
-rw-r--r-- 1 root root 175 12 jul 21.50 optimus.conf

[ninhow@valhalla ~]$ lspci | grep -E "VGA|3D"
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile)
01:00.0 VGA compatible controller: NVIDIA Corporation GP106M [GeForce GTX 1060 Mobile] (rev a1)

[ninhow@valhalla ~]$ ls -la /etc/modprobe.d/*.conf
-rw-r--r-- 1 root root 25 12 jul 21.18 /etc/modprobe.d/blacklist-ideapad.conf
-rw-r--r-- 1 root root 101 7 feb 12.48 /etc/modprobe.d/nvdimm-security.conf
-rw-r--r-- 1 root root 54 12 jul 21.57 /etc/modprobe.d/nvidia.conf
-rw-r--r-- 1 root root 29 12 jul 21.58 /etc/modprobe.d/nvidia-drm.conf
-rw-r--r-- 1 root root 16 12 jul 20.55 /etc/modprobe.d/r8169_blacklist.conf

[ninhow@valhalla ~]$ ls -la /etc/modules-load.d/*.conf
-rw-r--r-- 1 root root 76 12 jul 21.39 /etc/modules-load.d/mhwd-gpu.conf
-rw-r--r-- 1 root root 34 30 sep 2018 /etc/modules-load.d/modules.conf

Here are all the commands, i am at step 5.

I did the step with SDDM, i just dont know how to make it a executable. Also the file Xsetup was already there so i just changed the code inside of it.

run these first:

sudo mhwd -r pci video-linux
sudo rm -rf /etc/modules-load.d/mhwd-gpu.conf

sudo rm -rf /etc/modprobe.d/nvidia-drm.conf

only follow the directions matching your DM (lightdm,sddm,gdm)

sudo chmod a+rx  /usr/share/sddm/scripts/Xsetup

I did that, but the nvidia-drm.conf is the one i created myself following the tutorial. Why do i need to remove that?

you dont, sorry i meant nvidia.conf

sudo rm -rf /etc/modprobe.d/nvidia.conf

Alright, i will create that file again. Also i followed the SDDM that is for KDE which is my version.

1 Like