Same here on Lenovo L15 Gen2 AMD.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2067043

Title:
  Wrong Battery Reading after Wake from S3 Sleep since Kernel 6.8

Status in linux package in Ubuntu:
  Fix Released

Bug description:
  1. Please describe the problem:
  After waking up my Lenovo Thinkpad P1 Gen2 from the S3 sleep state, it shows 
an incorrect battery level. Sometimes the battery level forces the computer to 
completely shut down, including data loss, if running on battery.

  After a closer look at
  /sys/class/power_supply/BAT0/energy_now
  /sys/class/power_supply/BAT0/energy_full
  /sys/class/power_supply/BAT0/energy_full_design

  shows that energy_full is usually significantly higher than 
energy_full_design.
  After a reboot, the battery data is correct again until the next S3 sleep 
state. Sometimes it takes 2 sleep states until the battery values are read out 
incorrectly.

  Battery Readings after wake from S3 Sleep:
  test@fedora:~$ upower -i /org/freedesktop/UPower/devices/battery_BAT0
    native-path:          BAT0
    vendor:               Celxpert
    model:                !
    serial:               8472
    power supply:         yes
    updated:              Fr 03 Mai 2024 17:28:37 (6 seconds ago)
    has history:          yes
    has statistics:       yes
    battery
      present:             yes
      rechargeable:        yes
      state:               pending-charge
      warning-level:       none
      energy:              37,3866 Wh
      energy-empty:        0 Wh
      energy-full:         453,584 Wh
      energy-full-design:  228,134 Wh
      energy-rate:         0 W
      voltage:             16,456 V
      charge-cycles:       230
      percentage:          8%
      capacity:            100%
      icon-name:          'battery-caution-charging-symbolic'

  Battery Readings after Reboot:
  test@fedora:~$ upower -i /org/freedesktop/UPower/devices/battery_BAT0
    native-path:          BAT0
    vendor:               Celxpert
    model:                5B10V98091
    serial:               2691
    power supply:         yes
    updated:              Fr 03 Mai 2024 17:31:31 (6 seconds ago)
    has history:          yes
    has statistics:       yes
    battery
      present:             yes
      rechargeable:        yes
      state:               pending-charge
      warning-level:       none
      energy:              53,91 Wh
      energy-empty:        0 Wh
      energy-full:         67,81 Wh
      energy-full-design:  80,4 Wh
      energy-rate:         0 W
      voltage:             16,456 V
      charge-cycles:       230
      percentage:          79%
      capacity:            84,3408%
      technology:          lithium-polymer
      icon-name:          'battery-full-charging-symbolic'
    History (charge):
      1714750266  79,000  pending-charge
      1714750266  0,000   unknown
    History (rate):
      1714750266  0,000   unknown

  Battery Readings after wake from S3 Sleep:
  test@fedora:~$ upower -i /org/freedesktop/UPower/devices/battery_BAT0
    native-path:          BAT0
    vendor:               %
    model:                5B10V980%
    serial:               9499
    power supply:         yes
    updated:              Mo 13 Mai 2024 10:12:54 (5 seconds ago)
    has history:          yes
    has statistics:       yes
    battery
      present:             yes
      rechargeable:        yes
      state:               discharging
      warning-level:       low
      energy:              56,88 Wh
      energy-empty:        0 Wh
      energy-full:         655,12 Wh
      energy-full-design:  80,4 Wh
      energy-rate:         9,106 W
      voltage:             16,089 V
      charge-cycles:       N/A
      time to empty:       6,2 hours
      percentage:          8%
      capacity:            100%
      technology:          lithium-polymer
      icon-name:          'battery-caution-symbolic'
    History (rate):
      1715587974  9,106   discharging
      1715587944  10,488  discharging
      1715587914  9,922   discharging
      1715587884  16,294  discharging

  Battery Readings after wake from S3 Sleep:
  test@fedora:~$ upower -i /org/freedesktop/UPower/devices/battery_BAT0
    native-path:          BAT0
    vendor:               Ce%')#$-
    model:                5B10V9)#$-
    serial:               11556
    power supply:         yes
    updated:              Mi 15 Mai 2024 11:04:11 (26 seconds ago)
    has history:          yes
    has statistics:       yes
    battery
      present:             yes
      rechargeable:        yes
      state:               pending-charge
      warning-level:       none
      energy:              60,48 Wh
      energy-empty:        0 Wh
      energy-full:         102,16 Wh
      energy-full-design:  328,96 Wh
      energy-rate:         0 W
      voltage:             16,696 V
      charge-cycles:       65512
      percentage:          59%
      capacity:            31,0554%
      icon-name:          'battery-good-charging-symbolic'
    History (charge):
      1715763822  59,000  pending-charge
      1715763820  100,000 fully-charged

  Battery Readings after wake from S3 Sleep:
  test@fedora:~$ upower -i /org/freedesktop/UPower/devices/battery_BAT0
    native-path:          BAT0
    vendor:               Celxpert
    model:                5B10V+$$.
    serial:               11812
    power supply:         yes
    updated:              Do 23 Mai 2024 13:37:12 (2 seconds ago)
    has history:          yes
    has statistics:       yes
    battery
      present:             yes
      rechargeable:        yes
      state:               fully-charged
      warning-level:       none
      energy:              53,3069 Wh
      energy-empty:        0 Wh
      energy-full:         338,138 Wh
      energy-full-design:  1,06902 Wh
      energy-rate:         0 W
      voltage:             16,467 V
      charge-cycles:       235
      percentage:          100%
      capacity:            100%
      technology:          lithium-polymer
      icon-name:          'battery-full-charged-symbolic'
    History (charge):
      1716464142  100,000 fully-charged

  2. What is the Version-Release number of the kernel:
  Issue since Kernel 6.8.0-31

  3. Did it work previously in Ubuntu? If so, what kernel version did the issue
     *first* appear?
  Before Kernel 6.8 no issues at all. I have tested Ubuntu with Kernel lower 
than 6.8, no Issue. Ubuntu with Kernel from 6.8 and above and the wrong battery 
reading started to appear.

  To be certain that it is the kernel I have tested with other Linux
  distros, like Fedora 39 and Fedora 40 which are also based on Kernel
  6.8. Same issue as with Ubuntu with Kernel 6.8.0 and newer.

  4. Can you reproduce this issue? If so, please provide the steps to reproduce
     the issue below:
  Reproduction is easy. Installation of Kernel 6.8.0 or newer. Putting Thinkpad 
P1 Gen2 to S3 Sleep and wake again from sleep. You will see wrong battery 
readings. Sometimes more than one sleep/wake cycle is necesarry to reproduce 
the issue.

  5. Are you running any modules that not shipped with directly Fedora's 
kernel?:
  No 3rd party Kernel modules are used.

  ProblemType: Bug
  DistroRelease: Ubuntu 24.04
  Package: linux-image-6.8.0-31-generic 6.8.0-31.31
  ProcVersionSignature: Ubuntu 6.8.0-31.31-generic 6.8.1
  Uname: Linux 6.8.0-31-generic x86_64
  NonfreeKernelModules: zfs
  ApportVersion: 2.28.1-0ubuntu2
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/seq:        ubuntu     2719 F.... pipewire
   /dev/snd/controlC0:  ubuntu     2721 F.... wireplumber
   /dev/snd/controlC1:  ubuntu     2721 F.... wireplumber
  CRDA: N/A
  CasperMD5CheckResult: pass
  CasperVersion: 1.498
  CloudArchitecture: x86_64
  CloudID: nocloud
  CloudName: unknown
  CloudPlatform: nocloud
  CloudSubPlatform: seed-dir (/var/lib/cloud/seed/nocloud)
  CurrentDesktop: ubuntu:GNOME
  Date: Fri May 24 09:24:31 2024
  LiveMediaBuild: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424)
  MachineType: LENOVO 20QUS04M00
  ProcEnviron:
   LANG=C.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   TERM=xterm-256color
  ProcFB: 0 i915drmfb
  ProcKernelCmdLine: BOOT_IMAGE=/casper/vmlinuz --- quiet splash
  RelatedPackageVersions:
   linux-restricted-modules-6.8.0-31-generic N/A
   linux-backports-modules-6.8.0-31-generic  N/A
   linux-firmware                            20240318.git3b128b60-0ubuntu2
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 03/13/2024
  dmi.bios.release: 1.50
  dmi.bios.vendor: LENOVO
  dmi.bios.version: N2OET63W (1.50 )
  dmi.board.asset.tag: Not Available
  dmi.board.name: 20QUS04M00
  dmi.board.vendor: LENOVO
  dmi.board.version: Not Defined
  dmi.chassis.asset.tag: No Asset Information
  dmi.chassis.type: 10
  dmi.chassis.vendor: LENOVO
  dmi.chassis.version: None
  dmi.ec.firmware.release: 1.22
  dmi.modalias: 
dmi:bvnLENOVO:bvrN2OET63W(1.50):bd03/13/2024:br1.50:efr1.22:svnLENOVO:pn20QUS04M00:pvrThinkPadP1Gen2:rvnLENOVO:rn20QUS04M00:rvrNotDefined:cvnLENOVO:ct10:cvrNone:skuLENOVO_MT_20QU_BU_Think_FM_ThinkPadP1Gen2:
  dmi.product.family: ThinkPad P1 Gen 2
  dmi.product.name: 20QUS04M00
  dmi.product.sku: LENOVO_MT_20QU_BU_Think_FM_ThinkPad P1 Gen 2
  dmi.product.version: ThinkPad P1 Gen 2
  dmi.sys.vendor: LENOVO

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2067043/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to