PDA

View Full Version : Optimus and Debugging



holland01
02-23-2016, 07:51 PM
Hello, everyone. I'm trying to figure out whether or not using a debugger like Nvidia's Graphics Debugger (https://developer.nvidia.com/linux-graphics-debugger) is possible with an Optimus video card on Linux (right now I'm on Ubuntu 15.04). Currently, I'm having problems connecting to the default port under localhost; I'll have a program running through bumblebee, for example, and the Linux Graphics Debugger won't detect anything.

I've attempted this running the debugger through Bumblebee, in addition to without.

Any ideas what the issue is?

Here's Bumblebee's output when running the debugger:



[ 2766.623711] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[ 2766.624034] [INFO]Configured driver: nvidia
[ 2766.624227] [DEBUG]optirun version 3.2.1 starting...
[ 2766.624257] [DEBUG]Active configuration:
[ 2766.624270] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[ 2766.624283] [DEBUG] X display: :8
[ 2766.624297] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-340:/usr/lib32/nvida-340
[ 2766.624310] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 2766.624323] [DEBUG] Accel/display bridge: auto
[ 2766.624337] [DEBUG] VGL Compression: proxy
[ 2766.624350] [DEBUG] VGLrun extra options:
[ 2766.624363] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
[ 2766.624410] [DEBUG]Using auto-detected bridge primus
[ 2766.625379] [INFO]Response: Yes. X is active.


[ 2766.625437] [INFO]Running application using primus.
[ 2766.625563] [DEBUG]Process /usr/local/nv-debugger/nvidia-gfx-debugger started, PID 4556.


As you can see, it doesn't report any issues.

Here's the (relevant) output from glxinfo:



OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GT 750M/PCIe/SSE2
OpenGL core profile version string: 4.4.0 NVIDIA 340.96
OpenGL core profile shading language version string: 4.40 NVIDIA via Cg compiler
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions: