diff --git a/profiles/pci/graphic_drivers/profiles.toml b/profiles/pci/graphic_drivers/profiles.toml index 15cbc63..357ccf0 100644 --- a/profiles/pci/graphic_drivers/profiles.toml +++ b/profiles/pci/graphic_drivers/profiles.toml @@ -71,21 +71,6 @@ EOF fi systemctl enable switcheroo-control - - cat << 'EOF' >/etc/profile.d/nvidia-rtd3-workaround.sh -# This file is automatically generated by chwd. PLEASE DO NOT EDIT IT. -if grep -q '0x030200' /sys/bus/pci/drivers/nvidia/*/class; then - export __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json -fi -EOF - - cat << 'EOF' | install -Dm755 /dev/stdin /usr/lib/systemd/user-environment-generators/20-nvidia-rtd3-workaround -#!/usr/bin/env sh -# This file is automatically generated by chwd. PLEASE DO NOT EDIT IT. -if grep -q '0x030200' /sys/bus/pci/drivers/nvidia/*/class; then - echo "__EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json" -fi -EOF """ pre_install = """ cat </etc/mkinitcpio.conf.d/10-chwd.conf @@ -97,8 +82,6 @@ pre_remove = """ rm -f /etc/mkinitcpio.conf.d/10-chwd.conf """ post_remove = """ - rm -f /etc/profile.d/nvidia-rtd3-workaround.sh - rm -f /usr/lib/systemd/user-environment-generators/20-nvidia-rtd3-workaround rm -f /etc/modprobe.d/chwd-nvidia.conf """ @@ -145,29 +128,10 @@ EOF """ post_install = """ systemctl enable switcheroo-control - - cat << 'EOF' >/etc/profile.d/nvidia-rtd3-workaround.sh -# This file is automatically generated by chwd. PLEASE DO NOT EDIT IT. -if grep -q '0x030200' /sys/bus/pci/drivers/nvidia/*/class; then - export __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json -fi -EOF - - cat << 'EOF' | install -Dm755 /dev/stdin /usr/lib/systemd/user-environment-generators/20-nvidia-rtd3-workaround -#!/usr/bin/env sh -# This file is automatically generated by chwd. PLEASE DO NOT EDIT IT. -if grep -q '0x030200' /sys/bus/pci/drivers/nvidia/*/class; then - echo "__EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json" -fi -EOF """ pre_remove = """ rm -f /etc/mkinitcpio.conf.d/10-chwd.conf """ -post_remove = """ - rm -f /etc/profile.d/nvidia-rtd3-workaround.sh - rm -f /usr/lib/systemd/user-environment-generators/20-nvidia-rtd3-workaround -""" [nvidia-dkms-470xx] desc = 'Closed source NVIDIA drivers for Linux (470xx branch, only for Kepler GPUs)'