3

I am currently fiddling around with a RaspberryPi and a TFT hat. The TFT screen itself is working and I see the normal Linux console on it. I fetched a quick pygame example and ran it successfully using:

SDL_FBDEV=/dev/fb1 python3 myapp.py

But my setup is a bit fiddly, with the small PI and a separate keyboard attached to it. I would love to be able to SSH into the PI, do some experimentation and launch the application via the remote console.

But when I SSH into the PI and run the above command, it won't show up anything as the graphics environment is not available in the SSH console. I tried running a tmux shell and attaching to that but without success. Obviously using the DISPLAY variable won't work either as I'm not running X. I tried that anyway but it did not work.

Is there any way to start the application remotely such that it shows up on a selected framebuffer device?

  • 1
    One possible setup is using a serial cable. – Rui F Ribeiro Dec 11 '17 at 20:31
  • 1
    Maybe this: github.com/ponty/framebuffer-vncserver ? (found via "remote framebuffer" online search). – Tomáš Pospíšek Dec 11 '17 at 22:15
  • @TomášPospíšek this looks promising. I'll give it a try tonight. – exhuma Dec 12 '17 at 11:53
  • @TomášPospíšek this does not quite work. It only exposed the framebuffer via VNC, but I still cannot launch a framebuffer application via SSH – exhuma Dec 12 '17 at 19:08
  • I'd imagine: 1. setup framebuffer -> VNC, 2. setup VNC to where you sit, 3. log in via ssh, start the application that displays onto that framebuffer. Which step is unworkable? – Tomáš Pospíšek Dec 15 '17 at 22:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.