[systemd-devel] [PATCH] backlight: handle saved brightness exceeding max brightness

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Wed May 7 17:06:13 PDT 2014


On Wed, May 07, 2014 at 10:30:14PM +0300, Jani Nikula wrote:
> On Wed, 07 May 2014, Jani Nikula <jani.nikula at intel.com> wrote:
> > If too high a brightness value has been saved (e.g. due to kernel
> > mechanism changing from one kernel version to another, or booting the
> > userspace on another system), the brightness update fails and the
> > process exits.
> >
> > Clamp saved brightness between the policy minimum introduced in
> >
> > commit 7b909d7407965c03caaba30daae7aee113627a83
> > Author: Josh Triplett <josh at joshtriplett.org>
> > Date:   Tue Mar 11 21:16:33 2014 -0700
> >
> >     backlight: Avoid restoring brightness to an unreadably dim level
> >
> > and the absolute maximum.
Seems correct with the condition updated. Commited.

Zbyszek


More information about the systemd-devel mailing list