From d69a0e6648e991514d05e8a4b5f5d205c16c6455 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 19 Aug 2015 16:33:59 +0100 Subject: cherry pick upower 0.99 support for mate-session-manager && mate-power-manager, and force them to link only against it, dropping upower-pm-utils --- ...power-manager-1.8.0-r1-avoid-levels-is-0-warning.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 mate-extra/mate-power-manager/files/mate-power-manager-1.8.0-r1-avoid-levels-is-0-warning.patch (limited to 'mate-extra/mate-power-manager/files/mate-power-manager-1.8.0-r1-avoid-levels-is-0-warning.patch') diff --git a/mate-extra/mate-power-manager/files/mate-power-manager-1.8.0-r1-avoid-levels-is-0-warning.patch b/mate-extra/mate-power-manager/files/mate-power-manager-1.8.0-r1-avoid-levels-is-0-warning.patch new file mode 100644 index 00000000..9bccb5c9 --- /dev/null +++ b/mate-extra/mate-power-manager/files/mate-power-manager-1.8.0-r1-avoid-levels-is-0-warning.patch @@ -0,0 +1,15 @@ +diff --git a/src/gpm-kbd-backlight.c b/src/gpm-kbd-backlight.c +index 0ac6801..a439e94 100644 +--- a/src/gpm-kbd-backlight.c ++++ b/src/gpm-kbd-backlight.c +@@ -113,6 +113,9 @@ gpm_kbd_backlight_set (GpmKbdBacklight *backlight, + guint goal; + + g_return_val_if_fail (GPM_IS_KBD_BACKLIGHT (backlight), FALSE); ++ /* avoid warnings if no keyboard brightness is available */ ++ if (backlight->priv->max_brightness < 1) ++ return FALSE; + /* if we're setting the same we are, don't bother */ + //g_return_val_if_fail (backlight->priv->brightness_percent != percentage, FALSE); + + -- cgit v1.2.3