系统:Ubuntu 16.04.5 LTS - Unity Desktop全新安装Dell XPS 9650 Intel 7700 HQ + Nvidia 1050 GTX mobile
我正在尝试让 Nvidia 驱动程序 (415) + Cuda + prime select 在我的工作笔记本上运行。但每次选择英特尔显卡时,所有符号链接都会被破坏:
ng@dw10048-ubuntu ~ ls -al /usr/bin/nvidia-*
lrwxrwxrwx 1 root root 52 Nov 18 08:22 /usr/bin/nvidia-bug-report.sh -> /etc/alternatives/x86_64-linux-gnu_nvidia_bug_report
lrwxrwxrwx 1 root root 58 Nov 18 08:22 /usr/bin/nvidia-cuda-mps-control -> /etc/alternatives/x86_64-linux-gnu_nvidia-cuda-mps-control
lrwxrwxrwx 1 root root 57 Nov 18 08:22 /usr/bin/nvidia-cuda-mps-server -> /etc/alternatives/x86_64-linux-gnu_nvidia-cuda-mps-server
lrwxrwxrwx 1 root root 51 Nov 18 08:22 /usr/bin/nvidia-debugdump -> /etc/alternatives/x86_64-linux-gnu_nvidia-debugdump
-rwxr-xr-x 1 root root 270 Jan 30 2018 /usr/bin/nvidia-detector
lrwxrwxrwx 1 root root 54 Nov 18 08:22 /usr/bin/nvidia-persistenced -> /etc/alternatives/x86_64-linux-gnu_nvidia_persistenced
-rwxr-xr-x 1 root root 224600 Nov 13 15:33 /usr/bin/nvidia-settings
lrwxrwxrwx 1 root root 45 Nov 18 08:22 /usr/bin/nvidia-smi -> /etc/alternatives/x86_64-linux-gnu_nvidia_smi
lrwxrwxrwx 1 root root 49 Nov 18 08:22 /usr/bin/nvidia-xconfig -> /etc/alternatives/x86_64-linux-gnu_nvidia_xconfig
ng@dw10048-ubuntu ~ ls -al /etc/alternatives/x86_64-linux-gnu_nvidia*
lrwxrwxrwx 1 root root 59 Nov 18 08:22 /etc/alternatives/x86_64-linux-gnu_nvidia_app_profile -> /usr/share/nvidia-415/nvidia-application-profiles-415.13-rc
lrwxrwxrwx 1 root root 74 Nov 18 08:22 /etc/alternatives/x86_64-linux-gnu_nvidia_app_profile_keys -> /usr/share/nvidia-415/nvidia-application-profiles-415.13-key-documentation
lrwxrwxrwx 1 root root 44 Nov 18 08:22 /etc/alternatives/x86_64-linux-gnu_nvidia_bug_report -> /usr/lib/nvidia-415/bin/nvidia-bug-report.sh
lrwxrwxrwx 1 root root 47 Nov 18 08:22 /etc/alternatives/x86_64-linux-gnu_nvidia-cuda-mps-control -> /usr/lib/nvidia-415/bin/nvidia-cuda-mps-control
lrwxrwxrwx 1 root root 56 Nov 18 08:22 /etc/alternatives/x86_64-linux-gnu_nvidia-cuda-mps-control.1.gz -> /usr/share/man/man1/alt-nvidia-415-cuda-mps-control.1.gz
lrwxrwxrwx 1 root root 46 Nov 18 08:22 /etc/alternatives/x86_64-linux-gnu_nvidia-cuda-mps-server -> /usr/lib/nvidia-415/bin/nvidia-cuda-mps-server
lrwxrwxrwx 1 root root 40 Nov 18 08:22 /etc/alternatives/x86_64-linux-gnu_nvidia-debugdump -> /usr/lib/nvidia-415/bin/nvidia-debugdump
lrwxrwxrwx 1 root root 38 Nov 18 08:22 /etc/alternatives/x86_64-linux-gnu_nvidia_drv -> /usr/lib/nvidia-415/xorg/nvidia_drv.so
lrwxrwxrwx 1 root root 29 Nov 18 08:22 /etc/alternatives/x86_64-linux-gnu_nvidia_modconf -> /lib/nvidia-415/modprobe.conf
lrwxrwxrwx 1 root root 43 Nov 18 08:22 /etc/alternatives/x86_64-linux-gnu_nvidia_persistenced -> /usr/lib/nvidia-415/bin/nvidia-persistenced
lrwxrwxrwx 1 root root 34 Nov 18 08:22 /etc/alternatives/x86_64-linux-gnu_nvidia_smi -> /usr/lib/nvidia-415/bin/nvidia-smi
lrwxrwxrwx 1 root root 43 Nov 18 08:22 /etc/alternatives/x86_64-linux-gnu_nvidia-smi.1.gz -> /usr/share/man/man1/alt-nvidia-415-smi.1.gz
lrwxrwxrwx 1 root root 38 Nov 18 08:22 /etc/alternatives/x86_64-linux-gnu_nvidia_xconfig -> /usr/lib/nvidia-415/bin/nvidia-xconfig
ng@dw10048-ubuntu ~ sudo prime-select intel
Info: the current GL alternatives in use are: ['nvidia-415', 'nvidia-415']
Info: the current EGL alternatives in use are: ['nvidia-415', 'nvidia-415']
Info: selecting nvidia-415-prime for the intel profile
update-alternatives: /usr/lib/nvidia-415-prime/ld.so.conf wird verwendet, um /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) im manuellen Modus bereitzustellen
update-alternatives: /usr/lib/nvidia-415-prime/ld.so.conf wird verwendet, um /etc/ld.so.conf.d/x86_64-linux-gnu_EGL.conf (x86_64-linux-gnu_egl_conf) im manuellen Modus bereitzustellen
update-alternatives: /usr/lib/nvidia-415-prime/alt_ld.so.conf wird verwendet, um /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) im manuellen Modus bereitzustellen
update-alternatives: /usr/lib/nvidia-415-prime/alt_ld.so.conf wird verwendet, um /etc/ld.so.conf.d/i386-linux-gnu_EGL.conf (i386-linux-gnu_egl_conf) im manuellen Modus bereitzustellen
ng@dw10048-ubuntu ~ ls -al /usr/bin/nvidia-*
lrwxrwxrwx 1 root root 52 Nov 18 08:22 /usr/bin/nvidia-bug-report.sh -> /etc/alternatives/x86_64-linux-gnu_nvidia_bug_report
lrwxrwxrwx 1 root root 51 Nov 18 08:22 /usr/bin/nvidia-debugdump -> /etc/alternatives/x86_64-linux-gnu_nvidia-debugdump
-rwxr-xr-x 1 root root 270 Jan 30 2018 /usr/bin/nvidia-detector
-rwxr-xr-x 1 root root 224600 Nov 13 15:33 /usr/bin/nvidia-settings
lrwxrwxrwx 1 root root 45 Nov 18 08:22 /usr/bin/nvidia-smi -> /etc/alternatives/x86_64-linux-gnu_nvidia_smi
lrwxrwxrwx 1 root root 49 Nov 18 08:22 /usr/bin/nvidia-xconfig -> /etc/alternatives/x86_64-linux-gnu_nvidia_xconfig
ng@dw10048-ubuntu ~ ls -al /etc/alternatives/x86_64-linux-gnu_nvidia*
lrwxrwxrwx 1 root root 59 Nov 18 08:25 /etc/alternatives/x86_64-linux-gnu_nvidia_app_profile -> /usr/share/nvidia-415/nvidia-application-profiles-415.13-rc
lrwxrwxrwx 1 root root 74 Nov 18 08:25 /etc/alternatives/x86_64-linux-gnu_nvidia_app_profile_keys -> /usr/share/nvidia-415/nvidia-application-profiles-415.13-key-documentation
lrwxrwxrwx 1 root root 44 Nov 18 08:25 /etc/alternatives/x86_64-linux-gnu_nvidia_bug_report -> /usr/lib/nvidia-415/bin/nvidia-bug-report.sh
lrwxrwxrwx 1 root root 40 Nov 18 08:25 /etc/alternatives/x86_64-linux-gnu_nvidia-debugdump -> /usr/lib/nvidia-415/bin/nvidia-debugdump
lrwxrwxrwx 1 root root 29 Nov 18 08:25 /etc/alternatives/x86_64-linux-gnu_nvidia_modconf -> /lib/nvidia-415/modprobe.conf
lrwxrwxrwx 1 root root 34 Nov 18 08:25 /etc/alternatives/x86_64-linux-gnu_nvidia_smi -> /usr/lib/nvidia-415/bin/nvidia-smi
lrwxrwxrwx 1 root root 43 Nov 18 08:25 /etc/alternatives/x86_64-linux-gnu_nvidia-smi.1.gz -> /usr/share/man/man1/alt-nvidia-415-smi.1.gz
lrwxrwxrwx 1 root root 38 Nov 18 08:25 /etc/alternatives/x86_64-linux-gnu_nvidia_xconfig -> /usr/lib/nvidia-415/bin/nvidia-xconfig
我读了:
安装 nVidia 390.74 后,Ubuntu 18.04 启动时卡在消息“已启动 NVIDIA Persistence Daemon”
安装 nVidia 384.90 后,Ubuntu 17.10 启动时卡在消息“已启动 NVIDIA Persistence Daemon”处
如何让 nvidia-persistenced 守护进程正常工作?
https://bugs.launchpad.net/ubuntu/+source/nvidia-persistenced/+bug/1693123
但似乎只有两个有效的解决方案:
- 不要使用 Unity + GDM -> 我不能这样做,因为我们仍然提供 16.04 LTS 的软件,需要在 Unity 中进行测试
- 使用 Nouveau 或 Intel 驱动程序 -> 这不是我想要做的,因为我想使用 CUDA
因此,除非有人知道更好的方法,否则我会创建一个别名,调用包装器脚本在切换后重新创建所有符号链接。
另外,有人知道这个问题的根本原因是什么吗?为什么符号链接被删除了?