From e7f1a6dd39e7efc45bc3beb11ceb27c6d3b24b53 Mon Sep 17 00:00:00 2001 From: manuel Date: Fri, 4 Oct 2024 14:31:00 +0300 Subject: [PATCH] [nvidia-inst] added parameter nvidia-drm.fbdev=1 --- nvidia-inst/PKGBUILD | 4 ++-- nvidia-inst/nvidia-inst | 20 +++++++++++++------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/nvidia-inst/PKGBUILD b/nvidia-inst/PKGBUILD index d4ff97f8..ad5c1238 100644 --- a/nvidia-inst/PKGBUILD +++ b/nvidia-inst/PKGBUILD @@ -3,7 +3,7 @@ # Contributor: joekamprad pkgname=nvidia-inst -pkgver=24 +pkgver=24.10 pkgrel=1 pkgdesc="Script to setup nvidia drivers (dkms version) in EndeavourOS" url=https://github.com/endeavouros-team/PKGBUILDS/tree/master/$pkgname @@ -30,7 +30,7 @@ source=( $_url/nvidia-installer-kernel-para $_url/nvidia-driver-supported-branches ) -sha512sums=('c5dcfdcf6f90f5d3bc7e5faf27409dbb1a3db8b8e6d9d7eafea41016639bf34a89cd991e340ef45096638acc2f51417965b62b4e99bd63c1cf18728750a6a646' +sha512sums=('a8656f28f3d62113fb087c0fd94ebbe06e26623e9c621a984d701c8f4f23f47f3b1e47b0305f7734e1cc78d59e7f18f72b4ee7e0528a8b10c2a9ba23b7ca76db' 'b8857ff98870ac8cff78e31c660bde3b7308752ee4e6547682340866ee59f5801f09ede41e490380a40926536f47259f5d347fd59e8e2ffa67a8cb57f07c44e6' '8ee3fadd5c5c3f82d8f7c0b9273c7c970fe67486e5bcba5edae5dc7d997cd3aeb334fe8e76576b824187072c314dffcfd9cc01f2fdc46213001a6b997d720bb0' '429c18ecf23d56b9b996b5e48884365324b713d48cfeab09e48753cfa8afdf79516a753058f6a0b6acaaca7c6f4a690dc5816c53c5f0ad3682291f481b6e1c5d') diff --git a/nvidia-inst/nvidia-inst b/nvidia-inst/nvidia-inst index faadfbf5..fc078827 100755 --- a/nvidia-inst/nvidia-inst +++ b/nvidia-inst/nvidia-inst @@ -247,7 +247,9 @@ OnlyNvidia() { KernelParametersToBoot2() { local mode2 - local para=nvidia-drm.modeset=1 + local para + local params=(nvidia-drm.modeset=1 + nvidia-drm.fbdev=1) local file_sdboot=/etc/kernel/cmdline local file_grub=/etc/default/grub @@ -257,14 +259,18 @@ KernelParametersToBoot2() { esac case "$mode2" in add) - if [ -z "$(cat $file_sdboot $file_grub 2>/dev/null | grep "$para")" ] ; then - AddCmd "nvidia-installer-kernel-para nvidia-drm.modeset=1 $mode2" - fi + for para in "${params[@]}" ; do + if [ -z "$(cat $file_sdboot $file_grub 2>/dev/null | grep "$para")" ] ; then + AddCmd "nvidia-installer-kernel-para $para $mode2" + fi + done ;; remove) - if [ "$(cat $file_sdboot $file_grub 2>/dev/null | grep "$para")" ] ; then - AddCmd "nvidia-installer-kernel-para nvidia-drm.modeset=1 $mode2" - fi + for para in "${params[@]}" ; do + if [ "$(cat $file_sdboot $file_grub 2>/dev/null | grep "$para")" ] ; then + AddCmd "nvidia-installer-kernel-para $para $mode2" + fi + done ;; esac }