LD_LIBRARY_PATH 및 ModulePath가 비어 있는 Bumblebee

LD_LIBRARY_PATH 및 ModulePath가 비어 있는 Bumblebee

나는 꽤 오랫동안 이 문제로 어려움을 겪었습니다. 방금 xubuntu를 16.04로 업그레이드했는데 nvidia 드라이버가 다시 고장났습니다. 따라서 평소와 같이 Bumblebee와 함께 모든 nvidia 드라이버(nvidia-352-updates를 사용하고 있음)를 제거해야 했습니다. 그래서 그렇게 한 다음 동일한 프로세스를 다시 수행했습니다(여기서는 약간 관찰할 수 있습니다. 지금은 nvidia-361-updates를 사용하고 있습니다).

sudo apt-get install nvidia-361-updates -y && sudo apt-get install bumblebee

좋아, 모든 준비가 끝났고 난 집으로 향했어 /etc/bumblebee/bumblebee.confLD_LIBRARY_PATH올바른 nvidia 폴더에 대한 항목을 가리켜 XorgModulePath야 합니다. 제 경우에는 nvidia-361. 그 후 방금 컴퓨터를 다시 시작하고 실행을 시도했습니다.

optirun glxinfo

그리고 나는 다음과 같은 답변을 받았습니다.

[ranu@ranu-laptop ~]$ optirun glxinfo [ 515.027004] [ERROR]Cannot access secondary GPU, secondary X is not active. [ 515.027105] [ERROR]Aborting because fallback start is disabled.

나는 놀랐고, 좀 더 장황한 명령( optirun -vv -debug glxinfo)을 실행했습니다.

[ 334.856357] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf [ 334.856840] [INFO]Configured driver: nvidia-361 [ 334.857253] [DEBUG]optirun version 3.2.1 starting... [ 334.857290] [DEBUG]Active configuration: [ 334.857298] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf [ 334.857305] [DEBUG] X display: ebug [ 334.857311] [DEBUG] LD_LIBRARY_PATH: [ 334.857319] [DEBUG] Socket path: /var/run/bumblebee.socket [ 334.857326] [DEBUG] Accel/display bridge: auto [ 334.857341] [DEBUG] VGL Compression: proxy [ 334.857380] [DEBUG] VGLrun extra options: [ 334.857400] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus [ 334.870268] [DEBUG]Using auto-detected bridge virtualgl [ 337.882765] [INFO]Response: No, secondary X is not active. [ 337.882803] [ERROR]Cannot access secondary GPU, secondary X is not active. [ 337.882817] [DEBUG]Socket closed. [ 337.882869] [ERROR]Aborting because fallback start is disabled. [ 337.882887] [DEBUG]Killing all remaining processes.

이상해요. LD_LIBRARY_PATH에 정보가 가득 있는데도 텅 비어있네요 /etc/bumblebee/bumblebee.conf. 그래서 나는 다음을 실행했습니다.

bumblebeed -vv -debug

그리고 출력을 받았습니다:

[ 782.329141] [DEBUG]Found card: 01:00.0 (discrete) [ 782.329201] [DEBUG]Found card: 00:02.0 (integrated) [ 782.329236] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf [ 782.329655] [INFO]Configured driver: nvidia-361 [ 782.329684] [DEBUG]Skipping auto-detection, using configured driver 'nvidia-361' [ 782.329850] [DEBUG]successfully loaded bbswitch [ 782.329866] [INFO]Switching method 'bbswitch' is available and will be used. [ 782.329879] [DEBUG]Active configuration: [ 782.329899] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf [ 782.329919] [DEBUG] X display: ebug [ 782.329938] [DEBUG] LD_LIBRARY_PATH: [ 782.329957] [DEBUG] Socket path: /var/run/bumblebee.socket [ 782.329977] [DEBUG] pidfile: /var/run/bumblebeed.pid [ 782.329995] [DEBUG] xorg.conf file: /etc/bumblebee/xorg.conf.DRIVER [ 782.330017] [DEBUG] xorg.conf.d dir: /etc/bumblebee/xorg.conf.d [ 782.330043] [DEBUG] ModulePath: [ 782.330063] [DEBUG] GID name: bumblebee [ 782.330084] [DEBUG] Power method: auto [ 782.330104] [DEBUG] Stop X on exit: 1 [ 782.330123] [DEBUG] Driver: nvidia-361 [ 782.330142] [DEBUG] Driver module: nvidia-361 [ 782.330163] [DEBUG] Card shutdown state: 1 [ 782.330418] [DEBUG]Process /sbin/modprobe started, PID 3094. [ 782.330566] [DEBUG]Hiding stderr for execution of /sbin/modprobe [ 782.333919] [DEBUG]SIGCHILD received, but wait failed with No child processes [ 782.333969] [DEBUG]Configuration test passed. [ 782.334023] [ERROR]Cannot open or write pidfile /var/run/bumblebeed.pid.

좋아, 이건 더 이상한데, 구성 테스트는 통과했지만 ModulePath비어 있고 게다가 왜 pidfile을 쓸 수 없는지, 권한 문제가 있는지 모르겠습니다.

답변1

DriverBumblebee 구성 파일의 항목은 이어야 nvidia하고 이어야 하는 것처럼 보이지만 nvidia-361Bumblebeed에서는 이전에 본 것처럼 구성 테스트를 통과했다고 말합니다.

[ 782.333969] [DEBUG]Configuration test passed.

관련 정보