After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 756113 - Don't download updates when low on battery
Don't download updates when low on battery
Status: RESOLVED FIXED
Product: gnome-software
Classification: Applications
Component: General
3.18.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Software maintainer(s)
GNOME Software maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-10-06 09:42 UTC by Bastien Nocera
Modified: 2016-09-12 09:02 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bastien Nocera 2015-10-06 09:42:47 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.
Comment 1 Kalev Lember 2015-10-06 09:49:15 UTC
What's a good way to detect that? Ask upower?
Comment 2 Bastien Nocera 2015-10-06 11:05:29 UTC
(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.
Comment 3 Richard Hughes 2016-09-12 09:02:54 UTC
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