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/DRA726: Weston screen rotation

Part Number: DRA726
Other Parts Discussed in Thread: AM5728

Tool/software: Linux

Our new 7 inch LCD is 800x1280 so the display is sideways which is unacceptable for our customer.

I am able to rotate the display when on the command line but when I load weston the display is then sideways.

What would be the equivalent of xrandr for weston? or some other command that would get the screen to rotate?

I used the automotive SDK 3.02 as a base. For the splash screen in u-boot I just rotated the picture and reflashed the QSPI.

For the demo to the customer I am going to use my Funtoo Linux but for the real project I will use embedded wizard with weston as I use with the 12 inch display.

Michel

  • Hi Michael,

    I have forwarded your question to Weston experts.

    Regards,
    Yordan
  • I found the solution on one of the threads for the AM5728

    I modified the HDMI example to point to our LCD instead

    in /etc/weston.ini

    [output]
    name=Unknown-1
    transform=270

     

    Where is that Unkown-1 name picked? I got that information out of /var/log/weston.log

    I would like to have a more descriptive name than Unknown

    Michel

  • Hi Michel,
    The name is nothing but what modetest shows for that connector.
  • Hi Michel,

    Here is the complete response.

    1. Find out the name of the connector(s) that is connected to the boards. You can do this by running the modetest command and looking for the "name" under the connectors. Typically for the LCD displays that ship with the EVM the LCD display is named as "Unknown-1" and for the HDMI is usually named as "HDMI-A-1"
    2. Once you have the name of the connector then you can edit the /etc/weston.ini and add a section like:

    [output]

    name=Unknown-1

    transform=90

    [output]

    name=HDMI-A-1

    transform=180

    You would need to restart weston after these settings are applied, and in the example stated above, it will achieve the rotation of the LCD by 90 degrees clockwise and for the HDMI it will be rotated by 180.

    Hope that helps.

    Regards

    Karthik