benrules2
benrules2

Reputation: 417

Raspberry Pi Graphics via ssh and local

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.

Upvotes: 1

Views: 1200

Answers (1)

Andrey Sidorov
Andrey Sidorov

Reputation: 25456

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

Upvotes: 2

Related Questions