1

I have a raspberry pi with a code that has a graphical output using OpenGL. When I'm ssh'ed in, I get the X window output of the graphic. When I run it on the pi however, the output doesn't show up. Does anyone have any ideas?

I've compared the printenv details for both, and everything except ssh is the same. It's running "raspbian wheezy" - "Linux raspberrypi 3.2.27+ #160 PREEMPT Mon Sep 17 23:18:42 BST 2012 armv6l GNU/Linux "

Thanks.

1 Answer 1

2

Try to trace X11 calls your program is making using tracer like xtruss

OpenGL on X11 works differently for local and non-local connections. For local connections:

  • client asks DRI2 extension to allocate video memory buffer
  • all further requests are local function calls, OpenGL library -> video driver -> kernel, bypassing X server

For non-local connections - each GL command is corresponding request in GLX extension

Also see DRI wiki docs

Sign up to request clarification or add additional context in comments.

1 Comment

Just saw this now, I'll give this a try soon... Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.