Inverted red and blue colors on a LCD

21 views
Skip to first unread message

Mostafa Yaghobi

unread,
Aug 28, 2017, 5:14:06 PM8/28/17
to beagl...@googlegroups.com
Hi,

I have installed the "ubuntu-16.04.1-console-armhf-2017-01-23" from <URL: http://elinux.org/BeagleBoardUbuntu> on the SSD for BBB. I have installed different stuffs to have a "desktop" like LXDE. To enable "Xorg Drivers" I have ran

$ /opt/scripts/tools/graphics/ti-tilcdc.sh

Everything is fine for HDMI.

However, I have a LCD (ER-TFT050-3  1B) connected to BBB. I have customized the Device Tree as follow to drive the LCD:

&lcdc {
    status = "okay";
};

/ {
    panel {
        status = "okay";
        compatible = "ti,tilcdc,panel";
        pinctrl-names = "default";

        panel-info {
            ac-bias        = <255>;
            ac-bias-intrpt = <0>;
            dma-burst-sz   = <16>;
            bpp            = <16>;
            fdd            = <0x80>;
            sync-edge      = <0>;
            sync-ctrl      = <0>;
            raster-order   = <1>;
            fifo-th        = <0>;
        };
        display-timings {
            native-mode = <&timing0>;
            timing0: 800x480 {
                clock-frequency = <50000000>;
                hactive         = <800>;
                vactive         = <480>;
                hfront-porch    = <40>;
                hback-porch     = <88>;
                hsync-len       = <30>;
                vback-porch     = <32>;
                vfront-porch    = <13>;
                vsync-len       = <2>;
                hsync-active    = <0>;
                vsync-active    = <0>;
                de-active       = <1>;
                pixelclk-active = <0>;
            };
        };
    };
};

My xorg.conf is also as follow:

Section "Monitor"
        Identifier      "Builtin Default Monitor"
EndSection

Section "Device"
        Identifier      "Builtin Default fbdev Device 0"
        Driver          "fbdev"
        Option          "SWCursor"      "true"
EndSection

Section "Screen"
        Identifier      "Builtin Default fbdev Screen 0"
        Device          "Builtin Default fbdev Device 0"
        Monitor         "Builtin Default Monitor"
        DefaultDepth    16
EndSection

Section "ServerLayout"
        Identifier      "Builtin Default Layout"
        Screen          "Builtin Default fbdev Screen 0"
EndSection

The problem is there the red and the blue are inverted on the LCD as far as I keep the line

Driver          "fbdev"

in xorg.conf! If I comment this line "Driver          "fbdev"" from xorg.conf the colors become fine, but I have a slow desktop!

Would you please help me to figure out what is wrong with my configurations?
Reply all
Reply to author
Forward
0 new messages