diff options
Diffstat (limited to 'src/gpm-kbd-backlight.c')
-rw-r--r-- | src/gpm-kbd-backlight.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpm-kbd-backlight.c b/src/gpm-kbd-backlight.c index b7aa4a4..72c4f96 100644 --- a/src/gpm-kbd-backlight.c +++ b/src/gpm-kbd-backlight.c @@ -756,7 +756,8 @@ gpm_kbd_backlight_init (GpmKbdBacklight *backlight) NULL, &error); if (u_brightness == NULL) { - g_warning ("Failed to get brightness: %s", error->message); + if (error->domain != G_DBUS_ERROR || error->code != G_DBUS_ERROR_UNKNOWN_METHOD) + g_warning ("Failed to get brightness: %s", error->message); g_error_free (error); goto err; } |