Using two GPUs with one monitor each, one is always black

Bug #1878421 reported by frank
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mutter
Fix Released
Unknown
linux (Ubuntu)
Confirmed
Undecided
Unassigned
mutter (Ubuntu)
New
Undecided
Unassigned
xorg-server (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi,

i try to use external monitor on my dell G5 2019 (5590). works on ubuntu 18.4 (after reboot) using prime-select nvidia.

did this on 20.4 (prime-select + reboot because logoff/login again still don't work) and it hang on boot while showing ubuntu bootscreen with animation (not stopped, but also response to esc-key to show terminal-output) on the monitor (need to switch off). booted again where monitor is configured to other input, boot works, i see it in preferences dialog as second monitor, but if i configure input on monitor i have no signal..

anything i can try?

regards Frank

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: xorg 1:7.7+19ubuntu14
ProcVersionSignature: Ubuntu 5.4.0-29.33-generic 5.4.30
Uname: Linux 5.4.0-29-generic x86_64
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
BootLog: Error: [Errno 13] Keine Berechtigung: '/var/log/boot.log'
CasperMD5CheckResult: skip
CompositorRunning: None
CurrentDesktop: GNOME-Flashback:GNOME
Date: Wed May 13 15:21:08 2020
DistUpgraded: Fresh install
DistroCodename: focal
DistroVariant: ubuntu
GraphicsCard:
 Intel Corporation UHD Graphics 630 (Mobile) [8086:3e9b] (prog-if 00 [VGA controller])
   Subsystem: Dell UHD Graphics 630 (Mobile) [1028:08ea]
 NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / Max-Q] [10de:1f91] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: Dell TU117M [GeForce GTX 1650 Mobile / Max-Q] [1028:08ea]
InstallationDate: Installed on 2020-04-27 (16 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
Lsusb:
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 003: ID 27c6:530c Shenzhen Goodix Technology Co.,Ltd. Fingerprint Reader
 Bus 001 Device 002: ID 0c45:671f Microdia Integrated_Webcam_HD
 Bus 001 Device 004: ID 8087:0aaa Intel Corp.
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: Dell Inc. G5 5590
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-29-generic root=UUID=7c9113b7-ca65-4c46-9435-f5d2b73bab72 ro quiet splash vt.handoff=7
SourcePackage: xorg
Symptom: display
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 02/07/2020
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.12.0
dmi.board.name: 0KW84T
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 10
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr1.12.0:bd02/07/2020:svnDellInc.:pnG55590:pvr:rvnDellInc.:rn0KW84T:rvrA00:cvnDellInc.:ct10:cvr:
dmi.product.family: GSeries
dmi.product.name: G5 5590
dmi.product.sku: 08EA
dmi.sys.vendor: Dell Inc.
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.101-2
version.libgl1-mesa-dri: libgl1-mesa-dri 20.0.4-2ubuntu1
version.libgl1-mesa-glx: libgl1-mesa-glx N/A
version.xserver-xorg-core: xserver-xorg-core 2:1.20.8-2ubuntu2
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20200226-1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.16-1

Revision history for this message
frank (frankwu) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: (If external monitor connected) Hang on boot while showing ubuntu boot screen with animation

This sounds like bug 1872159...

Please try editing /etc/default/grub and remove the word "splash". Then run:

  sudo update-grub

and reboot. Now can you boot with the monitor connected?

summary: - 20.4 - hybrid-graphics
+ (If external monitor connected) Hang on boot while showing ubuntu boot
+ screen with animation
affects: xorg (Ubuntu) → plymouth (Ubuntu)
tags: added: multimonitor
tags: added: mulimonitor
removed: multimonitor
Changed in plymouth (Ubuntu):
status: New → Incomplete
Revision history for this message
frank (frankwu) wrote :

hi, hang seems to be fixed with nosplash-option, but i still cannot use external monitor in Xorg...it looks now like its basicly working (see cursor), but i cannot see any windows...they are opened on external screen (i use internal screen as primary right to my external, so this is also wrong) and they are not shown...i see only cursor...no background-image, no windows (dragging them to external shows cursor, but not the window).

also noticed bug in login-screen (my external monitor is 4k and fullhd internal)...if my workstation is locked, i see upper left quarter of my background-image on internal display and no login-window...so it's hard to login

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

OK. Please keep discussion about the startup problem in bug 1872159.

summary: - (If external monitor connected) Hang on boot while showing ubuntu boot
- screen with animation
+ I can see a cursor but no windows on the external monitor
affects: plymouth (Ubuntu) → xorg-server (Ubuntu)
Changed in xorg-server (Ubuntu):
status: Incomplete → New
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: I can see a cursor but no windows on the external monitor

Sounds similar to https://gitlab.gnome.org/GNOME/mutter/issues/182 but when I logged that I said it worked in Xorg.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

This also looks relevant:

[ 13.791] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support

summary: - I can see a cursor but no windows on the external monitor
+ Using two GPUs with one monitor each, one is always black
tags: added: multigpu
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
frank (frankwu) wrote :

dmesg looks clean so far, intel card (internal display) is fb0 and nvidia-card for hdmi (external 4k monitor hp 27f)

$ dmesg | grep frame
[ 0.882504] efifb: framebuffer at 0x80000000, using 8100k, total 8100k
[ 0.882611] Console: switching to colour frame buffer device 240x67
[ 0.887919] fb0: EFI VGA frame buffer device
[ 1.392526] r8169 0000:03:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[ 3.605988] Console: switching to colour frame buffer device 240x67
[ 3.633864] i915 0000:00:02.0: fb0: i915drmfb frame buffer device
[ 3.718640] nouveau 0000:01:00.0: fb1: nouveaudrmfb frame buffer device

see full dmesg in attachment

strange is that i have no X.org.log in /var/log, anything i can try to workaround/test for affected Package?

noticed, that on login-screen the background of external monitor is purple and switches to black (default color without background-image)

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

If you now have "2nd gpu enabled" then please run:

  journalctl -b0 > journal.txt

and attach the resulting text file.

Changed in mutter:
status: Unknown → New
Revision history for this message
frank (frankwu) wrote :
Revision history for this message
frank (frankwu) wrote :

after my laptop-screen goes off (automatic locking of workstation) and i retouched it to go on again, i see some flickering on the external monitor with background-image, but it looks like there was heavy load so that login-screen wasn't displayed (see also background on internal screen)...have now switched off external monitor to get login-window again...maybe this helps to get the issue nailed down

Revision history for this message
frank (frankwu) wrote :

from journal log this looks wrong:

Mai 14 12:12:04 frank-G5-U20 /usr/lib/gdm3/gdm-x-session[1526]: xf86EnableIOPort
s: failed to set IOPL for I/O (Operation not permitted)
Mai 14 12:12:04 frank-G5-U20 /usr/lib/gdm3/gdm-x-session[1526]: (II) modeset(0):
 using drv /dev/dri/card0
Mai 14 12:12:04 frank-G5-U20 /usr/lib/gdm3/gdm-x-session[1526]: (WW) Falling bac
k to old probe method for fbdev
Mai 14 12:12:04 frank-G5-U20 /usr/lib/gdm3/gdm-x-session[1526]: (II) Loading sub
 module "fbdevhw"
Mai 14 12:12:04 frank-G5-U20 /usr/lib/gdm3/gdm-x-session[1526]: (II) LoadModule:
 "fbdevhw"
Mai 14 12:12:04 frank-G5-U20 /usr/lib/gdm3/gdm-x-session[1526]: (II) Loading /usr/lib/xorg/modules/libfbdevhw.so

...
Mai 14 12:12:04 frank-G5-U20 /usr/lib/gdm3/gdm-x-session[1526]: (EE) open /dev/f
b0: Permission denied
Mai 14 12:12:04 frank-G5-U20 /usr/lib/gdm3/gdm-x-session[1526]: (II) modeset(G0)
: using drv /dev/dri/card1
Mai 14 12:12:04 frank-G5-U20 /usr/lib/gdm3/gdm-x-session[1526]: (WW) VGA arbiter
: cannot open kernel arbiter, no multi-card support
...
Mai 14 12:12:05 frank-G5-U20 /usr/lib/gdm3/gdm-x-session[1526]: (EE) modeset(G0): glamor initialization failed

but here it looks like monitor is correctly found (like in gnome-preferences)

Mai 14 12:12:05 frank-G5-U20 /usr/lib/gdm3/gdm-x-session[1526]: (II) modeset(G0)
: EDID for output HDMI-1-2
Mai 14 12:12:05 frank-G5-U20 /usr/lib/gdm3/gdm-x-session[1526]: (II) modeset(G0)
: Manufacturer: HPN Model: 363a Serial#: 16843009
Mai 14 12:12:05 frank-G5-U20 /usr/lib/gdm3/gdm-x-session[1526]: (II) modeset(G0)
: Year: 2019 Week: 41
Mai 14 12:12:05 frank-G5-U20 /usr/lib/gdm3/gdm-x-session[1526]: (II) modeset(G0)
: EDID Version: 1.3
Mai 14 12:12:05 frank-G5-U20 /usr/lib/gdm3/gdm-x-session[1526]: (II) modeset(G0)
: Digital Display Input

Revision history for this message
frank (frankwu) wrote :

anything new here? i see mutter gets an update to 3.36.2, but bug is still present.

anything i can do as workaround?

Revision history for this message
frank (frankwu) wrote :

https://gitlab.gnome.org/GNOME/mutter/-/issues/1351

but currently it looks related to nvidia/nouveau driver

Revision history for this message
frank (frankwu) wrote :

is maybe this also handled by gnome-flashback directly?

Revision history for this message
frank (frankwu) wrote :

mhm, ubuntu-session is same...i see cursor but no background/window while dragging, this time it looks stable, after loggin out (from ubuntu-session), i see login-form on laptop-screen and purple background on external monitor. after logging into flashback it's same as in ubuntu-session with black screen, cursor visible but no windows

Revision history for this message
frank (frankwu) wrote :

problem seems to appear only with nouveau driver, i installed the propritary (like it is on 18.4) and it works now as. seems anything in nouveau driver is missing for multi-monitor-support

Changed in mutter:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.