Last active
June 6, 2022 09:21
-
-
Save muhajirinlpu/4013b7271a77f686c101cd5def9cd9eb to your computer and use it in GitHub Desktop.
nvidia.conf = /use/lib/modprobe.d , prime-run = /usr/bin/prime-run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blacklist nvidia | |
blacklist nvidia-drm | |
blacklist nvidia-modeset | |
blacklist nvidia-uvm | |
blacklist nouveau |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo modprobe nvidia | |
sudo modprobe nvidia_uvm | |
sudo modprobe nvidia_modeset | |
sudo modprobe nvidia_drm modeset=1 | |
__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json | |
"$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment