Display rotation in Wayland/weston in imx6sx

Keskinarkaus, Teemu teemu.keskinarkaus at crosscontrol.com
Thu Jun 22 09:28:49 UTC 2017


Hi,

Okay, good news. After using the correct name (fbdev) the screen is rotated!

Yes, it's the FBDev/EGL why Weston 2.0 can't be used with iMX6.  After investigation I got impression that etnaviv is still quite much under development and that's why we choose to go with FBDev based solution. Not to say that later we wouldn't update to etnaviv based.

Also noticed from Weston-log that I'm using gl-renderer(egl?).

I tried building linux-fslc - based system with etnaviv, but ran problems with imx-gpu-viv - module still being built. There is external module for that that is referenced in meta-freescale files. I didn't find instructions how to build linux-fslc - based system, but I guess that's for another mailing list unless you have instructions somewhere how to do it I would appreciate link to it. I guess I could have started experimenting, but I don't know what kind of can of worms I'd have opened so decided against it.

-Teemu

-----Original Message-----
From: Pekka Paalanen [mailto:ppaalanen at gmail.com]
Sent: 22. kesäkuuta 2017 12:05
To: Keskinarkaus, Teemu
Cc: Jomon John; wayland-devel at lists.freedesktop.org
Subject: Re: Display rotation in Wayland/weston in imx6sx

On Thu, 22 Jun 2017 07:56:15 +0000
"Keskinarkaus, Teemu" <teemu.keskinarkaus at crosscontrol.com> wrote:

> Hi,
>
> I tried following lines in weston.ini (Also made sure weston actually
> loaded it.)
>
> [output]
> name=LCD
> mode=240x320
> transform=90
>
> I'm not sure what the name should be. Display is connected to parallel
> port (lcdif1, not LVDS). How can I check what name I should use?

Hi,

see Weston's log, the name appears there at least for the DRM backend.

For fbdev backend there is only one hardcoded name (as there can only ever be one output and that cannot be hotplugged): "fbdev". I suppose we have forgot to document that, but then again, the whole fbdev backend is undocumented...

> As I'm no Wayland/Weston expert I want to use backend/renderer that
> works. Currently the backend(I think) is FBDev since I'm using
> linux-fscl-imx - kernel. I think NXP officially doesn't support other
> atm. I'm not sure about renderer what I'm even using atm.

It will all be apparent in the Weston log, which it by default prints to stdout/err. Note, that if stdout/err is the same VT in which Weston will show up, you have to redirect to a file to see the log.

> I guess with this DRM/etnaviv I might be able to get Weston 2.0 work
> as it fixes one annoying bug. I can't do that with the official NXP
> FBdev driver.

Why do you think you cannot run Weston 2.0 fbdev backend? The fbdev backend is never a good idea if DRM is an option, just curious. Is it the EGL support that was ripped out?

I think with etnaviv you should aim for DRM-backend with the GL-renderer, which is what you will get by default. The issues I have heard of are with Wayland clients, so ensuring apps do not use hardware accelerated GL should get you going immediately. If that doesn't work for some reason, then DRM-backend with the Pixman renderer (--use-pixman command line argument) is the next best thing, avoiding the GPU completely. Fbdev falls far beyond in features.


Thanks,
pq

________________________________

Actuant Corporation Email Notice

This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and/or CONFIDENTIAL.
This email is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this email is not an intended recipient, you have received this email in error and any review, dissemination, distribution or copying is strictly prohibited.
If you have received this email in error, please notify the sender immediately by return mail and permanently delete the copy you received.

Thank you.


More information about the wayland-devel mailing list