mirror of
https://gitlab.com/prism7/archery.git
synced 2026-04-28 01:17:35 +02:00
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.
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Amelia Installer
|
# Amelia Installer
|
||||||
# Source: https://gitlab.com/prism7/archery
|
# Source: https://gitlab.com/prism7/archery
|
||||||
# Version: 9.9.1
|
# Version: 9.9.2
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
###################################################################################################
|
###################################################################################################
|
||||||
@@ -7248,11 +7248,21 @@ set_vars() {
|
|||||||
#--------------------------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------------------------
|
||||||
# GFX CONFIGURATION
|
# GFX CONFIGURATION
|
||||||
|
|
||||||
# Nvidia
|
# Nvidia Proprietary Drivers
|
||||||
if [[ "${nvdprop}" == "y" ]]; then
|
if [[ "${nvdprop}" == "y" ]]; then
|
||||||
MODULES+=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)
|
MODULES+=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)
|
||||||
gfx_bootopts+=(nvidia.NVreg_UsePageAttributeTable=1)
|
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
|
# Disable GSP Firmware
|
||||||
if [[ "${nogsp}" == "y" ]]; then
|
if [[ "${nogsp}" == "y" ]]; then
|
||||||
gfx_bootopts+=(nvidia.NVreg_EnableGpuFirmware=0)
|
gfx_bootopts+=(nvidia.NVreg_EnableGpuFirmware=0)
|
||||||
@@ -7266,12 +7276,14 @@ set_vars() {
|
|||||||
|
|
||||||
# AMD
|
# AMD
|
||||||
if [[ "${vendor}" == "AMD" || "${vendors}" =~ "AMD" ]]; then
|
if [[ "${vendor}" == "AMD" || "${vendors}" =~ "AMD" ]]; then
|
||||||
if [[ -n "${islands}" ]]; then
|
if [[ -n "${islands}" && -z "${nvdprop}" ]]; then
|
||||||
MODULES+=(amdgpu)
|
MODULES+=(amdgpu)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 'Southern Islands' support
|
# 'Southern Islands' support
|
||||||
if [[ "${islands}" == "1" ]]; then
|
if [[ "${islands}" == "1" ]]; then
|
||||||
gfx_bootopts+=(amdgpu.dc=1 radeon.si_support=0 amdgpu.si_support=1)
|
gfx_bootopts+=(amdgpu.dc=1 radeon.si_support=0 amdgpu.si_support=1)
|
||||||
|
|
||||||
# 'Sea Islands' support
|
# 'Sea Islands' support
|
||||||
elif [[ "${islands}" == "2" ]]; then
|
elif [[ "${islands}" == "2" ]]; then
|
||||||
gfx_bootopts+=(amdgpu.dc=1 radeon.cik_support=0 amdgpu.cik_support=1)
|
gfx_bootopts+=(amdgpu.dc=1 radeon.cik_support=0 amdgpu.cik_support=1)
|
||||||
|
|||||||
Reference in New Issue
Block a user