[Intel-gfx] [PATCH] Also write to bl_power when setting brightness.
Matthias Hopf
mhopf at suse.de
Wed Aug 19 10:58:18 CEST 2009
On Aug 18, 09 18:19:56 +0100, Matthew Garrett wrote:
> On Tue, Aug 18, 2009 at 07:07:23PM +0200, Matthias Hopf wrote:
> > + len = snprintf(val, BACKLIGHT_VALUE_LEN, "%d\n",
> > + level > 0 ? FB_BLANK_UNBLANK : FB_BLANK_POWERDOWN);
>
> Doesn't this make it impossible to use the minimum value? I don't think
> that's a good tradeoff. The alternative (bumping everything up by one
> and adding an extra 0 level to turn the backlight off) means that
> there'll be two equivalent levels on hardware where the power attribute
> doesn't work. I think you're better off not doing this, and just leaving
> backlight enable/disable up to DPMS.
You're probably right. Let's ignore this for now.
Matthias
--
Matthias Hopf <mhopf at suse.de> __ __ __
Maxfeldstr. 5 / 90409 Nuernberg (_ | | (_ |__ mat at mshopf.de
Phone +49-911-74053-715 __) |_| __) |__ R & D www.mshopf.de
More information about the Intel-gfx
mailing list