UPower and battery indicator show wrong information on fully charged ASUS Vivobook X510UR laptop

Bug #1827644 reported by Alexandre Forte
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
upower (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

When the ASUS Vivobook X510UR laptop is completely charged, the correct information is displayed on Windows. However, Ubuntu 18.04.2 LTS is unable to detect the true battery state. The GNOME battery indicator usually shows "Estimating..." or "Not charging", when the battery is at 100%.

If you use the upower version 0.99.7-2ubuntu0.18.04.1 command "upower -i /org/freedesktop/UPower/devices/battery_BAT0", this is what you get:

  native-path: BAT0
  vendor: ASUSTeK
  model: ASUS Battery
  power supply: yes
  updated: sex 03 mai 2019 14:33:43 -03 (4 seconds ago)
  has history: yes
  has statistics: yes
  battery
    present: yes
    rechargeable: yes
    state: pending-charge
    warning-level: none
    energy: 39,191 Wh
    energy-empty: 0 Wh
    energy-full: 39,26 Wh
    energy-full-design: 42,082 Wh
    energy-rate: 12,453 W
    voltage: 11,52 V
    percentage: 100%
    capacity: 93,294%
    technology: lithium-ion
    icon-name: 'battery-full-charging-symbolic'
  History (charge):
    1556904821 100,000 discharging
  History (rate):
    1556904821 12,453 discharging
    1556904818 3,744 discharging

The "state" should be "fully-charged", but instead it is "pending-charge".

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: upower 0.99.7-2ubuntu0.18.04.1
ProcVersionSignature: Ubuntu 4.18.0-18.19~18.04.1-generic 4.18.20
Uname: Linux 4.18.0-18-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.9-0ubuntu7.6
Architecture: amd64
CurrentDesktop: GNOME
Date: Fri May 3 14:34:14 2019
InstallationDate: Installed on 2018-12-11 (142 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
ProcEnviron:
 LANGUAGE=pt_BR:pt:en
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=pt_BR.UTF-8
 SHELL=/bin/bash
SourcePackage: upower
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Alexandre Forte (akf98) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, what's the content of /sys/class/power_supply/BAT0/status?
Also do you have the updates from bug #1745032 installed?

Changed in upower (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Alexandre Forte (akf98) wrote :

The system is up to date, so I think I have the updates installed. The content of /sys/class/power_supply/BAT0/status is "Not charging".

Revision history for this message
Sebastien Bacher (seb128) wrote :

"Nor chargning" seems to be the real state/what the kernel reports there then, it's similar to what is described in https://gitlab.gnome.org/GNOME/gnome-control-center/commit/6efaf85e
Not a bug?

Changed in upower (Ubuntu):
status: Incomplete → New
Revision history for this message
Alexandre Forte (akf98) wrote :

I think it's a bug, because all laptops I've ever seen show "fully charged" instead of "not charging" when they hit 100% of the battery. And there's some other strange behavior, like the Gnome indicator eventually being stuck at "Estimating" and, sometimes, if you disconnect the power plug while at 100% and connect it again after that, Upower shows "discharging", as if it didn't recognize the power supply again, which is only fixed by a reboot.

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in upower (Ubuntu):
status: New → Confirmed
Revision history for this message
Yayai (yayai) wrote :

Been trying for days to 'fix' the battery status, 9.7 hours to full? think ubuntu is on crack

Device: /org/freedesktop/UPower/devices/line_power_AC
  native-path: AC
  power supply: yes
  updated: Tue 29 Oct 2019 09:06:08 PM +08 (4275 seconds ago)
  has history: no
  has statistics: no
  line-power
    warning-level: none
    online: yes
    icon-name: 'ac-adapter-symbolic'

Device: /org/freedesktop/UPower/devices/battery_BAT0
  native-path: BAT0
  vendor: Hewlett-Packard
  model: Primary
  serial: 15305 03/10/2016
  power supply: yes
  updated: Tue 29 Oct 2019 10:16:20 PM +08 (63 seconds ago)
  has history: yes
  has statistics: yes
  battery
    present: yes
    rechargeable: yes
    state: charging
    warning-level: none
    energy: 20.9218 Wh
    energy-empty: 0 Wh
    energy-full: 24.3382 Wh
    energy-full-design: 17.8996 Wh
    energy-rate: 0.3504 W
    voltage: 16.004 V
    time to full: 9.7 hours
    percentage: 100%
    capacity: 100%
    technology: lithium-ion
    icon-name: 'battery-full-charging-symbolic'

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply: yes
  updated: Tue 29 Oct 2019 09:44:19 PM +08 (1984 seconds ago)
  has history: no
  has statistics: no
  battery
    present: yes
    state: charging
    warning-level: none
    energy: 20.9218 Wh
    energy-full: 24.3382 Wh
    energy-rate: 0.3504 W
    time to full: 9.7 hours
    percentage: 100%
    icon-name: 'battery-full-charging-symbolic'

Daemon:
  daemon-version: 0.99.7
  on-battery: no
  lid-is-closed: no
  lid-is-present: yes
  critical-action: HybridSleep

Revision history for this message
Abhishek Shingade (abhi2911) wrote :

Even I Have this issue , Battery is showing red Icon / image at 48% . What is this ?

Revision history for this message
Akash Banerjee (neail) wrote :

Same issue with Vivobook x505za, the report while battery is charging.

$ upower -i /org/freedesktop/UPower/devices/battery_BAT0

  native-path: BAT0
  vendor: ASUSTeK
  model: ASUS Battery
  power supply: yes
  updated: Sunday 16 July 2023 09:44:29 AM (12 seconds ago)
  has history: yes
  has statistics: yes
  battery
    present: yes
    rechargeable: yes
    state: pending-charge
    warning-level: none
    energy: 31.887 Wh
    energy-empty: 0 Wh
    energy-full: 33.062 Wh
    energy-full-design: 42.082 Wh
    energy-rate: 0 W
    voltage: 11.52 V
    charge-cycles: 231
    percentage: 96%
    capacity: 78.5657%
    technology: lithium-ion
    icon-name: 'battery-full-charging-symbolic'

kali is detecting the battery fine, its ubuntu.

Revision history for this message
Akash Banerjee (neail) wrote :

The only fix found is--

shutdown > unplug the charger > remove the batt > reset the CMOS mem by holding the powerbotton for around 10 to 15 sec > replug batt > boot to ubuntu > plug charger.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.