chiark / gitweb /
backlight: Avoid restoring brightness to an unreadably dim level
authorJosh Triplett <josh@joshtriplett.org>
Wed, 12 Mar 2014 04:16:33 +0000 (21:16 -0700)
committerLennart Poettering <lennart@poettering.net>
Wed, 12 Mar 2014 15:43:51 +0000 (16:43 +0100)
commit7b909d7407965c03caaba30daae7aee113627a83
tree7a942a8330f80bd9535c98293fcbca24f5c6f081
parentcddc35f75ecff63b2ffd3f8e4c863d475e7b14ca
backlight: Avoid restoring brightness to an unreadably dim level

Some systems turn the backlight all the way off at the lowest levels.
Clamp saved brightness to at least 1 or 5% of max_brightness.  This
avoids preserving an unreadably dim screen, which would otherwise force
the user to disable state restoration.
src/backlight/backlight.c