Display rotation in Wayland/weston in imx6sx

Pekka Paalanen ppaalanen at gmail.com
Thu Jun 22 09:05:06 UTC 2017


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20170622/9a92f847/attachment.sig>


More information about the wayland-devel mailing list