Page MenuHomeSolus

Can't use Nvidia GPU
Open, HighPublic

Description

Nvidia GPU not working

Installed Solus on my new laptop. It has an Nvidia Geforce RTX 2060 and a Ryzen 7 4800H. I installed the DoFlicky Nvidia drivers, restarted, but the system is still using the integrated GPU. When I run nvidia-smi:

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 465.27       Driver Version: 465.27       CUDA Version: 11.3     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  On   | 00000000:01:00.0 Off |                  N/A |
| N/A   42C    P8    14W /  N/A |      0MiB /  5934MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

And when I run glxinfo | grep "OpenGL renderer":

OpenGL renderer string: AMD RENOIR (DRM 3.40.0, 5.11.21-179.current, LLVM 11.1.0)

How can I make it work?

Thanks!

Event Timeline

Does running sudo usysconf run -f help at all?

Does running sudo usysconf run -f help at all?

Didn't help. Ran it, rebooted and still get the same with glxinfo.

I did the following:

  • echo 'blacklist=amdgpu' | sudo tee /etc/kernel/cmdline.d/blacklist-amdgpu.conf
  • sudo clr-boot-manager update

Rebooted. Didn't work, glxinfo showing the same. Then:

  • echo 'blacklist amdgpu' | sudo tee /etc/kernel/cmdline.d/blacklist-amdgpu2.conf (removed the = and created a new .conf file)
  • sudo clr-boot-manager update

Rebooted. Still didn't work.

@Silvermyst can you post the output of linux-driver-management status and lspci -v?

@xulongwu4 Sure! Here it is:

~$ linux-driver-management status

 ╒ Hardware Platform
 ╞ Platform Vendor : Eluktronics Inc.
 ╘ Platform Model  : 

Simple GPU configuration

 ╒ Primary GPU
 ╞ Device Name   : Renoir
 ╞ Manufacturer  : Advanced Micro Devices, Inc. [AMD/ATI]
 ╞ Product ID    : 0x1636
 ╞ Vendor ID     : 0x1002
 ╞ X.Org PCI ID  : PCI:5:0:0
 ╘ Boot VGA      : yes
~$ lspci -v

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Root Complex
	Subsystem: Tongfang Hongkong Limited Renoir Root Complex
	Flags: fast devsel

00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir IOMMU
	Subsystem: Tongfang Hongkong Limited Renoir IOMMU
	Flags: bus master, fast devsel, latency 0, IRQ -2147483648
	Capabilities: <access denied>

00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
	Flags: fast devsel

00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0, IRQ 26
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
	I/O behind bridge: 0000f000-0000ffff [size=4K]
	Memory behind bridge: fb000000-fc0fffff [size=17M]
	Prefetchable memory behind bridge: 00000000b0000000-00000000c20fffff [size=289M]
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0, IRQ 27
	Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
	I/O behind bridge: 0000e000-0000efff [size=4K]
	Memory behind bridge: fc800000-fc8fffff [size=1M]
	Prefetchable memory behind bridge: [disabled]
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0, IRQ 28
	Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
	I/O behind bridge: [disabled]
	Memory behind bridge: fc700000-fc7fffff [size=1M]
	Prefetchable memory behind bridge: [disabled]
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
	Flags: fast devsel

00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0, IRQ 29
	Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
	I/O behind bridge: [disabled]
	Memory behind bridge: fc600000-fc6fffff [size=1M]
	Prefetchable memory behind bridge: [disabled]
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
	Flags: fast devsel

00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0, IRQ 30
	Bus: primary=00, secondary=05, subordinate=05, sec-latency=0
	I/O behind bridge: 0000d000-0000dfff [size=4K]
	Memory behind bridge: fc200000-fc5fffff [size=4M]
	Prefetchable memory behind bridge: 00000000d0000000-00000000e01fffff [size=258M]
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
	Subsystem: Tongfang Hongkong Limited FCH SMBus Controller
	Flags: 66MHz, medium devsel
	Kernel driver in use: piix4_smbus

00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
	Subsystem: Tongfang Hongkong Limited FCH LPC Bridge
	Flags: bus master, 66MHz, medium devsel, latency 0

00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 0
	Flags: fast devsel

00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 1
	Flags: fast devsel

00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 2
	Flags: fast devsel

00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 3
	Flags: fast devsel
	Kernel driver in use: k10temp

00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 4
	Flags: fast devsel

00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 5
	Flags: fast devsel

00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 6
	Flags: fast devsel

00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 7
	Flags: fast devsel

01:00.0 VGA compatible controller: NVIDIA Corporation TU106M [GeForce RTX 2060 Mobile] (rev a1) (prog-if 00 [VGA controller])
	Subsystem: Tongfang Hongkong Limited TU106M [GeForce RTX 2060 Mobile]
	Flags: bus master, fast devsel, latency 0, IRQ 92
	Memory at fb000000 (32-bit, non-prefetchable) [size=16M]
	Memory at b0000000 (64-bit, prefetchable) [size=256M]
	Memory at c0000000 (64-bit, prefetchable) [size=32M]
	I/O ports at f000 [size=128]
	Expansion ROM at fc000000 [virtual] [disabled] [size=512K]
	Capabilities: <access denied>
	Kernel driver in use: nvidia

01:00.1 Audio device: NVIDIA Corporation TU106 High Definition Audio Controller (rev a1)
	Subsystem: Tongfang Hongkong Limited TU106 High Definition Audio Controller
	Flags: bus master, fast devsel, latency 0, IRQ 73
	Memory at fc080000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel

01:00.2 USB controller: NVIDIA Corporation TU106 USB 3.1 Host Controller (rev a1) (prog-if 30 [XHCI])
	Subsystem: Tongfang Hongkong Limited TU106 USB 3.1 Host Controller
	Flags: fast devsel, IRQ 49
	Memory at c2000000 (64-bit, prefetchable) [size=256K]
	Memory at c2040000 (64-bit, prefetchable) [size=64K]
	Capabilities: <access denied>
	Kernel driver in use: xhci_hcd

01:00.3 Serial bus controller [0c80]: NVIDIA Corporation TU106 USB Type-C UCSI Controller (rev a1)
	Subsystem: Tongfang Hongkong Limited TU106 USB Type-C UCSI Controller
	Flags: bus master, fast devsel, latency 0, IRQ 71
	Memory at fc084000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: <access denied>
	Kernel driver in use: nvidia-gpu

02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
	Subsystem: Tongfang Hongkong Limited RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
	Flags: bus master, fast devsel, latency 0, IRQ 31
	I/O ports at e000 [size=256]
	Memory at fc804000 (64-bit, non-prefetchable) [size=4K]
	Memory at fc800000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: r8169

03:00.0 Network controller: Intel Corporation Wi-Fi 6 AX200 (rev 1a)
	DeviceName: Onboard LAN Brodcom
	Subsystem: Intel Corporation Wi-Fi 6 AX200
	Flags: bus master, fast devsel, latency 0, IRQ 24
	Memory at fc700000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: iwlwifi

04:00.0 Non-Volatile memory controller: Micron/Crucial Technology P1 NVMe PCIe SSD (rev 03) (prog-if 02 [NVM Express])
	Subsystem: Micron/Crucial Technology P1 NVMe PCIe SSD
	Flags: bus master, fast devsel, latency 0, IRQ 31, NUMA node 0
	Memory at fc600000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: nvme

05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev c6) (prog-if 00 [VGA controller])
	Subsystem: Tongfang Hongkong Limited Renoir
	Flags: bus master, fast devsel, latency 0, IRQ 59
	Memory at d0000000 (64-bit, prefetchable) [size=256M]
	Memory at e0000000 (64-bit, prefetchable) [size=2M]
	I/O ports at d000 [size=256]
	Memory at fc500000 (32-bit, non-prefetchable) [size=512K]
	Capabilities: <access denied>
	Kernel driver in use: amdgpu

05:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
	Subsystem: Tongfang Hongkong Limited Family 17h (Models 10h-1fh) Platform Security Processor
	Flags: fast devsel, IRQ 255
	Memory at fc400000 (32-bit, non-prefetchable) [disabled] [size=1M]
	Memory at fc588000 (32-bit, non-prefetchable) [disabled] [size=8K]
	Capabilities: <access denied>

05:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir USB 3.1 (prog-if 30 [XHCI])
	Subsystem: Tongfang Hongkong Limited Renoir USB 3.1
	Flags: bus master, fast devsel, latency 0, IRQ 50
	Memory at fc300000 (64-bit, non-prefetchable) [size=1M]
	Capabilities: <access denied>
	Kernel driver in use: xhci_hcd

05:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir USB 3.1 (prog-if 30 [XHCI])
	Subsystem: Tongfang Hongkong Limited Renoir USB 3.1
	Flags: bus master, fast devsel, latency 0, IRQ 59
	Memory at fc200000 (64-bit, non-prefetchable) [size=1M]
	Capabilities: <access denied>
	Kernel driver in use: xhci_hcd

05:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller
	DeviceName: HD Audio Controller
	Subsystem: Tongfang Hongkong Limited Family 17h (Models 10h-1fh) HD Audio Controller
	Flags: bus master, fast devsel, latency 0, IRQ 74
	Memory at fc580000 (32-bit, non-prefetchable) [size=32K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel

Tell me if you need something else!

@Silvermyst This is due to linux-driver-management not supporting the AMD iGPU + NVIDIA dGPU optimus setup. You can see in the output of linux-driver-management status that it failed to detect the dGPU.

If you need to use your dGPU, you will have to configure it manually. I was able to use my dGPU with the following changes:

  1. Install the nvidia-driver. I used the nvidia-glx-driver-current package.
  1. Add a file start-xrandr with the following content and make it executable:
#!/usr/bin/env bash

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
  1. Change the content of /usr/share/lightdm/lightdm.conf.d/99-ldm.conf to the following:
[Seat:*]
display-setup-script=/path/to/your/start-xrandr

Replace /path/to/your/start-xrandr with the actual path of your newly created start-xrandr script.

  1. Create a file 00-ldm.conf in /etc/X11/xorg.conf.d/ with the following content:
Section "Module"
    Load "modesetting"
EndSection

Section "Device"
    Identifier "NVIDIA Card"
    Driver "nvidia"
    BusID "PCI:1:0:0"
    Option "AllowEmptyInitialConfiguration"
    VendorName "NVIDIA Corporation"
    BoardName "TU106M [GeForce RTX 2060 Mobile]"
EndSection

Ultimately I think we should rely on updates to the linux-driver-management package, but it doesn't seem to be actively maintained at this point.

So I actually recently came into my possession a laptop with a similar setup as the original poster, but with an NVidia RTX 3050, following your instructions I basically just got a flashing screen. I'd like to dig your mind about this issue and get things properly working, also would help me collect some data as LDM could use some expansion in this case as well.

EDIT: I needed to chmod x+ start-xrandr, but I'll definitely like to collect some data for issues like this.

@ZachBacon Sure. My setup has an AMD 5900HS and an NVIDIA 3070 mobile. This is output of lspci -v:

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
	Subsystem: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
	Flags: fast devsel

00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU
	Subsystem: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU
	Flags: bus master, fast devsel, latency 0, IRQ -2147483648
	Capabilities: <access denied>

00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
	Flags: fast devsel, IOMMU group 0

00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0, IRQ 32, IOMMU group 1
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
	I/O behind bridge: 0000e000-0000efff [size=4K]
	Memory behind bridge: fb000000-fc0fffff [size=17M]
	Prefetchable memory behind bridge: 000000fc00000000-000000fe01ffffff [size=8224M]
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0, IRQ 33, IOMMU group 2
	Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
	I/O behind bridge: [disabled]
	Memory behind bridge: fca00000-fcafffff [size=1M]
	Prefetchable memory behind bridge: [disabled]
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
	Flags: fast devsel, IOMMU group 3

00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0, IRQ 34, IOMMU group 4
	Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
	I/O behind bridge: 0000d000-0000dfff [size=4K]
	Memory behind bridge: fc900000-fc9fffff [size=1M]
	Prefetchable memory behind bridge: [disabled]
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0, IRQ 35, IOMMU group 5
	Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
	I/O behind bridge: 00001000-00001fff [size=4K]
	Memory behind bridge: fc800000-fc8fffff [size=1M]
	Prefetchable memory behind bridge: 0000000410000000-00000004101fffff [size=2M]
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0, IRQ 36, IOMMU group 6
	Bus: primary=00, secondary=05, subordinate=05, sec-latency=0
	I/O behind bridge: [disabled]
	Memory behind bridge: fc700000-fc7fffff [size=1M]
	Prefetchable memory behind bridge: [disabled]
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0, IRQ 37, IOMMU group 7
	Bus: primary=00, secondary=06, subordinate=06, sec-latency=0
	I/O behind bridge: [disabled]
	Memory behind bridge: fc600000-fc6fffff [size=1M]
	Prefetchable memory behind bridge: [disabled]
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
	Flags: fast devsel, IOMMU group 8

00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0, IRQ 38, IOMMU group 8
	Bus: primary=00, secondary=07, subordinate=07, sec-latency=0
	I/O behind bridge: 0000c000-0000cfff [size=4K]
	Memory behind bridge: fc200000-fc5fffff [size=4M]
	Prefetchable memory behind bridge: 000000fe10000000-000000fe201fffff [size=258M]
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
	Subsystem: ASUSTeK Computer Inc. FCH SMBus Controller
	Flags: 66MHz, medium devsel, IOMMU group 9
	Kernel driver in use: piix4_smbus

00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
	Subsystem: ASUSTeK Computer Inc. FCH LPC Bridge
	Flags: bus master, 66MHz, medium devsel, latency 0, IOMMU group 9

00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 0
	Flags: fast devsel, IOMMU group 10

00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 1
	Flags: fast devsel, IOMMU group 10

00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 2
	Flags: fast devsel, IOMMU group 10

00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 3
	Flags: fast devsel, IOMMU group 10
	Kernel driver in use: k10temp

00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 4
	Flags: fast devsel, IOMMU group 10

00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 5
	Flags: fast devsel, IOMMU group 10

00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 6
	Flags: fast devsel, IOMMU group 10

00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 7
	Flags: fast devsel, IOMMU group 10

01:00.0 VGA compatible controller: NVIDIA Corporation GA104M [GeForce RTX 3070 Mobile / Max-Q] (rev a1) (prog-if 00 [VGA controller])
	Subsystem: ASUSTeK Computer Inc. GA104M [GeForce RTX 3070 Mobile / Max-Q]
	Physical Slot: 0
	Flags: bus master, fast devsel, latency 0, IRQ 116, IOMMU group 11
	Memory at fb000000 (32-bit, non-prefetchable) [size=16M]
	Memory at fc00000000 (64-bit, prefetchable) [size=8G]
	Memory at fe00000000 (64-bit, prefetchable) [size=32M]
	I/O ports at e000 [size=128]
	Expansion ROM at fc000000 [virtual] [disabled] [size=512K]
	Capabilities: <access denied>
	Kernel driver in use: nvidia

01:00.1 Audio device: NVIDIA Corporation GA104 High Definition Audio Controller (rev a1)
	Subsystem: ASUSTeK Computer Inc. GA104 High Definition Audio Controller
	Physical Slot: 0
	Flags: bus master, fast devsel, latency 0, IRQ 117, IOMMU group 11
	Memory at fc080000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel

02:00.0 SD Host controller: Genesys Logic, Inc GL9755 SD Host Controller (prog-if 01)
	Subsystem: ASUSTeK Computer Inc. GL9755 SD Host Controller
	Flags: bus master, fast devsel, latency 0, IRQ 75, IOMMU group 12
	Memory at fca00000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: <access denied>
	Kernel driver in use: sdhci-pci

03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
	Subsystem: ASUSTeK Computer Inc. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
	Flags: bus master, fast devsel, latency 0, IRQ 114, IOMMU group 13
	I/O ports at d000 [size=256]
	Memory at fc904000 (64-bit, non-prefetchable) [size=4K]
	Memory at fc900000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: r8169

04:00.0 Network controller: Intel Corporation Wi-Fi 6 AX200 (rev 1a)
	Subsystem: Intel Corporation Wi-Fi 6 AX200NGW
	Physical Slot: 0-1
	Flags: bus master, fast devsel, latency 0, IRQ 96, IOMMU group 14
	Memory at fc800000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: iwlwifi

05:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983 (prog-if 02 [NVM Express])
	Subsystem: Samsung Electronics Co Ltd SSD 970 EVO Plus 1TB
	Flags: bus master, fast devsel, latency 0, IRQ 39, NUMA node 0, IOMMU group 15
	Memory at fc700000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: nvme

06:00.0 Non-Volatile memory controller: SK hynix Gold P31 SSD (prog-if 02 [NVM Express])
	Subsystem: SK hynix Gold P31 SSD
	Flags: bus master, fast devsel, latency 0, IRQ 41, NUMA node 0, IOMMU group 16
	Memory at fc600000 (64-bit, non-prefetchable) [size=16K]
	Memory at fc605000 (32-bit, non-prefetchable) [size=4K]
	Memory at fc604000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: <access denied>
	Kernel driver in use: nvme

07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne (rev c4) (prog-if 00 [VGA controller])
	Subsystem: ASUSTeK Computer Inc. Cezanne
	Flags: bus master, fast devsel, latency 0, IRQ 85, IOMMU group 8
	Memory at fe10000000 (64-bit, prefetchable) [size=256M]
	Memory at fe20000000 (64-bit, prefetchable) [size=2M]
	I/O ports at c000 [size=256]
	Memory at fc500000 (32-bit, non-prefetchable) [size=512K]
	Capabilities: <access denied>
	Kernel driver in use: amdgpu

07:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller
	Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller
	Flags: bus master, fast devsel, latency 0, IRQ 119, IOMMU group 8
	Memory at fc5c8000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel

07:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
	Subsystem: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
	Flags: fast devsel, IRQ 255, IOMMU group 8
	Memory at fc400000 (32-bit, non-prefetchable) [disabled] [size=1M]
	Memory at fc5cc000 (32-bit, non-prefetchable) [disabled] [size=8K]
	Capabilities: <access denied>

07:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 (prog-if 30 [XHCI])
	Subsystem: ASUSTeK Computer Inc. Renoir/Cezanne USB 3.1
	Flags: bus master, fast devsel, latency 0, IRQ 76, IOMMU group 8
	Memory at fc300000 (64-bit, non-prefetchable) [size=1M]
	Capabilities: <access denied>
	Kernel driver in use: xhci_hcd

07:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 (prog-if 30 [XHCI])
	Subsystem: ASUSTeK Computer Inc. Renoir/Cezanne USB 3.1
	Flags: bus master, fast devsel, latency 0, IRQ 85, IOMMU group 8
	Memory at fc200000 (64-bit, non-prefetchable) [size=1M]
	Capabilities: <access denied>
	Kernel driver in use: xhci_hcd

07:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor (rev 01)
	Subsystem: ASUSTeK Computer Inc. Raven/Raven2/FireFlight/Renoir Audio Processor
	Flags: fast devsel, IRQ 96, IOMMU group 8
	Memory at fc580000 (32-bit, non-prefetchable) [size=256K]
	Capabilities: <access denied>

07:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
	Subsystem: ASUSTeK Computer Inc. Family 17h (Models 10h-1fh) HD Audio Controller
	Flags: bus master, fast devsel, latency 0, IRQ 120, IOMMU group 8
	Memory at fc5c0000 (32-bit, non-prefetchable) [size=32K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel

What other data can I provide for you?

That's a good start, I just forked the repo into my personal GitHub and will work on it as much as I can. Though I can say for certain your instructions didn't exactly work for me, still reporting the AMD driver being in use, BUT, it's motivating me to try and improve LDM outside of my gnome packaging duties for Solus.

That's a good start, I just forked the repo into my personal GitHub and will work on it as much as I can. Though I can say for certain your instructions didn't exactly work for me, still reporting the AMD driver being in use, BUT, it's motivating me to try and improve LDM outside of my gnome packaging duties for Solus.

I see. I don't know what else needs to be done to enable the nvidia driver for X11 in your case. I guess I would suggest two modifications to see if they help:

  1. Make sure 00-ldm.conf uses the correct BusID and BoardName in your case.
  2. Change the line xrandr --setprovideroutputsource modesetting NVIDIA-0 to use the xrandr provider id of your modesetting card. For example, on my laptop, the output of xrandr --listproviders gives
Provider 0: id: 0x1b8 cap: 0x1, Source Output crtcs: 4 outputs: 6 associated providers: 1 name:NVIDIA-0
Provider 1: id: 0x206 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 2 associated providers: 1 name:modesetting

so I would change that line to xrandr --setprovideroutputsource 0x206 NVIDIA-0.

Also make sure that nvidia-smi shows that your nvidia card is seen by the driver.

By the way, looking forward to your work on LDM.

Well, either way, it's something I won't be looking into till tomorrow, and at this point I'm going to focus on LDM tomorrow and getting basic support done.

Hmmmm xrandr is only detecting my amd gpu and not my nvidia card.

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
Subsystem: Hewlett-Packard Company Renoir/Cezanne Root Complex
Flags: fast devsel

00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU
Subsystem: Hewlett-Packard Company Renoir/Cezanne IOMMU
Flags: bus master, fast devsel, latency 0, IRQ -2147483648
Capabilities: <access denied>

00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
Flags: fast devsel, IOMMU group 0

00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 26, IOMMU group 1
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 0000f000-0000ffff [size=4K]
Memory behind bridge: fb000000-fc0fffff [size=17M]
Prefetchable memory behind bridge: 000000fe00000000-000000ff01ffffff [size=4128M]
Capabilities: <access denied>
Kernel driver in use: pcieport

00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 27, IOMMU group 2
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: 0000e000-0000efff [size=4K]
Memory behind bridge: fc900000-fc9fffff [size=1M]
Prefetchable memory behind bridge: [disabled]
Capabilities: <access denied>
Kernel driver in use: pcieport

00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
Flags: fast devsel, IOMMU group 3

00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 28, IOMMU group 4
Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
I/O behind bridge: 0000d000-0000dfff [size=4K]
Memory behind bridge: fc800000-fc8fffff [size=1M]
Prefetchable memory behind bridge: [disabled]
Capabilities: <access denied>
Kernel driver in use: pcieport

00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 29, IOMMU group 5
Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
I/O behind bridge: [disabled]
Memory behind bridge: fc700000-fc7fffff [size=1M]
Prefetchable memory behind bridge: [disabled]
Capabilities: <access denied>
Kernel driver in use: pcieport

00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
Flags: fast devsel, IOMMU group 6

00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 30, IOMMU group 6
Bus: primary=00, secondary=05, subordinate=05, sec-latency=0
I/O behind bridge: 0000c000-0000cfff [size=4K]
Memory behind bridge: fc200000-fc5fffff [size=4M]
Prefetchable memory behind bridge: 00000000d0000000-00000000e01fffff [size=258M]
Capabilities: <access denied>
Kernel driver in use: pcieport

00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 31, IOMMU group 6
Bus: primary=00, secondary=06, subordinate=06, sec-latency=0
I/O behind bridge: [disabled]
Memory behind bridge: fc600000-fc6fffff [size=1M]
Prefetchable memory behind bridge: [disabled]
Capabilities: <access denied>
Kernel driver in use: pcieport

00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
Subsystem: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller
Flags: 66MHz, medium devsel, IOMMU group 7
Kernel driver in use: piix4_smbus

00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
Subsystem: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge
Flags: bus master, 66MHz, medium devsel, latency 0, IOMMU group 7

00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 0
Flags: fast devsel, IOMMU group 8

00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 1
Flags: fast devsel, IOMMU group 8

00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 2
Flags: fast devsel, IOMMU group 8

00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 3
Flags: fast devsel, IOMMU group 8
Kernel driver in use: k10temp

00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 4
Flags: fast devsel, IOMMU group 8

00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 5
Flags: fast devsel, IOMMU group 8

00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 6
Flags: fast devsel, IOMMU group 8

00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 7
Flags: fast devsel, IOMMU group 8

01:00.0 VGA compatible controller: NVIDIA Corporation GA107M [GeForce RTX 3050 Mobile] (rev a1) (prog-if 00 [VGA controller])
DeviceName: NVIDIA Graphics Device
Subsystem: Hewlett-Packard Company GA107M [GeForce RTX 3050 Mobile]
Flags: bus master, fast devsel, latency 0, IRQ 76, IOMMU group 9
Memory at fb000000 (32-bit, non-prefetchable) [size=16M]
Memory at fe00000000 (64-bit, prefetchable) [size=4G]
Memory at ff00000000 (64-bit, prefetchable) [size=32M]
I/O ports at f000 [size=128]
Expansion ROM at fc000000 [virtual] [disabled] [size=512K]
Capabilities: <access denied>
Kernel driver in use: nvidia

01:00.1 Audio device: NVIDIA Corporation Device 2291 (rev a1)
Subsystem: Hewlett-Packard Company Device 88de
Flags: bus master, fast devsel, latency 0, IRQ 73, IOMMU group 9
Memory at fc080000 (32-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: snd_hda_intel

02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 16)
DeviceName: OnBoard Enthernets
Subsystem: Hewlett-Packard Company RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
Flags: bus master, fast devsel, latency 0, IRQ 70, IOMMU group 10
I/O ports at e000 [size=256]
Memory at fc904000 (64-bit, non-prefetchable) [size=4K]
Memory at fc900000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: r8169

03:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device a85a
DeviceName: Realtek Wireless LAN + BT
Subsystem: Hewlett-Packard Company Device 88e2
Flags: fast devsel, IRQ 255, IOMMU group 11
I/O ports at d000 [disabled] [size=256]
Memory at fc800000 (64-bit, non-prefetchable) [disabled] [size=1M]
Capabilities: <access denied>

04:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller 980 (prog-if 02 [NVM Express])
Subsystem: Samsung Electronics Co Ltd Device a801
Flags: bus master, fast devsel, latency 0, IRQ 32, NUMA node 0, IOMMU group 12
Memory at fc700000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: nvme

05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne (rev c6) (prog-if 00 [VGA controller])
DeviceName: Onboard IGD
Subsystem: Hewlett-Packard Company Cezanne
Flags: bus master, fast devsel, latency 0, IRQ 59, IOMMU group 6
Memory at d0000000 (64-bit, prefetchable) [size=256M]
Memory at e0000000 (64-bit, prefetchable) [size=2M]
I/O ports at c000 [size=256]
Memory at fc500000 (32-bit, non-prefetchable) [size=512K]
Capabilities: <access denied>
Kernel driver in use: amdgpu

05:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
Subsystem: Hewlett-Packard Company Family 17h (Models 10h-1fh) Platform Security Processor
Flags: fast devsel, IRQ 255, IOMMU group 6
Memory at fc400000 (32-bit, non-prefetchable) [disabled] [size=1M]
Memory at fc5c8000 (32-bit, non-prefetchable) [disabled] [size=8K]
Capabilities: <access denied>

05:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 (prog-if 30 [XHCI])
Subsystem: Hewlett-Packard Company Renoir/Cezanne USB 3.1
Flags: bus master, fast devsel, latency 0, IRQ 50, IOMMU group 6
Memory at fc300000 (64-bit, non-prefetchable) [size=1M]
Capabilities: <access denied>
Kernel driver in use: xhci_hcd

05:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 (prog-if 30 [XHCI])
Subsystem: Hewlett-Packard Company Renoir/Cezanne USB 3.1
Flags: bus master, fast devsel, latency 0, IRQ 59, IOMMU group 6
Memory at fc200000 (64-bit, non-prefetchable) [size=1M]
Capabilities: <access denied>
Kernel driver in use: xhci_hcd

05:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor (rev 01)
Subsystem: Hewlett-Packard Company Raven/Raven2/FireFlight/Renoir Audio Processor
Flags: fast devsel, IRQ 70, IOMMU group 6
Memory at fc580000 (32-bit, non-prefetchable) [size=256K]
Capabilities: <access denied>

05:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
Subsystem: Hewlett-Packard Company Family 17h (Models 10h-1fh) HD Audio Controller
Flags: bus master, fast devsel, latency 0, IRQ 75, IOMMU group 6
Memory at fc5c0000 (32-bit, non-prefetchable) [size=32K]
Capabilities: <access denied>
Kernel driver in use: snd_hda_intel

06:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81) (prog-if 01 [AHCI 1.0])
Subsystem: Hewlett-Packard Company FCH SATA Controller [AHCI mode]
Flags: bus master, fast devsel, latency 0, IRQ 47, IOMMU group 6
Memory at fc601000 (32-bit, non-prefetchable) [size=2K]
Capabilities: <access denied>
Kernel driver in use: ahci

06:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81) (prog-if 01 [AHCI 1.0])
Subsystem: Hewlett-Packard Company FCH SATA Controller [AHCI mode]
Flags: bus master, fast devsel, latency 0, IRQ 49, IOMMU group 6
Memory at fc600000 (32-bit, non-prefetchable) [size=2K]
Capabilities: <access denied>
Kernel driver in use: ahci

Still trying to figure this out. But I still could use your opinion.

ermo triaged this task as High priority.
ermo edited subscribers, added: ermo; removed: DataDrake.

Possibly related to LDM task in T10440