Skip to content

Instantly share code, notes, and snippets.

@muhajirinlpu
Created August 7, 2022 16:15
Show Gist options
  • Save muhajirinlpu/8d401cb622e4e85647ab7cf70a46ffe6 to your computer and use it in GitHub Desktop.
Save muhajirinlpu/8d401cb622e4e85647ab7cf70a46ffe6 to your computer and use it in GitHub Desktop.
#!/bin/bash
sudo modprobe nvidia
sudo modprobe nvidia_uvm
sudo modprobe nvidia_modeset
sudo modprobe nvidia_drm modeset=1
#__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia
__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