How to display a screensaver at a torizon module hdmi display

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

Did you like my answer?

:+1: :-1:


Hello Gerald,

To display a simple screensaver or logo on a connected HDMI display using a Torizon module, you can follow these steps:

  1. Prepare the Image:

    • Ensure you have the image file (e.g., a logo or screensaver image) in a format supported by the display software (e.g., PNG, JPEG).
  2. Set Up Weston:

    • Torizon uses the Weston Wayland compositor for display management. You need to have the Weston container running on your module.
    • If you havenโ€™t already, pull and start the Weston container:
      docker pull torizon/weston
      docker run -d --rm --name=weston --net=host --cap-add CAP_SYS_TTY_CONFIG -v /dev:/dev -v /tmp:/tmp -v /run/udev:/run/udev torizon/weston
      
  3. Display the Image:

    • You can use a simple image viewer like feh to display the image. First, you need to install feh in a container. You can use a Debian container for this purpose:
      docker run -it --rm --name=debian --net=host -v /tmp:/tmp torizon/debian:latest-std bash
      apt-get update
      apt-get install -y feh
      
  4. Run the Image Viewer:

    • Once feh is installed, you can use it to display your image. Assuming your image is located at /path/to/your/image.png, you can run:
      feh --fullscreen /path/to/your/image.png
      
  5. Automate the Screensaver:

    • If you want to automate the display of the screensaver, you can create a script that runs the feh command and set it to execute at startup or after a certain period of inactivity.
  6. Optional - Use a Screensaver Application:

    • Alternatively, you can use a dedicated screensaver application like xscreensaver. Install it in a similar manner and configure it to display your desired screensaver.

By following these steps, you should be able to display a simple screensaver or logo on your connected HDMI display using a Torizon module.

Best regards,
[Your Name]

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

Colibri iMX6ULL: Torizon with containers not coming up.