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

development mailing list for GENIVI LayerManagement

View all threads

dpms with IVI

JV
Jovic, Vladimir
Wed, Jun 26, 2019 6:46 AM

Hi,

I am trying to turn off the screen after N seconds, but it didn't work. I know that this can be done on X like this (as explained in
https://wiki.archlinux.org/index.php/Display_Power_Management_Signaling#Disabling_DPMS):
xset dpms force off

First I tried this:
weston -i 3 --tty 3
and that didn't turn off the screen after 3 seconds. I know because I set the background.

Then I tried Weston with this configuration:
[core]
shell=ivi-shell.so
modules=ivi-controller.so
idle-time=3

[ivi-shell]
ivi-input-module=ivi-input-controller.so
bkgnd-surface-id=1000
bkgnd-color=0xffff00ff

[output]
name=Unknown-1
transform=normal

Again, the screen would not go off after 3 seconds.

In the wayland mailing list, I was told that this may not be implemented. It works with "desktop-shell.so"
So, what do I need to do to turn off the screen after N seconds? Or at least to turn off the screen?

Mit freundlichen Grüßen

i. A. Vladimir Jovic
ifm ecomatic gmbh

Hi, I am trying to turn off the screen after N seconds, but it didn't work. I know that this can be done on X like this (as explained in https://wiki.archlinux.org/index.php/Display_Power_Management_Signaling#Disabling_DPMS): xset dpms force off First I tried this: weston -i 3 --tty 3 and that didn't turn off the screen after 3 seconds. I know because I set the background. Then I tried Weston with this configuration: [core] shell=ivi-shell.so modules=ivi-controller.so idle-time=3 [ivi-shell] ivi-input-module=ivi-input-controller.so bkgnd-surface-id=1000 bkgnd-color=0xffff00ff [output] name=Unknown-1 transform=normal Again, the screen would not go off after 3 seconds. In the wayland mailing list, I was told that this may not be implemented. It works with "desktop-shell.so" So, what do I need to do to turn off the screen after N seconds? Or at least to turn off the screen? Mit freundlichen Grüßen i. A. Vladimir Jovic ifm ecomatic gmbh
FE
Friedrich, Eugen (ADITG/ESM1)
Wed, Jun 26, 2019 7:29 AM

Hello Vladimir,

Can you verify that the feature is working with xdg shell.

The handling of dpms is implemented in compositor-drm backend, from first look could not find anything in ivi-shell which will prevent setting of the dpms.

There is a simple timer which will be updated with the idle_time value after every activity, it this time times out there should be a dpms_off event to drm.

Best regards

Eugen Friedrich
Engineering Software Multimedia 1 (ADITG/ESM1)

Tel. +49 5121 49 6921

-----Original Message-----
From: genivi-ivi-layer-management <genivi-ivi-layer-management-
bounces@lists.genivi.org> On Behalf Of Jovic, Vladimir
Sent: Mittwoch, 26. Juni 2019 08:49
To: genivi-ivi-layer-management@lists.genivi.org
Subject: dpms with IVI

Hi,

I am trying to turn off the screen after N seconds, but it didn't work. I know
that this can be done on X like this (as explained in
https://wiki.archlinux.org/index.php/Display_Power_Management_Signalin
g#Disabling_DPMS):
xset dpms force off

First I tried this:
weston -i 3 --tty 3
and that didn't turn off the screen after 3 seconds. I know because I set the
background.

Then I tried Weston with this configuration:
[core]
shell=ivi-shell.so
modules=ivi-controller.so
idle-time=3

[ivi-shell]
ivi-input-module=ivi-input-controller.so
bkgnd-surface-id=1000
bkgnd-color=0xffff00ff

[output]
name=Unknown-1
transform=normal

Again, the screen would not go off after 3 seconds.

In the wayland mailing list, I was told that this may not be implemented. It
works with "desktop-shell.so"
So, what do I need to do to turn off the screen after N seconds? Or at least to
turn off the screen?

Mit freundlichen Grüßen

i. A. Vladimir Jovic
ifm ecomatic gmbh


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

Hello Vladimir, Can you verify that the feature is working with xdg shell. The handling of dpms is implemented in compositor-drm backend, from first look could not find anything in ivi-shell which will prevent setting of the dpms. There is a simple timer which will be updated with the idle_time value after every activity, it this time times out there should be a dpms_off event to drm. Best regards Eugen Friedrich Engineering Software Multimedia 1 (ADITG/ESM1) Tel. +49 5121 49 6921 > -----Original Message----- > From: genivi-ivi-layer-management <genivi-ivi-layer-management- > bounces@lists.genivi.org> On Behalf Of Jovic, Vladimir > Sent: Mittwoch, 26. Juni 2019 08:49 > To: genivi-ivi-layer-management@lists.genivi.org > Subject: dpms with IVI > > Hi, > > I am trying to turn off the screen after N seconds, but it didn't work. I know > that this can be done on X like this (as explained in > https://wiki.archlinux.org/index.php/Display_Power_Management_Signalin > g#Disabling_DPMS): > xset dpms force off > > First I tried this: > weston -i 3 --tty 3 > and that didn't turn off the screen after 3 seconds. I know because I set the > background. > > Then I tried Weston with this configuration: > [core] > shell=ivi-shell.so > modules=ivi-controller.so > idle-time=3 > > [ivi-shell] > ivi-input-module=ivi-input-controller.so > bkgnd-surface-id=1000 > bkgnd-color=0xffff00ff > > [output] > name=Unknown-1 > transform=normal > > Again, the screen would not go off after 3 seconds. > > In the wayland mailing list, I was told that this may not be implemented. It > works with "desktop-shell.so" > So, what do I need to do to turn off the screen after N seconds? Or at least to > turn off the screen? > > Mit freundlichen Grüßen > > i. A. Vladimir Jovic > ifm ecomatic gmbh > > > _______________________________________________ > 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
Wed, Jun 26, 2019 8:51 AM

Hi,

Yes, it works. I just removed "weston.ini", and started the weston with
weston --tty3 -i5
And the screen is turned off.
But if I try with next weston.ini, then it doesn't work.

[core]
shell=ivi-shell.so
modules=ivi-controller.so
require-input=false
idle-time=5

[ivi-shell]
ivi-input-module=ivi-input-controller.so
ivi-client-name=/usr/bin/simple-weston-client
bkgnd-surface-id=108888
bkgnd-color=0xFFFF00FF

[output]
name=Unknown-1
transform=normal

Mit freundlichen Grüßen

i. A. Vladimir Jovic
ifm ecomatic gmbh

-----Ursprüngliche Nachricht-----
Von: Friedrich, Eugen (ADITG/ESM1) efriedrich@de.adit-jv.com
Gesendet: Mittwoch, 26. Juni 2019 09:30
An: Jovic, Vladimir vladimir.jovic@ifm.com; genivi-ivi-layer-
management@lists.genivi.org
Betreff: RE: dpms with IVI

Hello Vladimir,

Can you verify that the feature is working with xdg shell.

The handling of dpms is implemented in compositor-drm backend, from first look
could not find anything in ivi-shell which will prevent setting of the dpms.

There is a simple timer which will be updated with the idle_time value after every
activity, it this time times out there should be a dpms_off event to drm.

Best regards

Eugen Friedrich
Engineering Software Multimedia 1 (ADITG/ESM1)

Tel. +49 5121 49 6921

-----Original Message-----
From: genivi-ivi-layer-management <genivi-ivi-layer-management-
bounces@lists.genivi.org> On Behalf Of Jovic, Vladimir
Sent: Mittwoch, 26. Juni 2019 08:49
To: genivi-ivi-layer-management@lists.genivi.org
Subject: dpms with IVI

Hi,

I am trying to turn off the screen after N seconds, but it didn't
work. I know that this can be done on X like this (as explained in
https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.archlinux.or
g_index.php_Display-5FPower-5FManagement-5FSignalin&d=DwIFAw&c=riR7jvi

Byh3sGm7GIiSlHkFN0_aSATB6A8x0nHa2EM0&r=8wfdsMUxnRudpdLb_Cg4rnnnKI-
gQZ4

ykr3tjUrejXg&m=6NnwI0thsIV4TxDW1BYpJtwDdmS7Gdw96CB6W_WtNs8&s=-

lUarFyTt

7OugjhdfiYyd4EfBWaBM-oHBK97mD-IpRY&e=
g#Disabling_DPMS):
xset dpms force off

First I tried this:
weston -i 3 --tty 3
and that didn't turn off the screen after 3 seconds. I know because I
set the background.

Then I tried Weston with this configuration:
[core]
shell=ivi-shell.so
modules=ivi-controller.so
idle-time=3

[ivi-shell]
ivi-input-module=ivi-input-controller.so
bkgnd-surface-id=1000
bkgnd-color=0xffff00ff

[output]
name=Unknown-1
transform=normal

Again, the screen would not go off after 3 seconds.

In the wayland mailing list, I was told that this may not be
implemented. It works with "desktop-shell.so"
So, what do I need to do to turn off the screen after N seconds? Or at
least to turn off the screen?

Mit freundlichen Grüßen

i. A. Vladimir Jovic
ifm ecomatic gmbh


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=6NnwI0thsIV4TxDW1BYpJtwDdmS7Gdw96CB6W_WtNs8&s=QX5H1feGYJVS
nVX8hd3ff

e4kqhfLuDJF6ndlSpvK3Mk&e=
management_lists.genivi.org

Hi, Yes, it works. I just removed "weston.ini", and started the weston with weston --tty3 -i5 And the screen is turned off. But if I try with next weston.ini, then it doesn't work. [core] shell=ivi-shell.so modules=ivi-controller.so require-input=false idle-time=5 [ivi-shell] ivi-input-module=ivi-input-controller.so ivi-client-name=/usr/bin/simple-weston-client bkgnd-surface-id=108888 bkgnd-color=0xFFFF00FF [output] name=Unknown-1 transform=normal Mit freundlichen Grüßen i. A. Vladimir Jovic ifm ecomatic gmbh > -----Ursprüngliche Nachricht----- > Von: Friedrich, Eugen (ADITG/ESM1) <efriedrich@de.adit-jv.com> > Gesendet: Mittwoch, 26. Juni 2019 09:30 > An: Jovic, Vladimir <vladimir.jovic@ifm.com>; genivi-ivi-layer- > management@lists.genivi.org > Betreff: RE: dpms with IVI > > Hello Vladimir, > > Can you verify that the feature is working with xdg shell. > > The handling of dpms is implemented in compositor-drm backend, from first look > could not find anything in ivi-shell which will prevent setting of the dpms. > > There is a simple timer which will be updated with the idle_time value after every > activity, it this time times out there should be a dpms_off event to drm. > > > Best regards > > Eugen Friedrich > Engineering Software Multimedia 1 (ADITG/ESM1) > > Tel. +49 5121 49 6921 > > > -----Original Message----- > > From: genivi-ivi-layer-management <genivi-ivi-layer-management- > > bounces@lists.genivi.org> On Behalf Of Jovic, Vladimir > > Sent: Mittwoch, 26. Juni 2019 08:49 > > To: genivi-ivi-layer-management@lists.genivi.org > > Subject: dpms with IVI > > > > Hi, > > > > I am trying to turn off the screen after N seconds, but it didn't > > work. I know that this can be done on X like this (as explained in > > https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.archlinux.or > > g_index.php_Display-5FPower-5FManagement-5FSignalin&d=DwIFAw&c=riR7jvi > > > Byh3sGm7GIiSlHkFN0_aSATB6A8x0nHa2EM0&r=8wfdsMUxnRudpdLb_Cg4rnnnKI- > gQZ4 > > ykr3tjUrejXg&m=6NnwI0thsIV4TxDW1BYpJtwDdmS7Gdw96CB6W_WtNs8&s=- > lUarFyTt > > 7OugjhdfiYyd4EfBWaBM-oHBK97mD-IpRY&e= > > g#Disabling_DPMS): > > xset dpms force off > > > > First I tried this: > > weston -i 3 --tty 3 > > and that didn't turn off the screen after 3 seconds. I know because I > > set the background. > > > > Then I tried Weston with this configuration: > > [core] > > shell=ivi-shell.so > > modules=ivi-controller.so > > idle-time=3 > > > > [ivi-shell] > > ivi-input-module=ivi-input-controller.so > > bkgnd-surface-id=1000 > > bkgnd-color=0xffff00ff > > > > [output] > > name=Unknown-1 > > transform=normal > > > > Again, the screen would not go off after 3 seconds. > > > > In the wayland mailing list, I was told that this may not be > > implemented. It works with "desktop-shell.so" > > So, what do I need to do to turn off the screen after N seconds? Or at > > least to turn off the screen? > > > > Mit freundlichen Grüßen > > > > i. A. Vladimir Jovic > > ifm ecomatic gmbh > > > > > > _______________________________________________ > > 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=6NnwI0thsIV4TxDW1BYpJtwDdmS7Gdw96CB6W_WtNs8&s=QX5H1feGYJVS > nVX8hd3ff > > e4kqhfLuDJF6ndlSpvK3Mk&e= > > management_lists.genivi.org
FE
Friedrich, Eugen (ADITG/ESM1)
Wed, Jun 26, 2019 5:19 PM

Hi Vladmir,

Checked the code: not good news: we never implemented the idle_signal in the ivi-shell, therefore the dpms will never work here.
the desktop shell is implementing a signal handler which will trigger the dpms off function (see [1]).

We have done some internal protocol extension which will allow you to do the setting explicitly but this is not a good idea, before this can go upstream we need some way to protect the protocols and make them available only for "special" clients.

[1] https://gitlab.freedesktop.org/wayland/weston/blob/master/desktop-shell/shell.c#L3934

Best regards

Eugen Friedrich
Engineering Software Multimedia 1 (ADITG/ESM1)

Tel. +49 5121 49 6921

-----Original Message-----
From: Jovic, Vladimir vladimir.jovic@ifm.com
Sent: Mittwoch, 26. Juni 2019 10:54
To: Friedrich, Eugen (ADITG/ESM1) efriedrich@de.adit-jv.com; genivi-ivi-
layer-management@lists.genivi.org
Subject: AW: dpms with IVI

Hi,

Yes, it works. I just removed "weston.ini", and started the weston with
weston --tty3 -i5
And the screen is turned off.
But if I try with next weston.ini, then it doesn't work.

[core]
shell=ivi-shell.so
modules=ivi-controller.so
require-input=false
idle-time=5

[ivi-shell]
ivi-input-module=ivi-input-controller.so
ivi-client-name=/usr/bin/simple-weston-client
bkgnd-surface-id=108888
bkgnd-color=0xFFFF00FF

[output]
name=Unknown-1
transform=normal

Mit freundlichen Grüßen

i. A. Vladimir Jovic
ifm ecomatic gmbh

-----Ursprüngliche Nachricht-----
Von: Friedrich, Eugen (ADITG/ESM1) efriedrich@de.adit-jv.com
Gesendet: Mittwoch, 26. Juni 2019 09:30
An: Jovic, Vladimir vladimir.jovic@ifm.com; genivi-ivi-layer-
management@lists.genivi.org
Betreff: RE: dpms with IVI

Hello Vladimir,

Can you verify that the feature is working with xdg shell.

The handling of dpms is implemented in compositor-drm backend, from

first look

could not find anything in ivi-shell which will prevent setting of the dpms.

There is a simple timer which will be updated with the idle_time value after

every

activity, it this time times out there should be a dpms_off event to drm.

Best regards

Eugen Friedrich
Engineering Software Multimedia 1 (ADITG/ESM1)

Tel. +49 5121 49 6921

-----Original Message-----
From: genivi-ivi-layer-management <genivi-ivi-layer-management-
bounces@lists.genivi.org> On Behalf Of Jovic, Vladimir
Sent: Mittwoch, 26. Juni 2019 08:49
To: genivi-ivi-layer-management@lists.genivi.org
Subject: dpms with IVI

Hi,

I am trying to turn off the screen after N seconds, but it didn't
work. I know that this can be done on X like this (as explained in
https://urldefense.proofpoint.com/v2/url?u=https-

3A__wiki.archlinux.or

g_index.php_Display-5FPower-5FManagement-

5FSignalin&d=DwIFAw&c=riR7jvi

Byh3sGm7GIiSlHkFN0_aSATB6A8x0nHa2EM0&r=8wfdsMUxnRudpdLb_Cg4rn
nnKI-

gQZ4

ykr3tjUrejXg&m=6NnwI0thsIV4TxDW1BYpJtwDdmS7Gdw96CB6W_WtNs8&s
=-

lUarFyTt

7OugjhdfiYyd4EfBWaBM-oHBK97mD-IpRY&e=
g#Disabling_DPMS):
xset dpms force off

First I tried this:
weston -i 3 --tty 3
and that didn't turn off the screen after 3 seconds. I know because I
set the background.

Then I tried Weston with this configuration:
[core]
shell=ivi-shell.so
modules=ivi-controller.so
idle-time=3

[ivi-shell]
ivi-input-module=ivi-input-controller.so
bkgnd-surface-id=1000
bkgnd-color=0xffff00ff

[output]
name=Unknown-1
transform=normal

Again, the screen would not go off after 3 seconds.

In the wayland mailing list, I was told that this may not be
implemented. It works with "desktop-shell.so"
So, what do I need to do to turn off the screen after N seconds? Or at
least to turn off the screen?

Mit freundlichen Grüßen

i. A. Vladimir Jovic
ifm ecomatic gmbh


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=6NnwI0thsIV4TxDW1BYpJtwDdmS7Gdw96CB6W_WtNs8&s=QX5H1feGY
JVS

nVX8hd3ff

e4kqhfLuDJF6ndlSpvK3Mk&e=
management_lists.genivi.org

Hi Vladmir, Checked the code: not good news: we never implemented the idle_signal in the ivi-shell, therefore the dpms will never work here. the desktop shell is implementing a signal handler which will trigger the dpms off function (see [1]). We have done some internal protocol extension which will allow you to do the setting explicitly but this is not a good idea, before this can go upstream we need some way to protect the protocols and make them available only for "special" clients. [1] https://gitlab.freedesktop.org/wayland/weston/blob/master/desktop-shell/shell.c#L3934 Best regards Eugen Friedrich Engineering Software Multimedia 1 (ADITG/ESM1) Tel. +49 5121 49 6921 > -----Original Message----- > From: Jovic, Vladimir <vladimir.jovic@ifm.com> > Sent: Mittwoch, 26. Juni 2019 10:54 > To: Friedrich, Eugen (ADITG/ESM1) <efriedrich@de.adit-jv.com>; genivi-ivi- > layer-management@lists.genivi.org > Subject: AW: dpms with IVI > > Hi, > > Yes, it works. I just removed "weston.ini", and started the weston with > weston --tty3 -i5 > And the screen is turned off. > But if I try with next weston.ini, then it doesn't work. > > [core] > shell=ivi-shell.so > modules=ivi-controller.so > require-input=false > idle-time=5 > > [ivi-shell] > ivi-input-module=ivi-input-controller.so > ivi-client-name=/usr/bin/simple-weston-client > bkgnd-surface-id=108888 > bkgnd-color=0xFFFF00FF > > [output] > name=Unknown-1 > transform=normal > > > Mit freundlichen Grüßen > > i. A. Vladimir Jovic > ifm ecomatic gmbh > > > > -----Ursprüngliche Nachricht----- > > Von: Friedrich, Eugen (ADITG/ESM1) <efriedrich@de.adit-jv.com> > > Gesendet: Mittwoch, 26. Juni 2019 09:30 > > An: Jovic, Vladimir <vladimir.jovic@ifm.com>; genivi-ivi-layer- > > management@lists.genivi.org > > Betreff: RE: dpms with IVI > > > > Hello Vladimir, > > > > Can you verify that the feature is working with xdg shell. > > > > The handling of dpms is implemented in compositor-drm backend, from > first look > > could not find anything in ivi-shell which will prevent setting of the dpms. > > > > There is a simple timer which will be updated with the idle_time value after > every > > activity, it this time times out there should be a dpms_off event to drm. > > > > > > Best regards > > > > Eugen Friedrich > > Engineering Software Multimedia 1 (ADITG/ESM1) > > > > Tel. +49 5121 49 6921 > > > > > -----Original Message----- > > > From: genivi-ivi-layer-management <genivi-ivi-layer-management- > > > bounces@lists.genivi.org> On Behalf Of Jovic, Vladimir > > > Sent: Mittwoch, 26. Juni 2019 08:49 > > > To: genivi-ivi-layer-management@lists.genivi.org > > > Subject: dpms with IVI > > > > > > Hi, > > > > > > I am trying to turn off the screen after N seconds, but it didn't > > > work. I know that this can be done on X like this (as explained in > > > https://urldefense.proofpoint.com/v2/url?u=https- > 3A__wiki.archlinux.or > > > g_index.php_Display-5FPower-5FManagement- > 5FSignalin&d=DwIFAw&c=riR7jvi > > > > > > Byh3sGm7GIiSlHkFN0_aSATB6A8x0nHa2EM0&r=8wfdsMUxnRudpdLb_Cg4rn > nnKI- > > gQZ4 > > > > ykr3tjUrejXg&m=6NnwI0thsIV4TxDW1BYpJtwDdmS7Gdw96CB6W_WtNs8&s > =- > > lUarFyTt > > > 7OugjhdfiYyd4EfBWaBM-oHBK97mD-IpRY&e= > > > g#Disabling_DPMS): > > > xset dpms force off > > > > > > First I tried this: > > > weston -i 3 --tty 3 > > > and that didn't turn off the screen after 3 seconds. I know because I > > > set the background. > > > > > > Then I tried Weston with this configuration: > > > [core] > > > shell=ivi-shell.so > > > modules=ivi-controller.so > > > idle-time=3 > > > > > > [ivi-shell] > > > ivi-input-module=ivi-input-controller.so > > > bkgnd-surface-id=1000 > > > bkgnd-color=0xffff00ff > > > > > > [output] > > > name=Unknown-1 > > > transform=normal > > > > > > Again, the screen would not go off after 3 seconds. > > > > > > In the wayland mailing list, I was told that this may not be > > > implemented. It works with "desktop-shell.so" > > > So, what do I need to do to turn off the screen after N seconds? Or at > > > least to turn off the screen? > > > > > > Mit freundlichen Grüßen > > > > > > i. A. Vladimir Jovic > > > ifm ecomatic gmbh > > > > > > > > > _______________________________________________ > > > 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=6NnwI0thsIV4TxDW1BYpJtwDdmS7Gdw96CB6W_WtNs8&s=QX5H1feGY > JVS > > nVX8hd3ff > > > e4kqhfLuDJF6ndlSpvK3Mk&e= > > > management_lists.genivi.org >
JV
Jovic, Vladimir
Thu, Jun 27, 2019 6:47 AM

Hi,

Thanks for the info.
Do you have a branch, where it is possible to do? Are you willing to share patches?
Why is it bad idea to use your extension?
If not, where do I start to implement it?

Mit freundlichen Grüßen
i. A. Vladimir Jovic
ifm ecomatic gmbh

-----Ursprüngliche Nachricht-----
Von: Friedrich, Eugen (ADITG/ESM1) efriedrich@de.adit-jv.com
Gesendet: Mittwoch, 26. Juni 2019 19:19
An: Jovic, Vladimir vladimir.jovic@ifm.com; genivi-ivi-layer-
management@lists.genivi.org
Betreff: RE: dpms with IVI

Hi Vladmir,

Checked the code: not good news: we never implemented the idle_signal in the ivi-
shell, therefore the dpms will never work here.
the desktop shell is implementing a signal handler which will trigger the dpms off
function (see [1]).

We have done some internal protocol extension which will allow you to do the
setting explicitly but this is not a good idea, before this can go upstream we need
some way to protect the protocols and make them available only for "special"
clients.

[1] https://urldefense.proofpoint.com/v2/url?u=https-
3A__gitlab.freedesktop.org_wayland_weston_blob_master_desktop-
2Dshell_shell.c-
23L3934&d=DwIFAw&c=riR7jviByh3sGm7GIiSlHkFN0_aSATB6A8x0nHa2EM0&r=8
wfdsMUxnRudpdLb_Cg4rnnnKI-gQZ4ykr3tjUrejXg&m=Mz9nVGzFuQpRPfHd-
_nLWgdhACxt72T9O1Koq4as4iw&s=RTcEHj2l26JyQIaXHpFUpkGTjQyN98X656yKv
2ReKZg&e=

Best regards

Eugen Friedrich
Engineering Software Multimedia 1 (ADITG/ESM1)

Tel. +49 5121 49 6921

-----Original Message-----
From: Jovic, Vladimir vladimir.jovic@ifm.com
Sent: Mittwoch, 26. Juni 2019 10:54
To: Friedrich, Eugen (ADITG/ESM1) efriedrich@de.adit-jv.com;
genivi-ivi- layer-management@lists.genivi.org
Subject: AW: dpms with IVI

Hi,

Yes, it works. I just removed "weston.ini", and started the weston
with weston --tty3 -i5 And the screen is turned off.
But if I try with next weston.ini, then it doesn't work.

[core]
shell=ivi-shell.so
modules=ivi-controller.so
require-input=false
idle-time=5

[ivi-shell]
ivi-input-module=ivi-input-controller.so
ivi-client-name=/usr/bin/simple-weston-client
bkgnd-surface-id=108888
bkgnd-color=0xFFFF00FF

[output]
name=Unknown-1
transform=normal

Mit freundlichen Grüßen

i. A. Vladimir Jovic
ifm ecomatic gmbh

-----Ursprüngliche Nachricht-----
Von: Friedrich, Eugen (ADITG/ESM1) efriedrich@de.adit-jv.com
Gesendet: Mittwoch, 26. Juni 2019 09:30
An: Jovic, Vladimir vladimir.jovic@ifm.com; genivi-ivi-layer-
management@lists.genivi.org
Betreff: RE: dpms with IVI

Hello Vladimir,

Can you verify that the feature is working with xdg shell.

The handling of dpms is implemented in compositor-drm backend, from

first look

could not find anything in ivi-shell which will prevent setting of the dpms.

There is a simple timer which will be updated with the idle_time
value after

every

activity, it this time times out there should be a dpms_off event to drm.

Best regards

Eugen Friedrich
Engineering Software Multimedia 1 (ADITG/ESM1)

Tel. +49 5121 49 6921

-----Original Message-----
From: genivi-ivi-layer-management <genivi-ivi-layer-management-
bounces@lists.genivi.org> On Behalf Of Jovic, Vladimir
Sent: Mittwoch, 26. Juni 2019 08:49
To: genivi-ivi-layer-management@lists.genivi.org
Subject: dpms with IVI

Hi,

I am trying to turn off the screen after N seconds, but it didn't
work. I know that this can be done on X like this (as explained in
https://urldefense.proofpoint.com/v2/url?u=https-

3A__wiki.archlinux.or

g_index.php_Display-5FPower-5FManagement-

5FSignalin&d=DwIFAw&c=riR7jvi

Byh3sGm7GIiSlHkFN0_aSATB6A8x0nHa2EM0&r=8wfdsMUxnRudpdLb_Cg4rn
nnKI-

gQZ4

ykr3tjUrejXg&m=6NnwI0thsIV4TxDW1BYpJtwDdmS7Gdw96CB6W_WtNs8&s
=-

lUarFyTt

7OugjhdfiYyd4EfBWaBM-oHBK97mD-IpRY&e=
g#Disabling_DPMS):
xset dpms force off

First I tried this:
weston -i 3 --tty 3
and that didn't turn off the screen after 3 seconds. I know
because I set the background.

Then I tried Weston with this configuration:
[core]
shell=ivi-shell.so
modules=ivi-controller.so
idle-time=3

[ivi-shell]
ivi-input-module=ivi-input-controller.so
bkgnd-surface-id=1000
bkgnd-color=0xffff00ff

[output]
name=Unknown-1
transform=normal

Again, the screen would not go off after 3 seconds.

In the wayland mailing list, I was told that this may not be
implemented. It works with "desktop-shell.so"
So, what do I need to do to turn off the screen after N seconds?
Or at least to turn off the screen?

Mit freundlichen Grüßen

i. A. Vladimir Jovic
ifm ecomatic gmbh


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=6NnwI0thsIV4TxDW1BYpJtwDdmS7Gdw96CB6W_WtNs8&s=QX5H1feGY
JVS

nVX8hd3ff

e4kqhfLuDJF6ndlSpvK3Mk&e=
management_lists.genivi.org

Hi, Thanks for the info. Do you have a branch, where it is possible to do? Are you willing to share patches? Why is it bad idea to use your extension? If not, where do I start to implement it? Mit freundlichen Grüßen i. A. Vladimir Jovic ifm ecomatic gmbh > -----Ursprüngliche Nachricht----- > Von: Friedrich, Eugen (ADITG/ESM1) <efriedrich@de.adit-jv.com> > Gesendet: Mittwoch, 26. Juni 2019 19:19 > An: Jovic, Vladimir <vladimir.jovic@ifm.com>; genivi-ivi-layer- > management@lists.genivi.org > Betreff: RE: dpms with IVI > > Hi Vladmir, > > Checked the code: not good news: we never implemented the idle_signal in the ivi- > shell, therefore the dpms will never work here. > the desktop shell is implementing a signal handler which will trigger the dpms off > function (see [1]). > > We have done some internal protocol extension which will allow you to do the > setting explicitly but this is not a good idea, before this can go upstream we need > some way to protect the protocols and make them available only for "special" > clients. > > [1] https://urldefense.proofpoint.com/v2/url?u=https- > 3A__gitlab.freedesktop.org_wayland_weston_blob_master_desktop- > 2Dshell_shell.c- > 23L3934&d=DwIFAw&c=riR7jviByh3sGm7GIiSlHkFN0_aSATB6A8x0nHa2EM0&r=8 > wfdsMUxnRudpdLb_Cg4rnnnKI-gQZ4ykr3tjUrejXg&m=Mz9nVGzFuQpRPfHd- > _nLWgdhACxt72T9O1Koq4as4iw&s=RTcEHj2l26JyQIaXHpFUpkGTjQyN98X656yKv > 2ReKZg&e= > > Best regards > > Eugen Friedrich > Engineering Software Multimedia 1 (ADITG/ESM1) > > Tel. +49 5121 49 6921 > > > -----Original Message----- > > From: Jovic, Vladimir <vladimir.jovic@ifm.com> > > Sent: Mittwoch, 26. Juni 2019 10:54 > > To: Friedrich, Eugen (ADITG/ESM1) <efriedrich@de.adit-jv.com>; > > genivi-ivi- layer-management@lists.genivi.org > > Subject: AW: dpms with IVI > > > > Hi, > > > > Yes, it works. I just removed "weston.ini", and started the weston > > with weston --tty3 -i5 And the screen is turned off. > > But if I try with next weston.ini, then it doesn't work. > > > > [core] > > shell=ivi-shell.so > > modules=ivi-controller.so > > require-input=false > > idle-time=5 > > > > [ivi-shell] > > ivi-input-module=ivi-input-controller.so > > ivi-client-name=/usr/bin/simple-weston-client > > bkgnd-surface-id=108888 > > bkgnd-color=0xFFFF00FF > > > > [output] > > name=Unknown-1 > > transform=normal > > > > > > Mit freundlichen Grüßen > > > > i. A. Vladimir Jovic > > ifm ecomatic gmbh > > > > > > > -----Ursprüngliche Nachricht----- > > > Von: Friedrich, Eugen (ADITG/ESM1) <efriedrich@de.adit-jv.com> > > > Gesendet: Mittwoch, 26. Juni 2019 09:30 > > > An: Jovic, Vladimir <vladimir.jovic@ifm.com>; genivi-ivi-layer- > > > management@lists.genivi.org > > > Betreff: RE: dpms with IVI > > > > > > Hello Vladimir, > > > > > > Can you verify that the feature is working with xdg shell. > > > > > > The handling of dpms is implemented in compositor-drm backend, from > > first look > > > could not find anything in ivi-shell which will prevent setting of the dpms. > > > > > > There is a simple timer which will be updated with the idle_time > > > value after > > every > > > activity, it this time times out there should be a dpms_off event to drm. > > > > > > > > > Best regards > > > > > > Eugen Friedrich > > > Engineering Software Multimedia 1 (ADITG/ESM1) > > > > > > Tel. +49 5121 49 6921 > > > > > > > -----Original Message----- > > > > From: genivi-ivi-layer-management <genivi-ivi-layer-management- > > > > bounces@lists.genivi.org> On Behalf Of Jovic, Vladimir > > > > Sent: Mittwoch, 26. Juni 2019 08:49 > > > > To: genivi-ivi-layer-management@lists.genivi.org > > > > Subject: dpms with IVI > > > > > > > > Hi, > > > > > > > > I am trying to turn off the screen after N seconds, but it didn't > > > > work. I know that this can be done on X like this (as explained in > > > > https://urldefense.proofpoint.com/v2/url?u=https- > > 3A__wiki.archlinux.or > > > > g_index.php_Display-5FPower-5FManagement- > > 5FSignalin&d=DwIFAw&c=riR7jvi > > > > > > > > > Byh3sGm7GIiSlHkFN0_aSATB6A8x0nHa2EM0&r=8wfdsMUxnRudpdLb_Cg4rn > > nnKI- > > > gQZ4 > > > > > > ykr3tjUrejXg&m=6NnwI0thsIV4TxDW1BYpJtwDdmS7Gdw96CB6W_WtNs8&s > > =- > > > lUarFyTt > > > > 7OugjhdfiYyd4EfBWaBM-oHBK97mD-IpRY&e= > > > > g#Disabling_DPMS): > > > > xset dpms force off > > > > > > > > First I tried this: > > > > weston -i 3 --tty 3 > > > > and that didn't turn off the screen after 3 seconds. I know > > > > because I set the background. > > > > > > > > Then I tried Weston with this configuration: > > > > [core] > > > > shell=ivi-shell.so > > > > modules=ivi-controller.so > > > > idle-time=3 > > > > > > > > [ivi-shell] > > > > ivi-input-module=ivi-input-controller.so > > > > bkgnd-surface-id=1000 > > > > bkgnd-color=0xffff00ff > > > > > > > > [output] > > > > name=Unknown-1 > > > > transform=normal > > > > > > > > Again, the screen would not go off after 3 seconds. > > > > > > > > In the wayland mailing list, I was told that this may not be > > > > implemented. It works with "desktop-shell.so" > > > > So, what do I need to do to turn off the screen after N seconds? > > > > Or at least to turn off the screen? > > > > > > > > Mit freundlichen Grüßen > > > > > > > > i. A. Vladimir Jovic > > > > ifm ecomatic gmbh > > > > > > > > > > > > _______________________________________________ > > > > 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=6NnwI0thsIV4TxDW1BYpJtwDdmS7Gdw96CB6W_WtNs8&s=QX5H1feGY > > JVS > > > nVX8hd3ff > > > > e4kqhfLuDJF6ndlSpvK3Mk&e= > > > > management_lists.genivi.org > > >
FE
Friedrich, Eugen (ADITG/ESM1)
Thu, Jun 27, 2019 1:08 PM

Hi Vladimir,

-----Original Message-----
From: Jovic, Vladimir vladimir.jovic@ifm.com
Sent: Donnerstag, 27. Juni 2019 08:48
To: Friedrich, Eugen (ADITG/ESM1) efriedrich@de.adit-jv.com; genivi-ivi-
layer-management@lists.genivi.org
Subject: AW: dpms with IVI

Hi,

Thanks for the info.
Do you have a branch, where it is possible to do? Are you willing to share
patches?

[EF] I can share some part from our implementation  which should be sufficient to enable the dpms use-case for you
Give me some time, till end of tomorrow should be possible for me.

Why is it bad idea to use your extension?

[EF] the compositor should never offer such functionality to all clients, only if you have closed system and you can trust all you clients

If not, where do I start to implement it?

[EF] we did this in a separate module, I will share the details later...

[EF] Would you share you use-case? I'm curious if it is just power saving or some different use case?

Mit freundlichen Grüßen
i. A. Vladimir Jovic
ifm ecomatic gmbh

-----Ursprüngliche Nachricht-----
Von: Friedrich, Eugen (ADITG/ESM1) efriedrich@de.adit-jv.com
Gesendet: Mittwoch, 26. Juni 2019 19:19
An: Jovic, Vladimir vladimir.jovic@ifm.com; genivi-ivi-layer-
management@lists.genivi.org
Betreff: RE: dpms with IVI

Hi Vladmir,

Checked the code: not good news: we never implemented the idle_signal

in the ivi-

shell, therefore the dpms will never work here.
the desktop shell is implementing a signal handler which will trigger the

dpms off

function (see [1]).

We have done some internal protocol extension which will allow you to do

the

setting explicitly but this is not a good idea, before this can go upstream we

need

some way to protect the protocols and make them available only for

"special"

clients.

[1] https://urldefense.proofpoint.com/v2/url?u=https-
3A__gitlab.freedesktop.org_wayland_weston_blob_master_desktop-
2Dshell_shell.c-

23L3934&d=DwIFAw&c=riR7jviByh3sGm7GIiSlHkFN0_aSATB6A8x0nHa2EM0&
r=8

wfdsMUxnRudpdLb_Cg4rnnnKI-

gQZ4ykr3tjUrejXg&m=Mz9nVGzFuQpRPfHd-

_nLWgdhACxt72T9O1Koq4as4iw&s=RTcEHj2l26JyQIaXHpFUpkGTjQyN98X656
yKv

2ReKZg&e=

Best regards

Eugen Friedrich
Engineering Software Multimedia 1 (ADITG/ESM1)

Tel. +49 5121 49 6921

-----Original Message-----
From: Jovic, Vladimir vladimir.jovic@ifm.com
Sent: Mittwoch, 26. Juni 2019 10:54
To: Friedrich, Eugen (ADITG/ESM1) efriedrich@de.adit-jv.com;
genivi-ivi- layer-management@lists.genivi.org
Subject: AW: dpms with IVI

Hi,

Yes, it works. I just removed "weston.ini", and started the weston
with weston --tty3 -i5 And the screen is turned off.
But if I try with next weston.ini, then it doesn't work.

[core]
shell=ivi-shell.so
modules=ivi-controller.so
require-input=false
idle-time=5

[ivi-shell]
ivi-input-module=ivi-input-controller.so
ivi-client-name=/usr/bin/simple-weston-client
bkgnd-surface-id=108888
bkgnd-color=0xFFFF00FF

[output]
name=Unknown-1
transform=normal

Mit freundlichen Grüßen

i. A. Vladimir Jovic
ifm ecomatic gmbh

-----Ursprüngliche Nachricht-----
Von: Friedrich, Eugen (ADITG/ESM1) efriedrich@de.adit-jv.com
Gesendet: Mittwoch, 26. Juni 2019 09:30
An: Jovic, Vladimir vladimir.jovic@ifm.com; genivi-ivi-layer-
management@lists.genivi.org
Betreff: RE: dpms with IVI

Hello Vladimir,

Can you verify that the feature is working with xdg shell.

The handling of dpms is implemented in compositor-drm backend, from

first look

could not find anything in ivi-shell which will prevent setting of the

dpms.

There is a simple timer which will be updated with the idle_time
value after

every

activity, it this time times out there should be a dpms_off event to drm.

Best regards

Eugen Friedrich
Engineering Software Multimedia 1 (ADITG/ESM1)

Tel. +49 5121 49 6921

-----Original Message-----
From: genivi-ivi-layer-management <genivi-ivi-layer-management-
bounces@lists.genivi.org> On Behalf Of Jovic, Vladimir
Sent: Mittwoch, 26. Juni 2019 08:49
To: genivi-ivi-layer-management@lists.genivi.org
Subject: dpms with IVI

Hi,

I am trying to turn off the screen after N seconds, but it didn't
work. I know that this can be done on X like this (as explained in
https://urldefense.proofpoint.com/v2/url?u=https-

3A__wiki.archlinux.or

g_index.php_Display-5FPower-5FManagement-

5FSignalin&d=DwIFAw&c=riR7jvi

Byh3sGm7GIiSlHkFN0_aSATB6A8x0nHa2EM0&r=8wfdsMUxnRudpdLb_Cg4rn

nnKI-

gQZ4

ykr3tjUrejXg&m=6NnwI0thsIV4TxDW1BYpJtwDdmS7Gdw96CB6W_WtNs8&s

=-

lUarFyTt

7OugjhdfiYyd4EfBWaBM-oHBK97mD-IpRY&e=
g#Disabling_DPMS):
xset dpms force off

First I tried this:
weston -i 3 --tty 3
and that didn't turn off the screen after 3 seconds. I know
because I set the background.

Then I tried Weston with this configuration:
[core]
shell=ivi-shell.so
modules=ivi-controller.so
idle-time=3

[ivi-shell]
ivi-input-module=ivi-input-controller.so
bkgnd-surface-id=1000
bkgnd-color=0xffff00ff

[output]
name=Unknown-1
transform=normal

Again, the screen would not go off after 3 seconds.

In the wayland mailing list, I was told that this may not be
implemented. It works with "desktop-shell.so"
So, what do I need to do to turn off the screen after N seconds?
Or at least to turn off the screen?

Mit freundlichen Grüßen

i. A. Vladimir Jovic
ifm ecomatic gmbh


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=6NnwI0thsIV4TxDW1BYpJtwDdmS7Gdw96CB6W_WtNs8&s=QX5H1feGY

JVS

nVX8hd3ff

e4kqhfLuDJF6ndlSpvK3Mk&e=
management_lists.genivi.org

Hi Vladimir, > -----Original Message----- > From: Jovic, Vladimir <vladimir.jovic@ifm.com> > Sent: Donnerstag, 27. Juni 2019 08:48 > To: Friedrich, Eugen (ADITG/ESM1) <efriedrich@de.adit-jv.com>; genivi-ivi- > layer-management@lists.genivi.org > Subject: AW: dpms with IVI > > Hi, > > Thanks for the info. > Do you have a branch, where it is possible to do? Are you willing to share > patches? [EF] I can share some part from our implementation which should be sufficient to enable the dpms use-case for you Give me some time, till end of tomorrow should be possible for me. > Why is it bad idea to use your extension? [EF] the compositor should never offer such functionality to all clients, only if you have closed system and you can trust all you clients > If not, where do I start to implement it? [EF] we did this in a separate module, I will share the details later... > [EF] Would you share you use-case? I'm curious if it is just power saving or some different use case? > Mit freundlichen Grüßen > i. A. Vladimir Jovic > ifm ecomatic gmbh > > > > > -----Ursprüngliche Nachricht----- > > Von: Friedrich, Eugen (ADITG/ESM1) <efriedrich@de.adit-jv.com> > > Gesendet: Mittwoch, 26. Juni 2019 19:19 > > An: Jovic, Vladimir <vladimir.jovic@ifm.com>; genivi-ivi-layer- > > management@lists.genivi.org > > Betreff: RE: dpms with IVI > > > > Hi Vladmir, > > > > Checked the code: not good news: we never implemented the idle_signal > in the ivi- > > shell, therefore the dpms will never work here. > > the desktop shell is implementing a signal handler which will trigger the > dpms off > > function (see [1]). > > > > We have done some internal protocol extension which will allow you to do > the > > setting explicitly but this is not a good idea, before this can go upstream we > need > > some way to protect the protocols and make them available only for > "special" > > clients. > > > > [1] https://urldefense.proofpoint.com/v2/url?u=https- > > 3A__gitlab.freedesktop.org_wayland_weston_blob_master_desktop- > > 2Dshell_shell.c- > > > 23L3934&d=DwIFAw&c=riR7jviByh3sGm7GIiSlHkFN0_aSATB6A8x0nHa2EM0& > r=8 > > wfdsMUxnRudpdLb_Cg4rnnnKI- > gQZ4ykr3tjUrejXg&m=Mz9nVGzFuQpRPfHd- > > > _nLWgdhACxt72T9O1Koq4as4iw&s=RTcEHj2l26JyQIaXHpFUpkGTjQyN98X656 > yKv > > 2ReKZg&e= > > > > Best regards > > > > Eugen Friedrich > > Engineering Software Multimedia 1 (ADITG/ESM1) > > > > Tel. +49 5121 49 6921 > > > > > -----Original Message----- > > > From: Jovic, Vladimir <vladimir.jovic@ifm.com> > > > Sent: Mittwoch, 26. Juni 2019 10:54 > > > To: Friedrich, Eugen (ADITG/ESM1) <efriedrich@de.adit-jv.com>; > > > genivi-ivi- layer-management@lists.genivi.org > > > Subject: AW: dpms with IVI > > > > > > Hi, > > > > > > Yes, it works. I just removed "weston.ini", and started the weston > > > with weston --tty3 -i5 And the screen is turned off. > > > But if I try with next weston.ini, then it doesn't work. > > > > > > [core] > > > shell=ivi-shell.so > > > modules=ivi-controller.so > > > require-input=false > > > idle-time=5 > > > > > > [ivi-shell] > > > ivi-input-module=ivi-input-controller.so > > > ivi-client-name=/usr/bin/simple-weston-client > > > bkgnd-surface-id=108888 > > > bkgnd-color=0xFFFF00FF > > > > > > [output] > > > name=Unknown-1 > > > transform=normal > > > > > > > > > Mit freundlichen Grüßen > > > > > > i. A. Vladimir Jovic > > > ifm ecomatic gmbh > > > > > > > > > > -----Ursprüngliche Nachricht----- > > > > Von: Friedrich, Eugen (ADITG/ESM1) <efriedrich@de.adit-jv.com> > > > > Gesendet: Mittwoch, 26. Juni 2019 09:30 > > > > An: Jovic, Vladimir <vladimir.jovic@ifm.com>; genivi-ivi-layer- > > > > management@lists.genivi.org > > > > Betreff: RE: dpms with IVI > > > > > > > > Hello Vladimir, > > > > > > > > Can you verify that the feature is working with xdg shell. > > > > > > > > The handling of dpms is implemented in compositor-drm backend, from > > > first look > > > > could not find anything in ivi-shell which will prevent setting of the > dpms. > > > > > > > > There is a simple timer which will be updated with the idle_time > > > > value after > > > every > > > > activity, it this time times out there should be a dpms_off event to drm. > > > > > > > > > > > > Best regards > > > > > > > > Eugen Friedrich > > > > Engineering Software Multimedia 1 (ADITG/ESM1) > > > > > > > > Tel. +49 5121 49 6921 > > > > > > > > > -----Original Message----- > > > > > From: genivi-ivi-layer-management <genivi-ivi-layer-management- > > > > > bounces@lists.genivi.org> On Behalf Of Jovic, Vladimir > > > > > Sent: Mittwoch, 26. Juni 2019 08:49 > > > > > To: genivi-ivi-layer-management@lists.genivi.org > > > > > Subject: dpms with IVI > > > > > > > > > > Hi, > > > > > > > > > > I am trying to turn off the screen after N seconds, but it didn't > > > > > work. I know that this can be done on X like this (as explained in > > > > > https://urldefense.proofpoint.com/v2/url?u=https- > > > 3A__wiki.archlinux.or > > > > > g_index.php_Display-5FPower-5FManagement- > > > 5FSignalin&d=DwIFAw&c=riR7jvi > > > > > > > > > > > > > Byh3sGm7GIiSlHkFN0_aSATB6A8x0nHa2EM0&r=8wfdsMUxnRudpdLb_Cg4rn > > > nnKI- > > > > gQZ4 > > > > > > > > > ykr3tjUrejXg&m=6NnwI0thsIV4TxDW1BYpJtwDdmS7Gdw96CB6W_WtNs8&s > > > =- > > > > lUarFyTt > > > > > 7OugjhdfiYyd4EfBWaBM-oHBK97mD-IpRY&e= > > > > > g#Disabling_DPMS): > > > > > xset dpms force off > > > > > > > > > > First I tried this: > > > > > weston -i 3 --tty 3 > > > > > and that didn't turn off the screen after 3 seconds. I know > > > > > because I set the background. > > > > > > > > > > Then I tried Weston with this configuration: > > > > > [core] > > > > > shell=ivi-shell.so > > > > > modules=ivi-controller.so > > > > > idle-time=3 > > > > > > > > > > [ivi-shell] > > > > > ivi-input-module=ivi-input-controller.so > > > > > bkgnd-surface-id=1000 > > > > > bkgnd-color=0xffff00ff > > > > > > > > > > [output] > > > > > name=Unknown-1 > > > > > transform=normal > > > > > > > > > > Again, the screen would not go off after 3 seconds. > > > > > > > > > > In the wayland mailing list, I was told that this may not be > > > > > implemented. It works with "desktop-shell.so" > > > > > So, what do I need to do to turn off the screen after N seconds? > > > > > Or at least to turn off the screen? > > > > > > > > > > Mit freundlichen Grüßen > > > > > > > > > > i. A. Vladimir Jovic > > > > > ifm ecomatic gmbh > > > > > > > > > > > > > > > _______________________________________________ > > > > > 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=6NnwI0thsIV4TxDW1BYpJtwDdmS7Gdw96CB6W_WtNs8&s=QX5H1feGY > > > JVS > > > > nVX8hd3ff > > > > > e4kqhfLuDJF6ndlSpvK3Mk&e= > > > > > management_lists.genivi.org > > > > > >
JV
Jovic, Vladimir
Thu, Jun 27, 2019 2:16 PM

-----Ursprüngliche Nachricht-----
Von: Friedrich, Eugen (ADITG/ESM1) efriedrich@de.adit-jv.com
Gesendet: Donnerstag, 27. Juni 2019 15:09
An: Jovic, Vladimir vladimir.jovic@ifm.com; genivi-ivi-layer-
management@lists.genivi.org
Betreff: RE: dpms with IVI

Hi Vladimir,

-----Original Message-----
From: Jovic, Vladimir vladimir.jovic@ifm.com
Sent: Donnerstag, 27. Juni 2019 08:48
To: Friedrich, Eugen (ADITG/ESM1) efriedrich@de.adit-jv.com;
genivi-ivi- layer-management@lists.genivi.org
Subject: AW: dpms with IVI

Hi,

Thanks for the info.
Do you have a branch, where it is possible to do? Are you willing to
share patches?

[EF] I can share some part from our implementation  which should be sufficient to
enable the dpms use-case for you Give me some time, till end of tomorrow should
be possible for me.

[VJ] It doesn't matter if it is a function to turn dpms on and off, or if it is a timer. I just need an option to turn it on and off.

Why is it bad idea to use your extension?

[EF] the compositor should never offer such functionality to all clients, only if you
have closed system and you can trust all you clients

[VJ]  Any reason for that? I know that (for example) in autos the screen never goes off. If you start navigation, you want it on all the time.
Does it mean that it will never be implemented in IVI?

If not, where do I start to implement it?

[EF] we did this in a separate module, I will share the details later...

[EF] Would you share you use-case? I'm curious if it is just power saving or some
different use case?

[VJ] One of our customers is producing garbage trucks. When the truck goes faster than 20 km/h, then the display must be off.
Other customer needs a power saving mode.

Mit freundlichen Grüßen
i. A. Vladimir Jovic
ifm ecomatic gmbh

-----Ursprüngliche Nachricht-----
Von: Friedrich, Eugen (ADITG/ESM1) efriedrich@de.adit-jv.com
Gesendet: Mittwoch, 26. Juni 2019 19:19
An: Jovic, Vladimir vladimir.jovic@ifm.com; genivi-ivi-layer-
management@lists.genivi.org
Betreff: RE: dpms with IVI

Hi Vladmir,

Checked the code: not good news: we never implemented the
idle_signal

in the ivi-

shell, therefore the dpms will never work here.
the desktop shell is implementing a signal handler which will
trigger the

dpms off

function (see [1]).

We have done some internal protocol extension which will allow you
to do

the

setting explicitly but this is not a good idea, before this can go
upstream we

need

some way to protect the protocols and make them available only for

"special"

clients.

[1] https://urldefense.proofpoint.com/v2/url?u=https-
3A__gitlab.freedesktop.org_wayland_weston_blob_master_desktop-
2Dshell_shell.c-

23L3934&d=DwIFAw&c=riR7jviByh3sGm7GIiSlHkFN0_aSATB6A8x0nHa2EM0&
r=8

wfdsMUxnRudpdLb_Cg4rnnnKI-

gQZ4ykr3tjUrejXg&m=Mz9nVGzFuQpRPfHd-

_nLWgdhACxt72T9O1Koq4as4iw&s=RTcEHj2l26JyQIaXHpFUpkGTjQyN98X656
yKv

2ReKZg&e=

Best regards

Eugen Friedrich
Engineering Software Multimedia 1 (ADITG/ESM1)

Tel. +49 5121 49 6921

-----Original Message-----
From: Jovic, Vladimir vladimir.jovic@ifm.com
Sent: Mittwoch, 26. Juni 2019 10:54
To: Friedrich, Eugen (ADITG/ESM1) efriedrich@de.adit-jv.com;
genivi-ivi- layer-management@lists.genivi.org
Subject: AW: dpms with IVI

Hi,

Yes, it works. I just removed "weston.ini", and started the weston
with weston --tty3 -i5 And the screen is turned off.
But if I try with next weston.ini, then it doesn't work.

[core]
shell=ivi-shell.so
modules=ivi-controller.so
require-input=false
idle-time=5

[ivi-shell]
ivi-input-module=ivi-input-controller.so
ivi-client-name=/usr/bin/simple-weston-client
bkgnd-surface-id=108888
bkgnd-color=0xFFFF00FF

[output]
name=Unknown-1
transform=normal

Mit freundlichen Grüßen

i. A. Vladimir Jovic
ifm ecomatic gmbh

-----Ursprüngliche Nachricht-----
Von: Friedrich, Eugen (ADITG/ESM1) efriedrich@de.adit-jv.com
Gesendet: Mittwoch, 26. Juni 2019 09:30
An: Jovic, Vladimir vladimir.jovic@ifm.com; genivi-ivi-layer-
management@lists.genivi.org
Betreff: RE: dpms with IVI

Hello Vladimir,

Can you verify that the feature is working with xdg shell.

The handling of dpms is implemented in compositor-drm backend,
from

first look

could not find anything in ivi-shell which will prevent setting
of the

dpms.

There is a simple timer which will be updated with the idle_time
value after

every

activity, it this time times out there should be a dpms_off event to drm.

Best regards

Eugen Friedrich
Engineering Software Multimedia 1 (ADITG/ESM1)

Tel. +49 5121 49 6921

-----Original Message-----
From: genivi-ivi-layer-management
<genivi-ivi-layer-management- bounces@lists.genivi.org> On
Behalf Of Jovic, Vladimir
Sent: Mittwoch, 26. Juni 2019 08:49
To: genivi-ivi-layer-management@lists.genivi.org
Subject: dpms with IVI

Hi,

I am trying to turn off the screen after N seconds, but it
didn't work. I know that this can be done on X like this (as
explained in
https://urldefense.proofpoint.com/v2/url?u=https-

3A__wiki.archlinux.or

g_index.php_Display-5FPower-5FManagement-

5FSignalin&d=DwIFAw&c=riR7jvi

Byh3sGm7GIiSlHkFN0_aSATB6A8x0nHa2EM0&r=8wfdsMUxnRudpdLb_Cg4rn

nnKI-

gQZ4

ykr3tjUrejXg&m=6NnwI0thsIV4TxDW1BYpJtwDdmS7Gdw96CB6W_WtNs8&s

=-

lUarFyTt

7OugjhdfiYyd4EfBWaBM-oHBK97mD-IpRY&e=
g#Disabling_DPMS):
xset dpms force off

First I tried this:
weston -i 3 --tty 3
and that didn't turn off the screen after 3 seconds. I know
because I set the background.

Then I tried Weston with this configuration:
[core]
shell=ivi-shell.so
modules=ivi-controller.so
idle-time=3

[ivi-shell]
ivi-input-module=ivi-input-controller.so
bkgnd-surface-id=1000
bkgnd-color=0xffff00ff

[output]
name=Unknown-1
transform=normal

Again, the screen would not go off after 3 seconds.

In the wayland mailing list, I was told that this may not be
implemented. It works with "desktop-shell.so"
So, what do I need to do to turn off the screen after N seconds?
Or at least to turn off the screen?

Mit freundlichen Grüßen

i. A. Vladimir Jovic
ifm ecomatic gmbh

> -----Ursprüngliche Nachricht----- > Von: Friedrich, Eugen (ADITG/ESM1) <efriedrich@de.adit-jv.com> > Gesendet: Donnerstag, 27. Juni 2019 15:09 > An: Jovic, Vladimir <vladimir.jovic@ifm.com>; genivi-ivi-layer- > management@lists.genivi.org > Betreff: RE: dpms with IVI > > Hi Vladimir, > > > -----Original Message----- > > From: Jovic, Vladimir <vladimir.jovic@ifm.com> > > Sent: Donnerstag, 27. Juni 2019 08:48 > > To: Friedrich, Eugen (ADITG/ESM1) <efriedrich@de.adit-jv.com>; > > genivi-ivi- layer-management@lists.genivi.org > > Subject: AW: dpms with IVI > > > > Hi, > > > > Thanks for the info. > > Do you have a branch, where it is possible to do? Are you willing to > > share patches? > [EF] I can share some part from our implementation which should be sufficient to > enable the dpms use-case for you Give me some time, till end of tomorrow should > be possible for me. [VJ] It doesn't matter if it is a function to turn dpms on and off, or if it is a timer. I just need an option to turn it on and off. > > Why is it bad idea to use your extension? > [EF] the compositor should never offer such functionality to all clients, only if you > have closed system and you can trust all you clients [VJ] Any reason for that? I know that (for example) in autos the screen never goes off. If you start navigation, you want it on all the time. Does it mean that it will never be implemented in IVI? > > If not, where do I start to implement it? > [EF] we did this in a separate module, I will share the details later... > > > [EF] Would you share you use-case? I'm curious if it is just power saving or some > different use case? [VJ] One of our customers is producing garbage trucks. When the truck goes faster than 20 km/h, then the display must be off. Other customer needs a power saving mode. > > > Mit freundlichen Grüßen > > i. A. Vladimir Jovic > > ifm ecomatic gmbh > > > > > > > > > -----Ursprüngliche Nachricht----- > > > Von: Friedrich, Eugen (ADITG/ESM1) <efriedrich@de.adit-jv.com> > > > Gesendet: Mittwoch, 26. Juni 2019 19:19 > > > An: Jovic, Vladimir <vladimir.jovic@ifm.com>; genivi-ivi-layer- > > > management@lists.genivi.org > > > Betreff: RE: dpms with IVI > > > > > > Hi Vladmir, > > > > > > Checked the code: not good news: we never implemented the > > > idle_signal > > in the ivi- > > > shell, therefore the dpms will never work here. > > > the desktop shell is implementing a signal handler which will > > > trigger the > > dpms off > > > function (see [1]). > > > > > > We have done some internal protocol extension which will allow you > > > to do > > the > > > setting explicitly but this is not a good idea, before this can go > > > upstream we > > need > > > some way to protect the protocols and make them available only for > > "special" > > > clients. > > > > > > [1] https://urldefense.proofpoint.com/v2/url?u=https- > > > 3A__gitlab.freedesktop.org_wayland_weston_blob_master_desktop- > > > 2Dshell_shell.c- > > > > > 23L3934&d=DwIFAw&c=riR7jviByh3sGm7GIiSlHkFN0_aSATB6A8x0nHa2EM0& > > r=8 > > > wfdsMUxnRudpdLb_Cg4rnnnKI- > > gQZ4ykr3tjUrejXg&m=Mz9nVGzFuQpRPfHd- > > > > > _nLWgdhACxt72T9O1Koq4as4iw&s=RTcEHj2l26JyQIaXHpFUpkGTjQyN98X656 > > yKv > > > 2ReKZg&e= > > > > > > Best regards > > > > > > Eugen Friedrich > > > Engineering Software Multimedia 1 (ADITG/ESM1) > > > > > > Tel. +49 5121 49 6921 > > > > > > > -----Original Message----- > > > > From: Jovic, Vladimir <vladimir.jovic@ifm.com> > > > > Sent: Mittwoch, 26. Juni 2019 10:54 > > > > To: Friedrich, Eugen (ADITG/ESM1) <efriedrich@de.adit-jv.com>; > > > > genivi-ivi- layer-management@lists.genivi.org > > > > Subject: AW: dpms with IVI > > > > > > > > Hi, > > > > > > > > Yes, it works. I just removed "weston.ini", and started the weston > > > > with weston --tty3 -i5 And the screen is turned off. > > > > But if I try with next weston.ini, then it doesn't work. > > > > > > > > [core] > > > > shell=ivi-shell.so > > > > modules=ivi-controller.so > > > > require-input=false > > > > idle-time=5 > > > > > > > > [ivi-shell] > > > > ivi-input-module=ivi-input-controller.so > > > > ivi-client-name=/usr/bin/simple-weston-client > > > > bkgnd-surface-id=108888 > > > > bkgnd-color=0xFFFF00FF > > > > > > > > [output] > > > > name=Unknown-1 > > > > transform=normal > > > > > > > > > > > > Mit freundlichen Grüßen > > > > > > > > i. A. Vladimir Jovic > > > > ifm ecomatic gmbh > > > > > > > > > > > > > -----Ursprüngliche Nachricht----- > > > > > Von: Friedrich, Eugen (ADITG/ESM1) <efriedrich@de.adit-jv.com> > > > > > Gesendet: Mittwoch, 26. Juni 2019 09:30 > > > > > An: Jovic, Vladimir <vladimir.jovic@ifm.com>; genivi-ivi-layer- > > > > > management@lists.genivi.org > > > > > Betreff: RE: dpms with IVI > > > > > > > > > > Hello Vladimir, > > > > > > > > > > Can you verify that the feature is working with xdg shell. > > > > > > > > > > The handling of dpms is implemented in compositor-drm backend, > > > > > from > > > > first look > > > > > could not find anything in ivi-shell which will prevent setting > > > > > of the > > dpms. > > > > > > > > > > There is a simple timer which will be updated with the idle_time > > > > > value after > > > > every > > > > > activity, it this time times out there should be a dpms_off event to drm. > > > > > > > > > > > > > > > Best regards > > > > > > > > > > Eugen Friedrich > > > > > Engineering Software Multimedia 1 (ADITG/ESM1) > > > > > > > > > > Tel. +49 5121 49 6921 > > > > > > > > > > > -----Original Message----- > > > > > > From: genivi-ivi-layer-management > > > > > > <genivi-ivi-layer-management- bounces@lists.genivi.org> On > > > > > > Behalf Of Jovic, Vladimir > > > > > > Sent: Mittwoch, 26. Juni 2019 08:49 > > > > > > To: genivi-ivi-layer-management@lists.genivi.org > > > > > > Subject: dpms with IVI > > > > > > > > > > > > Hi, > > > > > > > > > > > > I am trying to turn off the screen after N seconds, but it > > > > > > didn't work. I know that this can be done on X like this (as > > > > > > explained in > > > > > > https://urldefense.proofpoint.com/v2/url?u=https- > > > > 3A__wiki.archlinux.or > > > > > > g_index.php_Display-5FPower-5FManagement- > > > > 5FSignalin&d=DwIFAw&c=riR7jvi > > > > > > > > > > > > > > > > > Byh3sGm7GIiSlHkFN0_aSATB6A8x0nHa2EM0&r=8wfdsMUxnRudpdLb_Cg4rn > > > > nnKI- > > > > > gQZ4 > > > > > > > > > > > > ykr3tjUrejXg&m=6NnwI0thsIV4TxDW1BYpJtwDdmS7Gdw96CB6W_WtNs8&s > > > > =- > > > > > lUarFyTt > > > > > > 7OugjhdfiYyd4EfBWaBM-oHBK97mD-IpRY&e= > > > > > > g#Disabling_DPMS): > > > > > > xset dpms force off > > > > > > > > > > > > First I tried this: > > > > > > weston -i 3 --tty 3 > > > > > > and that didn't turn off the screen after 3 seconds. I know > > > > > > because I set the background. > > > > > > > > > > > > Then I tried Weston with this configuration: > > > > > > [core] > > > > > > shell=ivi-shell.so > > > > > > modules=ivi-controller.so > > > > > > idle-time=3 > > > > > > > > > > > > [ivi-shell] > > > > > > ivi-input-module=ivi-input-controller.so > > > > > > bkgnd-surface-id=1000 > > > > > > bkgnd-color=0xffff00ff > > > > > > > > > > > > [output] > > > > > > name=Unknown-1 > > > > > > transform=normal > > > > > > > > > > > > Again, the screen would not go off after 3 seconds. > > > > > > > > > > > > In the wayland mailing list, I was told that this may not be > > > > > > implemented. It works with "desktop-shell.so" > > > > > > So, what do I need to do to turn off the screen after N seconds? > > > > > > Or at least to turn off the screen? > > > > > > > > > > > > Mit freundlichen Grüßen > > > > > > > > > > > > i. A. Vladimir Jovic > > > > > > ifm ecomatic gmbh
FE
Friedrich, Eugen (ADITG/ESM1)
Fri, Jun 28, 2019 1:17 PM

Hi Vladimir,

Please find the example attached,
Use with caution :-), hope this helps...

Best regards

Eugen Friedrich
Engineering Software Multimedia 1 (ADITG/ESM1)

Tel. +49 5121 49 6921

-----Original Message-----
From: Jovic, Vladimir vladimir.jovic@ifm.com
Sent: Donnerstag, 27. Juni 2019 16:17
To: Friedrich, Eugen (ADITG/ESM1) efriedrich@de.adit-jv.com; genivi-ivi-
layer-management@lists.genivi.org
Subject: AW: dpms with IVI

-----Ursprüngliche Nachricht-----
Von: Friedrich, Eugen (ADITG/ESM1) efriedrich@de.adit-jv.com
Gesendet: Donnerstag, 27. Juni 2019 15:09
An: Jovic, Vladimir vladimir.jovic@ifm.com; genivi-ivi-layer-
management@lists.genivi.org
Betreff: RE: dpms with IVI

Hi Vladimir,

-----Original Message-----
From: Jovic, Vladimir vladimir.jovic@ifm.com
Sent: Donnerstag, 27. Juni 2019 08:48
To: Friedrich, Eugen (ADITG/ESM1) efriedrich@de.adit-jv.com;
genivi-ivi- layer-management@lists.genivi.org
Subject: AW: dpms with IVI

Hi,

Thanks for the info.
Do you have a branch, where it is possible to do? Are you willing to
share patches?

[EF] I can share some part from our implementation  which should be

sufficient to

enable the dpms use-case for you Give me some time, till end of tomorrow

should

be possible for me.

[VJ] It doesn't matter if it is a function to turn dpms on and off, or if it is a
timer. I just need an option to turn it on and off.

Why is it bad idea to use your extension?

[EF] the compositor should never offer such functionality to all clients, only

if you

have closed system and you can trust all you clients

[VJ]  Any reason for that? I know that (for example) in autos the screen
never goes off. If you start navigation, you want it on all the time.
Does it mean that it will never be implemented in IVI?

I would not say that, there are also some use-cases: e.g. related to special display or also in ebike or other related environment!

If not, where do I start to implement it?

[EF] we did this in a separate module, I will share the details later...

[EF] Would you share you use-case? I'm curious if it is just power saving or

some

different use case?

[VJ] One of our customers is producing garbage trucks. When the truck goes
faster than 20 km/h, then the display must be off.
Other customer needs a power saving mode.

I see! Thanks for sharing this!

Mit freundlichen Grüßen
i. A. Vladimir Jovic
ifm ecomatic gmbh

-----Ursprüngliche Nachricht-----
Von: Friedrich, Eugen (ADITG/ESM1) efriedrich@de.adit-jv.com
Gesendet: Mittwoch, 26. Juni 2019 19:19
An: Jovic, Vladimir vladimir.jovic@ifm.com; genivi-ivi-layer-
management@lists.genivi.org
Betreff: RE: dpms with IVI

Hi Vladmir,

Checked the code: not good news: we never implemented the
idle_signal

in the ivi-

shell, therefore the dpms will never work here.
the desktop shell is implementing a signal handler which will
trigger the

dpms off

function (see [1]).

We have done some internal protocol extension which will allow you
to do

the

setting explicitly but this is not a good idea, before this can go
upstream we

need

some way to protect the protocols and make them available only for

"special"

clients.

[1] https://urldefense.proofpoint.com/v2/url?u=https-
3A__gitlab.freedesktop.org_wayland_weston_blob_master_desktop-
2Dshell_shell.c-

23L3934&d=DwIFAw&c=riR7jviByh3sGm7GIiSlHkFN0_aSATB6A8x0nHa2EM0&

r=8

wfdsMUxnRudpdLb_Cg4rnnnKI-

gQZ4ykr3tjUrejXg&m=Mz9nVGzFuQpRPfHd-

_nLWgdhACxt72T9O1Koq4as4iw&s=RTcEHj2l26JyQIaXHpFUpkGTjQyN98X656

yKv

2ReKZg&e=

Best regards

Eugen Friedrich
Engineering Software Multimedia 1 (ADITG/ESM1)

Tel. +49 5121 49 6921

-----Original Message-----
From: Jovic, Vladimir vladimir.jovic@ifm.com
Sent: Mittwoch, 26. Juni 2019 10:54
To: Friedrich, Eugen (ADITG/ESM1) efriedrich@de.adit-jv.com;
genivi-ivi- layer-management@lists.genivi.org
Subject: AW: dpms with IVI

Hi,

Yes, it works. I just removed "weston.ini", and started the weston
with weston --tty3 -i5 And the screen is turned off.
But if I try with next weston.ini, then it doesn't work.

[core]
shell=ivi-shell.so
modules=ivi-controller.so
require-input=false
idle-time=5

[ivi-shell]
ivi-input-module=ivi-input-controller.so
ivi-client-name=/usr/bin/simple-weston-client
bkgnd-surface-id=108888
bkgnd-color=0xFFFF00FF

[output]
name=Unknown-1
transform=normal

Mit freundlichen Grüßen

i. A. Vladimir Jovic
ifm ecomatic gmbh

-----Ursprüngliche Nachricht-----
Von: Friedrich, Eugen (ADITG/ESM1) efriedrich@de.adit-jv.com
Gesendet: Mittwoch, 26. Juni 2019 09:30
An: Jovic, Vladimir vladimir.jovic@ifm.com; genivi-ivi-layer-
management@lists.genivi.org
Betreff: RE: dpms with IVI

Hello Vladimir,

Can you verify that the feature is working with xdg shell.

The handling of dpms is implemented in compositor-drm backend,
from

first look

could not find anything in ivi-shell which will prevent setting
of the

dpms.

There is a simple timer which will be updated with the idle_time
value after

every

activity, it this time times out there should be a dpms_off event to

drm.

Best regards

Eugen Friedrich
Engineering Software Multimedia 1 (ADITG/ESM1)

Tel. +49 5121 49 6921

-----Original Message-----
From: genivi-ivi-layer-management
<genivi-ivi-layer-management- bounces@lists.genivi.org> On
Behalf Of Jovic, Vladimir
Sent: Mittwoch, 26. Juni 2019 08:49
To: genivi-ivi-layer-management@lists.genivi.org
Subject: dpms with IVI

Hi,

I am trying to turn off the screen after N seconds, but it
didn't work. I know that this can be done on X like this (as
explained in
https://urldefense.proofpoint.com/v2/url?u=https-

3A__wiki.archlinux.or

g_index.php_Display-5FPower-5FManagement-

5FSignalin&d=DwIFAw&c=riR7jvi

Byh3sGm7GIiSlHkFN0_aSATB6A8x0nHa2EM0&r=8wfdsMUxnRudpdLb_Cg4rn

nnKI-

gQZ4

ykr3tjUrejXg&m=6NnwI0thsIV4TxDW1BYpJtwDdmS7Gdw96CB6W_WtNs8&s

=-

lUarFyTt

7OugjhdfiYyd4EfBWaBM-oHBK97mD-IpRY&e=
g#Disabling_DPMS):
xset dpms force off

First I tried this:
weston -i 3 --tty 3
and that didn't turn off the screen after 3 seconds. I know
because I set the background.

Then I tried Weston with this configuration:
[core]
shell=ivi-shell.so
modules=ivi-controller.so
idle-time=3

[ivi-shell]
ivi-input-module=ivi-input-controller.so
bkgnd-surface-id=1000
bkgnd-color=0xffff00ff

[output]
name=Unknown-1
transform=normal

Again, the screen would not go off after 3 seconds.

In the wayland mailing list, I was told that this may not be
implemented. It works with "desktop-shell.so"
So, what do I need to do to turn off the screen after N seconds?
Or at least to turn off the screen?

Mit freundlichen Grüßen

i. A. Vladimir Jovic
ifm ecomatic gmbh

Hi Vladimir, Please find the example attached, Use with caution :-), hope this helps... Best regards Eugen Friedrich Engineering Software Multimedia 1 (ADITG/ESM1) Tel. +49 5121 49 6921 > -----Original Message----- > From: Jovic, Vladimir <vladimir.jovic@ifm.com> > Sent: Donnerstag, 27. Juni 2019 16:17 > To: Friedrich, Eugen (ADITG/ESM1) <efriedrich@de.adit-jv.com>; genivi-ivi- > layer-management@lists.genivi.org > Subject: AW: dpms with IVI > > > > -----Ursprüngliche Nachricht----- > > Von: Friedrich, Eugen (ADITG/ESM1) <efriedrich@de.adit-jv.com> > > Gesendet: Donnerstag, 27. Juni 2019 15:09 > > An: Jovic, Vladimir <vladimir.jovic@ifm.com>; genivi-ivi-layer- > > management@lists.genivi.org > > Betreff: RE: dpms with IVI > > > > Hi Vladimir, > > > > > -----Original Message----- > > > From: Jovic, Vladimir <vladimir.jovic@ifm.com> > > > Sent: Donnerstag, 27. Juni 2019 08:48 > > > To: Friedrich, Eugen (ADITG/ESM1) <efriedrich@de.adit-jv.com>; > > > genivi-ivi- layer-management@lists.genivi.org > > > Subject: AW: dpms with IVI > > > > > > Hi, > > > > > > Thanks for the info. > > > Do you have a branch, where it is possible to do? Are you willing to > > > share patches? > > [EF] I can share some part from our implementation which should be > sufficient to > > enable the dpms use-case for you Give me some time, till end of tomorrow > should > > be possible for me. > [VJ] It doesn't matter if it is a function to turn dpms on and off, or if it is a > timer. I just need an option to turn it on and off. > > > > > Why is it bad idea to use your extension? > > [EF] the compositor should never offer such functionality to all clients, only > if you > > have closed system and you can trust all you clients > [VJ] Any reason for that? I know that (for example) in autos the screen > never goes off. If you start navigation, you want it on all the time. > Does it mean that it will never be implemented in IVI? I would not say that, there are also some use-cases: e.g. related to special display or also in ebike or other related environment! > > > > If not, where do I start to implement it? > > [EF] we did this in a separate module, I will share the details later... > > > > > [EF] Would you share you use-case? I'm curious if it is just power saving or > some > > different use case? > [VJ] One of our customers is producing garbage trucks. When the truck goes > faster than 20 km/h, then the display must be off. > Other customer needs a power saving mode. I see! Thanks for sharing this! > > > > > > > Mit freundlichen Grüßen > > > i. A. Vladimir Jovic > > > ifm ecomatic gmbh > > > > > > > > > > > > > -----Ursprüngliche Nachricht----- > > > > Von: Friedrich, Eugen (ADITG/ESM1) <efriedrich@de.adit-jv.com> > > > > Gesendet: Mittwoch, 26. Juni 2019 19:19 > > > > An: Jovic, Vladimir <vladimir.jovic@ifm.com>; genivi-ivi-layer- > > > > management@lists.genivi.org > > > > Betreff: RE: dpms with IVI > > > > > > > > Hi Vladmir, > > > > > > > > Checked the code: not good news: we never implemented the > > > > idle_signal > > > in the ivi- > > > > shell, therefore the dpms will never work here. > > > > the desktop shell is implementing a signal handler which will > > > > trigger the > > > dpms off > > > > function (see [1]). > > > > > > > > We have done some internal protocol extension which will allow you > > > > to do > > > the > > > > setting explicitly but this is not a good idea, before this can go > > > > upstream we > > > need > > > > some way to protect the protocols and make them available only for > > > "special" > > > > clients. > > > > > > > > [1] https://urldefense.proofpoint.com/v2/url?u=https- > > > > 3A__gitlab.freedesktop.org_wayland_weston_blob_master_desktop- > > > > 2Dshell_shell.c- > > > > > > > > 23L3934&d=DwIFAw&c=riR7jviByh3sGm7GIiSlHkFN0_aSATB6A8x0nHa2EM0& > > > r=8 > > > > wfdsMUxnRudpdLb_Cg4rnnnKI- > > > gQZ4ykr3tjUrejXg&m=Mz9nVGzFuQpRPfHd- > > > > > > > > _nLWgdhACxt72T9O1Koq4as4iw&s=RTcEHj2l26JyQIaXHpFUpkGTjQyN98X656 > > > yKv > > > > 2ReKZg&e= > > > > > > > > Best regards > > > > > > > > Eugen Friedrich > > > > Engineering Software Multimedia 1 (ADITG/ESM1) > > > > > > > > Tel. +49 5121 49 6921 > > > > > > > > > -----Original Message----- > > > > > From: Jovic, Vladimir <vladimir.jovic@ifm.com> > > > > > Sent: Mittwoch, 26. Juni 2019 10:54 > > > > > To: Friedrich, Eugen (ADITG/ESM1) <efriedrich@de.adit-jv.com>; > > > > > genivi-ivi- layer-management@lists.genivi.org > > > > > Subject: AW: dpms with IVI > > > > > > > > > > Hi, > > > > > > > > > > Yes, it works. I just removed "weston.ini", and started the weston > > > > > with weston --tty3 -i5 And the screen is turned off. > > > > > But if I try with next weston.ini, then it doesn't work. > > > > > > > > > > [core] > > > > > shell=ivi-shell.so > > > > > modules=ivi-controller.so > > > > > require-input=false > > > > > idle-time=5 > > > > > > > > > > [ivi-shell] > > > > > ivi-input-module=ivi-input-controller.so > > > > > ivi-client-name=/usr/bin/simple-weston-client > > > > > bkgnd-surface-id=108888 > > > > > bkgnd-color=0xFFFF00FF > > > > > > > > > > [output] > > > > > name=Unknown-1 > > > > > transform=normal > > > > > > > > > > > > > > > Mit freundlichen Grüßen > > > > > > > > > > i. A. Vladimir Jovic > > > > > ifm ecomatic gmbh > > > > > > > > > > > > > > > > -----Ursprüngliche Nachricht----- > > > > > > Von: Friedrich, Eugen (ADITG/ESM1) <efriedrich@de.adit-jv.com> > > > > > > Gesendet: Mittwoch, 26. Juni 2019 09:30 > > > > > > An: Jovic, Vladimir <vladimir.jovic@ifm.com>; genivi-ivi-layer- > > > > > > management@lists.genivi.org > > > > > > Betreff: RE: dpms with IVI > > > > > > > > > > > > Hello Vladimir, > > > > > > > > > > > > Can you verify that the feature is working with xdg shell. > > > > > > > > > > > > The handling of dpms is implemented in compositor-drm backend, > > > > > > from > > > > > first look > > > > > > could not find anything in ivi-shell which will prevent setting > > > > > > of the > > > dpms. > > > > > > > > > > > > There is a simple timer which will be updated with the idle_time > > > > > > value after > > > > > every > > > > > > activity, it this time times out there should be a dpms_off event to > drm. > > > > > > > > > > > > > > > > > > Best regards > > > > > > > > > > > > Eugen Friedrich > > > > > > Engineering Software Multimedia 1 (ADITG/ESM1) > > > > > > > > > > > > Tel. +49 5121 49 6921 > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: genivi-ivi-layer-management > > > > > > > <genivi-ivi-layer-management- bounces@lists.genivi.org> On > > > > > > > Behalf Of Jovic, Vladimir > > > > > > > Sent: Mittwoch, 26. Juni 2019 08:49 > > > > > > > To: genivi-ivi-layer-management@lists.genivi.org > > > > > > > Subject: dpms with IVI > > > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > I am trying to turn off the screen after N seconds, but it > > > > > > > didn't work. I know that this can be done on X like this (as > > > > > > > explained in > > > > > > > https://urldefense.proofpoint.com/v2/url?u=https- > > > > > 3A__wiki.archlinux.or > > > > > > > g_index.php_Display-5FPower-5FManagement- > > > > > 5FSignalin&d=DwIFAw&c=riR7jvi > > > > > > > > > > > > > > > > > > > > > > Byh3sGm7GIiSlHkFN0_aSATB6A8x0nHa2EM0&r=8wfdsMUxnRudpdLb_Cg4rn > > > > > nnKI- > > > > > > gQZ4 > > > > > > > > > > > > > > > > ykr3tjUrejXg&m=6NnwI0thsIV4TxDW1BYpJtwDdmS7Gdw96CB6W_WtNs8&s > > > > > =- > > > > > > lUarFyTt > > > > > > > 7OugjhdfiYyd4EfBWaBM-oHBK97mD-IpRY&e= > > > > > > > g#Disabling_DPMS): > > > > > > > xset dpms force off > > > > > > > > > > > > > > First I tried this: > > > > > > > weston -i 3 --tty 3 > > > > > > > and that didn't turn off the screen after 3 seconds. I know > > > > > > > because I set the background. > > > > > > > > > > > > > > Then I tried Weston with this configuration: > > > > > > > [core] > > > > > > > shell=ivi-shell.so > > > > > > > modules=ivi-controller.so > > > > > > > idle-time=3 > > > > > > > > > > > > > > [ivi-shell] > > > > > > > ivi-input-module=ivi-input-controller.so > > > > > > > bkgnd-surface-id=1000 > > > > > > > bkgnd-color=0xffff00ff > > > > > > > > > > > > > > [output] > > > > > > > name=Unknown-1 > > > > > > > transform=normal > > > > > > > > > > > > > > Again, the screen would not go off after 3 seconds. > > > > > > > > > > > > > > In the wayland mailing list, I was told that this may not be > > > > > > > implemented. It works with "desktop-shell.so" > > > > > > > So, what do I need to do to turn off the screen after N seconds? > > > > > > > Or at least to turn off the screen? > > > > > > > > > > > > > > Mit freundlichen Grüßen > > > > > > > > > > > > > > i. A. Vladimir Jovic > > > > > > > ifm ecomatic gmbh >
JV
Jovic, Vladimir
Mon, Jul 1, 2019 7:37 AM

Hi,

Thank you very much :)
It works, but I had to make one change: "struct weston_output" has no member variable "set_ctm". I use Weston 6.0, so I am not sure if it was removed or added. What is it supposed to do anyway?
Also, your README doesn't explain how to build everything, that is why it took me a while.
Do you have repository somewhere? I could add makefiles and program which turn the screen on and off.
Are there plans to implement this in the master of IVI? My boss is very optimistic, and said if a big player pays enough, then this goes in :)

Mit freundlichen Grüßen
i. A. Vladimir Jovic
ifm ecomatic gmbh

-----Ursprüngliche Nachricht-----
Von: Friedrich, Eugen (ADITG/ESM1) efriedrich@de.adit-jv.com
Gesendet: Freitag, 28. Juni 2019 15:17
An: Jovic, Vladimir vladimir.jovic@ifm.com; genivi-ivi-layer-
management@lists.genivi.org
Betreff: RE: dpms with IVI

Hi Vladimir,

Please find the example attached,
Use with caution :-), hope this helps...

Best regards

Eugen Friedrich
Engineering Software Multimedia 1 (ADITG/ESM1)

Tel. +49 5121 49 6921

-----Original Message-----
From: Jovic, Vladimir vladimir.jovic@ifm.com
Sent: Donnerstag, 27. Juni 2019 16:17
To: Friedrich, Eugen (ADITG/ESM1) efriedrich@de.adit-jv.com;
genivi-ivi- layer-management@lists.genivi.org
Subject: AW: dpms with IVI

-----Ursprüngliche Nachricht-----
Von: Friedrich, Eugen (ADITG/ESM1) efriedrich@de.adit-jv.com
Gesendet: Donnerstag, 27. Juni 2019 15:09
An: Jovic, Vladimir vladimir.jovic@ifm.com; genivi-ivi-layer-
management@lists.genivi.org
Betreff: RE: dpms with IVI

Hi Vladimir,

-----Original Message-----
From: Jovic, Vladimir vladimir.jovic@ifm.com
Sent: Donnerstag, 27. Juni 2019 08:48
To: Friedrich, Eugen (ADITG/ESM1) efriedrich@de.adit-jv.com;
genivi-ivi- layer-management@lists.genivi.org
Subject: AW: dpms with IVI

Hi,

Thanks for the info.
Do you have a branch, where it is possible to do? Are you willing
to share patches?

[EF] I can share some part from our implementation  which should be

sufficient to

enable the dpms use-case for you Give me some time, till end of
tomorrow

should

be possible for me.

[VJ] It doesn't matter if it is a function to turn dpms on and off, or
if it is a timer. I just need an option to turn it on and off.

Why is it bad idea to use your extension?

[EF] the compositor should never offer such functionality to all
clients, only

if you

have closed system and you can trust all you clients

[VJ]  Any reason for that? I know that (for example) in autos the
screen never goes off. If you start navigation, you want it on all the time.
Does it mean that it will never be implemented in IVI?

I would not say that, there are also some use-cases: e.g. related to special display
or also in ebike or other related environment!

If not, where do I start to implement it?

[EF] we did this in a separate module, I will share the details later...

[EF] Would you share you use-case? I'm curious if it is just power
saving or

some

different use case?

[VJ] One of our customers is producing garbage trucks. When the truck
goes faster than 20 km/h, then the display must be off.
Other customer needs a power saving mode.

I see! Thanks for sharing this!

Mit freundlichen Grüßen
i. A. Vladimir Jovic
ifm ecomatic gmbh

-----Ursprüngliche Nachricht-----
Von: Friedrich, Eugen (ADITG/ESM1) efriedrich@de.adit-jv.com
Gesendet: Mittwoch, 26. Juni 2019 19:19
An: Jovic, Vladimir vladimir.jovic@ifm.com; genivi-ivi-layer-
management@lists.genivi.org
Betreff: RE: dpms with IVI

Hi Vladmir,

Checked the code: not good news: we never implemented the
idle_signal

in the ivi-

shell, therefore the dpms will never work here.
the desktop shell is implementing a signal handler which will
trigger the

dpms off

function (see [1]).

We have done some internal protocol extension which will allow
you to do

the

setting explicitly but this is not a good idea, before this can
go upstream we

need

some way to protect the protocols and make them available only
for

"special"

clients.

[1] https://urldefense.proofpoint.com/v2/url?u=https-
3A__gitlab.freedesktop.org_wayland_weston_blob_master_desktop-
2Dshell_shell.c-

23L3934&d=DwIFAw&c=riR7jviByh3sGm7GIiSlHkFN0_aSATB6A8x0nHa2EM0&

r=8

wfdsMUxnRudpdLb_Cg4rnnnKI-

gQZ4ykr3tjUrejXg&m=Mz9nVGzFuQpRPfHd-

_nLWgdhACxt72T9O1Koq4as4iw&s=RTcEHj2l26JyQIaXHpFUpkGTjQyN98X656

yKv

2ReKZg&e=

Best regards

Eugen Friedrich
Engineering Software Multimedia 1 (ADITG/ESM1)

Tel. +49 5121 49 6921

-----Original Message-----
From: Jovic, Vladimir vladimir.jovic@ifm.com
Sent: Mittwoch, 26. Juni 2019 10:54
To: Friedrich, Eugen (ADITG/ESM1) efriedrich@de.adit-jv.com;
genivi-ivi- layer-management@lists.genivi.org
Subject: AW: dpms with IVI

Hi,

Yes, it works. I just removed "weston.ini", and started the
weston with weston --tty3 -i5 And the screen is turned off.
But if I try with next weston.ini, then it doesn't work.

[core]
shell=ivi-shell.so
modules=ivi-controller.so
require-input=false
idle-time=5

[ivi-shell]
ivi-input-module=ivi-input-controller.so
ivi-client-name=/usr/bin/simple-weston-client
bkgnd-surface-id=108888
bkgnd-color=0xFFFF00FF

[output]
name=Unknown-1
transform=normal

Mit freundlichen Grüßen

i. A. Vladimir Jovic
ifm ecomatic gmbh

-----Ursprüngliche Nachricht-----
Von: Friedrich, Eugen (ADITG/ESM1)
efriedrich@de.adit-jv.com
Gesendet: Mittwoch, 26. Juni 2019 09:30
An: Jovic, Vladimir vladimir.jovic@ifm.com;
genivi-ivi-layer- management@lists.genivi.org
Betreff: RE: dpms with IVI

Hello Vladimir,

Can you verify that the feature is working with xdg shell.

The handling of dpms is implemented in compositor-drm
backend, from

first look

could not find anything in ivi-shell which will prevent
setting of the

dpms.

There is a simple timer which will be updated with the
idle_time value after

every

activity, it this time times out there should be a dpms_off
event to

drm.

Best regards

Eugen Friedrich
Engineering Software Multimedia 1 (ADITG/ESM1)

Tel. +49 5121 49 6921

-----Original Message-----
From: genivi-ivi-layer-management
<genivi-ivi-layer-management- bounces@lists.genivi.org> On
Behalf Of Jovic, Vladimir
Sent: Mittwoch, 26. Juni 2019 08:49
To: genivi-ivi-layer-management@lists.genivi.org
Subject: dpms with IVI

Hi,

I am trying to turn off the screen after N seconds, but it
didn't work. I know that this can be done on X like this
(as explained in
https://urldefense.proofpoint.com/v2/url?u=https-

3A__wiki.archlinux.or

g_index.php_Display-5FPower-5FManagement-

5FSignalin&d=DwIFAw&c=riR7jvi

Byh3sGm7GIiSlHkFN0_aSATB6A8x0nHa2EM0&r=8wfdsMUxnRudpdLb_Cg4rn

nnKI-

gQZ4

ykr3tjUrejXg&m=6NnwI0thsIV4TxDW1BYpJtwDdmS7Gdw96CB6W_WtNs8&s

=-

lUarFyTt

7OugjhdfiYyd4EfBWaBM-oHBK97mD-IpRY&e=
g#Disabling_DPMS):
xset dpms force off

First I tried this:
weston -i 3 --tty 3
and that didn't turn off the screen after 3 seconds. I
know because I set the background.

Then I tried Weston with this configuration:
[core]
shell=ivi-shell.so
modules=ivi-controller.so
idle-time=3

[ivi-shell]
ivi-input-module=ivi-input-controller.so
bkgnd-surface-id=1000
bkgnd-color=0xffff00ff

[output]
name=Unknown-1
transform=normal

Again, the screen would not go off after 3 seconds.

In the wayland mailing list, I was told that this may not
be implemented. It works with "desktop-shell.so"
So, what do I need to do to turn off the screen after N seconds?
Or at least to turn off the screen?

Mit freundlichen Grüßen

i. A. Vladimir Jovic
ifm ecomatic gmbh

Hi, Thank you very much :) It works, but I had to make one change: "struct weston_output" has no member variable "set_ctm". I use Weston 6.0, so I am not sure if it was removed or added. What is it supposed to do anyway? Also, your README doesn't explain how to build everything, that is why it took me a while. Do you have repository somewhere? I could add makefiles and program which turn the screen on and off. Are there plans to implement this in the master of IVI? My boss is very optimistic, and said if a big player pays enough, then this goes in :) Mit freundlichen Grüßen i. A. Vladimir Jovic ifm ecomatic gmbh > -----Ursprüngliche Nachricht----- > Von: Friedrich, Eugen (ADITG/ESM1) <efriedrich@de.adit-jv.com> > Gesendet: Freitag, 28. Juni 2019 15:17 > An: Jovic, Vladimir <vladimir.jovic@ifm.com>; genivi-ivi-layer- > management@lists.genivi.org > Betreff: RE: dpms with IVI > > Hi Vladimir, > > Please find the example attached, > Use with caution :-), hope this helps... > > Best regards > > Eugen Friedrich > Engineering Software Multimedia 1 (ADITG/ESM1) > > Tel. +49 5121 49 6921 > > > -----Original Message----- > > From: Jovic, Vladimir <vladimir.jovic@ifm.com> > > Sent: Donnerstag, 27. Juni 2019 16:17 > > To: Friedrich, Eugen (ADITG/ESM1) <efriedrich@de.adit-jv.com>; > > genivi-ivi- layer-management@lists.genivi.org > > Subject: AW: dpms with IVI > > > > > > > -----Ursprüngliche Nachricht----- > > > Von: Friedrich, Eugen (ADITG/ESM1) <efriedrich@de.adit-jv.com> > > > Gesendet: Donnerstag, 27. Juni 2019 15:09 > > > An: Jovic, Vladimir <vladimir.jovic@ifm.com>; genivi-ivi-layer- > > > management@lists.genivi.org > > > Betreff: RE: dpms with IVI > > > > > > Hi Vladimir, > > > > > > > -----Original Message----- > > > > From: Jovic, Vladimir <vladimir.jovic@ifm.com> > > > > Sent: Donnerstag, 27. Juni 2019 08:48 > > > > To: Friedrich, Eugen (ADITG/ESM1) <efriedrich@de.adit-jv.com>; > > > > genivi-ivi- layer-management@lists.genivi.org > > > > Subject: AW: dpms with IVI > > > > > > > > Hi, > > > > > > > > Thanks for the info. > > > > Do you have a branch, where it is possible to do? Are you willing > > > > to share patches? > > > [EF] I can share some part from our implementation which should be > > sufficient to > > > enable the dpms use-case for you Give me some time, till end of > > > tomorrow > > should > > > be possible for me. > > [VJ] It doesn't matter if it is a function to turn dpms on and off, or > > if it is a timer. I just need an option to turn it on and off. > > > > > > > > Why is it bad idea to use your extension? > > > [EF] the compositor should never offer such functionality to all > > > clients, only > > if you > > > have closed system and you can trust all you clients > > [VJ] Any reason for that? I know that (for example) in autos the > > screen never goes off. If you start navigation, you want it on all the time. > > Does it mean that it will never be implemented in IVI? > I would not say that, there are also some use-cases: e.g. related to special display > or also in ebike or other related environment! > > > > > > If not, where do I start to implement it? > > > [EF] we did this in a separate module, I will share the details later... > > > > > > > [EF] Would you share you use-case? I'm curious if it is just power > > > saving or > > some > > > different use case? > > [VJ] One of our customers is producing garbage trucks. When the truck > > goes faster than 20 km/h, then the display must be off. > > Other customer needs a power saving mode. > I see! Thanks for sharing this! > > > > > > > > > > > > Mit freundlichen Grüßen > > > > i. A. Vladimir Jovic > > > > ifm ecomatic gmbh > > > > > > > > > > > > > > > > > -----Ursprüngliche Nachricht----- > > > > > Von: Friedrich, Eugen (ADITG/ESM1) <efriedrich@de.adit-jv.com> > > > > > Gesendet: Mittwoch, 26. Juni 2019 19:19 > > > > > An: Jovic, Vladimir <vladimir.jovic@ifm.com>; genivi-ivi-layer- > > > > > management@lists.genivi.org > > > > > Betreff: RE: dpms with IVI > > > > > > > > > > Hi Vladmir, > > > > > > > > > > Checked the code: not good news: we never implemented the > > > > > idle_signal > > > > in the ivi- > > > > > shell, therefore the dpms will never work here. > > > > > the desktop shell is implementing a signal handler which will > > > > > trigger the > > > > dpms off > > > > > function (see [1]). > > > > > > > > > > We have done some internal protocol extension which will allow > > > > > you to do > > > > the > > > > > setting explicitly but this is not a good idea, before this can > > > > > go upstream we > > > > need > > > > > some way to protect the protocols and make them available only > > > > > for > > > > "special" > > > > > clients. > > > > > > > > > > [1] https://urldefense.proofpoint.com/v2/url?u=https- > > > > > 3A__gitlab.freedesktop.org_wayland_weston_blob_master_desktop- > > > > > 2Dshell_shell.c- > > > > > > > > > > > 23L3934&d=DwIFAw&c=riR7jviByh3sGm7GIiSlHkFN0_aSATB6A8x0nHa2EM0& > > > > r=8 > > > > > wfdsMUxnRudpdLb_Cg4rnnnKI- > > > > gQZ4ykr3tjUrejXg&m=Mz9nVGzFuQpRPfHd- > > > > > > > > > > > _nLWgdhACxt72T9O1Koq4as4iw&s=RTcEHj2l26JyQIaXHpFUpkGTjQyN98X656 > > > > yKv > > > > > 2ReKZg&e= > > > > > > > > > > Best regards > > > > > > > > > > Eugen Friedrich > > > > > Engineering Software Multimedia 1 (ADITG/ESM1) > > > > > > > > > > Tel. +49 5121 49 6921 > > > > > > > > > > > -----Original Message----- > > > > > > From: Jovic, Vladimir <vladimir.jovic@ifm.com> > > > > > > Sent: Mittwoch, 26. Juni 2019 10:54 > > > > > > To: Friedrich, Eugen (ADITG/ESM1) <efriedrich@de.adit-jv.com>; > > > > > > genivi-ivi- layer-management@lists.genivi.org > > > > > > Subject: AW: dpms with IVI > > > > > > > > > > > > Hi, > > > > > > > > > > > > Yes, it works. I just removed "weston.ini", and started the > > > > > > weston with weston --tty3 -i5 And the screen is turned off. > > > > > > But if I try with next weston.ini, then it doesn't work. > > > > > > > > > > > > [core] > > > > > > shell=ivi-shell.so > > > > > > modules=ivi-controller.so > > > > > > require-input=false > > > > > > idle-time=5 > > > > > > > > > > > > [ivi-shell] > > > > > > ivi-input-module=ivi-input-controller.so > > > > > > ivi-client-name=/usr/bin/simple-weston-client > > > > > > bkgnd-surface-id=108888 > > > > > > bkgnd-color=0xFFFF00FF > > > > > > > > > > > > [output] > > > > > > name=Unknown-1 > > > > > > transform=normal > > > > > > > > > > > > > > > > > > Mit freundlichen Grüßen > > > > > > > > > > > > i. A. Vladimir Jovic > > > > > > ifm ecomatic gmbh > > > > > > > > > > > > > > > > > > > -----Ursprüngliche Nachricht----- > > > > > > > Von: Friedrich, Eugen (ADITG/ESM1) > > > > > > > <efriedrich@de.adit-jv.com> > > > > > > > Gesendet: Mittwoch, 26. Juni 2019 09:30 > > > > > > > An: Jovic, Vladimir <vladimir.jovic@ifm.com>; > > > > > > > genivi-ivi-layer- management@lists.genivi.org > > > > > > > Betreff: RE: dpms with IVI > > > > > > > > > > > > > > Hello Vladimir, > > > > > > > > > > > > > > Can you verify that the feature is working with xdg shell. > > > > > > > > > > > > > > The handling of dpms is implemented in compositor-drm > > > > > > > backend, from > > > > > > first look > > > > > > > could not find anything in ivi-shell which will prevent > > > > > > > setting of the > > > > dpms. > > > > > > > > > > > > > > There is a simple timer which will be updated with the > > > > > > > idle_time value after > > > > > > every > > > > > > > activity, it this time times out there should be a dpms_off > > > > > > > event to > > drm. > > > > > > > > > > > > > > > > > > > > > Best regards > > > > > > > > > > > > > > Eugen Friedrich > > > > > > > Engineering Software Multimedia 1 (ADITG/ESM1) > > > > > > > > > > > > > > Tel. +49 5121 49 6921 > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > From: genivi-ivi-layer-management > > > > > > > > <genivi-ivi-layer-management- bounces@lists.genivi.org> On > > > > > > > > Behalf Of Jovic, Vladimir > > > > > > > > Sent: Mittwoch, 26. Juni 2019 08:49 > > > > > > > > To: genivi-ivi-layer-management@lists.genivi.org > > > > > > > > Subject: dpms with IVI > > > > > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > > > I am trying to turn off the screen after N seconds, but it > > > > > > > > didn't work. I know that this can be done on X like this > > > > > > > > (as explained in > > > > > > > > https://urldefense.proofpoint.com/v2/url?u=https- > > > > > > 3A__wiki.archlinux.or > > > > > > > > g_index.php_Display-5FPower-5FManagement- > > > > > > 5FSignalin&d=DwIFAw&c=riR7jvi > > > > > > > > > > > > > > > > > > > > > > > > > > > Byh3sGm7GIiSlHkFN0_aSATB6A8x0nHa2EM0&r=8wfdsMUxnRudpdLb_Cg4rn > > > > > > nnKI- > > > > > > > gQZ4 > > > > > > > > > > > > > > > > > > > > ykr3tjUrejXg&m=6NnwI0thsIV4TxDW1BYpJtwDdmS7Gdw96CB6W_WtNs8&s > > > > > > =- > > > > > > > lUarFyTt > > > > > > > > 7OugjhdfiYyd4EfBWaBM-oHBK97mD-IpRY&e= > > > > > > > > g#Disabling_DPMS): > > > > > > > > xset dpms force off > > > > > > > > > > > > > > > > First I tried this: > > > > > > > > weston -i 3 --tty 3 > > > > > > > > and that didn't turn off the screen after 3 seconds. I > > > > > > > > know because I set the background. > > > > > > > > > > > > > > > > Then I tried Weston with this configuration: > > > > > > > > [core] > > > > > > > > shell=ivi-shell.so > > > > > > > > modules=ivi-controller.so > > > > > > > > idle-time=3 > > > > > > > > > > > > > > > > [ivi-shell] > > > > > > > > ivi-input-module=ivi-input-controller.so > > > > > > > > bkgnd-surface-id=1000 > > > > > > > > bkgnd-color=0xffff00ff > > > > > > > > > > > > > > > > [output] > > > > > > > > name=Unknown-1 > > > > > > > > transform=normal > > > > > > > > > > > > > > > > Again, the screen would not go off after 3 seconds. > > > > > > > > > > > > > > > > In the wayland mailing list, I was told that this may not > > > > > > > > be implemented. It works with "desktop-shell.so" > > > > > > > > So, what do I need to do to turn off the screen after N seconds? > > > > > > > > Or at least to turn off the screen? > > > > > > > > > > > > > > > > Mit freundlichen Grüßen > > > > > > > > > > > > > > > > i. A. Vladimir Jovic > > > > > > > > ifm ecomatic gmbh > >