Nvidia命令:prime-run:command not found

自行在/usr/bin新建脚本,粘贴下列内容

#!/bin/bash
export __NV_PRIME_RENDER_OFFLOAD=1
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export __VK_LAYER_NV_optimus=NVIDIA_only
export VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json
exec "$@"

然后给予可执行权限:

chmod +x prime-run

你可能感兴趣的:(linux,ubuntu)