This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/am5728: LCD issues with Weston and Matrix GUI

Part Number: AM5728

Tool/software: Linux

Hi

We are using sitara am5728 processor based on ti-processor-sdk-linux-am57xx-evm-03.01.00.06.

There is what we meet.When I use LCD and HDMI together,only HDMI will show the Matrix GUI,the LCD show the weston.we want to let the lcd show the Matrix GUI and HDMI show the weston.

In the file am57xx-evm-common.dtsi,we set the display0 = &lcd0;display1 = &hdmi0;

It change nothing , this is so confused to me.

I also try the command "unset WAYLAND_DISPLAY" "weston --tty=1 --connector=36(lcd id)"

then the lcd will show the weston interface,but the serial will stop at "launching '/usr/libexec/weston-desktop-shell"

when I press Ctrl+c,the serial print 

^C[07:34:48.774] /usr/libexec/weston-desktop-shell died on signal 2
[07:34:48.774] caught signal 2
[07:34:48.774] Error: /usr/libexec/weston-desktop-shell apparently cannot run at all.
Quitting...

and the lcd will show the tty1 terminal interface.

there is my question:

1.why the am57xx-evm-common.dtsi can't change the default display and second display?

2.what's the meaning of the weston error?

3.do i have other way to change the Matrix GUI from HDMI to LCD?

any help will be appreciated.

Thanks.

  • The software team have been notified. They will respond here.
  • Hi,

    anyboby want to help me?

    I want to know how to set the LCD as default display.

  • Hello CY,

    Matrix GUI is just a Qt application which runs over the Weston display server.

    These settings on your device tree will spawn it on LCD.
    aliases {
    display0 = &lcd0;
    display1 = &hdmi0;
    };

    These settings on your device tree will spawn it on HDMI.
    aliases {
    display0 = &hdmi0;
    display1 = &lcd0;
    };

    Note: Make sure that you are properly recompiling and replacing the device trees.

    Best regards,
    Kemal
  • Hi,Shakir 

    Thank for you reply.

    I am sure that I set the device tree,

    aliases {
    display0 = &lcd0;
    display1 = &hdmi0;
    };

    and I have replaced the device trees.

    But,the GUI still show at the HDMI,and the LCD only show the weston.

    So,I want to ask

    If something else will affect this?

    Thanks.

  • The default order in the device tree is:
    aliases {
    display0 = &lcd0;
    display1 = &hdmi0;
    };
    May be you have not changed anything.

    Power on/off your board, clean the project before rebuilding the device trees.
    The location of the cursors may affect the spawn position of the GUI window.
  • Hi,

    Sorry for the late reply.

    I tried clean the project before rebuilding the device trees.

    But the nothing was changed,I really don' know where I miss.

     

    I have a same solution like this.I set the lcd as display0 in the dts file,but kmscube show the display0 is HDMI.

    1.Do I have any way to set the primary display as lcd in the filesystem?

    2.When I use kmscube -a,the HDMI will show the picture,but the LCD won't show the picture,why?

    3.Do you have some ideas to guide me find the problems? 

    Thanks.

  • kmscube is demo application to showcase 3D graphics on SGX using kms and gbm and won't work simultaneously with Weston. On my stage without doing any modifications, when I run /etc/init.d/weston stop then kmscube -a it shows the cube on both displays. Please, also try once the kmstest command.