You are not logged in.

#1 2020-03-10 08:19:50

gmu
Member
Registered: 2020-03-10
Posts: 3

Trouble with second monitor

Hello,
I have recently installed Arch-Linux, and I have trouble with my laptop and a second screen: when I plug my second screen HDMI (tried to switch the monitor, still not working) in my laptop, the screen is not detected, nor the screen detect my laptop.

Its is now more than 2 weeks that I am looking at all forums to search for answers, in vain.
I have tested a lot of things, could not even remember everything.

# My hardware:
Laptop: Lenovo Ideapad L340-15IRH
Processor GPU: Intel UHD Graphics 630
GPU: GeForce GTX 1050 3 GB Max-Q

# Commands result when the monitor is plugged:

lspci | grep HDMI
lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile)
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 3 GB Max-Q] (rev a1)
xrandx
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1920x1080     60.00*+
pacman -Q | grep nvidia
nvidia 440.64-1
nvidia-settings 440.59-1
nvidia-utils 440.64-2

I am certainly not a pro, and I do not know where to look to solve my problem.
Help would be appreciated,

Many thanks

Offline

#2 2020-03-10 08:23:57

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

Offline

#3 2020-03-10 14:21:17

gmu
Member
Registered: 2020-03-10
Posts: 3

Re: Trouble with second monitor

Yes, that is also my feeling..
But sadly, I have tried those 2 links you provided, but it did not solve my problem.. Actually it made it worst, had to boot on USB stick to cancel modifications on config files.

Is all of this suppose to work ONLY if the computer detects an output? Which is, I think, the case in my situation:

xrandr --listproviders
Providers: number : 1
Provider 0: id: 0x45 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 4 outputs: 2 associated providers: 0 name:Intel

I have also deleted all files in /etc/X11/xorg.cong.d/ according to the troubleshooting of your link, but the problem remains.

Offline

#4 2020-03-10 15:23:28

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

Re: Trouble with second monitor

This only shows the intel chip, the nvidia one is probably powered down?

What *exactly* did you "try" and what's your present setup (xorg log & general optimus approach - compare https://wiki.archlinux.org/index.php/NVIDIA_Optimus )?

Offline

#5 2020-03-11 07:25:00

gmu
Member
Registered: 2020-03-10
Posts: 3

Re: Trouble with second monitor

Hello again,
Yes right, it is the intel one.. only. I think this could be the core of my problem, but I can not be sure, it is only a feeling.

I did install Nouveau, Bumblebee, changed some config files according to the links you provided.

Here are additionnal informations about my state, hopefully the answer is in there, but i can not see it:

glxinfo | grep "OpenGL renderer"
OpenGL renderer string: Mesa DRI Intel(R) UHD Graphics 630 (Coffeelake 3x8 GT2) 
lspci -k | grep -A 2 -E "(VGA|3D)"
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile)
	Subsystem: Lenovo UHD Graphics 630 (Mobile)
	Kernel driver in use: i915
--
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 3 GB Max-Q] (rev a1)
	Subsystem: Lenovo GP107M [GeForce GTX 1050 3 GB Max-Q]
	Kernel driver in use: nvidia
cat /etc/X11/xorg.conf.d/10-gpu.conf 
Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nouveau"
    Inactive "intel"
EndSection

Section "Device"
    Identifier  "nouveu"
    Driver      "nouveau"
    BusID       "PCI:01:00.0"
EndSection

Section "Screen"
    Identifier "nouveau"
    Device "nouveau"
EndSection

Section "Device"
    Identifier  "intel"
    Driver      "intel"
    BusID       "PCI:00:02.0"
EndSection
cat 20-intel.conf 
Section "Device"
    Identifier "intelgpu0"
    Driver "intel"
EndSection
cat 10-optimus-manager.conf 
Section "Device"
	Identifier "intel"
	Driver "modesetting"
	BusID "PCI:0:2:0"
	Option "DRI" "3"
EndSection

This resulted on black screen on reboot D:

Thank you for your time

Last edited by gmu (2020-03-11 07:28:23)

Offline

#6 2020-03-11 07:36:52

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

Re: Trouble with second monitor

You configured X11 to use nouveau, but the GPU is driven by the nvidia kernel module. You got to pick nvidia XOR nouvau. They're fundamentally incompatible. (The wiki refers to http://us.download.nvidia.com/XFree86/L … ndr14.html )

You also configured the intel X11 driver (in the xorg.conf while the 10-optimus-manager.conf selects the modesetting driver), so make sure xf86-vide-intel is installed and in any event pick one of the two.

The wiki articles are to be read and understood - not a copy&paste mine.

Offline

Board footer

Powered by FluxBB