Created
November 4, 2015 01:44
-
-
Save nachanon/cef8e373b523bfd189e4 to your computer and use it in GitHub Desktop.
Patch for MATE Power Manager 1.8.0 to acknowledge AC/master backlight configuration change while running on battery power
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From: Nutchanon Wetchasit <nachanon@users.noreply.github.com> | |
Subject: Acknowledge changes in AC backlight GSettings when running on battery | |
Bug: https://github.com/mate-desktop/mate-power-manager/issues/166 | |
--- a/src/gpm-backlight.c | |
+++ b/src/gpm-backlight.c | |
@@ -380,7 +380,7 @@ | |
"on-battery", &on_battery, | |
NULL); | |
- if (!on_battery && g_strcmp0 (key, GPM_SETTINGS_BRIGHTNESS_AC) == 0) { | |
+ if (g_strcmp0 (key, GPM_SETTINGS_BRIGHTNESS_AC) == 0) { | |
backlight->priv->master_percentage = g_settings_get_double (settings, key); | |
gpm_backlight_brightness_evaluate_and_set (backlight, FALSE, TRUE); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment