umm lets use xrandr first/ it SHOULD be better than going to /sys as a

primary backlight control.



SVN revision: 75288
This commit is contained in:
Carsten Haitzler 2012-08-15 09:31:10 +00:00
parent 75fe2dcba5
commit bd1e81be80
1 changed files with 10 additions and 9 deletions

View File

@ -298,15 +298,6 @@ _e_backlight_update(E_Zone *zone)
int num = 0;
root = zone->container->manager->root;
#ifdef HAVE_EEZE
_bl_sys_find();
if (bl_sysval)
{
sysmode = MODE_SYS;
_bl_sys_level_get();
return;
}
#endif
// try randr
out = ecore_x_randr_window_outputs_get(root, &num);
if ((out) && (num > 0) && (ecore_x_randr_output_backlight_available()))
@ -316,7 +307,17 @@ _e_backlight_update(E_Zone *zone)
{
bl_val = x_bl;
sysmode = MODE_RANDR;
return;
}
#ifdef HAVE_EEZE
_bl_sys_find();
if (bl_sysval)
{
sysmode = MODE_SYS;
_bl_sys_level_get();
return;
}
#endif
}
static void