How to rotate application in eglfs

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

How to rotate application in eglfs

1,650 Views
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 Kudos
2 Replies

1,347 Views
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 Kudos

1,347 Views
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 Kudos