下面简要描述您的问题:
我正在关注这个文档(https://docs.parrotlinux.org/info/gpu-drivers/) 用于安装专有 Nvidia 驱动程序。
Issue:
当我进行测试运行时,optirun glxgears
没有出现任何错误并且它有效但当我按照整个文档操作(是的,我确实创建了这些文件并附加了指示的内容)并重新启动系统后,我运行 optirun glxgears我收到这个错误。
____ $optirun -vv glxgears
[ 1356.734285] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[ 1356.734992] [DEBUG]optirun version 3.2.1 starting...
[ 1356.734997] [DEBUG]Active configuration:
[ 1356.734999] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[ 1356.735001] [DEBUG] X display: :8
[ 1356.735003] [DEBUG] LD_LIBRARY_PATH: /usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/x86_64-linux-gnu:/usr/lib/i386-linux-gnu
[ 1356.735005] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 1356.735007] [DEBUG] Accel/display bridge: auto
[ 1356.735009] [DEBUG] VGL Compression: proxy
[ 1356.735011] [DEBUG] VGLrun extra options:
[ 1356.735013] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
[ 1356.735099] [DEBUG]Using auto-detected bridge primus
[ 1356.735306] [INFO]Response: No - error: Could not enable discrete graphics card
[ 1356.735313] [ERROR]Cannot access secondary GPU - error: Could not enable discrete graphics card
[ 1356.735318] [DEBUG]Socket closed.
[ 1356.735347] [ERROR]Aborting because fallback start is disabled.
[ 1356.735351] [DEBUG]Killing all remaining processes.
您正在使用哪个版本的 Parrot?
这是 parrot 的全新安装,并且是最新版本。Linux parrot 5.7.0-2parrot2-amd64 #1 SMP Debian 5.7.10-1parrot2 (2020-07-31) x86_64 GNU/Linux
如果有任何错误消息或相关日志,请在下面发布:
____ $sudo dmesg | grep bbswitch
[ 41.551342] bbswitch: version 0.8
[ 41.551353] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[ 41.551367] bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP
[ 41.551603] bbswitch: detected an Optimus _DSM function
[ 41.551807] bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is on
[ 41.553569] bbswitch: disabling discrete graphics
[ 352.141180] bbswitch: enabling discrete graphics
[ 930.208956] bbswitch: enabling discrete graphics
[ 1225.390955] bbswitch: enabling discrete graphics
[ 1350.309887] bbswitch: enabling discrete graphics
[ 1354.342766] bbswitch: enabling discrete graphics
[ 1356.747766] bbswitch: enabling discrete graphics
[ 2167.234057] bbswitch: enabling discrete graphics
[ 2186.187844] bbswitch: enabling discrete graphics
[ 2405.406211] bbswitch: enabling discrete graphics
。
______$ lspci -v
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile) (prog-if 00 [VGA controller])
DeviceName: Onboard - Video
Subsystem: Dell UHD Graphics 630 (Mobile)
Flags: bus master, fast devsel, latency 0, IRQ 127, IOMMU group 2
Memory at a2000000 (64-bit, non-prefetchable) [size=16M]
Memory at 80000000 (64-bit, prefetchable) [size=256M]
I/O ports at 5000 [size=64]
Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: i915
Kernel modules: i915
。
______$ lspci -v
01:00.0 3D controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] (rev ff) (prog-if ff)
!!! Unknown header type 7f
Kernel modules: nvidia
我也尝试过在“/etc/bumblebee/bumblebee.conf”文件中写入“Driver=”放置“Driver=nvidia”。重新启动系统。仍然不起作用。
更新 #1:
我的笔记本电脑型号是戴尔 G3 3579。
____ $optirun -vv glxgears -info
[ 471.923260] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[ 471.923960] [DEBUG]optirun version 3.2.1 starting...
[ 471.923980] [DEBUG]Active configuration:
[ 471.923982] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[ 471.923984] [DEBUG] X display: :8
[ 471.923986] [DEBUG] LD_LIBRARY_PATH: /usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/x86_64-linux-gnu:/usr/lib/i386-linux-gnu
[ 471.923988] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 471.923990] [DEBUG] Accel/display bridge: auto
[ 471.923991] [DEBUG] VGL Compression: proxy
[ 471.923993] [DEBUG] VGLrun extra options:
[ 471.923995] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
[ 471.924045] [DEBUG]Using auto-detected bridge primus
[ 471.924142] [INFO]Response: No - error: Could not enable discrete graphics card
[ 471.924146] [ERROR]Cannot access secondary GPU - error: Could not enable discrete graphics card
[ 471.924148] [DEBUG]Socket closed.
[ 471.924152] [ERROR]Aborting because fallback start is disabled.
[ 471.924155] [DEBUG]Killing all remaining processes.
答案1
这个问题很常见,解决方法也有很多。据说 Bumblebee 与许多戴尔型号不兼容。以下方法之一可能适合您:
无需 TLP 即可运行
lspci | grep "NVIDIA" | cut -b -8
并将输出附加RUNTIME_PM_BLACKLIST
到/etc/default/tlp
使用不带 bbswitch 的 Bumblebee,因此默认使用 Intel,并使用
optirun
Nvidia取消
/etc/modprobe.d/bbswitch.conf
注释该行:#options bbswitch load_state=0 unload_state=1
改用最佳经理。