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?