genivi-ivi-layer-management@lists.genivi.org

development mailing list for GENIVI LayerManagement

View all threads

[Fwd: [meta-ivi] Do I need to somehow activate sufraces?]

GG
Gunnar GMail
Mon, Nov 5, 2018 11:22 AM

Hi Validimir

I think nobody answered this, from what I can see.  I'm forwarding to the
layer-management mailing list which might reach the right people.
Maybe since it was a long time ago, let everyone know if you figured this
out already.

Best Regards

  • Gunnar

-------- Forwarded Message --------
From: "Jovic, Vladimir" vladimir.jovic@ifm.com
To: genivi-meta-ivi@lists.genivi.org genivi-meta-ivi@lists.genivi.org
Subject: [meta-ivi] Do I need to somehow activate sufraces?
Date: Fri, 28 Sep 2018 07:26:01 +0000

Hi

I started recently with ivi. I managed to create not so simple example, and
it almost works.
So, I start my example, it creates a layer, then wl and ivi surfaces, set
source and destination dimentions for both layer and surface, set opacity,
set order and then show both. And then it gets stuck.
This is what getting scene outputs:
root@pdm3:/home# LayerManagerControl get scene screen 0 (0x0)

  • connector name:      Unknown-1

  • resolution:          x=1280, y=480

  • layer render order:  1502(0x5de),

    layer 1502 (0x5de)

    • destination region:  x=0, y=0, w=1280, h=480

    • source region:        x=0, y=0, w=1280, h=480

    • opacity:              0.5

    • visibility:          1

    • surface render order: 50(0x32),

    • on screen:            0(0x0)

      surface 50 (0x32)

      • created by pid:      21067
      • original size:      x=800, y=600
      • destination region: x=0, y=0, w=800, h=600
      • source region:      x=0, y=0, w=800, h=600
      • opacity:            0.898438
      • visibility:        1
      • frame counter:      1
      • on layer:          1502(0x5de)

Take a note that the "frame counter" does not go above 1.

Now, if I do this:
LayerManagerControl set layer 1502 render order 50 or this:
LayerManagerControl set surface 50 destination region 0 0 600 400 then it
starts showing what is being rendered, and the frame counter starts going
up.
I tried looking into the source code for LayerManagerControl, but it
revealed nothing to explain this behaviour.

The sequence for ivi application (https://at.projects.genivi.org/wiki/displa
y/PROJ/Wayland+IVI+Extension+Design#WaylandIVIExtensionDesign-
SequenceforiviapplicationandHMIcentralController) tells nothing about
specifically unpausing rendering starting.

So, can anyone explain why is the counting not going up? Do I somehow need
to start the ivi application? I see no ivi function to do anything like
that.

Mit freundlichen Grüßen

Vladimir Jovic


genivi-meta-ivi mailing list
genivi-meta-ivi@lists.genivi.org
https://lists.genivi.org/mailman/listinfo/genivi-meta-ivi

Hi Validimir I think nobody answered this, from what I can see. I'm forwarding to the layer-management mailing list which might reach the right people. Maybe since it was a long time ago, let everyone know if you figured this out already. Best Regards - Gunnar -------- Forwarded Message -------- From: "Jovic, Vladimir" <vladimir.jovic@ifm.com> To: genivi-meta-ivi@lists.genivi.org <genivi-meta-ivi@lists.genivi.org> Subject: [meta-ivi] Do I need to somehow activate sufraces? Date: Fri, 28 Sep 2018 07:26:01 +0000 Hi I started recently with ivi. I managed to create not so simple example, and it almost works. So, I start my example, it creates a layer, then wl and ivi surfaces, set source and destination dimentions for both layer and surface, set opacity, set order and then show both. And then it gets stuck. This is what getting scene outputs: root@pdm3:/home# LayerManagerControl get scene screen 0 (0x0) --------------------------------------- - connector name: Unknown-1 - resolution: x=1280, y=480 - layer render order: 1502(0x5de), layer 1502 (0x5de) --------------------------------------- - destination region: x=0, y=0, w=1280, h=480 - source region: x=0, y=0, w=1280, h=480 - opacity: 0.5 - visibility: 1 - surface render order: 50(0x32), - on screen: 0(0x0) surface 50 (0x32) --------------------------------------- - created by pid: 21067 - original size: x=800, y=600 - destination region: x=0, y=0, w=800, h=600 - source region: x=0, y=0, w=800, h=600 - opacity: 0.898438 - visibility: 1 - frame counter: 1 - on layer: 1502(0x5de) Take a note that the "frame counter" does not go above 1. Now, if I do this: LayerManagerControl set layer 1502 render order 50 or this: LayerManagerControl set surface 50 destination region 0 0 600 400 then it starts showing what is being rendered, and the frame counter starts going up. I tried looking into the source code for LayerManagerControl, but it revealed nothing to explain this behaviour. The sequence for ivi application (https://at.projects.genivi.org/wiki/displa y/PROJ/Wayland+IVI+Extension+Design#WaylandIVIExtensionDesign- SequenceforiviapplicationandHMIcentralController) tells nothing about specifically unpausing rendering starting. So, can anyone explain why is the counting not going up? Do I somehow need to start the ivi application? I see no ivi function to do anything like that. Mit freundlichen Grüßen Vladimir Jovic _______________________________________________ genivi-meta-ivi mailing list genivi-meta-ivi@lists.genivi.org https://lists.genivi.org/mailman/listinfo/genivi-meta-ivi
FE
Friedrich, Eugen (ADITG/ESB)
Mon, Nov 5, 2018 12:14 PM

Hi Vladimir,

Looks like some timing problem,

You could try to use the "layer-add-surfaces" binary which acts as minimalistic HMI controller and will create a layer and set the dimensions and so on.

Just

  1. strart Weston
  2. start layer-add-surfaces 1 1 &
  3. start your application

And also please share which version of Weston and wayland-ivi-extension are you using

Best regards

Eugen Friedrich
Engineering Software Base (ADITG/ESB)

Tel. +49 5121 49 6921

-----Original Message-----
From: genivi-ivi-layer-management <genivi-ivi-layer-management-
bounces@lists.genivi.org> On Behalf Of Gunnar GMail
Sent: Montag, 5. November 2018 12:25
To: Jovic, Vladimir vladimir.jovic@ifm.com; genivi-meta-
ivi@lists.genivi.org; genivi-ivi-layer-management@lists.genivi.org
Subject: [Fwd: [meta-ivi] Do I need to somehow activate sufraces?]

Hi Validimir

I think nobody answered this, from what I can see.  I'm forwarding to the
layer-management mailing list which might reach the right people.
Maybe since it was a long time ago, let everyone know if you figured this
out already.

Best Regards

  • Gunnar

-------- Forwarded Message --------
From: "Jovic, Vladimir" vladimir.jovic@ifm.com
To: genivi-meta-ivi@lists.genivi.org genivi-meta-ivi@lists.genivi.org
Subject: [meta-ivi] Do I need to somehow activate sufraces?
Date: Fri, 28 Sep 2018 07:26:01 +0000

Hi

I started recently with ivi. I managed to create not so simple example, and
it almost works.
So, I start my example, it creates a layer, then wl and ivi surfaces, set
source and destination dimentions for both layer and surface, set opacity,
set order and then show both. And then it gets stuck.
This is what getting scene outputs:
root@pdm3:/home# LayerManagerControl get scene screen 0 (0x0)

  • connector name:      Unknown-1

  • resolution:          x=1280, y=480

  • layer render order:  1502(0x5de),

    layer 1502 (0x5de)

    • destination region:  x=0, y=0, w=1280, h=480

    • source region:        x=0, y=0, w=1280, h=480

    • opacity:              0.5

    • visibility:          1

    • surface render order: 50(0x32),

    • on screen:            0(0x0)

      surface 50 (0x32)

      • created by pid:      21067
      • original size:      x=800, y=600
      • destination region: x=0, y=0, w=800, h=600
      • source region:      x=0, y=0, w=800, h=600
      • opacity:            0.898438
      • visibility:        1
      • frame counter:      1
      • on layer:          1502(0x5de)

Take a note that the "frame counter" does not go above 1.

Now, if I do this:
LayerManagerControl set layer 1502 render order 50 or this:
LayerManagerControl set surface 50 destination region 0 0 600 400 then it
starts showing what is being rendered, and the frame counter starts going
up.
I tried looking into the source code for LayerManagerControl, but it
revealed nothing to explain this behaviour.

The sequence for ivi application (https://at.projects.genivi.org/wiki/displa
y/PROJ/Wayland+IVI+Extension+Design#WaylandIVIExtensionDesign-
SequenceforiviapplicationandHMIcentralController) tells nothing about
specifically unpausing rendering starting.

So, can anyone explain why is the counting not going up? Do I somehow
need
to start the ivi application? I see no ivi function to do anything like
that.

Mit freundlichen Grüßen

Vladimir Jovic


genivi-meta-ivi mailing list
genivi-meta-ivi@lists.genivi.org
https://lists.genivi.org/mailman/listinfo/genivi-meta-ivi


genivi-ivi-layer-management mailing list
genivi-ivi-layer-management@lists.genivi.org
http://lists.genivi.org/mailman/listinfo/genivi-ivi-layer-
management_lists.genivi.org

Hi Vladimir, Looks like some timing problem, You could try to use the "layer-add-surfaces" binary which acts as minimalistic HMI controller and will create a layer and set the dimensions and so on. Just 1. strart Weston 2. start layer-add-surfaces 1 1 & 3. start your application And also please share which version of Weston and wayland-ivi-extension are you using Best regards Eugen Friedrich Engineering Software Base (ADITG/ESB) Tel. +49 5121 49 6921 > -----Original Message----- > From: genivi-ivi-layer-management <genivi-ivi-layer-management- > bounces@lists.genivi.org> On Behalf Of Gunnar GMail > Sent: Montag, 5. November 2018 12:25 > To: Jovic, Vladimir <vladimir.jovic@ifm.com>; genivi-meta- > ivi@lists.genivi.org; genivi-ivi-layer-management@lists.genivi.org > Subject: [Fwd: [meta-ivi] Do I need to somehow activate sufraces?] > > > Hi Validimir > > I think nobody answered this, from what I can see. I'm forwarding to the > layer-management mailing list which might reach the right people. > Maybe since it was a long time ago, let everyone know if you figured this > out already. > > Best Regards > - Gunnar > > -------- Forwarded Message -------- > From: "Jovic, Vladimir" <vladimir.jovic@ifm.com> > To: genivi-meta-ivi@lists.genivi.org <genivi-meta-ivi@lists.genivi.org> > Subject: [meta-ivi] Do I need to somehow activate sufraces? > Date: Fri, 28 Sep 2018 07:26:01 +0000 > > Hi > > I started recently with ivi. I managed to create not so simple example, and > it almost works. > So, I start my example, it creates a layer, then wl and ivi surfaces, set > source and destination dimentions for both layer and surface, set opacity, > set order and then show both. And then it gets stuck. > This is what getting scene outputs: > root@pdm3:/home# LayerManagerControl get scene screen 0 (0x0) > --------------------------------------- > - connector name: Unknown-1 > - resolution: x=1280, y=480 > - layer render order: 1502(0x5de), > > layer 1502 (0x5de) > --------------------------------------- > - destination region: x=0, y=0, w=1280, h=480 > - source region: x=0, y=0, w=1280, h=480 > - opacity: 0.5 > - visibility: 1 > - surface render order: 50(0x32), > - on screen: 0(0x0) > > surface 50 (0x32) > --------------------------------------- > - created by pid: 21067 > - original size: x=800, y=600 > - destination region: x=0, y=0, w=800, h=600 > - source region: x=0, y=0, w=800, h=600 > - opacity: 0.898438 > - visibility: 1 > - frame counter: 1 > - on layer: 1502(0x5de) > > > Take a note that the "frame counter" does not go above 1. > > Now, if I do this: > LayerManagerControl set layer 1502 render order 50 or this: > LayerManagerControl set surface 50 destination region 0 0 600 400 then it > starts showing what is being rendered, and the frame counter starts going > up. > I tried looking into the source code for LayerManagerControl, but it > revealed nothing to explain this behaviour. > > The sequence for ivi application (https://at.projects.genivi.org/wiki/displa > y/PROJ/Wayland+IVI+Extension+Design#WaylandIVIExtensionDesign- > SequenceforiviapplicationandHMIcentralController) tells nothing about > specifically unpausing rendering starting. > > So, can anyone explain why is the counting not going up? Do I somehow > need > to start the ivi application? I see no ivi function to do anything like > that. > > > Mit freundlichen Grüßen > > Vladimir Jovic > > > _______________________________________________ > genivi-meta-ivi mailing list > genivi-meta-ivi@lists.genivi.org > https://lists.genivi.org/mailman/listinfo/genivi-meta-ivi > > > _______________________________________________ > genivi-ivi-layer-management mailing list > genivi-ivi-layer-management@lists.genivi.org > http://lists.genivi.org/mailman/listinfo/genivi-ivi-layer- > management_lists.genivi.org