Re: dpms with wayland

2019-06-28 Thread Eugen Friedrich
Hi Vladimir

On Tue, 25 Jun 2019 at 18:05, Pekka Paalanen  wrote:
>
> On Tue, 25 Jun 2019 14:51:08 +
> "Jovic, Vladimir"  wrote:
>
> > > -Ursprüngliche Nachricht-
> > > Von: Pekka Paalanen 
> > > Gesendet: Dienstag, 25. Juni 2019 16:37
> > > An: Jovic, Vladimir 
> > > Cc: wayland-devel@lists.freedesktop.org
> > > Betreff: Re: dpms with wayland
> > >
> > > On Tue, 25 Jun 2019 14:07:51 +
> > > "Jovic, Vladimir"  wrote:
> > >
> > > > Thanks, but is there any more info on that? I tried setting
> > > > "idle-second" in [core] to some value, as explained in man pages for
> > > > Weston.ini, but that did nothing. Wasn't that supposed to turn off the
> > > > monitor after N seconds?
> > >
> > > Yes, check your syntax. There is also the command line option -i for the 
> > > same.
> >
> > I tried both and neither worked.
> > 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=0x00ff
> >
> > [output]
> > name=Unknown-1
> > transform=normal
> >
> > Again, the screen would not go off after 3 seconds.
>
> Does the screen at least go black?
>
> There may be a secondary timeout before it goes off, I've forgot
> how it works. I'm pretty sure it should go off with the
> DRM-backend, but maybe that has regressed then.

The dpms handling is implemented in the compositor-drm
but it requires trigger from somewhere, e.g. shell :-)
compositor will fire a idle_signal and shell can register for this and
trigger the dpms handling. the "-i" will configure the timeout for this signal

>
> It should work with the desktop-shell, but since you are using
> ivi-shell, I'm not sure it's implemented.

No, ivi-shell is not implementing the idle_signal handler,
since same question was asked in  genivi-ivi-layer-managem...@lists.genivi.org
I will provide details how to implement this feature with
wayland-ivi-extension there

thanks
jeka
>
>
> Thanks,
> pq
> ___
> wayland-devel mailing list
> wayland-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/wayland-devel
___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Re: dpms with wayland

2019-06-25 Thread Pekka Paalanen
On Tue, 25 Jun 2019 14:51:08 +
"Jovic, Vladimir"  wrote:

> > -Ursprüngliche Nachricht-
> > Von: Pekka Paalanen 
> > Gesendet: Dienstag, 25. Juni 2019 16:37
> > An: Jovic, Vladimir 
> > Cc: wayland-devel@lists.freedesktop.org
> > Betreff: Re: dpms with wayland
> > 
> > On Tue, 25 Jun 2019 14:07:51 +
> > "Jovic, Vladimir"  wrote:
> >   
> > > Thanks, but is there any more info on that? I tried setting
> > > "idle-second" in [core] to some value, as explained in man pages for
> > > Weston.ini, but that did nothing. Wasn't that supposed to turn off the
> > > monitor after N seconds?  
> > 
> > Yes, check your syntax. There is also the command line option -i for the 
> > same.  
> 
> I tried both and neither worked.
> 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=0x00ff
> 
> [output]
> name=Unknown-1
> transform=normal
> 
> Again, the screen would not go off after 3 seconds.

Does the screen at least go black?

There may be a secondary timeout before it goes off, I've forgot
how it works. I'm pretty sure it should go off with the
DRM-backend, but maybe that has regressed then.

It should work with the desktop-shell, but since you are using
ivi-shell, I'm not sure it's implemented.


Thanks,
pq


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

AW: dpms with wayland

2019-06-25 Thread Jovic, Vladimir
> -Ursprüngliche Nachricht-
> Von: Pekka Paalanen 
> Gesendet: Dienstag, 25. Juni 2019 16:37
> An: Jovic, Vladimir 
> Cc: wayland-devel@lists.freedesktop.org
> Betreff: Re: dpms with wayland
> 
> On Tue, 25 Jun 2019 14:07:51 +
> "Jovic, Vladimir"  wrote:
> 
> > > -Ursprüngliche Nachricht-
> > > Von: Pekka Paalanen 
> > > Gesendet: Dienstag, 25. Juni 2019 16:02
> > > An: Jovic, Vladimir 
> > > Cc: wayland-devel@lists.freedesktop.org
> > > Betreff: Re: dpms with wayland
> > >
> > > On Tue, 25 Jun 2019 13:16:58 +
> > > "Jovic, Vladimir"  wrote:
> > >
> > > > Hi,
> > > >
> > > > Is there a way to turn off a monitor on Weston 6.0? I know that
> > > > this can be done on X like this (as explained in
> > > >
> > > https://wiki.archlinux.org/index.php/Display_Power_Management_Signal
> > > ing#Disabli
> > > ng_DPMS):
> > > > xset dpms force off
> > > >
> > > > Also, the man pages for Weston tells that drm-backend.so (that I
> > > > use) can deal with dpms. So the question is how is this done.
> > >
> > > Hi,
> > >
> > > there is no way to force DPMS on or off from outside of the
> > > compositor process (except input events which turn the outputs on).
> > > Weston will manage DPMS on its own through the idle timer.
> > >
> >
> > Thanks, but is there any more info on that? I tried setting
> > "idle-second" in [core] to some value, as explained in man pages for
> > Weston.ini, but that did nothing. Wasn't that supposed to turn off the
> > monitor after N seconds?
> 
> Yes, check your syntax. There is also the command line option -i for the same.

I tried both and neither worked.
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=0x00ff

[output]
name=Unknown-1
transform=normal

Again, the screen would not go off after 3 seconds.
___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Re: dpms with wayland

2019-06-25 Thread Pekka Paalanen
On Tue, 25 Jun 2019 14:07:51 +
"Jovic, Vladimir"  wrote:

> > -Ursprüngliche Nachricht-
> > Von: Pekka Paalanen 
> > Gesendet: Dienstag, 25. Juni 2019 16:02
> > An: Jovic, Vladimir 
> > Cc: wayland-devel@lists.freedesktop.org
> > Betreff: Re: dpms with wayland
> > 
> > On Tue, 25 Jun 2019 13:16:58 +
> > "Jovic, Vladimir"  wrote:
> >   
> > > Hi,
> > >
> > > Is there a way to turn off a monitor on Weston 6.0? I know that this
> > > can be done on X like this (as explained in
> > >  
> > https://wiki.archlinux.org/index.php/Display_Power_Management_Signaling#Disabli
> > ng_DPMS):  
> > > xset dpms force off
> > >
> > > Also, the man pages for Weston tells that drm-backend.so (that I use)
> > > can deal with dpms. So the question is how is this done.  
> > 
> > Hi,
> > 
> > there is no way to force DPMS on or off from outside of the
> > compositor process (except input events which turn the outputs on).
> > Weston will manage DPMS on its own through the idle timer.
> >   
> 
> Thanks, but is there any more info on that? I tried setting
> "idle-second" in [core] to some value, as explained in man pages for
> Weston.ini, but that did nothing. Wasn't that supposed to turn off
> the monitor after N seconds?

Yes, check your syntax. There is also the command line option -i for
the same.


Thanks,
pq


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

AW: dpms with wayland

2019-06-25 Thread Jovic, Vladimir


> -Ursprüngliche Nachricht-
> Von: Pekka Paalanen 
> Gesendet: Dienstag, 25. Juni 2019 16:02
> An: Jovic, Vladimir 
> Cc: wayland-devel@lists.freedesktop.org
> Betreff: Re: dpms with wayland
> 
> On Tue, 25 Jun 2019 13:16:58 +
> "Jovic, Vladimir"  wrote:
> 
> > Hi,
> >
> > Is there a way to turn off a monitor on Weston 6.0? I know that this
> > can be done on X like this (as explained in
> >
> https://wiki.archlinux.org/index.php/Display_Power_Management_Signaling#Disabli
> ng_DPMS):
> > xset dpms force off
> >
> > Also, the man pages for Weston tells that drm-backend.so (that I use)
> > can deal with dpms. So the question is how is this done.
> 
> Hi,
> 
> there is no way to force DPMS on or off from outside of the compositor process
> (except input events which turn the outputs on). Weston will manage DPMS on 
> its
> own through the idle timer.
> 

Thanks, but is there any more info on that? I tried setting "idle-second" in 
[core] to some value, as explained in man pages for Weston.ini, but that did 
nothing. Wasn't that supposed to turn off the monitor after N seconds?


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

Re: dpms with wayland

2019-06-25 Thread Pekka Paalanen
On Tue, 25 Jun 2019 13:16:58 +
"Jovic, Vladimir"  wrote:

> Hi,
> 
> Is there a way to turn off a monitor on Weston 6.0? 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
> 
> Also, the man pages for Weston tells that drm-backend.so (that I use)
> can deal with dpms. So the question is how is this done.

Hi,

there is no way to force DPMS on or off from outside of the compositor
process (except input events which turn the outputs on). Weston will
manage DPMS on its own through the idle timer.


Thanks,
pq


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

dpms with wayland

2019-06-25 Thread Jovic, Vladimir
Hi,

Is there a way to turn off a monitor on Weston 6.0? 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

Also, the man pages for Weston tells that drm-backend.so (that I use) can deal 
with dpms. So the question is how is this done.


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


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