diff -urN upower-0.9.22/src/linux/up-device-supply.c upower-0.9.22/src/linux/up-device-supply.c --- upower-0.9.22/src/linux/up-device-supply.c 2013-09-06 15:29:20.000000000 +0300 +++ upower-0.9.22/src/linux/up-device-supply.c 2013-11-12 19:06:57.000000000 +0300 @@ -871,6 +871,7 @@ const gchar *native_path; const gchar *scope; gchar *device_type = NULL; + gchar *model_name = NULL; gchar *input_path = NULL; GDir *dir = NULL; GError *error = NULL; @@ -897,6 +898,15 @@ supply->priv->is_power_supply = TRUE; } + /* ignore Apple Wireless Keyboard */ + model_name = up_device_supply_get_string (native_path, "model_name"); + if (model_name != NULL) { + if (g_ascii_strcasecmp (model_name, "Apple Wireless Keyboard") == 0) { + g_warning ("Ignoring Apple Wireless Keyboard"); + goto out; + } + } + /* try to detect using the device type */ device_type = up_device_supply_get_string (native_path, "type"); if (device_type != NULL) {