backlight no longer attempts to apply settings for dummy devices

SVN revision: 82626
This commit is contained in:
Mike Blumenkrantz 2013-01-11 10:51:24 +00:00
parent 9e8e755cdf
commit d517d37535
3 changed files with 10 additions and 1 deletions

View File

@ -2,6 +2,7 @@
* e_manager_comp_set() is no longer accessible by modules
* added option to disable comp effects on screen
* fixed bug where backlight settings would try to update dummy backlight devices
2013-01-10 Carsten Haitzler

1
NEWS
View File

@ -95,3 +95,4 @@ Fixes:
* fixed bug where internal dialogs would not redraw after unfullscreening
* fixed bug where starting with a nonexistent config could cause a crash instead of simply restarting
* fixed window border hide bug where after iconification hides leave ghosts
* fixed bug where backlight settings would try to update dummy backlight devices

View File

@ -515,12 +515,19 @@ _bl_sys_level_get(void)
maxval = atoi(str);
eina_stringshare_del(str);
if (maxval <= 0) maxval = 255;
if (maxval < 0) maxval = 255;
str = eeze_udev_syspath_get_sysattr(bl_sysval, "brightness");
if (!str) return;
val = atoi(str);
eina_stringshare_del(str);
if ((!maxval) && (!val))
{
bl_val = 0;
sysmode = MODE_NONE;
return;
}
if (!maxval) maxval = 255;
if ((val >= 0) && (val <= maxval))
bl_val = (double)val / (double)maxval;
// fprintf(stderr, "GET: %i/%i (%1.3f)\n", val, maxval, bl_val);