#问题遇到的现象和发生背景:
majaro更新内核至5.18.3后nvidia独显不工作
双显卡采用prime方案
显卡驱动版本为515.48.07
#问题相关代码:
OS: Manjaro Linux x86_64
Kernel: 5.18.3-1-MANJARO
DE: Xfce 4.16
CPU: Intel i7-8550U (8) @ 4.000GHz
GPU: NVIDIA GeForce MX150
GPU: Intel UHD Graphics 620
NVIDIA-SMI 515.48.07 Driver Version: 515.48.07 CUDA Version: 11.7
$ mhwd -li
Installed PCI configs:
NAME VERSION FREEDRIVER TYPE
video-linux 2018.05.04 true PCI
video-modesetting 2020.01.13 true PCI
video-hybrid-intel-nvidia-prime 2021.12.18 false PCI
#运行结果及报错内容:
$prime-run glxgears
/usr/bin/prime-run:行 2: 4225 段错误 (核心已转储)__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia "$@"
$sudo prime-run glxgears
/usr/bin/prime-run:行 2: 4259 段错误 (核心已转储)__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia "$@"
#我的解答思路和尝试过的方法:
重装nvidia-utils无效
#我想要达到的结果:
独立显卡正常运行程序