简体   繁体   English

通过 ssh 和本地的树莓派图形

[英]Raspberry Pi Graphics via ssh and local

I have a raspberry pi with a code that has a graphical output using OpenGL.我有一个带有使用 OpenGL 的图形输出代码的树莓派。 When I'm ssh'ed in, I get the X window output of the graphic.当我通过 ssh 进入时,我得到图形的 X 窗口输出。 When I run it on the pi however, the output doesn't show up.但是,当我在 pi 上运行它时,输出没有显示。 Does anyone have any ideas?有没有人有任何想法?

I've compared the printenv details for both, and everything except ssh is the same.我已经比较了两者的 printenv 详细信息,除了 ssh 之外的所有内容都是相同的。 It's running "raspbian wheezy" - "Linux raspberrypi 3.2.27+ #160 PREEMPT Mon Sep 17 23:18:42 BST 2012 armv6l GNU/Linux "它正在运行“raspbian wheezy”-“Linux raspberrypi 3.2.27+ #160 PREEMPT Mon Sep 17 23:18:42 BST 2012 armv6l GNU/Linux”

Thanks.谢谢。

Try to trace X11 calls your program is making using tracer like xtruss尝试使用像xtruss这样的跟踪器来跟踪您的程序正在进行的 X11 调用

OpenGL on X11 works differently for local and non-local connections. X11 上的 OpenGL 对本地和非本地连接的工作方式不同。 For local connections:对于本地连接:

  • client asks DRI2 extension to allocate video memory buffer 客户端要求 DRI2 扩展分配视频内存缓冲区
  • all further requests are local function calls, OpenGL library -> video driver -> kernel, bypassing X server所有进一步的请求都是本地函数调用,OpenGL 库 -> 视频驱动程序 -> 内核,绕过 X 服务器

For non-local connections - each GL command is corresponding request in GLX extension对于非本地连接 - 每个 GL 命令都是GLX 扩展中的相应请求

Also see DRI wiki docs另请参阅DRI wiki 文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM