summaryrefslogtreecommitdiff
path: root/src/linux/up-backend.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux/up-backend.c')
-rw-r--r--src/linux/up-backend.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/linux/up-backend.c b/src/linux/up-backend.c
index d475b74..6983fc8 100644
--- a/src/linux/up-backend.c
+++ b/src/linux/up-backend.c
@@ -129,6 +129,9 @@ up_backend_device_new (UpBackend *backend, GUdevDevice *native)
/* are we a valid power supply */
device = UP_DEVICE (up_device_supply_new ());
+ g_object_set (G_OBJECT(device),
+ "ignore-system-percentage", GPOINTER_TO_INT (is_macbook (NULL)),
+ NULL);
ret = up_device_coldplug (device, backend->priv->daemon, G_OBJECT (native));
if (ret)
goto out;