Push-client should be disabled when no network connection
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Canonical System Image |
High
|
Bill Filler | ||
| | Ubuntu Push Notifications |
Fix Released
|
Undecided
|
Unassigned | |
| | ubuntu-push (Ubuntu) |
High
|
Jonas G. Drange | ||
Bug Description
I and few people are observing higher battery drain when Wi-Fi off on BQ Aquaris E4.5 Ubuntu Edition latest OTA-4 update. I have no other active data connection.
There is a theory that ubuntu-push-client checks notifications every 5 minutes, but if you have no data connections it tries more often and lasts longer (because of connection timeout) and it holds the phone in wake state for longer time.
Credits: Richard Somloi.
There is a bug https:/
Credits: Oliver Grawert, Pat McGowan
Related branches
- Ubuntu Push Hackers: Pending requested 2016-04-29
-
Diff: 65 lines (+3/-7)6 files modifiedbus/connectivity/connectivity_test.go (+1/-1)
bus/networkmanager/networkmanager.go (+1/-1)
client/service/postal_test.go (+1/-0)
debian/source/format (+0/-1)
docs/example-server/.bzrignore (+0/-1)
docs/example-server/.gitignore (+0/-3)
- Ubuntu Push Hackers: Pending requested 2015-11-02
-
Diff: 84 lines (+34/-15)2 files modifiedclient/service/postal.go (+17/-14)
client/service/postal_test.go (+17/-1)
- Samuele Pedroni: Approve on 2015-09-25
-
Diff: 199 lines (+35/-48)2 files modifiedpoller/poller.go (+24/-34)
poller/poller_test.go (+11/-14)
- Ubuntu Push Hackers: Pending requested 2015-09-24
-
Diff: 200 lines (+38/-51)2 files modifiedpoller/poller.go (+24/-34)
poller/poller_test.go (+14/-17)
- Ubuntu Push Hackers: Pending requested 2015-09-28
-
Diff: 199 lines (+35/-48)2 files modifiedpoller/poller.go (+24/-34)
poller/poller_test.go (+11/-14)
| summary: |
- Push-client should be disabled when in no network connection + Push-client should be disabled when no network connection |
| Pat McGowan (pat-mcgowan) wrote : | #2 |
tracking this but not yet sure who can work on it, may not make this update
| Changed in canonical-devices-system-image: | |
| assignee: | nobody → Pat McGowan (pat-mcgowan) |
| importance: | Undecided → High |
| milestone: | none → ww28-2015 |
| status: | New → Confirmed |
| Changed in canonical-devices-system-image: | |
| milestone: | ww28-2015 → ww34-2015 |
| Changed in canonical-devices-system-image: | |
| assignee: | Pat McGowan (pat-mcgowan) → Bill Filler (bfiller) |
| Changed in ubuntu-push (Ubuntu): | |
| importance: | Undecided → High |
| Changed in canonical-devices-system-image: | |
| milestone: | ww34-2015 → ww40-2015 |
| tags: | added: push |
| Changed in canonical-devices-system-image: | |
| status: | Confirmed → In Progress |
| Changed in ubuntu-push (Ubuntu): | |
| status: | Confirmed → In Progress |
| assignee: | nobody → Jonas G. Drange (jonas-drange) |
| Changed in canonical-devices-system-image: | |
| status: | In Progress → Fix Committed |
| Changed in ubuntu-push (Ubuntu): | |
| status: | In Progress → Fix Released |
| Changed in ubuntu-push: | |
| status: | New → Fix Released |
| Changed in canonical-devices-system-image: | |
| status: | Fix Committed → Fix Released |
| Pat McGowan (pat-mcgowan) wrote : | #3 |
seems this only just landed
| Changed in canonical-devices-system-image: | |
| milestone: | ww40-2015 → ww46-2015 |
| status: | Fix Released → Fix Committed |
| Michal Predotka (mpredotka) wrote : | #4 |
Hmm... I thought it's fixed as my battery no longer loses its charge when I have data connections off. Before it was about 10% overnight. I upgraded yesterday and had no change in battery percentage in the morning compared to yesterday evening.
| Marek Greško (mgresko8) wrote : | #5 |
I have same observations after OTA-7. Is not it already in OTA-7? Maybe another battery draining bug fixed?
| Jonas G. Drange (jonas-drange) wrote : Re: [Bug 1469398] Re: Push-client should be disabled when no network connection | #6 |
On 20 October 2015 at 23:04, Michal Predotka <email address hidden> wrote:
> Hmm... I thought it's fixed as my battery no longer loses its charge
> when I have data connections off. Before it was about 10% overnight. I
> upgraded yesterday and had no change in battery percentage in the
> morning compared to yesterday evening.
>
Are you saying that you believe this issue has been fixed?
On 25 October 2015 at 09:17, Marek Greško <email address hidden> wrote:
> I have same observations after OTA-7. Is not it already in OTA-7? Maybe
> another battery draining bug fixed?
Are you seeing a battery drain? Could you attach the accountpolld and
push-client logs? They are in /home/phablet/
Thank you.
| Michal Predotka (mpredotka) wrote : | #7 |
Here's my latest push-client log: http://
And here's accountpolld log: http://
| Jonas G. Drange (jonas-drange) wrote : | #8 |
@mpredotka, what did you expect polld/push to do, and what happened instead?
| Michal Predotka (mpredotka) wrote : | #9 |
I had no expectations. Everything seems to work fine. Just wanted to show you my log as you asked in previous comment. 😃
As I mentioned before, for me this bug has been fixed in the last OTA unless the huge battery improvement was cosed by something else.
| Jonas G. Drange (jonas-drange) wrote : | #10 |
On 28 October 2015 at 15:58, Michal Predotka <email address hidden> wrote:
> I had no expectations. Everything seems to work fine.
Ah—okay. Thanks for your feedback :)
| tags: | added: power-bugs |
| Changed in canonical-devices-system-image: | |
| status: | Fix Committed → Fix Released |
| Marek Greško (mgresko8) wrote : | #11 |
I confirm the fix works.
Should have been another bug fixed in OTA-7. I had 5 days battery life these days. After OTA-8 which contains this fix I got 9 days battery life with Wi-Fi turned off all the time, two sim card active (one of them 3G, data off) and several calls. Well done. The only drawback since OTA-7 is only very unrealistic battery charge level, which holds the same value for the long time and then drops several tenths of percents in very short time.


Status changed to 'Confirmed' because the bug affects multiple users.