GNOME Bugzilla – Bug 756113
Don't download updates when low on battery
Last modified: 2016-09-12 09:02:54 UTC
We already disable downloading updates when connected to a metered connection. It would be useful to disable when battery is low as well, as it would reduce the amount of power used by the Wi-Fi chip.
What's a good way to detect that? Ask upower?
(In reply to Kalev Lember from comment #1) > What's a good way to detect that? Ask upower? I'd say you should check the WarningLevel value on the /org/freedesktop/UPower/devices/DisplayDevice object path. Anything strictly bigger than 1 (UPS discharging, Low or Critical) is probably when you don't want to download anything.
commit 596f39753499b1878aad90da308375473e154bea Author: Richard Hughes <richard@hughsie.com> Date: Mon Sep 12 10:02:32 2016 +0100 Don't download updates when low on power Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=756113