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 774717 - At least 3-5 minute gap between removing power cable and system notifying of event
At least 3-5 minute gap between removing power cable and system notifying of ...
Status: RESOLVED NOTGNOME
Product: gnome-shell
Classification: Core
Component: system-status
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2016-11-19 14:14 UTC by Inactive account
Modified: 2016-11-20 14:00 UTC
See Also:
GNOME target: ---
GNOME version: 3.21/3.22



Description Inactive account 2016-11-19 14:14:10 UTC
I have noticed something very strange after upgrading to Ubuntu GNOME 16.10 with GNOME 3.22, and that is that if:

 - My laptop is fully charged and I remove the power cable:
   1. The indicator in the top right hand side of the screen changes from the icon indicating that it is fully charged to the icon indicating that it is charging, but not fully charged.
   2. In about 3-5 minutes (longer if I suspend my machine mid way during this time span) I will hear the noise which signifies that my machine has disconnected from the power cable and the icon will change to the normal one which indicates that the machine does not have a power cable attached to it (the time indicator will also show how long until the battery runs out instead of how long until it is fully charged).

 - My laptop is not fully charged and I remove the power cable:
   1. The same happens as for the previous bullet point, however step 1 is skipped as it is not fully charged yet.

  - Either or the above bullet points, however I attach the power cable instead of removing it:
    1. All of the expected (the noise and the icon change) happen immediately.

I have described this with the Adwaita icon theme, however it is icon theme independent.

I initially reported this issue here: https://bugs.launchpad.net/ubuntu-gnome/+bug/1642718 But thought I should also do so upstream.
Comment 1 Inactive account 2016-11-19 14:45:59 UTC
Related: #774719
Comment 2 Inactive account 2016-11-19 14:49:11 UTC
Related: Bug #774719
Comment 3 Mohammed Sadiq 2016-11-19 15:10:00 UTC
(In reply to cooks.go.hungry from comment #0)

>    2. In about 3-5 minutes (longer if I suspend my machine mid way during
> this time span) I will hear the noise which signifies that my machine has
> disconnected from the power cable and the icon will change to the normal one
> which indicates that the machine does not have a power cable attached to it
> (the time indicator will also show how long until the battery runs out
> instead of how long until it is fully charged).

>   - Either or the above bullet points, however I attach the power cable
> instead of removing it:
>     1. All of the expected (the noise and the icon change) happen
> immediately.

I have a simple doubt. From where did you remove the charger? from main AC socket? or from the laptop charger port? Sorry, if that sounds silly. :)
Comment 4 Inactive account 2016-11-19 15:13:24 UTC
(In reply to Mohammed Sadiq from comment #3)
> (In reply to cooks.go.hungry from comment #0)
> 
> I have a simple doubt. From where did you remove the charger? from main AC
> socket? or from the laptop charger port? Sorry, if that sounds silly. :)

I have tried both ways round and it doesn't make any difference.
Comment 5 Inactive account 2016-11-19 15:15:25 UTC
And the little light next to the charger port goes off as soon as I take the power cable out of either, although there is about a 1-2 second delay when I do it from the main AC socket. But the machine registers it a long time after the charger is removed and the little light has gone off.
Comment 6 Florian Müllner 2016-11-19 15:27:05 UTC
When this happens, what is the output of
$ gdbus call --system --dest org.freedesktop.UPower \
             --object-path /org/freedesktop/UPower/devices/DisplayDevice \
             --method org.freedesktop.DBus.Properties.Get 'org.freedesktop.UPower.Device' 'IconName'
Comment 7 Inactive account 2016-11-20 13:40:41 UTC
The output is:

(<'battery-full-charging-symbolic'>,)

Though it should be noted that it was charging, then I unplugged it, but it thinks it is still charging and hasn't noticed it has been unplugged yet.
Comment 8 Florian Müllner 2016-11-20 13:50:40 UTC
That means the gnome-shell side is working as expected - we display a charging icon just like UPower tells us. This indicates that the issue lies in UPower, which is hosted on freedesktop.org (so I'm afraid we cannot reassign this issue).
Comment 9 Inactive account 2016-11-20 14:00:08 UTC
Right, thank you, I have done so here: https://bugs.freedesktop.org/show_bug.cgi?id=98796