Screen Auto-Rotation on Linux 6.1 for i.MX8MQ

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Screen Auto-Rotation on Linux 6.1 for i.MX8MQ

328件の閲覧回数
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 件の賞賛
返信
5 返答(返信)

273件の閲覧回数
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 件の賞賛
返信

289件の閲覧回数
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 件の賞賛
返信

282件の閲覧回数
Derek0902
Contributor II

Hi @brian14 ,

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

 

Regards,

Derek Lin

0 件の賞賛
返信

277件の閲覧回数
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 件の賞賛
返信

274件の閲覧回数
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 件の賞賛
返信