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

development mailing list for GENIVI LayerManagement

View all threads

screen rotation

JV
Jovic, Vladimir
Fri, Jan 31, 2020 10:31 AM

Hi,

Is there a way to rotate the screen?

Mit freundlichen Grüßen
Vladimir Jovic

Hi, Is there a way to rotate the screen? Mit freundlichen Grüßen Vladimir Jovic
FE
Friedrich, Eugen (ADITG/ESM1)
Fri, Jan 31, 2020 10:38 AM

Hi,
you can just use the output section in the weston.ini file.

http://manpages.ubuntu.com/manpages/bionic/man5/weston.ini.5.html

but it is static rotation, rotating ilm layer or surface is no supported you would any way to have application to be notified and they should recreat/ realign their content.

Best regards

Eugen Friedrich
Engineering Software Multimedia 1 (ESM1)

Tel. +49 5121 49 6921

Data protection information: We use your contact information and e-mail communication to process your inquiry and for internal and possibly tax documentation purposes. Your information will only be passed on to third parties if this is necessary to carry out your request or if we are legally obliged to do so.

-----Original Message-----
From: genivi-ivi-layer-management <genivi-ivi-layer-management-
bounces@lists.genivi.org> On Behalf Of Jovic, Vladimir
Sent: Freitag, 31. Januar 2020 11:32
To: genivi-ivi-layer-management@lists.genivi.org
Subject: screen rotation

Hi,

Is there a way to rotate the screen?

Mit freundlichen Grüßen
Vladimir Jovic


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, you can just use the output section in the weston.ini file. http://manpages.ubuntu.com/manpages/bionic/man5/weston.ini.5.html but it is static rotation, rotating ilm layer or surface is no supported you would any way to have application to be notified and they should recreat/ realign their content. Best regards Eugen Friedrich Engineering Software Multimedia 1 (ESM1) Tel. +49 5121 49 6921 Data protection information: We use your contact information and e-mail communication to process your inquiry and for internal and possibly tax documentation purposes. Your information will only be passed on to third parties if this is necessary to carry out your request or if we are legally obliged to do so. > -----Original Message----- > From: genivi-ivi-layer-management <genivi-ivi-layer-management- > bounces@lists.genivi.org> On Behalf Of Jovic, Vladimir > Sent: Freitag, 31. Januar 2020 11:32 > To: genivi-ivi-layer-management@lists.genivi.org > Subject: screen rotation > > Hi, > > Is there a way to rotate the screen? > > Mit freundlichen Grüßen > Vladimir Jovic > > > _______________________________________________ > 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
JV
Jovic, Vladimir
Fri, Jan 31, 2020 11:19 AM

Hi,

Thanks. I am already using the Weston configuration to rotate the screen, but now I got a new requirement to implement the dynamic screen rotation.
I implemented a new plugin, there is a function, in which I call "weston_output_set_transform()", and it works. Off course, I have to reposition and resize all layers and surfaces.
Problem is that some qt programs are not getting updated, and the screen rotation takes effect only when I click a button. Is there something that I could do to force the display update?
I got one program which displays a camera image using opengl. When this image is shown, then the screen gets updated immediately.
Also, programs which use ILM functions do not see the screen being rotated, and they get old values for screen resolution and parameters (both "ilm_getScreenResolution()" and "ilm_getPropertiesOfScreen()"). When I restart the program, then it gets rotated screen resolution. I realized this when I saw that "LayerManagerControl" returned correct rotated values every time.

I realize that IVI has no functions to rotate layers and surfaces, but do you think that this may work regarding screen rotation? Or is there something in IVI that makes this bad idea`?

Mit freundlichen Grüßen

i. A. Vladimir Jovic

Dipl.-Ing.

Entwicklung Software

ifm ecomatic gmbh
Im Heidach 18
88079 Kressbronn
Germany

-----Ursprüngliche Nachricht-----
Von: Friedrich, Eugen (ADITG/ESM1) efriedrich@de.adit-jv.com
Gesendet: Freitag, 31. Januar 2020 11:38
An: Jovic, Vladimir vladimir.jovic@ifm.com; genivi-ivi-layer-
management@lists.genivi.org
Betreff: [EXTERNAL] RE: screen rotation

Hi,
you can just use the output section in the weston.ini file.

https://urldefense.proofpoint.com/v2/url?u=http-
3A__manpages.ubuntu.com_manpages_bionic_man5_weston.ini.5.html&d=DwIFA
w&c=riR7jviByh3sGm7GIiSlHkFN0_aSATB6A8x0nHa2EM0&r=8wfdsMUxnRudpdLb
_Cg4rnnnKI-
gQZ4ykr3tjUrejXg&m=5hUKPWj_9FsUdoG1YuNzdJdwdNLGjU4fO50OGzN7mGc&s
=2PghjkqTr1oRX0GWW41-byBk_ngPWcbXo4kmQS6AHUo&e=

but it is static rotation, rotating ilm layer or surface is no supported you would any
way to have application to be notified and they should recreat/ realign their
content.

Best regards

Eugen Friedrich
Engineering Software Multimedia 1 (ESM1)

Tel. +49 5121 49 6921

Data protection information: We use your contact information and e-mail
communication to process your inquiry and for internal and possibly tax
documentation purposes. Your information will only be passed on to third parties
if this is necessary to carry out your request or if we are legally obliged to do so.

-----Original Message-----
From: genivi-ivi-layer-management <genivi-ivi-layer-management-
bounces@lists.genivi.org> On Behalf Of Jovic, Vladimir
Sent: Freitag, 31. Januar 2020 11:32
To: genivi-ivi-layer-management@lists.genivi.org
Subject: screen rotation

Hi,

Is there a way to rotate the screen?

Mit freundlichen Grüßen
Vladimir Jovic


genivi-ivi-layer-management mailing list genivi-ivi-layer-
management@lists.genivi.org
https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.genivi.org_m
ailman_listinfo_genivi-2Divi-2Dlayer-2D&d=DwIFAw&c=riR7jviByh3sGm7GIiS
lHkFN0_aSATB6A8x0nHa2EM0&r=8wfdsMUxnRudpdLb_Cg4rnnnKI-

gQZ4ykr3tjUrejXg

&m=5hUKPWj_9FsUdoG1YuNzdJdwdNLGjU4fO50OGzN7mGc&s=k3Wz__qFvvQy
nPN-vrM4X

X-Edzw1dtrux8WQgv1dgbY&e=
management_lists.genivi.org

Hi, Thanks. I am already using the Weston configuration to rotate the screen, but now I got a new requirement to implement the dynamic screen rotation. I implemented a new plugin, there is a function, in which I call "weston_output_set_transform()", and it works. Off course, I have to reposition and resize all layers and surfaces. Problem is that some qt programs are not getting updated, and the screen rotation takes effect only when I click a button. Is there something that I could do to force the display update? I got one program which displays a camera image using opengl. When this image is shown, then the screen gets updated immediately. Also, programs which use ILM functions do not see the screen being rotated, and they get old values for screen resolution and parameters (both "ilm_getScreenResolution()" and "ilm_getPropertiesOfScreen()"). When I restart the program, then it gets rotated screen resolution. I realized this when I saw that "LayerManagerControl" returned correct rotated values every time. I realize that IVI has no functions to rotate layers and surfaces, but do you think that this may work regarding screen rotation? Or is there something in IVI that makes this bad idea`? Mit freundlichen Grüßen i. A. Vladimir Jovic Dipl.-Ing. Entwicklung Software ifm ecomatic gmbh Im Heidach 18 88079 Kressbronn Germany > -----Ursprüngliche Nachricht----- > Von: Friedrich, Eugen (ADITG/ESM1) <efriedrich@de.adit-jv.com> > Gesendet: Freitag, 31. Januar 2020 11:38 > An: Jovic, Vladimir <vladimir.jovic@ifm.com>; genivi-ivi-layer- > management@lists.genivi.org > Betreff: [EXTERNAL] RE: screen rotation > > Hi, > you can just use the output section in the weston.ini file. > > https://urldefense.proofpoint.com/v2/url?u=http- > 3A__manpages.ubuntu.com_manpages_bionic_man5_weston.ini.5.html&d=DwIFA > w&c=riR7jviByh3sGm7GIiSlHkFN0_aSATB6A8x0nHa2EM0&r=8wfdsMUxnRudpdLb > _Cg4rnnnKI- > gQZ4ykr3tjUrejXg&m=5hUKPWj_9FsUdoG1YuNzdJdwdNLGjU4fO50OGzN7mGc&s > =2PghjkqTr1oRX0GWW41-byBk_ngPWcbXo4kmQS6AHUo&e= > > but it is static rotation, rotating ilm layer or surface is no supported you would any > way to have application to be notified and they should recreat/ realign their > content. > > Best regards > > Eugen Friedrich > Engineering Software Multimedia 1 (ESM1) > > Tel. +49 5121 49 6921 > > Data protection information: We use your contact information and e-mail > communication to process your inquiry and for internal and possibly tax > documentation purposes. Your information will only be passed on to third parties > if this is necessary to carry out your request or if we are legally obliged to do so. > > > -----Original Message----- > > From: genivi-ivi-layer-management <genivi-ivi-layer-management- > > bounces@lists.genivi.org> On Behalf Of Jovic, Vladimir > > Sent: Freitag, 31. Januar 2020 11:32 > > To: genivi-ivi-layer-management@lists.genivi.org > > Subject: screen rotation > > > > Hi, > > > > Is there a way to rotate the screen? > > > > Mit freundlichen Grüßen > > Vladimir Jovic > > > > > > _______________________________________________ > > genivi-ivi-layer-management mailing list genivi-ivi-layer- > > management@lists.genivi.org > > https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.genivi.org_m > > ailman_listinfo_genivi-2Divi-2Dlayer-2D&d=DwIFAw&c=riR7jviByh3sGm7GIiS > > lHkFN0_aSATB6A8x0nHa2EM0&r=8wfdsMUxnRudpdLb_Cg4rnnnKI- > gQZ4ykr3tjUrejXg > > > &m=5hUKPWj_9FsUdoG1YuNzdJdwdNLGjU4fO50OGzN7mGc&s=k3Wz__qFvvQy > nPN-vrM4X > > X-Edzw1dtrux8WQgv1dgbY&e= > > management_lists.genivi.org
JV
Jovic, Vladimir
Mon, Feb 3, 2020 8:11 AM

Hi,

I figured it out. I have to call these functions:
wl_display_roundtrip( display );
wl_display_dispatch_pending( display );
wl_display_flush( display );
I probably don't have to call all 3, but I will figure out later which is not needed. For now this works.

Mit freundlichen Grüßen

i. A. Vladimir Jovic

-----Ursprüngliche Nachricht-----
Von: Friedrich, Eugen (ADITG/ESM1) efriedrich@de.adit-jv.com
Gesendet: Freitag, 31. Januar 2020 11:38
An: Jovic, Vladimir vladimir.jovic@ifm.com; genivi-ivi-layer-
management@lists.genivi.org
Betreff: [EXTERNAL] RE: screen rotation

Hi,
you can just use the output section in the weston.ini file.

https://urldefense.proofpoint.com/v2/url?u=http-
3A__manpages.ubuntu.com_manpages_bionic_man5_weston.ini.5.html&d=DwIFA
w&c=riR7jviByh3sGm7GIiSlHkFN0_aSATB6A8x0nHa2EM0&r=8wfdsMUxnRudpdLb
_Cg4rnnnKI-
gQZ4ykr3tjUrejXg&m=5hUKPWj_9FsUdoG1YuNzdJdwdNLGjU4fO50OGzN7mGc&s
=2PghjkqTr1oRX0GWW41-byBk_ngPWcbXo4kmQS6AHUo&e=

but it is static rotation, rotating ilm layer or surface is no supported you would any
way to have application to be notified and they should recreat/ realign their
content.

Best regards

Eugen Friedrich
Engineering Software Multimedia 1 (ESM1)

Tel. +49 5121 49 6921

Data protection information: We use your contact information and e-mail
communication to process your inquiry and for internal and possibly tax
documentation purposes. Your information will only be passed on to third parties
if this is necessary to carry out your request or if we are legally obliged to do so.

-----Original Message-----
From: genivi-ivi-layer-management <genivi-ivi-layer-management-
bounces@lists.genivi.org> On Behalf Of Jovic, Vladimir
Sent: Freitag, 31. Januar 2020 11:32
To: genivi-ivi-layer-management@lists.genivi.org
Subject: screen rotation

Hi,

Is there a way to rotate the screen?

Mit freundlichen Grüßen
Vladimir Jovic


genivi-ivi-layer-management mailing list genivi-ivi-layer-
management@lists.genivi.org
https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.genivi.org_m
ailman_listinfo_genivi-2Divi-2Dlayer-2D&d=DwIFAw&c=riR7jviByh3sGm7GIiS
lHkFN0_aSATB6A8x0nHa2EM0&r=8wfdsMUxnRudpdLb_Cg4rnnnKI-

gQZ4ykr3tjUrejXg

&m=5hUKPWj_9FsUdoG1YuNzdJdwdNLGjU4fO50OGzN7mGc&s=k3Wz__qFvvQy
nPN-vrM4X

X-Edzw1dtrux8WQgv1dgbY&e=
management_lists.genivi.org

Hi, I figured it out. I have to call these functions: wl_display_roundtrip( display ); wl_display_dispatch_pending( display ); wl_display_flush( display ); I probably don't have to call all 3, but I will figure out later which is not needed. For now this works. Mit freundlichen Grüßen i. A. Vladimir Jovic > -----Ursprüngliche Nachricht----- > Von: Friedrich, Eugen (ADITG/ESM1) <efriedrich@de.adit-jv.com> > Gesendet: Freitag, 31. Januar 2020 11:38 > An: Jovic, Vladimir <vladimir.jovic@ifm.com>; genivi-ivi-layer- > management@lists.genivi.org > Betreff: [EXTERNAL] RE: screen rotation > > Hi, > you can just use the output section in the weston.ini file. > > https://urldefense.proofpoint.com/v2/url?u=http- > 3A__manpages.ubuntu.com_manpages_bionic_man5_weston.ini.5.html&d=DwIFA > w&c=riR7jviByh3sGm7GIiSlHkFN0_aSATB6A8x0nHa2EM0&r=8wfdsMUxnRudpdLb > _Cg4rnnnKI- > gQZ4ykr3tjUrejXg&m=5hUKPWj_9FsUdoG1YuNzdJdwdNLGjU4fO50OGzN7mGc&s > =2PghjkqTr1oRX0GWW41-byBk_ngPWcbXo4kmQS6AHUo&e= > > but it is static rotation, rotating ilm layer or surface is no supported you would any > way to have application to be notified and they should recreat/ realign their > content. > > Best regards > > Eugen Friedrich > Engineering Software Multimedia 1 (ESM1) > > Tel. +49 5121 49 6921 > > Data protection information: We use your contact information and e-mail > communication to process your inquiry and for internal and possibly tax > documentation purposes. Your information will only be passed on to third parties > if this is necessary to carry out your request or if we are legally obliged to do so. > > > -----Original Message----- > > From: genivi-ivi-layer-management <genivi-ivi-layer-management- > > bounces@lists.genivi.org> On Behalf Of Jovic, Vladimir > > Sent: Freitag, 31. Januar 2020 11:32 > > To: genivi-ivi-layer-management@lists.genivi.org > > Subject: screen rotation > > > > Hi, > > > > Is there a way to rotate the screen? > > > > Mit freundlichen Grüßen > > Vladimir Jovic > > > > > > _______________________________________________ > > genivi-ivi-layer-management mailing list genivi-ivi-layer- > > management@lists.genivi.org > > https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.genivi.org_m > > ailman_listinfo_genivi-2Divi-2Dlayer-2D&d=DwIFAw&c=riR7jviByh3sGm7GIiS > > lHkFN0_aSATB6A8x0nHa2EM0&r=8wfdsMUxnRudpdLb_Cg4rnnnKI- > gQZ4ykr3tjUrejXg > > > &m=5hUKPWj_9FsUdoG1YuNzdJdwdNLGjU4fO50OGzN7mGc&s=k3Wz__qFvvQy > nPN-vrM4X > > X-Edzw1dtrux8WQgv1dgbY&e= > > management_lists.genivi.org