14

My daughter just got the PiTFT for her Raspberry Pi, and I finally picked up myself a Pi(B+, woo woo)+touchscreen as well.

Given that she's in second grade and I think every other kid in school plays Minecraft, she was extremely excited when she realized it was preloaded on her Pi.

However, when she launches it the main minecraft window (with the decorations) shows up on the TFT nice and black. But the actual minecraft display shows up out of the HDMI. We've tried export FRAMEBUFFER=/dev/fb1 a la the Adafruit guide in console and then running minecraft-pi but alas! No luck. The minecraft game window still goes the wrong direction.

So, how can we make Minecraft show up on the PiTFT?

goldilocks
  • 58,859
  • 17
  • 112
  • 227
Wayne Werner
  • 461
  • 2
  • 13
  • I tweaked your title a bit in hopes this would get you the attention you need. – goldilocks Nov 29 '14 at 17:22
  • It is a good question to post on adafruit forum as well. – Chetan Bhargava Nov 30 '14 at 08:30
  • @WayneWerner Also I would not allow a young one to squint on a small LCD for hour or so. – Chetan Bhargava Dec 02 '14 at 05:36
  • What do you mean by 'out of the HDMI'? Do you mean out of the screen, or off of the tab? The latter is normal, but if it is out of the screen, there is a problem. I can look into it if it is out of the screen and try to solve it. –  Dec 10 '14 at 01:06
  • It displays on the wrong(?) framebuffer - I have X running on /dev/fb1 and the Minecraft window decorations show up there (the PiTFT), but the actual minecraft SDL(?) window shows up on /dev/fb0 (HDMI display). – Wayne Werner Dec 10 '14 at 01:23
  • 2
    I have found the same hole. Despite of a few operations, for the moment, i am searching how to go around it (with a workaround if possible). I will post soon an update for this post. Pr.K –  Dec 10 '14 at 12:57
  • 1
    Have you looked into \ used fbcp? – linuxgnuru Dec 16 '14 at 09:18
  • I've tried it, and it kinda works - but it really thrashes the CPU. When running Minecraft alone the CPU can even idle - but with fbcp it's always at 100% :( – Wayne Werner Dec 16 '14 at 12:14

1 Answers1

4

If Minecraft on the pi uses OpenGL, this won't work because OGL will not work on the PiTFT. Adafruit has an explanation of this.

Examining the minecraft-pi binary downloaded from here reveals that it does link to the openGL-ES libs on the pi, so you will not be able to use it on the PiTFT.

goldilocks
  • 58,859
  • 17
  • 112
  • 227