diff options
author | Nutchanon Wetchasit <[email protected]> | 2015-11-05 13:01:14 +0700 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2015-11-05 20:34:44 +0100 |
commit | 936504456393b861e26f2d69612208f364127136 (patch) | |
tree | 767cf7590f7fdf6ba85cd69f90da0deadc2d4c00 /src/gpm-backlight.c | |
parent | 8978c98c76dbef09d2912a55fac1ac72a7918ef5 (diff) | |
download | mate-power-manager-936504456393b861e26f2d69612208f364127136.tar.bz2 mate-power-manager-936504456393b861e26f2d69612208f364127136.tar.xz |
Make idle event handler always calculate backlight from configured settings
Diffstat (limited to 'src/gpm-backlight.c')
-rw-r--r-- | src/gpm-backlight.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpm-backlight.c b/src/gpm-backlight.c index 72cb66b..288dcc2 100644 --- a/src/gpm-backlight.c +++ b/src/gpm-backlight.c @@ -582,7 +582,7 @@ idle_changed_cb (GpmIdle *idle, GpmIdleMode mode, GpmBacklight *backlight) if (mode == GPM_IDLE_MODE_NORMAL) { /* sync lcd brightness */ gpm_backlight_notify_system_idle_changed (backlight, FALSE); - gpm_backlight_brightness_evaluate_and_set (backlight, FALSE, FALSE); + gpm_backlight_brightness_evaluate_and_set (backlight, FALSE, TRUE); /* ensure backlight is on */ ret = gpm_dpms_set_mode (backlight->priv->dpms, GPM_DPMS_MODE_ON, &error); @@ -595,7 +595,7 @@ idle_changed_cb (GpmIdle *idle, GpmIdleMode mode, GpmBacklight *backlight) /* sync lcd brightness */ gpm_backlight_notify_system_idle_changed (backlight, TRUE); - gpm_backlight_brightness_evaluate_and_set (backlight, FALSE, FALSE); + gpm_backlight_brightness_evaluate_and_set (backlight, FALSE, TRUE); /* ensure backlight is on */ ret = gpm_dpms_set_mode (backlight->priv->dpms, GPM_DPMS_MODE_ON, &error); @@ -608,7 +608,7 @@ idle_changed_cb (GpmIdle *idle, GpmIdleMode mode, GpmBacklight *backlight) /* sync lcd brightness */ gpm_backlight_notify_system_idle_changed (backlight, TRUE); - gpm_backlight_brightness_evaluate_and_set (backlight, FALSE, FALSE); + gpm_backlight_brightness_evaluate_and_set (backlight, FALSE, TRUE); /* get the DPMS state we're supposed to use on the power state */ g_object_get (backlight->priv->client, |