Mipi display auto-rotate with weston-wayland

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Mipi display auto-rotate with weston-wayland

626 Views
Hardevsinh_Palaniya
Contributor III

Hi,
I am using MIPI-DSI display with i.MX8M mini. U-boot and kernel are as follow.

  • U-boot : U-Boot 2020.04-5.4.47-2.2.0
  • Kernel : 5.4.47 (NXP i.MX Release Distro 5.4-zeus)

I am able to bring-up the display and rotate it using weston.ini . Now, i want to rotate the display with the input of accelerometer and gyroscope. 

Can any share the documents or example for auto-rotate display with weston-wayland?

Senior Embedded Engineer | hardevsinh.palaniya@siliconsignals.io | www.siliconsignals.io
0 Kudos
2 Replies

601 Views
Hardevsinh_Palaniya
Contributor III

Hi @Zhiming_Liu ,

Thanks for the reply.
I used weston_output_set_transform as you suggested, and it required resetting the display in order to apply the rotation.
Can you suggest any thing like xrandr used for X11?

Senior Embedded Engineer | hardevsinh.palaniya@siliconsignals.io | www.siliconsignals.io
0 Kudos

613 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

We don't have such document or demo code for weston.

You can add thread to listen accelerometer data and use  weston_output_set_transform change the display orientation 

0 Kudos