Screen Auto-Rotation on Linux 6.1 for i.MX8MQ

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

Screen Auto-Rotation on Linux 6.1 for i.MX8MQ

227 Views
Derek0902
Contributor II

Hi,

I have a i.MX8MQ based custom board and its OS is Linux 6.1. Then I have ported STM LSM6DSV IMU on i.MX8MQ. If I want to make screen auto-rotate with IMU, how can I do it? Is there any reference I can refer to it?

 

Thanks & Regards,

Derek Lin

0 Kudos
5 Replies

172 Views
Derek0902
Contributor II

Hi @brian14 ,

BTW, I can modify /etc/xdg/weston/weston.ini to rotate the screen. But it needs to reboot the board again to init the screen orientation.

I want to change screen orientation dynamically, Is there no command I can use?

I found some information that there is a config file under /tmp/.weston_drm.conf from website. The file can config screen orientation dynamically, but I found that there is no config file on imx8mq.

Thanks & Regards,

Derek Lin

0 Kudos

188 Views
brian14
NXP TechSupport
NXP TechSupport

Hi @Derek0902

Thank you for contacting NXP Support.

Sorry, but we don't have any reference or example for this application.

Have a great day!

0 Kudos

181 Views
Derek0902
Contributor II

Hi @brian14 ,

Is there any command or API that I can use to rotate screen ? 

 

Regards,

Derek Lin

0 Kudos

176 Views
brian14
NXP TechSupport
NXP TechSupport

Hi @Derek0902

Please have a look to the i.MX Graphics User's Guide chapter 2 i.MX G2D API.

i.MX Graphics User's Guide (nxp.com)

Have a great day!

0 Kudos

173 Views
Derek0902
Contributor II

Hi @brian14 ,

 

When I compile C program, it can't include "g2d.h". Is i.MX8MQ supported g2d API?

 

Regards,

Derek Lin

0 Kudos