How to rotate application in eglfs

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

How to rotate application in eglfs

2,674件の閲覧回数
wangtsungli
Contributor IV

Hi Community,

I'm working on i.MX6 Quad and build OS image via Yocto Project 2.0.

I build my root file system without Xserver.

I run my application which is designed with QT  by executing "./application -platform eglfs". 

First to mention, I could rotate console by command "echo 1 > /sys/class/graphics/fbcon/rotate".

This only rotate my console but not my application.

How can I rotate my application?

I also try to

export  QT_QPA_EGLFS_ROTATION=90

and run my application by this command

./application -platform eglfs

However it sill not working!

Did I miss anything?

Thanks in Advanced!

0 件の賞賛
返信
2 返答(返信)

2,371件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport

do you need to rotate the full screen? if yes, can try to use xrandr, the command is like:xrandr -o left:

0 件の賞賛
返信

2,371件の閲覧回数
wangtsungli
Contributor IV

Joan Xie 留言:

do you need to rotate the full screen? if yes, can try to use xrandr, the command is like:xrandr -o left:

Yes, I'm trying to rotate full screen.

But here is the problem that I am not using X server in my root file system.

As I'm using eglfs, I have to close X server to use it.

Is there any other way to achieve it?

0 件の賞賛
返信