e backlight - limit min to 0.05 to avoid totally off backlight

this seems new, but if you set backlight to 0 it isnt at minimum, but
is entirely off on my intel laptop and this is not what was desired
with bl level of 0, so limit to 0.05 for now to avoid accidentally
turning your screen off. might fix this later to allow explicit off -
but this should use dpms etc. to turn the screen off as well as
possible scanout etc.
This commit is contained in:
Carsten Haitzler 2014-09-17 15:04:32 +09:00 committed by Cedric BAIL
parent 9a86902678
commit 03b422544a
1 changed files with 1 additions and 0 deletions

View File

@ -340,6 +340,7 @@ _e_backlight_update(E_Zone *zone)
static void
_e_backlight_set(E_Zone *zone, double val)
{
if (val < 0.05) val = 0.05;
if (sysmode == MODE_RANDR)
{
Ecore_X_Window root;