Commit 6ae8abef authored by Philip Müller's avatar Philip Müller

[nvidia-304] drop driver

parent a7ef1821
......@@ -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="2018.05.04"
VERSION="2018.08.09"
FREEDRIVER="false"
PRIORITY="7"
PRIORITY="6"
# NVIDIA cards
CLASSIDS="0300 0302"
......
......@@ -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="2018.05.04"
VERSION="2018.08.09"
FREEDRIVER="false"
PRIORITY="8"
PRIORITY="7"
# NVIDIA cards
CLASSIDS="0300 0302"
......
......@@ -2,9 +2,9 @@
NAME="video-hybrid-intel-nvidia-bumblebee"
INFO="Hybrid bumblebee solution for NVIDIA Optimus Technology - Closed source NVIDIA driver & open source intel driver."
VERSION="2018.05.04"
VERSION="2018.08.09"
FREEDRIVER="false"
PRIORITY="9"
PRIORITY="8"
# NVIDIA cards
CLASSIDS="0300 0302"
......
# mhwd Driver Config
NAME="video-nvidia-304xx"
INFO="Closed source NVIDIA legacy drivers for linux."
VERSION="2018.05.04"
FREEDRIVER="false"
PRIORITY="3"
CLASSIDS="0300 0302"
VENDORIDS="10de"
DEVICEIDS=">/var/lib/mhwd/ids/pci/nvidia-304xx.ids"
# Conflicts
CONFLICTS="nvidia-utils nvidia-340xx-utils"
CONFLICTS_64="lib32-nvidia-utils lib32-nvidia-340xx-utils"
CONKMOD="nvidia nvidia-340xx"
# Conflicts with other mhwd configs
MHWDCONFLICTS="video-hybrid-intel-nvidia-bumblebee video-nvidia video-nvidia-340xx video-nvidia video-nvidia-390xx video-nvidia-340xx video-nvidia-390xx video-nvidia"
# Dependencies
DEPENDS="nvidia-304xx-utils"
DEPENDS_64="lib32-nvidia-304xx-utils"
DEPKMOD="nvidia-304xx"
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}"
}
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
}
......@@ -2,9 +2,9 @@
NAME="video-nvidia-340xx"
INFO="Closed source NVIDIA legacy drivers for linux."
VERSION="2018.05.04"
VERSION="2018.08.09"
FREEDRIVER="false"
PRIORITY="4"
PRIORITY="3"
CLASSIDS="0300 0302"
VENDORIDS="10de"
......
......@@ -2,9 +2,9 @@
NAME="video-nvidia-390xx"
INFO="Closed source NVIDIA drivers for linux."
VERSION="2018.05.04"
VERSION="2018.08.09"
FREEDRIVER="false"
PRIORITY="5"
PRIORITY="4"
CLASSIDS="0300 0302"
VENDORIDS="10de"
......
......@@ -2,9 +2,9 @@
NAME="video-nvidia"
INFO="Closed source NVIDIA drivers for linux."
VERSION="2018.05.04"
VERSION="2018.08.09"
FREEDRIVER="false"
PRIORITY="6"
PRIORITY="5"
CLASSIDS="0300 0302"
VENDORIDS="10de"
......
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