You are not logged in.

#1 2020-10-17 09:35:09

thor314
Member
Registered: 2020-10-05
Posts: 6

Second monitor setup issues

I don't understand from https://wiki.archlinux.org/index.php/Multihead how I should be configuring xrandr to connect my laptop to my secondary monitor. I think I may need some additional driver support, but am unsure what to look for. What I've tried:

Before connecting over HDMI, the monitor displays a "No HDMI connnected" message.

After connecting the HDMI cable, the monitor displays a "No HDMI signal" message.

The https://wiki.archlinux.org/index.php/Xr … leshooting page suggests I do the following; this is from my terminal:

$ xrandr -q 
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
eDP1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 340mm x 190mm
   1920x1080    144.01*+  72.01  
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
$ xrandr --output eDP1 --auto --output eDP1 --auto --above VIRTUAL1

$  xrandr -q # NO CHANGE; SHOULD THERE BE?
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
eDP1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 340mm x 190mm
   1920x1080    144.01*+  72.01  
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
$ xrandr --listmonitors
Monitors: 1
 0: +*eDP1 1920/340x1080/190+0+0  eDP1

From this it appears that the HDMI connection is not being detected.

Last edited by thor314 (2020-10-17 10:41:48)


among other things; cryptographer, chess player, arch linux user

Offline

#2 2020-10-17 10:29:55

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,410

Re: Second monitor setup issues

It's not at all present here, is this an Optimus system?

What's your output for

lspci -k | grep -EA3 'VGA|3D'

how did you configure said optimus system, if that is the case?

And please wrap outputs in  tags

[code] code [/code]

Last edited by V1del (2020-10-17 10:31:08)

Offline

#3 2020-10-17 10:41:26

thor314
Member
Registered: 2020-10-05
Posts: 6

Re: Second monitor setup issues

I don't believe it's an Optimus system, though I may be misunderstanding. I have a GeForce RTX 2060 graphics card, which neither this https://www.techpowerup.com/gpu-specs/g … bile.c3348 nor this https://en.wikipedia.org/wiki/Nvidia_Optimus link states that that this is an optimus graphics card.

Is it preferred I format links differently than above?

Output:

lspci -k | grep -EA3 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics (rev 05)
	DeviceName: VGA compatible controller
	Subsystem: Intel Corporation Device 2212
	Kernel driver in use: i915
	Kernel modules: i915
--
01:00.0 VGA compatible controller: NVIDIA Corporation TU106M [GeForce RTX 2060 Mobile] (rev a1)
	Subsystem: CLEVO/KAPOK Computer Device 50d3
	Kernel driver in use: nvidia
	Kernel modules: nouveau, nvidia_drm, nvidia

Last edited by thor314 (2020-10-17 11:16:13)


among other things; cryptographer, chess player, arch linux user

Offline

#4 2020-10-17 13:10:05

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,410

Re: Second monitor setup issues

This is an Optimus system, and the dedicated card has the hdmi output wired and the integrated the internal display, right now it seems you are exclusively running on the integrated card.

See https://wiki.archlinux.org/index.php/NVIDIA_Optimus for ways of configuring this. If you just want to check whether this works in any shape follow the Nvidia Graphics only section.

You might also have an option in your UEFI to disable the integrated card which should internally readjust things so that the above wouldn't be needed.

Last edited by V1del (2020-10-17 14:14:08)

Offline

#5 2020-10-21 15:48:32

thor314
Member
Registered: 2020-10-05
Posts: 6

Re: Second monitor setup issues

Alright. I tried setting screen0 and screen1 to nvidia only in /etc/X11/xorg.conf, but my laptop monitor won't turn on if I do that so I reset screen0 to intel. I'm curious if that means that I'm missing some nvidia-related drivers. But I set screen1 in /etc/X11/xorg.conf to nvidia, and now I can get a mouse on the secondary monitor, but not any windows. The screen is all black, with an underscore at the top left, or "Starting version 246.6-1-arch" if I'm on a fresh reboot.

I followed the instructions at the page you linked, which links to https://wiki.archlinux.org/index.php/PR … er_offload.
after installing nvidia-prime, I logged out and logged back in. Nothing changed. So I copy pasted the manual configuration from the wiki:

  Identifier "iGPU"
  Driver "modesetting"
	#Identifier     "Card1"
   # Driver         "nvidia"
...
Section "Screen"
  Identifier "iGPU"
  Device "iGPU"
...
EndSection

Then my monitor stopped working again, so I reset it.

I feel like I'm close, but I'm not sure what's going wrong.

And of course, I retried all the xrandr stuff from above.

Last edited by thor314 (2020-10-21 15:50:40)


among other things; cryptographer, chess player, arch linux user

Offline

#6 2020-10-21 21:40:42

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: Second monitor setup issues

Please post the entire config file, not a summary.
Also, redirecting the output providers is going to be very important, but ~/.xinitrc is not executed by all X11 session systems (in particular not most DMs), so please also elaborate on how you log in/start X11.
Lastly, please post the xorg log, https://wiki.archlinux.org/index.php/Xorg#General

Offline

#7 2020-10-22 08:49:47

thor314
Member
Registered: 2020-10-05
Posts: 6

Re: Second monitor setup issues

I believe I use xinit. These lines are in my .xinitrc:

 export XDG_SESSION_TYPE=x11
 export GDK_BACKEND=x11
 exec gnome-session

full xinitrc:  https://gist.github.com/thor314/451a885 … df0a7ffa49

xorg conf: https://gist.github.com/thor314/8012181 … af8bb58a9a

xorg.0.log: https://gist.github.com/thor314/76bf8af … d474d739b5
xorg.1.log: https://gist.github.com/thor314/a435d09 … f5eade2d75


among other things; cryptographer, chess player, arch linux user

Offline

#8 2020-10-22 08:57:47

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,410

Re: Second monitor setup issues

Remove the xorg.conf and xf86-video-intel. I'm not sure how well the official PRIME render support works with multi screens, but for the most basic support here you shouldn't need any other config. If this doesn't work (reboot after removing the config and xf86-video-intel) follow https://wiki.archlinux.org/index.php/NV … phics_only setting up that config snippet and the xrandr lines mentioned in your .xinitrc before the gnome-session.

Last edited by V1del (2020-10-22 09:00:56)

Offline

#9 2020-11-03 10:36:51

thor314
Member
Registered: 2020-10-05
Posts: 6

Re: Second monitor setup issues

I moved xorg.conf into a xorg.conf.bak file and removed xf86-video-intel, rebooted to blackscreen.

Then updated
/etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf to match https://wiki.archlinux.org/index.php/NV … phics_only.
Blackscreen.

I use GDM, and modified
/usr/share/gdm/greeter/autostart/optimus.desktop, /etc/xdg/autostart/optimus.desktop
to the recommended setup.
Blackscreen.

I suspect there's a problem with NVIDIA on my system.
Feeling a bit SOL.

A. Is the next shot to contact my hardware manufacturer?
B. If I find a solution, should I recommend an update to the wiki?
C. I'm not sure I'm making correct use of my logs. What were you looking for in the log files I posted above?

Last edited by thor314 (2020-11-03 10:42:16)


among other things; cryptographer, chess player, arch linux user

Offline

#10 2020-11-03 13:34:23

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: Second monitor setup issues

removed xf86-video-intel, rebooted to blackscreen.

grep -r intel /{etc,usr/share}/X11/xorg.conf.d

If the only output is on the intel chip and you didn't set the provider output source, then … yeah.

I use GDM

https://wiki.archlinux.org/index.php/GD … rg_backend

Please post your udpated xorg log.
Edit: for GDM the xorg loog is supposed to be stored in the journal, https://wiki.archlinux.org/index.php/Xorg#General

Last edited by seth (2020-11-03 13:35:43)

Offline

Board footer

Powered by FluxBB