HP laptops - Battery capacity always reported as 100%

Bug #1798070 reported by Svetoslav Borisov
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Medium
Unassigned

Bug Description

###HP laptop models affected so far:
HP EliteBook 840G1/G2
HP EliteBook 850G1/G2
HP ProBook 650G1
HP EliteBook 8460p
HP EliteBook 8470p
HP 650 Notebook PC
HP ZBook 15 G1/G2

Battery capacity always reported as 100% by upower command in Ubuntu 16.04.5 LTS - 4.15.0-36-generic (tested with older kernels as well).
Upower info:
  Installed: 0.99.4-2ubuntu0.3
  Candidate: 0.99.4-2ubuntu0.3
  Version table:
 *** 0.99.4-2ubuntu0.3 500
        500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     0.99.4-2 500
        500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages

HP Support Assistant utility detects the correct capacity in Windows.

###Information collected from one of the laptops:
HP EliteBook 8460p - battery CC06XL - 4910mAh

################################################################
### upower -d

Device: /org/freedesktop/UPower/devices/line_power_AC
  native-path: AC
  power supply: yes
  updated: Tue 02 Oct 2018 01:39:35 PM CEST (21 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: 00824 2012/06/09
  power supply: yes
  updated: Tue 02 Oct 2018 01:39:39 PM CEST (17 seconds ago)
  has history: yes
  has statistics: yes
  battery
    present: yes
    rechargeable: yes
    state: fully-charged
    warning-level: none
    energy: 48.9348 Wh
    energy-empty: 0 Wh
    energy-full: 49.2156 Wh
    energy-full-design: 49.2156 Wh
    energy-rate: 0 W
    voltage: 12.475 V
    percentage: 99%
    capacity: 100%
    technology: lithium-ion
    icon-name: 'battery-full-charged-symbolic'
  History (charge):
    1538480376 99.000 fully-charged
    1538480375 0.000 unknown
  History (rate):
    1538480375 0.000 unknown

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply: yes
  updated: Tue 02 Oct 2018 01:39:35 PM CEST (21 seconds ago)
  has history: no
  has statistics: no
  battery
    present: yes
    state: fully-charged
    warning-level: none
    energy: 48.9348 Wh
    energy-full: 49.2156 Wh
    energy-rate: 0 W
    percentage: 99%
    icon-name: 'battery-full-charged-symbolic'

Daemon:
  daemon-version: 0.99.4
  on-battery: no
  lid-is-closed: no
  lid-is-present: yes
  critical-action: PowerOff

################################################################
### acpi -V

Battery 0: Unknown, 99%
Battery 0: design capacity 4557 mAh, last full capacity 4557 mAh = 100%
Adapter 0: on-line
Thermal 0: ok, 0.0 degrees C
Thermal 0: trip point 0 switches to mode critical at temperature 128.0 degrees C
Thermal 1: ok, 43.0 degrees C
Thermal 1: trip point 0 switches to mode critical at temperature 128.0 degrees C
Thermal 1: trip point 1 switches to mode hot at temperature 99.0 degrees C
Thermal 2: ok, 42.0 degrees C
Thermal 2: trip point 0 switches to mode critical at temperature 128.0 degrees C
Thermal 3: ok, 29.0 degrees C
Thermal 3: trip point 0 switches to mode critical at temperature 128.0 degrees C
Thermal 3: trip point 1 switches to mode passive at temperature 55.0 degrees C
Thermal 4: ok, 45.0 degrees C
Thermal 4: trip point 0 switches to mode critical at temperature 128.0 degrees C
Thermal 4: trip point 1 switches to mode passive at temperature 105.0 degrees C
Thermal 5: ok, 41.0 degrees C
Thermal 5: trip point 0 switches to mode critical at temperature 128.0 degrees C
Cooling 0: Processor 0 of 10
Cooling 1: Processor 0 of 10
Cooling 2: LCD 0 of 20
Cooling 3: x86_pkg_temp no state information available
Cooling 4: Processor 0 of 10
Cooling 5: Processor 0 of 10
Cooling 6: intel_powerclamp no state information available

################################################################
### cat /sys/class/power_supply/BAT0/uevent

POWER_SUPPLY_NAME=BAT0
POWER_SUPPLY_STATUS=Unknown
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_CYCLE_COUNT=0
POWER_SUPPLY_VOLTAGE_MIN_DESIGN=10800000
POWER_SUPPLY_VOLTAGE_NOW=12475000
POWER_SUPPLY_CURRENT_NOW=0
POWER_SUPPLY_CHARGE_FULL_DESIGN=4557000
POWER_SUPPLY_CHARGE_FULL=4557000
POWER_SUPPLY_CHARGE_NOW=4531000
POWER_SUPPLY_CAPACITY=99
POWER_SUPPLY_CAPACITY_LEVEL=Normal
POWER_SUPPLY_MODEL_NAME=Primary
POWER_SUPPLY_MANUFACTURER=Hewlett-Packard
POWER_SUPPLY_SERIAL_NUMBER=00824 2012/06/09

Has anyone experienced such a problem?
Any ideas?

Thank you very much!

Best regards,
Svetoslav
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version k4.15.0-36-generic.
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: PCH [HDA Intel PCH], device 0: 92HD81B1X5 Analog [92HD81B1X5 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/hwC0D1', '/dev/snd/hwC0D0', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', '/dev/snd/controlC0', '/dev/snd/by-path', '/dev/snd/hwC1D0', '/dev/snd/pcmC1D3p', '/dev/snd/controlC1', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
Card0.Amixer.info:
 Card hw:0 'PCH'/'HDA Intel PCH at 0xd4520000 irq 40'
   Mixer name : 'IDT 92HD81B1X5'
   Components : 'HDA:111d7605,103c3588,00100105 HDA:11c11040,103c3066,00100200'
   Controls : 27
   Simple ctrls : 12
Card1.Amixer.info:
 Card hw:1 'HDMI'/'HDA ATI HDMI at 0xd4420000 irq 41'
   Mixer name : 'ATI R6xx HDMI'
   Components : 'HDA:1002aa01,00aa0100,00100200'
   Controls : 7
   Simple ctrls : 1
Card1.Amixer.values:
 Simple mixer control 'IEC958',0
   Capabilities: pswitch pswitch-joined
   Playback channels: Mono
   Mono: Playback [off]
DistroRelease: Ubuntu 16.04
HibernationDevice: RESUME=UUID=21c7c479-445e-41a7-9948-e7878531afe8
MachineType: Hewlett-Packard HP EliteBook 8460p
Package: linux (not installed)
ProcEnviron:
 TERM=linux
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcFB: 0 radeondrmfb
ProcKernelCmdLine: BOOT_IMAGE=boot/vmlinuz root=/dev/nfs initrd=/boot/initrd.img-net nfsroot=192.168.2.1:/awbclient ip=dhcp rw quiet --
ProcVersionSignature: Ubuntu 4.15.0-36.39~16.04.1-generic 4.15.18
RelatedPackageVersions:
 linux-restricted-modules-4.15.0-36-generic N/A
 linux-backports-modules-4.15.0-36-generic N/A
 linux-firmware 1.157.20
Tags: xenial
Uname: Linux 4.15.0-36-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

_MarkForUpload: True
dmi.bios.date: 02/13/2018
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: 68SCF Ver. F.67
dmi.board.name: 161C
dmi.board.vendor: Hewlett-Packard
dmi.board.version: KBC Version 97.4E
dmi.chassis.asset.tag: 1386451
dmi.chassis.type: 10
dmi.chassis.vendor: Hewlett-Packard
dmi.modalias: dmi:bvnHewlett-Packard:bvr68SCFVer.F.67:bd02/13/2018:svnHewlett-Packard:pnHPEliteBook8460p:pvrA0001D02:rvnHewlett-Packard:rn161C:rvrKBCVersion97.4E:cvnHewlett-Packard:ct10:cvr:
dmi.product.family: 103C_5336AN
dmi.product.name: HP EliteBook 8460p
dmi.product.version: A0001D02
dmi.sys.vendor: Hewlett-Packard

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

the /sys entry has
POWER_SUPPLY_CHARGE_FULL_DESIGN=4557000
POWER_SUPPLY_CHARGE_FULL=4557000

so it seems either the kernel or the hardware is reporting the info, reassigning to the kernel

affects: upower (Ubuntu) → linux (Ubuntu)
Revision history for this message
Cristian Aravena Romero (caravena) wrote :

Hello Svetoslav,

Execute the following command in the terminal:

$ apport-collect 1798070

Best regards,
--
Cristian Aravena Romero (caravena)

Changed in linux (Ubuntu):
status: New → Incomplete
Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Svetoslav Borisov (alohalud) wrote : AlsaDevices.txt

apport information

tags: added: apport-collected xenial
description: updated
Revision history for this message
Svetoslav Borisov (alohalud) wrote : AplayDevices.txt

apport information

Revision history for this message
Svetoslav Borisov (alohalud) wrote : CRDA.txt

apport information

Revision history for this message
Svetoslav Borisov (alohalud) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Svetoslav Borisov (alohalud) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Svetoslav Borisov (alohalud) wrote : Card0.Codecs.codec.1.txt

apport information

Revision history for this message
Svetoslav Borisov (alohalud) wrote : Card1.Codecs.codec.0.txt

apport information

Revision history for this message
Svetoslav Borisov (alohalud) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Svetoslav Borisov (alohalud) wrote : IwConfig.txt

apport information

Revision history for this message
Svetoslav Borisov (alohalud) wrote : Lspci.txt

apport information

Revision history for this message
Svetoslav Borisov (alohalud) wrote : Lsusb.txt

apport information

Revision history for this message
Svetoslav Borisov (alohalud) wrote : PciMultimedia.txt

apport information

Revision history for this message
Svetoslav Borisov (alohalud) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Svetoslav Borisov (alohalud) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Svetoslav Borisov (alohalud) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Svetoslav Borisov (alohalud) wrote : ProcModules.txt

apport information

Revision history for this message
Svetoslav Borisov (alohalud) wrote : RfKill.txt

apport information

Revision history for this message
Svetoslav Borisov (alohalud) wrote : UdevDb.txt

apport information

Revision history for this message
Svetoslav Borisov (alohalud) wrote : WifiSyslog.txt

apport information

Revision history for this message
Cristian Aravena Romero (caravena) wrote :

Did this issue start happening after an update/upgrade? Was there a
prior kernel version where you were not having this particular problem?

Would it be possible for you to test the latest upstream kernel? Refer
to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest
v4.19 kernel[0].

If this bug is fixed in the mainline kernel, please add the following
tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag:
'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as
"Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19-rc8

Revision history for this message
Svetoslav Borisov (alohalud) wrote :

Hello Cristian,

This issue is happening since kernel 4.13.0-32-generic. I haven't tested with older kernels.
I expect to see a capacity less then 100%. I am testing this on an old laptop, with a battery which must be detected as less then 100% capacity (at least this is what is shown by HP Support Assistant utility on Windows - screenshot attached). I've also been informed that the models below have also been tested and they report 100% as well.
HP EliteBook 840G1/G2
HP EliteBook 850G1/G2
HP ProBook 650G1
HP EliteBook 8460p
HP EliteBook 8470p
HP 650 Notebook PC
HP ZBook 15 G1/G2

Could this be related to manufacturer limitations?

I have tested with the latest upstream kernel - 4.19.0-041900rc8-generic. as you suggested, but I still get the same result.

If you have any other ides, please let me know.

Thank you!

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

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
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.