No display on Ubuntu 21.04 with two display card

Hi,

I understand that could be answered in other topic but I tried all other topic didn’t resolve my problem.

I do want to run my system on the NVIDIA card and use my Radeon card on a VM.

My system seems to boot on Radeon card, switch it in VFIO as I need for my VM so all boot display disappear but not switch to the NVIDIA card.

IOMMU Group 55 4a:00.0 VGA compatible controller [0300]: NVIDIA Corporation G72 [GeForce 7350 LE] [10de:01d0] (rev a1)

uname -a:
Linux marc-Ryzen 5.11.0-18-generic #19-Ubuntu SMP Fri May 7 14:22:03 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=21.04
DISTRIB_CODENAME=hirsute
DISTRIB_DESCRIPTION=“Ubuntu 21.04”

grep -r nvidia /etc/modprobe.d/* /lib/modprobe.d/*
/etc/modprobe.d/blacklist-framebuffer.conf:#blacklist nvidiafb
/lib/modprobe.d/nvidia-kms.conf:# This file was generated by nvidia-prime
/lib/modprobe.d/nvidia-kms.conf:options nvidia-drm modeset=1

nvidia-smi
NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

prime-select query
nvidia

xrandr --verbose
Can’t open display

dmesg | grep secureboot
[ 0.000000] secureboot: Secure boot disabled
[ 0.000000] secureboot: Secure boot disabled

sudo lshw -C display
*-display
description: VGA compatible controller
product: Lexa XT [Radeon PRO WX 3100]
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0
bus info: pci@0000:21:00.0
version: 00
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
configuration: driver=vfio-pci latency=0
resources: irq:255 memory:a0000000-afffffff memory:b0000000-b01fffff ioport:6000(size=256) memory:b1e00000-b1e3ffff memory:b1e40000-b1e5ffff
*-display UNCLAIMED
description: VGA compatible controller
product: G72 [GeForce 7350 LE]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:4a:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller cap_list
configuration: latency=0
resources: memory:e0000000-e0ffffff memory:c0000000-cfffffff memory:df000000-dfffffff memory:e1000000-e101ffff

ii libnvidia-cfg1-460:amd64 460.80-0ubuntu0.21.04.2 amd64 NVIDIA binary OpenGL/GLX configuration library
ii libnvidia-common-460 460.80-0ubuntu0.21.04.2 all Shared files used by the NVIDIA libraries
ii libnvidia-compute-460:amd64 460.80-0ubuntu0.21.04.2 amd64 NVIDIA libcompute package
ii libnvidia-compute-460:i386 460.80-0ubuntu0.21.04.2 i386 NVIDIA libcompute package
ii libnvidia-decode-460:amd64 460.80-0ubuntu0.21.04.2 amd64 NVIDIA Video Decoding runtime libraries
ii libnvidia-decode-460:i386 460.80-0ubuntu0.21.04.2 i386 NVIDIA Video Decoding runtime libraries
ii libnvidia-encode-460:amd64 460.80-0ubuntu0.21.04.2 amd64 NVENC Video Encoding runtime library
ii libnvidia-encode-460:i386 460.80-0ubuntu0.21.04.2 i386 NVENC Video Encoding runtime library
ii libnvidia-extra-460:amd64 460.80-0ubuntu0.21.04.2 amd64 Extra libraries for the NVIDIA driver
ii libnvidia-fbc1-460:amd64 460.80-0ubuntu0.21.04.2 amd64 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-fbc1-460:i386 460.80-0ubuntu0.21.04.2 i386 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-gl-460:amd64 460.80-0ubuntu0.21.04.2 amd64 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii libnvidia-gl-460:i386 460.80-0ubuntu0.21.04.2 i386 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii libnvidia-ifr1-460:amd64 460.80-0ubuntu0.21.04.2 amd64 NVIDIA OpenGL-based Inband Frame Readback runtime library
ii libnvidia-ifr1-460:i386 460.80-0ubuntu0.21.04.2 i386 NVIDIA OpenGL-based Inband Frame Readback runtime library
ii nvidia-compute-utils-460 460.80-0ubuntu0.21.04.2 amd64 NVIDIA compute utilities
ii nvidia-dkms-460 460.80-0ubuntu0.21.04.2 amd64 NVIDIA DKMS package
ii nvidia-driver-455 460.80-0ubuntu0.21.04.2 amd64 Transitional package for nvidia-driver-460
ii nvidia-driver-460 460.80-0ubuntu0.21.04.2 amd64 NVIDIA driver metapackage
ii nvidia-kernel-common-460 460.80-0ubuntu0.21.04.2 amd64 Shared files used with the kernel module
ii nvidia-kernel-source-460 460.80-0ubuntu0.21.04.2 amd64 NVIDIA kernel source package
ii nvidia-prime 0.8.16.1 all Tools to enable NVIDIA’s Prime
ii nvidia-settings 460.56-0ubuntu2 amd64 Tool for configuring the NVIDIA graphics driver
ii nvidia-utils-460 460.80-0ubuntu0.21.04.2 amd64 NVIDIA driver support binaries
ii screen-resolution-extra 0.18build2 all Extension for the nvidia-settings control panel
ii xserver-xorg-video-nvidia-460 460.80-0ubuntu0.21.04.2 amd64 NVIDIA binary Xorg driver

nvidia-bug-report.log.gz (535.1 KB)

cat /etc/X11/xorg.conf

nvidia-xconfig: X configuration file generated by nvidia-xconfig

nvidia-xconfig: version 460.73.01

Section “ServerLayout”
Identifier “Layout0”
Screen 0 “Screen0” 0 0
InputDevice “Keyboard0” “CoreKeyboard”
InputDevice “Mouse0” “CorePointer”
EndSection

Section “Files”
EndSection

Section “InputDevice”

# generated from default
Identifier     "Mouse0"
Driver         "mouse"
Option         "Protocol" "auto"
Option         "Device" "/dev/psaux"
Option         "Emulate3Buttons" "no"
Option         "ZAxisMapping" "4 5"

EndSection

Section “InputDevice”

# generated from default
Identifier     "Keyboard0"
Driver         "kbd"

EndSection

Section “Monitor”
Identifier “Monitor0”
VendorName “Unknown”
ModelName “Unknown”
Option “DPMS”
EndSection

Section “Device”
Identifier “Device0”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BusID “PCI:74:00:00”
EndSection

Section “Screen”
Identifier “Screen0”
Device “Device0”
Monitor “Monitor0”
DefaultDepth 24
SubSection “Display”
Depth 24
EndSubSection
EndSection

modinfo nvidia
filename: /lib/modules/5.11.0-18-generic/updates/dkms/nvidia.ko
alias: char-major-195-*
version: 460.80
supported: external
license: NVIDIA
srcversion: 9047AEDF8216F00C2473C9C
alias: pci:v000010DEdsvsdbc03sc02i00
alias: pci:v000010DEdsvsdbc03sc00i00
depends:
retpoline: Y
name: nvidia
vermagic: 5.11.0-18-generic SMP mod_unload modversions
sig_id: PKCS#7
signer: marc-Ryzen Secure Boot Module Signature key
sig_key: 41:BF:33:8F:85:91:80:BD:81:81:19:61:5C:EA:31:00:C8:15:2E:03
sig_hashalgo: sha512
signature: 95:EC:6B:55:59:F8:30:54:45:98:F5:40:EC:9A:2C:61:4F:79:ED:CC:
B9:5D:8E:54:39:F8:A5:91:21:FC:AB:6F:7E:DD:08:27:BC:72:50:00:
DB:5F:3C:28:9E:79:AB:0E:6C:1E:4B:FB:BB:AE:80:CB:EA:FA:84:D0:
66:AD:34:82:A3:F2:6E:E6:44:E8:07:B2:D1:32:5A:B0:2A:EC:7F:0B:
38:F7:73:60:19:5B:33:97:64:BC:FB:9A:4C:E3:37:8D:B8:F4:57:A9:
F7:33:14:C5:E2:82:59:A8:DE:3B:41:CC:25:E4:63:19:A8:BD:88:4A:
56:8F:F1:A7:95:3D:45:DB:B6:A1:48:B1:EF:72:7A:00:0D:9D:A1:35:
EE:BD:22:A4:DA:6B:76:87:D3:FE:C7:B2:9D:D0:D6:C8:13:6F:35:0A:
24:62:74:21:E8:9F:B5:5E:99:18:96:F0:F7:37:AD:E9:ED:A7:70:55:
9A:62:76:1B:97:1B:3E:ED:13:AB:C3:AD:29:A0:53:08:0C:67:F0:37:
A9:58:50:C0:4E:53:3A:26:FF:28:8C:36:A6:6B:81:89:B1:7C:81:81:
13:D6:44:0D:3B:5A:84:50:55:CE:93:3F:11:B4:A6:90:7C:F0:20:34:
0C:75:1B:DC:95:6C:5D:CE:0A:28:7E:30:D2:4E:BB:1F
parm: NvSwitchRegDwords:NvSwitch regkey (charp)
parm: NvSwitchBlacklist:NvSwitchBlacklist=uuid[,uuid…] (charp)
parm: nv_cap_enable_devfs:Enable (1) or disable (0) nv-caps devfs support. Default: 1 (int)
parm: NVreg_ResmanDebugLevel:int
parm: NVreg_RmLogonRC:int
parm: NVreg_ModifyDeviceFiles:int
parm: NVreg_DeviceFileUID:int
parm: NVreg_DeviceFileGID:int
parm: NVreg_DeviceFileMode:int
parm: NVreg_InitializeSystemMemoryAllocations:int
parm: NVreg_UsePageAttributeTable:int
parm: NVreg_RegisterForACPIEvents:int
parm: NVreg_EnablePCIeGen3:int
parm: NVreg_EnableMSI:int
parm: NVreg_TCEBypassMode:int
parm: NVreg_EnableStreamMemOPs:int
parm: NVreg_EnableBacklightHandler:int
parm: NVreg_RestrictProfilingToAdminUsers:int
parm: NVreg_PreserveVideoMemoryAllocations:int
parm: NVreg_EnableS0ixPowerManagement:int
parm: NVreg_S0ixPowerManagementVideoMemoryThreshold:int
parm: NVreg_DynamicPowerManagement:int
parm: NVreg_DynamicPowerManagementVideoMemoryThreshold:int
parm: NVreg_EnableUserNUMAManagement:int
parm: NVreg_MemoryPoolSize:int
parm: NVreg_KMallocHeapMaxSize:int
parm: NVreg_VMallocHeapMaxSize:int
parm: NVreg_IgnoreMMIOCheck:int
parm: NVreg_NvLinkDisable:int
parm: NVreg_EnablePCIERelaxedOrderingMode:int
parm: NVreg_RegisterPCIDriver:int
parm: NVreg_RegistryDwords:charp
parm: NVreg_RegistryDwordsPerDevice:charp
parm: NVreg_RmMsg:charp
parm: NVreg_GpuBlacklist:charp
parm: NVreg_TemporaryFilePath:charp

similar issue, my ubuntu get stuck on the boot splash screen … I had to remove the driver and switch to the open-source noveau, to be able to boot and use my system - still looking for a solution, as I need the nvidia driver!

I know it is very well documented on the web, but in case is needed - this is the procedure I use to temporary switch to the OS driver:

  • at boot press ‘esc’ to access the grub interface (press it only once, otherwise you go in the grub shell)
  • select other options, and reboot in rescue mode
  • select ‘enable networking’
  • select ‘root session’
  • from the root shell in rescue mode run apt-get --purge remove *nvidia* # note: this will remove also packages like docker-nvidia

… the system should now boot, now pray for a driver kernel upgrade that will fix the issue … hopefully, will happen soon

1 Like

Is there a better solution than removing nvidia drivers?

I don’t know if this is the case for everyone, but following this discussion: Black screen after install of nvidia driver ubuntu - #175 by remo.fischer

I tried to unplug one of my two DP monitors and I was able to boot with the kernel running the NVIDIA drivers

Mon Jun 14 03:18:06 2021
±----------------------------------------------------------------------------+
| NVIDIA-SMI 465.27 Driver Version: 465.27 CUDA Version: 11.3 |
|-------------------------------±---------------------±---------------------+

I still need to test with an HDMI cable … hope that helps as a temporary workaround.

EDIT:
It does work with HDMI

Finally received a Radeon card and it works with both card!

I think that the other card wasn’t compatible with my MSI TRX40 motherboard cause I removed the second card (GPU) and had 02 error that means that no display card working!

Thanks anyway!

lshw -C display
*-display
description: VGA compatible controller
product: Lexa XT [Radeon PRO WX 3100]
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0
bus info: pci@0000:21:00.0
version: 00
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
configuration: driver=vfio-pci latency=0
resources: irq:5 memory:a0000000-afffffff memory:b0000000-b01fffff ioport:6000(size=256) memory:b1e00000-b1e3ffff memory:c0000-dffff
*-display
description: VGA compatible controller
product: Caicos [Radeon HD 6450/7450/8450 / R5 230 OEM]
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0
bus info: pci@0000:4a:00.0
version: 00
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
configuration: driver=radeon latency=0
resources: irq:210 memory:d0000000-dfffffff memory:e1e20000-e1e3ffff ioport:c000(size=256) memory:e1e00000-e1e1ffff