From 5a31c901d25358f45b69d92282cf9794f593005e Mon Sep 17 00:00:00 2001 From: Jane Doe Date: Sat, 11 Oct 2025 13:34:28 +0300 Subject: [PATCH] Nvidia Proprietary Drivers: Add: If Nvidia proprietary drivers are selected in a multi-gfx system includeing other vendors too, Intel and/or AMD modules will also be added in the initramfs. --- Amelia.sh | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/Amelia.sh b/Amelia.sh index 91748fe..d3c5be7 100644 --- a/Amelia.sh +++ b/Amelia.sh @@ -2,7 +2,7 @@ # Amelia Installer # Source: https://gitlab.com/prism7/archery -# Version: 9.9.1 +# Version: 9.9.2 set -euo pipefail ################################################################################################### @@ -7248,11 +7248,21 @@ set_vars() { #-------------------------------------------------------------------------------------------------- # GFX CONFIGURATION - # Nvidia - if [[ "${nvdprop}" == "y" ]]; then + # Nvidia Proprietary Drivers + if [[ "${nvdprop}" == "y" ]]; then MODULES+=(nvidia nvidia_modeset nvidia_uvm nvidia_drm) gfx_bootopts+=(nvidia.NVreg_UsePageAttributeTable=1) + # Multi-Graphics including Intel + if [[ "${vendors}" =~ "Intel" ]]; then + MODULES+=(i915) + fi + + # Multi-Graphics including AMD + if [[ "${vendors}" =~ "AMD" ]]; then + MODULES+=(amdgpu) + fi + # Disable GSP Firmware if [[ "${nogsp}" == "y" ]]; then gfx_bootopts+=(nvidia.NVreg_EnableGpuFirmware=0) @@ -7266,12 +7276,14 @@ set_vars() { # AMD if [[ "${vendor}" == "AMD" || "${vendors}" =~ "AMD" ]]; then - if [[ -n "${islands}" ]]; then + if [[ -n "${islands}" && -z "${nvdprop}" ]]; then MODULES+=(amdgpu) fi + # 'Southern Islands' support if [[ "${islands}" == "1" ]]; then gfx_bootopts+=(amdgpu.dc=1 radeon.si_support=0 amdgpu.si_support=1) + # 'Sea Islands' support elif [[ "${islands}" == "2" ]]; then gfx_bootopts+=(amdgpu.dc=1 radeon.cik_support=0 amdgpu.cik_support=1)