Skip to content

Commit

Permalink
prime: Fix nvidia RTD3 workaround file generation
Browse files Browse the repository at this point in the history
  • Loading branch information
1Naim committed Aug 12, 2024
1 parent e9d3b39 commit d39305c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions profiles/pci/graphic_drivers/profiles.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ EOF
# without letting the dGPU fully sleep or keeping it running for long
# periods of time.
# See: https://gitlab.gnome.org/GNOME/mutter/-/issues/2969
cat << 'EOF' >/etc/profile.d/nvidia-rt3d-workaround.sh
cat << '\\EOF' >/etc/profile.d/nvidia-rt3d-workaround.sh
if [ -n "$(lspci -d "10de:*:0302")" ]; then
export __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json
fi
Expand Down Expand Up @@ -149,7 +149,7 @@ EOF
# without letting the dGPU fully sleep or keeping it running for long
# periods of time.
# See: https://gitlab.gnome.org/GNOME/mutter/-/issues/2969
cat << 'EOF' >/etc/profile.d/nvidia-rt3d-workaround.sh
cat << '\\EOF' >/etc/profile.d/nvidia-rt3d-workaround.sh
if [ -n "$(lspci -d "10de:*:0302")" ]; then
export __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json
fi
Expand Down

0 comments on commit d39305c

Please sign in to comment.