Commit f371e05c authored by Philip Müller's avatar Philip Müller

[driver] add nvidia 440

parent 3d7338d3
......@@ -2,9 +2,9 @@
NAME="video-hybrid-intel-nvidia-340xx-bumblebee"
INFO="Hybrid bumblebee solution for NVIDIA Optimus Technology - Closed source NVIDIA legacy driver & open source intel driver."
VERSION="2019.08.24"
VERSION="2019.10.25"
FREEDRIVER="false"
PRIORITY="8"
PRIORITY="9"
# NVIDIA cards
CLASSIDS="0300 0302"
......@@ -18,7 +18,7 @@ DEVICEIDS="*"
BLACKLISTEDDEVICEIDS="0be1 8108"
# Conflicts with other mhwd configs
MHWDCONFLICTS="video-intel video-nvidia-435xx video-nvidia-430xx video-nvidia-418xx video-nvidia-390xx video-nvidia-340xx video-hybrid-intel-nvidia-430xx-bumblebee video-hybrid-intel-nvidia-418xx-bumblebee video-hybrid-intel-nvidia-390xx-bumblebee video-hybrid-intel-nouveau-bumblebee"
MHWDCONFLICTS="video-intel video-nvidia-440xx video-nvidia-435xx video-nvidia-430xx video-nvidia-418xx video-nvidia-390xx video-nvidia-340xx video-hybrid-intel-nvidia-430xx-bumblebee video-hybrid-intel-nvidia-418xx-bumblebee video-hybrid-intel-nvidia-390xx-bumblebee video-hybrid-intel-nouveau-bumblebee"
# Dependencies
DEPENDS="bumblebee nvidia-340xx-utils xf86-video-intel"
......
......@@ -2,9 +2,9 @@
NAME="video-hybrid-intel-nvidia-390xx-bumblebee"
INFO="Hybrid bumblebee solution for NVIDIA Optimus Technology - Closed source NVIDIA driver & open source intel driver."
VERSION="2019.08.23"
VERSION="2019.10.25"
FREEDRIVER="false"
PRIORITY="8"
PRIORITY="10"
# NVIDIA cards
CLASSIDS="0300 0302"
......@@ -18,7 +18,7 @@ DEVICEIDS="*"
BLACKLISTEDDEVICEIDS="0be1 8108"
# Conflicts with other mhwd configs
MHWDCONFLICTS="video-intel video-nvidia-435xx video-nvidia-430xx video-nvidia-418xx video-nvidia-390xx video-nvidia-340xx video-hybrid-intel-nvidia-430xx-bumblebee video-hybrid-intel-nvidia-418xx-bumblebee video-hybrid-intel-nvidia-340xx-bumblebee video-hybrid-intel-nouveau-bumblebee"
MHWDCONFLICTS="video-intel video-nvidia-440xx video-nvidia-435xx video-nvidia-430xx video-nvidia-418xx video-nvidia-390xx video-nvidia-340xx video-hybrid-intel-nvidia-430xx-bumblebee video-hybrid-intel-nvidia-418xx-bumblebee video-hybrid-intel-nvidia-340xx-bumblebee video-hybrid-intel-nouveau-bumblebee"
# Dependencies
DEPENDS="bumblebee nvidia-390xx-utils xf86-video-intel"
......
......@@ -2,9 +2,9 @@
NAME="video-hybrid-intel-nvidia-418xx-bumblebee"
INFO="Hybrid bumblebee solution for NVIDIA Optimus Technology - Closed source NVIDIA driver & open source intel driver."
VERSION="2019.08.24"
VERSION="2019.10.25"
FREEDRIVER="false"
PRIORITY="9"
PRIORITY="11"
# NVIDIA cards
CLASSIDS="0300 0302"
......@@ -18,7 +18,7 @@ DEVICEIDS="*"
BLACKLISTEDDEVICEIDS="0be1 8108"
# Conflicts with other mhwd configs
MHWDCONFLICTS="video-intel video-nvidia-435xx video-nvidia-430xx video-nvidia-418xx video-nvidia-390xx video-nvidia-340xx video-hybrid-intel-nvidia-430xx-bumblebee video-hybrid-intel-nvidia-390xx-bumblebee video-hybrid-intel-nvidia-340xx-bumblebee video-hybrid-intel-nouveau-bumblebee"
MHWDCONFLICTS="video-intel video-nvidia-440xx video-nvidia-435xx video-nvidia-430xx video-nvidia-418xx video-nvidia-390xx video-nvidia-340xx video-hybrid-intel-nvidia-430xx-bumblebee video-hybrid-intel-nvidia-390xx-bumblebee video-hybrid-intel-nvidia-340xx-bumblebee video-hybrid-intel-nouveau-bumblebee"
# Dependencies
DEPENDS="bumblebee nvidia-418xx-utils xf86-video-intel"
......
......@@ -2,9 +2,9 @@
NAME="video-hybrid-intel-nvidia-430xx-bumblebee"
INFO="Hybrid bumblebee solution for NVIDIA Optimus Technology - Closed source NVIDIA driver & open source intel driver."
VERSION="2019.08.24"
VERSION="2019.10.25"
FREEDRIVER="false"
PRIORITY="10"
PRIORITY="12"
# NVIDIA cards
CLASSIDS="0300 0302"
......@@ -18,7 +18,7 @@ DEVICEIDS="*"
BLACKLISTEDDEVICEIDS="0be1 8108"
# Conflicts with other mhwd configs
MHWDCONFLICTS="video-intel video-nvidia-435xx video-nvidia-430xx video-nvidia-418xx video-nvidia-390xx video-nvidia-340xx video-hybrid-intel-nvidia-418xx-bumblebee video-hybrid-intel-nvidia-390xx-bumblebee video-hybrid-intel-nvidia-340xx-bumblebee video-hybrid-intel-nouveau-bumblebee"
MHWDCONFLICTS="video-intel video-nvidia-440xx video-nvidia-435xx video-nvidia-430xx video-nvidia-418xx video-nvidia-390xx video-nvidia-340xx video-hybrid-intel-nvidia-418xx-bumblebee video-hybrid-intel-nvidia-390xx-bumblebee video-hybrid-intel-nvidia-340xx-bumblebee video-hybrid-intel-nouveau-bumblebee"
# Dependencies
DEPENDS="bumblebee nvidia-430xx-utils xf86-video-intel"
......
......@@ -2,7 +2,7 @@
NAME="video-nvidia-340xx"
INFO="Closed source NVIDIA legacy drivers for linux."
VERSION="2019.08.23"
VERSION="2019.10.25"
FREEDRIVER="false"
PRIORITY="3"
......@@ -11,12 +11,12 @@ VENDORIDS="10de"
DEVICEIDS=">/var/lib/mhwd/ids/pci/nvidia-340xx.ids"
# Conflicts
CONFLICTS="nvidia-390xx-utils nvidia-418xx-utils nvidia-430xx-utils nvidia-435xx-utils"
CONFLICTS_64="lib32-nvidia-390xx-utils lib32-nvidia-418xx-utils lib32-nvidia-430xx-utils lib32-nvidia-435xx-utils"
CONKMOD="nvidia nvidia-304xx"
CONFLICTS="nvidia-390xx-utils nvidia-418xx-utils nvidia-430xx-utils nvidia-435xx-utils nvidia-440xx-utils"
CONFLICTS_64="lib32-nvidia-390xx-utils lib32-nvidia-418xx-utils lib32-nvidia-430xx-utils lib32-nvidia-435xx-utils lib32-nvidia-440xx-utils"
CONKMOD="nvidia-390xx nvidia-418xx nvidia-430xx nvidia-435xx nvidia-440xx"
# Conflicts with other mhwd configs
MHWDCONFLICTS="video-intel video-nvidia-435xx video-nvidia-430xx video-nvidia-418xx video-nvidia-390xx video-hybrid-intel-nvidia-430xx-bumblebee video-hybrid-intel-nvidia-418xx-bumblebee video-hybrid-intel-nvidia-390xx-bumblebee video-hybrid-intel-nouveau-bumblebee"
MHWDCONFLICTS="video-intel video-nvidia-440xx video-nvidia-435xx video-nvidia-430xx video-nvidia-418xx video-nvidia-390xx video-hybrid-intel-nvidia-430xx-bumblebee video-hybrid-intel-nvidia-418xx-bumblebee video-hybrid-intel-nvidia-390xx-bumblebee video-hybrid-intel-nouveau-bumblebee"
# Dependencies
DEPENDS="nvidia-340xx-utils"
......
......@@ -2,7 +2,7 @@
NAME="video-nvidia-390xx"
INFO="Closed source NVIDIA drivers for linux."
VERSION="2019.08.23"
VERSION="2019.10.25"
FREEDRIVER="false"
PRIORITY="4"
......@@ -11,12 +11,12 @@ VENDORIDS="10de"
DEVICEIDS=">/var/lib/mhwd/ids/pci/nvidia-390xx.ids"
# Conflicts
CONFLICTS="nvidia-340xx-utils nvidia-418xx-utils nvidia-430xx-utils nvidia-435xx-utils"
CONFLICTS_64="lib32-nvidia-340xx-utils lib32-nvidia-418xx-utils lib32-nvidia-430xx-utils lib32-nvidia-435xx-utils"
CONKMOD="nvidia-304xx nvidia-340xx nvidia"
CONFLICTS="nvidia-340xx-utils nvidia-418xx-utils nvidia-430xx-utils nvidia-435xx-utils nvidia-440xx-utils"
CONFLICTS_64="lib32-nvidia-340xx-utils lib32-nvidia-418xx-utils lib32-nvidia-430xx-utils lib32-nvidia-435xx-utils lib32-nvidia-440xx-utils"
CONKMOD="nvidia-340xx nvidia-418xx nvidia-430xx nvidia-435xx nvidia-440xx"
# Conflicts with other mhwd configs
MHWDCONFLICTS="video-intel video-nvidia-435xx video-nvidia-430xx video-nvidia-418xx video-nvidia-340xx video-hybrid-intel-nvidia-430xx-bumblebee video-hybrid-intel-nvidia-418xx-bumblebee video-hybrid-intel-nvidia-390xx-bumblebee video-hybrid-intel-nouveau-bumblebee"
MHWDCONFLICTS="video-intel video-nvidia-440xx video-nvidia-435xx video-nvidia-430xx video-nvidia-418xx video-nvidia-340xx video-hybrid-intel-nvidia-430xx-bumblebee video-hybrid-intel-nvidia-418xx-bumblebee video-hybrid-intel-nvidia-390xx-bumblebee video-hybrid-intel-nouveau-bumblebee"
# Dependencies
DEPENDS="nvidia-390xx-utils"
......
......@@ -2,7 +2,7 @@
NAME="video-nvidia-418xx"
INFO="Closed source NVIDIA drivers for linux."
VERSION="2019.08.24"
VERSION="2019.10.25"
FREEDRIVER="false"
PRIORITY="5"
......@@ -11,12 +11,12 @@ VENDORIDS="10de"
DEVICEIDS=">/var/lib/mhwd/ids/pci/nvidia-418xx.ids"
# Conflicts
CONFLICTS="nvidia-340xx-utils nvidia-390xx-utils nvidia-430xx-utils nvidia-435xx-utils"
CONFLICTS_64="lib32-nvidia-340xx-utils lib32-nvidia-390xx-utils lib32-nvidia-430xx-utils lib32-nvidia-435xx-utils"
CONKMOD="nvidia-340xx nvidia-390xx nvidia-430xx nvidia-435xx"
CONFLICTS="nvidia-340xx-utils nvidia-390xx-utils nvidia-430xx-utils nvidia-435xx-utils nvidia-440xx-utils"
CONFLICTS_64="lib32-nvidia-340xx-utils lib32-nvidia-390xx-utils lib32-nvidia-430xx-utils lib32-nvidia-435xx-utils lib32-nvidia-440xx-utils"
CONKMOD="nvidia-340xx nvidia-390xx nvidia-430xx nvidia-435xx nvidia-440xx"
# Conflicts with other mhwd configs
MHWDCONFLICTS="video-intel video-nvidia-435xx video-nvidia-430xx video-nvidia-390xx video-nvidia-340xx video-hybrid-intel-nvidia-435xx-bumblebee video-hybrid-intel-nvidia-430xx-bumblebee video-hybrid-intel-nvidia-390xx-bumblebee video-hybrid-intel-nvidia-340xx-bumblebee video-hybrid-intel-nouveau-bumblebee"
MHWDCONFLICTS="video-intel video-nvidia-440xx video-nvidia-435xx video-nvidia-430xx video-nvidia-390xx video-nvidia-340xx video-hybrid-intel-nvidia-435xx-bumblebee video-hybrid-intel-nvidia-430xx-bumblebee video-hybrid-intel-nvidia-390xx-bumblebee video-hybrid-intel-nvidia-340xx-bumblebee video-hybrid-intel-nouveau-bumblebee"
# Dependencies
DEPENDS="nvidia-418xx-utils"
......
......@@ -2,7 +2,7 @@
NAME="video-nvidia-430xx"
INFO="Closed source NVIDIA drivers for linux."
VERSION="2019.08.25"
VERSION="2019.10.25"
FREEDRIVER="false"
PRIORITY="6"
......@@ -11,12 +11,12 @@ VENDORIDS="10de"
DEVICEIDS=">/var/lib/mhwd/ids/pci/nvidia-430xx.ids"
# Conflicts
CONFLICTS="nvidia-340xx-utils nvidia-390xx-utils nvidia-418xx-utils nvidia-435xx-utils"
CONFLICTS_64="lib32-nvidia-340xx-utils lib32-nvidia-390xx-utils lib32-nvidia-418xx-utils lib32-nvidia-435xx-utils"
CONKMOD="nvidia-340xx nvidia-390xx nvidia-418xx nvidia-435xx"
CONFLICTS="nvidia-340xx-utils nvidia-390xx-utils nvidia-418xx-utils nvidia-435xx-utils nvidia-440xx-utils"
CONFLICTS_64="lib32-nvidia-340xx-utils lib32-nvidia-390xx-utils lib32-nvidia-418xx-utils lib32-nvidia-435xx-utils lib32-nvidia-440xx-utils"
CONKMOD="nvidia-340xx nvidia-390xx nvidia-418xx nvidia-435xx nvidia-440xx"
# Conflicts with other mhwd configs
MHWDCONFLICTS="video-intel video-nvidia-435xx video-nvidia-418xx video-nvidia-390xx video-nvidia-340xx video-hybrid-intel-nvidia-430xx-bumblebee video-hybrid-intel-nvidia-418xx-bumblebee video-hybrid-intel-nvidia-390xx-bumblebee video-hybrid-intel-nvidia-340xx-bumblebee video-hybrid-intel-nouveau-bumblebee"
MHWDCONFLICTS="video-intel video-nvidia-440xx video-nvidia-435xx video-nvidia-418xx video-nvidia-390xx video-nvidia-340xx video-hybrid-intel-nvidia-430xx-bumblebee video-hybrid-intel-nvidia-418xx-bumblebee video-hybrid-intel-nvidia-390xx-bumblebee video-hybrid-intel-nvidia-340xx-bumblebee video-hybrid-intel-nouveau-bumblebee"
# Dependencies
DEPENDS="nvidia-430xx-utils"
......
......@@ -2,7 +2,7 @@
NAME="video-nvidia-435xx"
INFO="Closed source NVIDIA drivers for linux."
VERSION="2019.08.25"
VERSION="2019.10.25"
FREEDRIVER="false"
PRIORITY="7"
......@@ -11,12 +11,12 @@ VENDORIDS="10de"
DEVICEIDS=">/var/lib/mhwd/ids/pci/nvidia-435xx.ids"
# Conflicts
CONFLICTS="nvidia-340xx-utils nvidia-390xx-utils nvidia-418xx-utils nvidia-430xx-utils"
CONFLICTS_64="lib32-nvidia-340xx-utils lib32-nvidia-390xx-utils lib32-nvidia-418xx-utils lib32-nvidia-430xx-utils"
CONKMOD="nvidia-340xx nvidia-390xx nvidia-418xx nvidia-430xx"
CONFLICTS="nvidia-340xx-utils nvidia-390xx-utils nvidia-418xx-utils nvidia-430xx-utils nvidia-440xx-utils"
CONFLICTS_64="lib32-nvidia-340xx-utils lib32-nvidia-390xx-utils lib32-nvidia-418xx-utils lib32-nvidia-430xx-utils lib32-nvidia-440xx-utils"
CONKMOD="nvidia-340xx nvidia-390xx nvidia-418xx nvidia-430xx nvidia-440xx"
# Conflicts with other mhwd configs
MHWDCONFLICTS="video-intel video-nvidia-430xx video-nvidia-418xx video-nvidia-390xx video-nvidia-340xx video-hybrid-intel-nvidia-430xx-bumblebee video-hybrid-intel-nvidia-418xx-bumblebee video-hybrid-intel-nvidia-390xx-bumblebee video-hybrid-intel-nvidia-340xx-bumblebee video-hybrid-intel-nouveau-bumblebee"
MHWDCONFLICTS="video-intel video-nvidia-440xx video-nvidia-430xx video-nvidia-418xx video-nvidia-390xx video-nvidia-340xx video-hybrid-intel-nvidia-430xx-bumblebee video-hybrid-intel-nvidia-418xx-bumblebee video-hybrid-intel-nvidia-390xx-bumblebee video-hybrid-intel-nvidia-340xx-bumblebee video-hybrid-intel-nouveau-bumblebee"
# Dependencies
DEPENDS="nvidia-435xx-utils"
......
# mhwd Driver Config
NAME="video-nvidia-440xx"
INFO="Closed source NVIDIA drivers for linux."
VERSION="2019.10.25"
FREEDRIVER="false"
PRIORITY="8"
CLASSIDS="0300 0302"
VENDORIDS="10de"
DEVICEIDS=">/var/lib/mhwd/ids/pci/nvidia-440xx.ids"
# Conflicts
CONFLICTS="nvidia-340xx-utils nvidia-390xx-utils nvidia-418xx-utils nvidia-430xx-utils nvidia-435xx-utils"
CONFLICTS_64="lib32-nvidia-340xx-utils lib32-nvidia-390xx-utils lib32-nvidia-418xx-utils lib32-nvidia-430xx-utils lib32-nvidia-435xx-utils"
CONKMOD="nvidia-340xx nvidia-390xx nvidia-418xx nvidia-430xx nvidia-435xx"
# Conflicts with other mhwd configs
MHWDCONFLICTS="video-intel video-nvidia-435xx video-nvidia-430xx video-nvidia-418xx video-nvidia-390xx video-nvidia-340xx video-hybrid-intel-nvidia-430xx-bumblebee video-hybrid-intel-nvidia-418xx-bumblebee video-hybrid-intel-nvidia-390xx-bumblebee video-hybrid-intel-nvidia-340xx-bumblebee video-hybrid-intel-nouveau-bumblebee"
# Dependencies
DEPENDS="nvidia-440xx-utils"
DEPENDS_64="lib32-nvidia-440xx-utils"
DEPKMOD="nvidia-440xx"
XORGFILE="/etc/X11/mhwd.d/nvidia.conf"
MHWDGPU_BLCKLSTNVIDIA="/etc/modprobe.d/mhwd-gpu.conf"
MHWDGPU_MODLDNVIDIA="/etc/modules-load.d/mhwd-gpu.conf"
fix_screen_flickering()
{
sed -i /'Section "Device"'/,/'EndSection'/s/'EndSection'/"\tOption \"RegistryDwords\" \"PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerDefault=0x2; PowerMizerDefaultAC=0x1\"\nEndSection"/g "${XORGFILE}"
}
post_install()
{
nvidia-xconfig -o "${XORGFILE}" --composite &>/dev/null
MHWD_ADD_BACKSPACE "${XORGFILE}"
# Remove logo
sed -i /'Section "Device"'/,/'EndSection'/s/'EndSection'/"\tOption \"NoLogo\" \"1\"\nEndSection"/g "${XORGFILE}"
# Fix screen flickering for some nvidia devices
MHWD_FUNC_ON_MATCH 0300 10de "0400 0401 0402 0403 0407 0409 0425" fix_screen_flickering
mhwd-gpu --setmod nvidia --setxorg "${XORGFILE}"
# Without this 'glxgears' don't work in live-session
MODULES_LOAD="/etc/modules-load.d"
echo "nvidia-drm" >> "${MODULES_LOAD}/mhwd-gpu.conf"
if [ ! "$(pgrep X)" ]; then
modprobe nvidia-drm
fi
}
post_remove()
{
if [ -e "${XORGFILE}" ]; then
rm "${XORGFILE}"
fi
if [ -f "${MHWDGPU_BLCKLSTNVIDIA}" ]; then
sed -i '/^blacklist nouveau/d' "${MHWDGPU_BLCKLSTNVIDIA}"
sed -i '/^blacklist ttm/d' "${MHWDGPU_BLCKLSTNVIDIA}"
sed -i '/^blacklist drm_kms_helper/d' "${MHWDGPU_BLCKLSTNVIDIA}"
sed -i '/^blacklist drm/d' "${MHWDGPU_BLCKLSTNVIDIA}"
fi
if [ -f "${MHWDGPU_MODLDNVIDIA}" ]; then
sed -i '/^nvidia/d' "${MHWDGPU_MODLDNVIDIA}"
fi
mhwd-gpu --check
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment