nvidia-open-dkms issues #1548
Unanswered
Chirag-Jamariya
asked this question in
Q&A
Replies: 1 comment
-
|
If you don't wnat the install script to install nvidia please add
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi I am on cachyos and the issues i have is nvidia-open-dkms-590.48.01-4 and linux-cachyos-lts-nvidia-open-6.12.63-2 are in conflict i tried to resolve it by making changes in install_pkg.sh
here are the changes:
#!/usr/bin/env bash
shellcheck disable=SC2154
shellcheck disable=SC1091
#|---/ /+----------------------------------------+---/ /|#
#|--/ /-| Script to install pkgs from input list |--/ /-|#
#|-/ /--| Prasanth Rangan |-/ /--|#
#|/ /---+----------------------------------------+/ /---|#
scrDir=$(dirname "$(realpath "$0")")
if ! source "${scrDir}/global_fn.sh"; then
echo "Error: unable to source global_fn.sh..."
exit 1
fi
flg_DryRun=${flg_DryRun:-0}
export log_section="package"
"${scrDir}/install_aur.sh" "${getAur}" 2>&1
chk_list "aurhlpr" "${aurList[@]}"
listPkg="${1:-"${scrDir}/pkg_core.lst"}"
archPkg=()
aurhPkg=()
ofs=$IFS
IFS='|'
#-----------------------------#
remove blacklisted packages
#-----------------------------#
if [ -f "${scrDir}/pkg_black.lst" ]; then
grep -v -f <(grep -v '^#' "${scrDir}/pkg_black.lst" | sed 's/#.//;s/ //g;/^$/d') <(sed 's/#.//' "${scrDir}/install_pkg.lst") >"${scrDir}/install_pkg_filtered.lst"
mv "${scrDir}/install_pkg_filtered.lst" "${scrDir}/install_pkg.lst"
fi
#--------------------------------------------#
NVIDIA CONFLICT FIX: Remove nvidia-open-dkms
if pre-compiled kernel modules are present
#--------------------------------------------#
if pacman -Q | grep -q "linux.*-nvidia-open"; then
print_log -warn "NVIDIA" "Pre-compiled nvidia kernel module detected, excluding nvidia-open-dkms..."
sed -i '/^nvidia-open-dkms/d' "${scrDir}/install_pkg.lst"
fi
while read -r pkg deps; do
pkg="${pkg// /}"
if [ -z "${pkg}" ]; then
continue
fi
done < <(cut -d '#' -f 1 "${listPkg}")
IFS=${ofs}
install_packages() {
local -n pkg_array=$1
local pkg_type=$2
local install_cmd=$3
}
echo ""
install_packages archPkg "arch" "sudo pacman"
echo ""
install_packages aurhPkg "aur" "${aurhlpr}"
the changes:
Added automatic detection and removal (lines 32-36): Before processing packages, the script now checks if any pre-compiled nvidia kernel modules are installed (like your linux-cachyos-lts-nvidia-open) and automatically removes nvidia-open-dkms from the installation list.
Added explicit skip (lines 44-47): During package processing, the script now explicitly skips nvidia-open-dkms to prevent conflicts.
but issues after i did this the installation doesn't happen correctly like themes weren't downloaded perfectly same with keybinds
and ~/.config/hypr/hyprland.conf
then i did this
./restore_fnt.sh
./restore_cfg.sh
./restore_thm.sh
export PATH="$HOME/.local/lib/hyde:$HOME/.local/bin:${PATH}"
~/.local/lib/hyde/swwwallcache.sh -t ""
~/.local/lib/hyde/theme.switch.sh -q
~/.local/lib/hyde/waybar.py --update
hyprctl reload
and i just want to know is there any way i can bypass nvidia drivers installation with destroying rest of the installation
Beta Was this translation helpful? Give feedback.
All reactions