Re: Display rotation in Wayland/weston in imx6sx

2017-06-22 Thread Pekka Paalanen
On Thu, 22 Jun 2017 08:20:07 +
Jomon John  wrote:

> Paalanen,
> 
> >> >>Transform will work, i tried the same on i.mx6 (with DRM backend)
> >> >>and it was working, but you will need mainline kernel. Not sure
> >> >>whether you can do the same fbdev backend.    
> >
> >Are you sure of the kernel requirement? Weston should be using the
> >composition to rotate the image. Kernel support is only necessary if
> >one wants to hit the composite-bypass path if clients are not already
> >rotating as well.
> >
> >I would expect it to work for all of fbdev/pixman, DRM/pixman and
> >DRM/GL.  
> 
> Sorry, mentioned mainline kernel to setup DRI working with etnaviv, 
> since the etnaviv drivers are not there in the linux-imx.

Oh yes, I didn't realize someone might be using a vendor kernel to
start with.

> I didn't found the any details regarding the output naming for fbdev 
> backend in the man page for weston.ini, so thought that its not possible 
> with fbdev based outputs, please correct me if i am wrong.

It is possible, see the other email I just sent in this thread.


Thanks,
pq


pgpJxT1KHGSb7.pgp
Description: OpenPGP digital signature
___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel


Re: Display rotation in Wayland/weston in imx6sx

2017-06-22 Thread Pekka Paalanen
On Thu, 22 Jun 2017 07:56:15 +
"Keskinarkaus, Teemu"  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


pgpJ0gYJZ66Yn.pgp
Description: OpenPGP digital signature
___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel


Re: Display rotation in Wayland/weston in imx6sx

2017-06-22 Thread Jomon John
Paalanen,

>> >>Transform will work, i tried the same on i.mx6 (with DRM backend)
>> >>and it was working, but you will need mainline kernel. Not sure
>> >>whether you can do the same fbdev backend.  
>
>Are you sure of the kernel requirement? Weston should be using the
>composition to rotate the image. Kernel support is only necessary if
>one wants to hit the composite-bypass path if clients are not already
>rotating as well.
>
>I would expect it to work for all of fbdev/pixman, DRM/pixman and
>DRM/GL.

Sorry, mentioned mainline kernel to setup DRI working with etnaviv, 
since the etnaviv drivers are not there in the linux-imx.

I didn't found the any details regarding the output naming for fbdev 
backend in the man page for weston.ini, so thought that its not possible 
with fbdev based outputs, please correct me if i am wrong.

_
Best Regards
Jomon John
___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel


RE: Display rotation in Wayland/weston in imx6sx

2017-06-22 Thread Keskinarkaus, Teemu
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?

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.

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.

-Teemu

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

On Thu, 22 Jun 2017 06:50:11 +
Jomon John <jomon.j...@tataelxsi.co.in> wrote:

> Teemu,
>
> >>> There is rotate config(transform) option in Weston, but it did
> >>> nothing when tested. Is there a way to rotate the display in
> >>> Wayland that would work with iMX6 or is that something that is not
> >>> currently supported in that  combo? (Wayland + imx6).

Hi,

how exactly did you try that? I think it should work, but if you e.g.
used a wrong output name in weston.ini, it will get ignored.

Do mention which backend and renderer you want to use.

> >>
> >>Transform will work, i tried the same on i.mx6 (with DRM backend)
> >>and it was working, but you will need mainline kernel. Not sure
> >>whether you can do the same fbdev backend.

Are you sure of the kernel requirement? Weston should be using the composition 
to rotate the image. Kernel support is only necessary if one wants to hit the 
composite-bypass path if clients are not already rotating as well.

I would expect it to work for all of fbdev/pixman, DRM/pixman and DRM/GL.

> > At least quick glance to linux-fsl-imx - kernel menuconfig did show
> > DRM enabled, but that's pretty much it. No mention of NXP/Freescale
> > there. Only reason we are currently using Yocto 2.2 is that Yocto
> > 2.3 uses Weston 2.0 and at is it today the NXP does not provide
> > graphic drivers other than FBDev so I'm not sure how DRM would
> > work.
>
> The mainline got etnaviv, open source driver for vivante GPU also mesa
> got the necessary support for etnaviv. so you can use the mesa +
> etnaviv stack for DRI.
>
> > Is it accelerated?
>
> Not a graphics expert to make any comments, anyway it uses GPU :) .
> i am also trying out the DRI setup with wayland/weston.

I've asked around recently about that myself, and it seems that while Weston 
itself will be hardware accelerated ok, the support for Wayland clients is not 
complete yet. Clients will run, but even with the latest Mesa release, you will 
probably have tiling mismatch issues which cause the window to appear garbled. 
I hear the work to fix that is going on right now (support for pixel format 
modifiers).


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.
___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel


Re: Display rotation in Wayland/weston in imx6sx

2017-06-22 Thread Pekka Paalanen
On Thu, 22 Jun 2017 06:50:11 +
Jomon John  wrote:

> Teemu,
> 
> >>> There is rotate config(transform) option in Weston, but it did
> >>> nothing when tested. Is there a way to rotate the display in
> >>> Wayland that would work with iMX6 or is that something that is
> >>> not currently supported in that  combo? (Wayland + imx6).  

Hi,

how exactly did you try that? I think it should work, but if you e.g.
used a wrong output name in weston.ini, it will get ignored.

Do mention which backend and renderer you want to use.

> >>
> >>Transform will work, i tried the same on i.mx6 (with DRM backend)
> >>and it was working, but you will need mainline kernel. Not sure
> >>whether you can do the same fbdev backend.  

Are you sure of the kernel requirement? Weston should be using the
composition to rotate the image. Kernel support is only necessary if
one wants to hit the composite-bypass path if clients are not already
rotating as well.

I would expect it to work for all of fbdev/pixman, DRM/pixman and
DRM/GL.

> > At least quick glance to linux-fsl-imx - kernel menuconfig did show
> > DRM enabled, but that's pretty much it. No mention of NXP/Freescale
> > there. Only reason we are currently using Yocto 2.2 is that Yocto
> > 2.3 uses Weston 2.0 and at is it today the NXP does not provide
> > graphic drivers other than FBDev so I'm not sure how DRM would
> > work.   
> 
> The mainline got etnaviv, open source driver for vivante GPU also
> mesa got the necessary support for etnaviv. so you can use the mesa +
> etnaviv stack for DRI. 
> 
> > Is it accelerated?  
> 
> Not a graphics expert to make any comments, anyway it uses GPU :) .
> i am also trying out the DRI setup with wayland/weston. 

I've asked around recently about that myself, and it seems that while
Weston itself will be hardware accelerated ok, the support for Wayland
clients is not complete yet. Clients will run, but even with the latest
Mesa release, you will probably have tiling mismatch issues which cause
the window to appear garbled. I hear the work to fix that is going on
right now (support for pixel format modifiers).


Thanks,
pq


pgpOgd56VUFrC.pgp
Description: OpenPGP digital signature
___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel


RE: Display rotation in Wayland/weston in imx6sx

2017-06-22 Thread Keskinarkaus, Teemu
Hi,

Thanks for quick answer.

So, when using Yocto it seems I need to move away from linux-fslc-imx - kernel 
and start using linux-yocto - kernel configured for iMX6 instead? Or can the 
linux-fslc-imx - kernel be configured for DRM backend or is that something 
possible only on mainline kernel? At least quick glance to linux-fsl-imx - 
kernel menuconfig did show DRM enabled, but that's pretty much it. No mention 
of NXP/Freescale there.

Only reason we are currently using Yocto 2.2 is that Yocto 2.3 uses Weston 2.0 
and at is it today the NXP does not provide graphic drivers other than FBDev so 
I'm not sure how DRM would work. Is it accelerated?

-Teemu Keskinarkaus

-Original Message-
From: Jomon John [mailto:jomon.j...@tataelxsi.co.in]
Sent: 22. kesäkuuta 2017 8:41
To: Keskinarkaus, Teemu; wayland-devel@lists.freedesktop.org
Subject: Re: Display rotation in Wayland/weston in imx6sx

Teemu,

> We have HW iMX6SoloX based HW running Yocto 2.2 and Wayland/Weston 1.11. 
> There is need to rotate the display 90 degrees. In X11 this wouldn't be a 
> problem since you could use xrandr. What I understood Wayland does not  
> support this method.

You are right, xrandr is the configuration utility for X

> There is rotate config(transform) option in Weston, but it did nothing when 
> tested. Is there a way to rotate the display in Wayland that would work with 
> iMX6 or is that something that is not currently supported in that  combo? 
> (Wayland + imx6).

Transform will work, i tried the same on i.mx6 (with DRM backend) and it was 
working, but you will need mainline kernel. Not sure whether you can do the 
same fbdev backend.

_
Best Regards
Jomon John



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.
___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel


Re: Display rotation in Wayland/weston in imx6sx

2017-06-22 Thread Jomon John
Teemu,

>>> We have HW iMX6SoloX based HW running Yocto 2.2 and Wayland/Weston 1.11. 
>>> There is need to rotate the display 90 degrees. In X11 this wouldn't be a 
>>> problem since you could use xrandr. >>What I understood Wayland does not  
>>> support this method.
>>
>>You are right, xrandr is the configuration utility for X
>>
>>> There is rotate config(transform) option in Weston, but it did nothing when 
>>> tested. Is there a way to rotate the display in Wayland that would work 
>>> with iMX6 or is that something that is not currently supported in that  
>>> combo? (Wayland + imx6).
>>
>>Transform will work, i tried the same on i.mx6 (with DRM backend) and it was 
>>working, but you will need mainline kernel. Not sure whether you can do the 
>>same fbdev backend.
>
>So, when using Yocto it seems I need to move away from linux-fslc-imx - kernel 
>and start using linux-yocto - kernel configured for iMX6 instead? Or can the 
>linux-fslc-imx - kernel be configured for DRM backend or is that something 
>possible only on mainline  kernel? 

You will need linux-fslc, which is based on mainline.  

> At least quick glance to linux-fsl-imx - kernel menuconfig did show DRM 
> enabled, but that's pretty much it. No mention of NXP/Freescale there.
> Only reason we are currently using Yocto 2.2 is that Yocto 2.3 uses Weston 
> 2.0 and at is it today the NXP does not provide graphic drivers other than 
> FBDev so I'm not sure how DRM would work. 

The mainline got etnaviv, open source driver for vivante GPU also mesa got the 
necessary support for etnaviv. so you can use the mesa + etnaviv stack for DRI. 

> Is it accelerated?

Not a graphics expert to make any comments, anyway it uses GPU :) .  i am also 
trying out the DRI setup with wayland/weston. 

_
Best Regards
Jomon John

___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel


Re: Display rotation in Wayland/weston in imx6sx

2017-06-21 Thread Jomon John
Teemu,

> We have HW iMX6SoloX based HW running Yocto 2.2 and Wayland/Weston 1.11. 
> There is need to rotate the display 90 degrees. In X11 this wouldn’t be a 
> problem since you could use xrandr. What I understood Wayland does not  
> support this method.

You are right, xrandr is the configuration utility for X 
 
> There is rotate config(transform) option in Weston, but it did nothing when 
> tested. Is there a way to rotate the display in Wayland that would work with 
> iMX6 or is that something that is not currently supported in that  combo? 
> (Wayland + imx6).

Transform will work, i tried the same on i.mx6 (with DRM backend) and it was 
working, but you will need mainline kernel. Not sure whether you can do the 
same fbdev backend.   
 
_
Best Regards
Jomon John
___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel