Forum >Weird colors on Robopeak 2.8” USB TFT.
LattePandaGeneral

Weird colors on Robopeak 2.8” USB TFT.

userHead ferite 2014-09-03 15:10:24 8115 Views3 Replies

Hi.

I have connected a Robopeak 2.8” USB display to a x86 board running TinyCore Linux. Unfortunately the image seems to lack one of the chrome components, as the image color is altered as follows:

Normal image:

Imagen on the display:

I think it is not a HW related problem, but a software one. I hope that someone can give me some tips, about what should I check in my configuration, to fix this.

Thanks.

2015-08-11 19:03:43 Hi

You could email to the robopeak for more info.

[email protected]

Thanks for your understanding!
userHeadPic Leff
2014-09-11 18:11:40 Hi Jose.

After some test I found that this only happens to Java application (running over the Java VM).

The folks at Robopeak told me, that traditionally, framebuffer stores the data in {R, G, B} sequence. But this driver in particular uses {B, G, R}. Apparently most X11 application can "query" for the correct color order. But Java VM don't. So they suggested me to modify the driver so it manage the order in the traditional RGB way.

Thus I modified fbhandlers.c, in function "_display_setcolreg" (line 219). I only changed this:

            red= CNVT_TOHW (red, info->var.red.length);
            green = CNVT_TOHW (green, info->var.green.length);
            blue= CNVT_TOHW (blue, info->var.blue.length);

for this:

            blue = CNVT_TOHW (red, info->var.red.length);
            green = CNVT_TOHW (green, info->var.green.length);
            red = CNVT_TOHW (blue, info->var.blue.length);

Hoping that this swap were sufficient, but there were not change in the colors in Java apps. So I am hopping to get any suggestion on how do I should modify the driver.

Thanks.
userHeadPic ferite
2014-09-03 19:35:51 Hello ferite,

Do you have any more details? I'd like to try this on my side.
What specific hardware are you using?

what about the software you are using for the image?

Cheers^^
userHeadPic Jose