Weston.ini rotate not working

Prob a simple one, but I previously used the following in the weston.ini to rotate the screen 90 degrees.

[output]
name=HDMI-A-1
transform=rotate-90

If I change HDMI-A-1 to HDMI-A-2 it complains so at least I know my ini file is being loaded.

It’s not rotating the screen. Is there a different syntax for Torizon OS 6.7

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


The syntax you provided for rotating the screen in the weston.ini file is correct. However, there are a few things you might want to check to ensure that the rotation is applied correctly:

  1. Verify Output Name: Ensure that the output name HDMI-A-1 is correct. You can find the correct output name by running the weston-info command inside the running Weston container. This will list all connected outputs and their names.

  2. Check Weston Logs: Look at the Weston logs to see if there are any errors or warnings related to the weston.ini file. You can access the logs by running the Weston container with the --developer switch and checking the output.

  3. Configuration File Location: Make sure that the weston.ini file is being correctly mounted or included in the Weston container. If you are using a bind mount, ensure the path is correct in your docker run command.

  4. Weston Version: Ensure that the version of Weston you are using supports the transform option. Since you mentioned Torizon OS 6.7, it should support this feature, but it’s always good to double-check the Weston version and its documentation.

Here is a step-by-step guide to troubleshoot:

  1. Run weston-info:

    docker exec -it <weston-container-id> weston-info
    

    Look for the correct output name in the list.

  2. Check Weston Logs:

    docker logs <weston-container-id>
    

    Look for any errors or warnings related to the weston.ini file.

  3. Ensure Correct Mounting:
    If you are using a bind mount, your docker run command should look something like this:

    docker run -d --rm --name=weston --developer -v /path/to/your/weston.ini:/etc/xdg/weston/weston.ini torizon/weston
    
  4. Example weston.ini:
    Ensure your weston.ini file looks like this:

    [output]
    name=HDMI-A-1
    transform=rotate-90
    

If after these steps the screen is still not rotating, please provide more details or any error messages you are seeing in the logs.

Please, also check if these links can help you solve your problem:

Verdin 8MM DSI LVDS display rotation.

Hi @jeffbelz

Likely not terribly helpful but it “works for me”. I tested on 6.7.0-build.18 on an apalis-imx6 with HDMI connected.

Do the logs from the individual docker containers tell you anything interesting?

Drew

Hi @jeffbelz

Have you had a chance to look into the client-side logs here?

Drew

Actually, it started working again. Can’t explain

Great. Let’s take the win and move on.

Drew