Can LayerManagerControl rotate the output 90 degrees CCW?

cancel
Showing results for 
Search instead for 
Did you mean: 

Can LayerManagerControl rotate the output 90 degrees CCW?

135 Views
Contributor I

Can LayerManagerControl rotate the output 90 degrees CCW?

I am running Weston/Wayland with IVI shell on i.MX8 QM MEK board (version 4.19 Warrior).

I found a web site which showed using the ‘orientation 1’: link

 

When tried this with 4.19 BSP, output from the serial com port:

Interpreter error: 'orientation' not recognized.

The layer with id: 2000 does not exist

layer_clear: the layer with given id does not exist

 

I have some matrix math I could include in a function to rotate the screen to the proper orientation, but wondered if there was a way to do this with the LayerManagerControl or with Weston/Wayland.

 

Let me know any questions or comments.

0 Kudos
3 Replies

18 Views
NXP Employee
NXP Employee

You can do it on wayland:

1 - vi /etc/xdg/weston/weston.ini

2 - uncomment the g2d backend support:

   use-g2d=1

3 - uncomment the output device configuration

   [output]
   name=HDMI-A-1
   mode=1920x1080@60
   transform=90

4 - restart weston

   systemctl stop weston

   systemctl start weston

regards,

Andre

0 Kudos

18 Views
Contributor I

Thanks for the suggestion Andre! 

I think the IVI shell running on top of Weston/Wayland is overriding the Weston 'output' controls.  'systemctl stop/start weston' are not valid commands.   The return from 'systemctl stop weston' is 'Failed to stop weston.service: Unit weston.service not loaded.' 

Perhaps I should have mentioned I tied to insert similar code ([output]... name... mode... transform...) prior to asking the question of the NXP community, without any success.  I had not tried with the g2d backend support enabled.  With this enabled, the displayed content is shrunk vertically (unfortunately touch does not track the shrinking).  It is unfortunately not rotated though.  Just to be clear, here are my weston.ini file contents after following your suggestion:

[core]
shell=ivi-shell.so
modules=ivi-controller.so
require-input=false
use-g2d=1
[ivi-shell]
ivi-input-module=ivi-input-controller.so
ivi-client-name=/usr/bin/simple-weston-client
bkgnd-surface-id=1000000
bkgnd-color=0x00000000
[output]
name=HDMI-A-2
mode=1920x1080@60
transform=270               # rotate 90 degrees counter clockwise
0 Kudos

18 Views
NXP TechSupport
NXP TechSupport

Hello Gary,

Sorry no It can´t. You have to do the rotation it when is booting.

regards

0 Kudos