Disable PCI device before boot

Has someone managed to disable a PCI device before or during boot ? My issue here is that I have two Nvidia GPUs (one integrated and one connected via external PCI adapter), but the system hangs during boot. I believe there is something to do with the display manager, but I'm not sure. I've made some tests trying to disable the integrated dedicate GPU, but the system hangs every time I try to execute echo 1 > "/sys/bus/pci/devices/0000:09:00.0/remove".

Look in your Bios for a setting to turn it off.

maybe blacklist one pci video ?

Unfortunately, my BIOS does not have this option and it is up to date.

How would you do it ? I heard something about blacklisting the drivers, but both video cards are NVIDIA's.

can you return

lspci

Don't you just hate that? Some boards have switches for shutting slots down, but that's not very convenient except in trouble shooting. Make/model?

Sure, but I can't execute it with the outer GPU connected because it won't boot:
00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 0b)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 0b)
00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series HECI #0 (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 1 (rev e4)
00:1c.1 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 2 (rev e4)
00:1c.2 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 3 (rev e4)
00:1c.3 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 4 (rev e4)
00:1c.4 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 5 (rev e4)
00:1d.0 USB controller: Intel Corporation 8 Series USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)
07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (r
ev 10)
08:00.0 Network controller: Intel Corporation Wireless 7260 (rev 93)
09:00.0 3D controller: NVIDIA Corporation GK208M [GeForce GT 740M] (rev a1)

My laptop is a Vostro 5470 from Dell. The BIOS if from Phoenix Technologies.

try with

echo "000:09:00.0" > /sys/bus/pci/drivers/ehci-pci/unbind

Ah laptop, bios tend to be rather limited. Sometimes settings get put in odd places... might be worth a second look.

I have written scripts and services that can disable a device by its PCI:ID. You can give that method a try if you are still looking for a way to shut down a specific device at boot.

Great. Are they in Github ?

No they are not on Github , I have many services posted on the forum.

I will have a look at them. Thank you.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by Bytemark