mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 11:45:18 +08:00
chakra-hardware-detection: do it with modprobe blacklisting
This commit is contained in:
parent
86176f2d71
commit
056f371484
@ -72,10 +72,6 @@ hwdetect_graphics()
|
||||
printhl "NVIDIA hardware detected"
|
||||
printhl "Installing driver: nvidia. This can take some seconds."
|
||||
|
||||
rmmod nouveau
|
||||
rmmod ttm
|
||||
rmmod drm_kms_helper
|
||||
rmmod drm
|
||||
pacman -Rd --noconfirm libgl &>/dev/null
|
||||
pacman -Udf --noconfirm ${HW_DRIVER_PATH}/nvidia-utils-${NVIDIA_DRV_VER}* &>/dev/null
|
||||
pacman -Udf --noconfirm ${HW_DRIVER_PATH}/nvidia*${NVIDIA_DRV_VER}* &>/dev/null
|
||||
@ -90,10 +86,6 @@ hwdetect_graphics()
|
||||
printhl "NVIDIA hardware detected"
|
||||
printhl "Installing driver: nvidia-173xx. This can take some seconds."
|
||||
|
||||
rmmod nouveau
|
||||
rmmod ttm
|
||||
rmmod drm_kms_helper
|
||||
rmmod drm
|
||||
pacman -Rd --noconfirm libgl &>/dev/null
|
||||
pacman -Udf --noconfirm ${HW_DRIVER_PATH}/nvidia-173xx* &>/dev/null
|
||||
|
||||
@ -148,23 +140,6 @@ hwdetect_graphics()
|
||||
|
||||
printhl "Non-free graphics drivers disabled"
|
||||
|
||||
# arg! this don't work yet
|
||||
# # check for nvidia
|
||||
# CARD_NVIDIA=$(lspci -n | sed -n "s/.* 0300: 10de:\(....\).*/\1/p")
|
||||
#
|
||||
# # do we have one?
|
||||
# if [ "$CARD_NVIDIA" != "" ]
|
||||
# then
|
||||
# printhl "NVIDIA hardware detected"
|
||||
# printhl "Installing driver: nouveau. This can take some seconds."
|
||||
#
|
||||
# pacman -Rd libdrm --noconfirm &>/dev/null
|
||||
# pacman -Udf --noconfirm ${HW_DRIVER_PATH}/xf86-video-nouveau* &>/dev/null
|
||||
# pacman -Udf --noconfirm ${HW_DRIVER_PATH}/nouveau-drm* &>/dev/null
|
||||
# pacman -Udf --noconfirm ${HW_DRIVER_PATH}/nouveau-libdrm* &>/dev/null
|
||||
#
|
||||
# fi
|
||||
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user