Re: [RFC] compositor: add dpms and backlight support

2012-02-28 Thread Kristian Høgsberg
On Tue, Feb 28, 2012 at 1:19 PM, Jesse Barnes wrote: > On Tue, 28 Feb 2012 13:52:21 +0200 > Tiago Vignatti wrote: >> @@ -907,11 +912,76 @@ sprite_handle_pending_buffer_destroy(struct >> wl_listener *listener, >>       sprite->pending_surface = NULL; >>  } >> >> +static void >> +drm_set_backlight

Re: [RFC] compositor: add dpms and backlight support

2012-02-28 Thread Jesse Barnes
On Tue, 28 Feb 2012 13:52:21 +0200 Tiago Vignatti wrote: > @@ -907,11 +912,76 @@ sprite_handle_pending_buffer_destroy(struct wl_listener > *listener, > sprite->pending_surface = NULL; > } > > +static void > +drm_set_backlight(struct weston_output *output_base, uint32_t up_down) > +{ > +

[RFC] compositor: add dpms and backlight support

2012-02-28 Thread Tiago Vignatti
- hotplug doesn't work; it's easy fix though. - DPMS off only kicks in when wscreensaver is launched, cause then the compositor will trigger the second call to lock(), inside shell. It works anyway with the current wscreensaver broken. - for backlight, we're using the changes I've done here: