Mipi display auto-rotate with weston-wayland

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Mipi display auto-rotate with weston-wayland

890 次查看
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 项奖励
回复
2 回复数

865 次查看
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 项奖励
回复

877 次查看
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 项奖励
回复