diff options
author | William Brown <[email protected]> | 2012-11-20 21:07:25 +1030 |
---|---|---|
committer | William Brown <[email protected]> | 2012-11-21 10:16:14 +1030 |
commit | 1e231ca589272dc0a84199b03c28a1b598fc3748 (patch) | |
tree | 6fee2c8ded9e004ed26a830e6fc200c2fff244c0 /src | |
parent | cc5f970075a80bd31ab0dcafe7fa6544082ace96 (diff) | |
download | mate-power-manager-1e231ca589272dc0a84199b03c28a1b598fc3748.tar.bz2 mate-power-manager-1e231ca589272dc0a84199b03c28a1b598fc3748.tar.xz |
Added some debuging options
Diffstat (limited to 'src')
-rw-r--r-- | src/gpm-kbd-backlight.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gpm-kbd-backlight.c b/src/gpm-kbd-backlight.c index d958751..8308422 100644 --- a/src/gpm-kbd-backlight.c +++ b/src/gpm-kbd-backlight.c @@ -148,7 +148,7 @@ gpm_kbd_backlight_set (GpmKbdBacklight *backlight, NULL, NULL); } - + egg_debug("Set brightness to %i", backlight->priv->brightness); return TRUE; } @@ -608,6 +608,8 @@ gpm_kbd_backlight_idle_changed_cb (GpmIdle *idle, gboolean on_battery; gboolean enable_action; + egg_debug("Idle changed"); + lid_closed = gpm_button_is_lid_closed (backlight->priv->button); if (lid_closed) @@ -626,14 +628,16 @@ gpm_kbd_backlight_idle_changed_cb (GpmIdle *idle, return; if (mode == GPM_IDLE_MODE_NORMAL) { + egg_debug("GPM_IDLE_MODE_NORMAL"); backlight->priv->master_percentage = 100; gpm_kbd_backlight_evaluate_power_source_and_set (backlight); } else if (mode == GPM_IDLE_MODE_DIM) { + egg_debug("GPM_IDLE_MODE_DIM"); brightness = backlight->priv->master_percentage; value = g_settings_get_int (backlight->priv->settings, GPM_SETTINGS_KBD_BRIGHTNESS_DIM_BY_ON_IDLE); if (value > 100) { - g_warning ("Cannot scale brightness down by more than 100%%. Scaling by 50%%"); + egg_warning ("Cannot scale brightness down by more than 100%%. Scaling by 50%%"); value = 50; } |