Charge level isn't updated after going out of suspend
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Upower |
New
|
Undecided
|
Unassigned | ||
indicator-power (Ubuntu) |
Fix Released
|
Medium
|
Charles Kerr |
Bug Description
On manta (think I saw that on mako and maguro, too), the charge level in the indicator isn't updated automatically - I needed to unplug/re-plug the power connection to get a correct reading.
When unsuspending, the indicator says "0%" for charge level, and after I disconnect the power, it changes to "42%" directly.
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: indicator-power 12.10.6+
Uname: Linux 3.4.0-4-manta armv7l
ApportVersion: 2.12.1-0ubuntu3
Architecture: armhf
Date: Fri Sep 13 11:56:18 2013
InstallationDate: Installed on 2013-09-11 (2 days ago)
InstallationMedia: Ubuntu Saucy Salamander (development branch) - armhf (20130911.1)
MarkForUpload: True
ProcEnviron:
TERM=linux
PATH=(custom, no user)
SourcePackage: indicator-power
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Ted Gould (community): Approve
- PS Jenkins bot (community): Approve (continuous-integration)
-
Diff: 48 lines (+19/-1)2 files modifiedsrc/device-provider-upower.c (+18/-0)
src/ib-brightness-control.c (+1/-1)
This looks like a two-part issue.
One, indicator-power needs to listen for the "Resuming" signal from upower to know when the system is resuming from suspend / hibernate. I'm linking a branch to do this.
Two, it looks like upower isn't emitting this signal properly, so I'm going to add also-affects upower.
Looks like maybe this signal should be emitted by a call to /lib/systemd/ system- sleep/notify- upower. sh as per the desciption in <https:/ /bugs.freedeskt op.org/ show_bug. cgi?id= 51305> but I'm not seeing the signal appear either in indicator-power or dbus-monitor.