You are not logged in.

#1 2024-02-21 07:11:35

rawinvite
Member
Registered: 2023-06-15
Posts: 4

How to disable dGPU modules in initramfs only?

I have an EFI partition that is rather small, but next to it is the windows partition and I'd rather not go around moving their boundaries. I have seen that the biggest files in initramfs are, by far, those coming from the NVIDIA dGPU. Is there any way/safe to prevent the inclusion of the nvidia modules into the initramfs, loading them after having switched to the real root? There is an integrated AMD GPU in the system, that is mainly used, so I do not see why it would not be possible, but I want to make sure is the case before doing it.

Thank you!

Offline

#2 2024-02-21 09:03:04

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,323

Re: How to disable dGPU modules in initramfs only?

Yes, remove the kms hook and add amdgpu to the MODULES
https://bbs.archlinux.org/viewtopic.php?id=291900 (though the firmware of the binary nvidia driver is pretty hefty, too)

Offline

#3 2024-02-21 19:47:41

rawinvite
Member
Registered: 2023-06-15
Posts: 4

Re: How to disable dGPU modules in initramfs only?

In that case, should I keep the kernel cmdline argument "nvidia-drm.modeset=1" ?

Offline

#4 2024-02-21 21:05:51

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,157

Re: How to disable dGPU modules in initramfs only?

yes in any case, because once the modules are loaded you will want the relevant functionality getting enabled by that parameter.

Offline

#5 2024-02-24 07:22:05

rawinvite
Member
Registered: 2023-06-15
Posts: 4

Re: How to disable dGPU modules in initramfs only?

@V1del: Works. Thank you!

Offline

#6 2024-02-24 07:53:15

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,323

Re: How to disable dGPU modules in initramfs only?

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB