You are not logged in.

#1 2024-11-20 10:42:13

Samueloses
Member
Registered: 2024-11-20
Posts: 16

[SOLVED] Inconcistence battery capacity

I AM NOT NATIVE ENGLISH, TRANSLATED USED
Hello guys, i newbie. I fight problems about battery in my laptop. I was try search in internet why my battery drops so fast and powertop --calibrate dont solved. But look above

Battery 0: Discharging, 88%, 05:09:36 remaining
Battery 0: design capacity 4054 mAh, last full capacity 4054 mAh = 100%

acpi -i information in BAT but:

Battery 0: Charging, 88%, 00:20:52 until charged
Battery 0: design capacity 3994 mAh, last full capacity 3994 mAh = 100%

Same battery with different capacity and put same time a lot same thing:

Battery 0: Charging, 88%, 00:20:53 until charged
Battery 0: design capacity 3992 mAh, last full capacity 3992 mAh = 100%
Battery 0: Charging, 87%, 00:20:53 until charged
Battery 0: design capacity 3991 mAh, last full capacity 3991 mAh = 100%
Battery 0: Charging, 87%, 00:20:53 until charged
Battery 0: design capacity 3807 mAh, last full capacity 3807 mAh = 100%
TLP status

--- TLP 1.7.0 --------------------------------------------

+++ Configured Settings:
defaults.conf L0006: TLP_ENABLE="1"
defaults.conf L0007: TLP_WARN_LEVEL="3"
defaults.conf L0008: TLP_MSG_COLORS="91 93 1 92"
defaults.conf L0009: TLP_PERSISTENT_DEFAULT="0"
defaults.conf L0010: DISK_IDLE_SECS_ON_AC="0"
defaults.conf L0011: DISK_IDLE_SECS_ON_BAT="2"
defaults.conf L0012: MAX_LOST_WORK_SECS_ON_AC="15"
defaults.conf L0013: MAX_LOST_WORK_SECS_ON_BAT="60"
defaults.conf L0014: CPU_ENERGY_PERF_POLICY_ON_AC="balance_performance"
defaults.conf L0015: CPU_ENERGY_PERF_POLICY_ON_BAT="balance_power"
defaults.conf L0016: NMI_WATCHDOG="0"
defaults.conf L0017: DISK_DEVICES="nvme0n1 sda"
defaults.conf L0018: DISK_APM_LEVEL_ON_AC="254 254"
defaults.conf L0019: DISK_APM_LEVEL_ON_BAT="128 128"
defaults.conf L0020: DISK_APM_CLASS_DENYLIST="usb ieee1394"
defaults.conf L0021: DISK_IOSCHED="keep keep"
defaults.conf L0022: SATA_LINKPWR_ON_AC="med_power_with_dipm"
defaults.conf L0023: SATA_LINKPWR_ON_BAT="med_power_with_dipm"
defaults.conf L0024: AHCI_RUNTIME_PM_ON_AC="on"
defaults.conf L0025: AHCI_RUNTIME_PM_ON_BAT="auto"
defaults.conf L0026: AHCI_RUNTIME_PM_TIMEOUT="15"
defaults.conf L0027: PCIE_ASPM_ON_AC="default"
defaults.conf L0028: PCIE_ASPM_ON_BAT="default"
defaults.conf L0029: RADEON_DPM_PERF_LEVEL_ON_AC="auto"
defaults.conf L0030: RADEON_DPM_PERF_LEVEL_ON_BAT="auto"
defaults.conf L0031: RADEON_POWER_PROFILE_ON_AC="default"
defaults.conf L0032: RADEON_POWER_PROFILE_ON_BAT="default"
defaults.conf L0033: AMDGPU_ABM_LEVEL_ON_AC="0"
defaults.conf L0034: AMDGPU_ABM_LEVEL_ON_BAT="1"
defaults.conf L0035: WIFI_PWR_ON_AC="off"
defaults.conf L0036: WIFI_PWR_ON_BAT="on"
defaults.conf L0037: WOL_DISABLE="Y"
defaults.conf L0038: SOUND_POWER_SAVE_ON_AC="1"
defaults.conf L0039: SOUND_POWER_SAVE_ON_BAT="1"
defaults.conf L0040: SOUND_POWER_SAVE_CONTROLLER="Y"
defaults.conf L0041: BAY_POWEROFF_ON_AC="0"
defaults.conf L0042: BAY_POWEROFF_ON_BAT="0"
defaults.conf L0043: BAY_DEVICE="sr0"
defaults.conf L0044: RUNTIME_PM_ON_AC="on"
defaults.conf L0045: RUNTIME_PM_ON_BAT="auto"
defaults.conf L0046: RUNTIME_PM_DRIVER_DENYLIST="mei_me nouveau radeon xhci_hcd"
defaults.conf L0047: USB_AUTOSUSPEND="1"
defaults.conf L0048: USB_EXCLUDE_AUDIO="1"
defaults.conf L0049: USB_EXCLUDE_BTUSB="0"
defaults.conf L0050: USB_EXCLUDE_PHONE="0"
defaults.conf L0051: USB_EXCLUDE_PRINTER="1"
defaults.conf L0052: USB_EXCLUDE_WWAN="0"
defaults.conf L0053: RESTORE_DEVICE_STATE_ON_STARTUP="0"
defaults.conf L0054: RESTORE_THRESHOLDS_ON_BAT="0"
defaults.conf L0055: NATACPI_ENABLE="1"
defaults.conf L0056: TPSMAPI_ENABLE="1"

+++ System Info
System         = Compaq Default string 434
BIOS           = V1.09.X
EC Firmware    = 5.0
OS Release     = Arch Linux
Kernel         = 6.11.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 17 Nov 2024 16:06:17 +0000 x86_64
/proc/cmdline  = BOOT_IMAGE=/vmlinuz-linux root=UUID=5a99c0ad-0cf7-4282-beaa-8bc4d29ff17e rw rootflags=subvol=@ zswap.enabled=0 rootfstype=btrfs acpi=force loglevel=1 splash apm=power_off modprobe.blacklist=iTCO_wdt i8042.nokbd intel_pstate=passive
Init system    = systemd 
Boot mode      = UEFI
Suspend mode   = s2idle [deep]

+++ TLP Status
State          = enabled
RDW state      = enabled
Last run       = 07:18:42, 1034 sec(s) ago
Mode           = AC
Power source   = AC



+++ Temperatures
CPU temp               =    50 [°C]
Fan speed              = (not available)

+++ File System
/proc/sys/vm/laptop_mode               =     0
/proc/sys/vm/dirty_writeback_centisecs =  1500
/proc/sys/vm/dirty_expire_centisecs    =  1500
/proc/sys/vm/dirty_ratio               =    10
/proc/sys/vm/dirty_background_ratio    =     5

+++ Disks
Devices = nvme0n1 sda

/dev/nvme0n1: not present.


  Scheduler  = none mq-deadline [kyber] bfq (multi queue)

  Runtime PM:
    /sys/block/sda/device/power/control = on, autosuspend_delay_ms = 15000


+++ Intel Graphics
/sys/class/drm/card1/device/driver           = i915

/sys/class/drm/card1/power/rc6_enable        =  1 (enabled)
/sys/kernel/debug/dri/1/i915_fbc_status      = FBC disabled: pixel format not supported
/sys/module/i915/parameters/enable_psr       = -1 (use per-chip default)

/sys/class/drm/card1/gt_min_freq_mhz         =   300 [MHz]
/sys/class/drm/card1/gt_max_freq_mhz         =  1000 [MHz]
/sys/class/drm/card1/gt_boost_freq_mhz       =  1000 [MHz]
/sys/class/drm/card1/gt_RPn_freq_mhz         =   300 [MHz] (GPU min)
/sys/class/drm/card1/gt_RP0_freq_mhz         =  1000 [MHz] (GPU max)

+++ Wireless
bluetooth = off (software)
nfc       = none (no device)
wifi      = on
wwan      = none (no device)

hci0(btusb)                   : bluetooth, not connected
wlan0(rtw_8723du)             : wifi, connected, power management = off

+++ Audio
/sys/module/snd_hda_intel/parameters/power_save            = 1
/sys/module/snd_hda_intel/parameters/power_save_controller = Y

+++ PCIe Active State Power Management
/sys/module/pcie_aspm/parameters/policy = [default] performance powersave powersupersave

+++ PCIe Runtime Power Management
Enable devices    = (disabled)
Disable devices   = (disabled)
Device denylist   = (disabled)
Driver denylist   = mei_me nouveau radeon xhci_hcd

/sys/bus/pci/devices/0000:00:00.0/power/control = on   (0x060000, Host bridge, skl_uncore)
/sys/bus/pci/devices/0000:00:02.0/power/control = on   (0x030000, VGA compatible controller, i915)
/sys/bus/pci/devices/0000:00:04.0/power/control = on   (0x118000, Signal processing controller, proc_thermal)
/sys/bus/pci/devices/0000:00:08.0/power/control = on   (0x088000, System peripheral, no driver)
/sys/bus/pci/devices/0000:00:14.0/power/control = auto (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:00:14.2/power/control = on   (0x118000, Signal processing controller, intel_pch_thermal)
/sys/bus/pci/devices/0000:00:15.0/power/control = on   (0x118000, Signal processing controller, intel-lpss)
/sys/bus/pci/devices/0000:00:15.1/power/control = on   (0x118000, Signal processing controller, intel-lpss)
/sys/bus/pci/devices/0000:00:15.2/power/control = on   (0x118000, Signal processing controller, intel-lpss)
/sys/bus/pci/devices/0000:00:16.0/power/control = auto (0x078000, Communication controller, mei_me)
/sys/bus/pci/devices/0000:00:17.0/power/control = on   (0x010601, SATA controller, ahci)
/sys/bus/pci/devices/0000:00:1e.0/power/control = on   (0x118000, Signal processing controller, intel-lpss)
/sys/bus/pci/devices/0000:00:1e.4/power/control = on   (0x080501, SD Host controller, sdhci-pci)
/sys/bus/pci/devices/0000:00:1f.0/power/control = on   (0x060100, ISA bridge, no driver)
/sys/bus/pci/devices/0000:00:1f.2/power/control = on   (0x058000, Memory controller, no driver)
/sys/bus/pci/devices/0000:00:1f.3/power/control = on   (0x040300, Audio device, snd_hda_intel)
/sys/bus/pci/devices/0000:00:1f.4/power/control = on   (0x0c0500, SMBus, i801_smbus)
/sys/bus/pci/devices/0000:00:1f.6/power/control = on   (0x020000, Ethernet controller, e1000e)

+++ USB
Autosuspend       = enabled
Device allowlist  = (not configured)
Device denylist   = (not configured)
Exclude audio     = enabled
Exclude bluetooth = disabled
Exclude phones    = disabled
Exclude printers  = enabled
Exclude WWAN      = disabled

Bus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 2.0 root hub (hub)
Bus 001 Device 002 ID 1a2c:6004 control = on,   autosuspend_delay_ms = 2000 -- China Resource Semico Co., Ltd USB Keyboard (usbhid)
Bus 001 Device 003 ID 0bda:5830 control = auto, autosuspend_delay_ms = 2000 -- Realtek Semiconductor Corp. MTD camera (uvcvideo)
Bus 001 Device 004 ID 0bda:d723 control = auto, autosuspend_delay_ms = 2000 -- Realtek Semiconductor Corp. 802.11n WLAN Adapter (btusb, rtw_8723du)
Bus 002 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 3.0 root hub (hub)

+++ Battery Care
Plugin: generic
Supported features: none available

+++ Battery Status: BAT0
/sys/class/power_supply/BAT0/manufacturer                   = Intel SR 1
/sys/class/power_supply/BAT0/model_name                     = SR Real Battery
/sys/class/power_supply/BAT0/cycle_count                    =      0 (or not supported)
/sys/class/power_supply/BAT0/energy_full_design             =  49590 [mWh]
/sys/class/power_supply/BAT0/energy_full                    =  49590 [mWh]
/sys/class/power_supply/BAT0/energy_now                     =  47104 [mWh]
/sys/class/power_supply/BAT0/power_now                      =  17100 [mW]
/sys/class/power_supply/BAT0/status                         = Charging

/sys/class/power_supply/BAT0/charge_control_start_threshold = (not available) 
/sys/class/power_supply/BAT0/charge_control_end_threshold   = (not available) 

Charge                                                      =   95.0 [%]
Capacity                                                    =  100.0 [%]

Last edited by Samueloses (2024-11-23 14:25:58)

Offline

#2 2024-11-20 15:24:29

seth
Member
Registered: 2012-09-03
Posts: 59,041

Re: [SOLVED] Inconcistence battery capacity

Please use [code][/code] tags. Edit your post in this regard.

tail /sys/class/power_supply/BAT*/*

Also please quantify "fast" - seconds, minutes or hours?
The shifting capacity suggests that the battery has seen its best days and is nowhere near holding its original design capacity.
Otherwise check "powertop" to see what's draining the most energy (and how much)

Online

#3 2024-11-21 09:40:08

Samueloses
Member
Registered: 2024-11-20
Posts: 16

Re: [SOLVED] Inconcistence battery capacity

seth wrote:

Please use [code][/code] tags. Edit your post in this regard.

tail /sys/class/power_supply/BAT*/*

Also please quantify "fast" - seconds, minutes or hours?
The shifting capacity suggests that the battery has seen its best days and is nowhere near holding its original design capacity.
Otherwise check "powertop" to see what's draining the most energy (and how much)

5 h browsing and 3 h with heavy processes. But i delete a program that gives erros in jornauld
and give a lot energy but the error continue
result of

 
[samuel@]$ tail /sys/class/power_supply/BAT*/*
==> /sys/class/power_supply/BAT0/alarm <==
0

==> /sys/class/power_supply/BAT0/capacity <==
35

==> /sys/class/power_supply/BAT0/capacity_level <==
Normal

==> /sys/class/power_supply/BAT0/cycle_count <==
0

==> /sys/class/power_supply/BAT0/device <==
tail: erro ao ler '/sys/class/power_supply/BAT0/device': É um diretório

==> /sys/class/power_supply/BAT0/energy_full <==
49590000

==> /sys/class/power_supply/BAT0/energy_full_design <==
49590000

==> /sys/class/power_supply/BAT0/energy_now <==
17852000

==> /sys/class/power_supply/BAT0/hwmon1 <==
tail: erro ao ler '/sys/class/power_supply/BAT0/hwmon1': É um diretório

==> /sys/class/power_supply/BAT0/manufacturer <==
Intel SR 1

==> /sys/class/power_supply/BAT0/model_name <==
SR Real Battery

==> /sys/class/power_supply/BAT0/power <==
tail: erro ao ler '/sys/class/power_supply/BAT0/power': É um diretório

==> /sys/class/power_supply/BAT0/power_now <==
9735000

==> /sys/class/power_supply/BAT0/present <==
1

==> /sys/class/power_supply/BAT0/serial_number <==
123456789

==> /sys/class/power_supply/BAT0/status <==
Discharging

==> /sys/class/power_supply/BAT0/subsystem <==
tail: erro ao ler '/sys/class/power_supply/BAT0/subsystem': É um diretório

==> /sys/class/power_supply/BAT0/technology <==
Unknown

==> /sys/class/power_supply/BAT0/type <==
Battery

==> /sys/class/power_supply/BAT0/uevent <==
POWER_SUPPLY_VOLTAGE_NOW=10926000
POWER_SUPPLY_POWER_NOW=9735000
POWER_SUPPLY_ENERGY_FULL_DESIGN=49590000
POWER_SUPPLY_ENERGY_FULL=49590000
POWER_SUPPLY_ENERGY_NOW=17852000
POWER_SUPPLY_CAPACITY=35
POWER_SUPPLY_CAPACITY_LEVEL=Normal
POWER_SUPPLY_MODEL_NAME=SR Real Battery
POWER_SUPPLY_MANUFACTURER=Intel SR 1
POWER_SUPPLY_SERIAL_NUMBER=123456789

==> /sys/class/power_supply/BAT0/voltage_min_design <==
tail: erro ao ler '/sys/class/power_supply/BAT0/voltage_min_design': Dispositivo inexistente

==> /sys/class/power_supply/BAT0/voltage_now <==
10926000

RCU(softirq) is high use battery process with 662  [btrfs-transacti] and kworker use same number and xhcihcd use 600 around.

The battery reports a discharge rate of 10.2 W
The energy consumed was 166 J

Offline

#4 2024-11-21 14:13:40

seth
Member
Registered: 2012-09-03
Posts: 59,041

Re: [SOLVED] Inconcistence battery capacity

The battery has a design capacity of 49.59 Wh, at 10.2W discharge (browsing or with "heavy process"?) that gets you 4.86h runtime.
So no big surprises there.
When it comes to the discharge rate, those kernel threads (and likely the CPU) don't make the bulk of that - you want to check which devices (backlight, gpu, …) draw the most power.

What kind of battery time do you btw. expect from the advertised TDP?

Online

#5 2024-11-21 14:22:43

Samueloses
Member
Registered: 2024-11-20
Posts: 16

Re: [SOLVED] Inconcistence battery capacity

seth wrote:

The battery has a design capacity of 49.59 Wh, at 10.2W discharge (browsing or with "heavy process"?) that gets you 4.86h runtime.
So no big surprises there.
When it comes to the discharge rate, those kernel threads (and likely the CPU) don't make the bulk of that - you want to check which devices (backlight, gpu, …) draw the most power.

What kind of battery time do you btw. expect from the advertised TDP?

EDIT: my battery charge much fast too, and drops fast in a compiler for exemple.
My real battery is 6000mah. i think that no make sense a 100% permanent quality and i dont understand why the batterry capacity increase in BAT and decrease in charge

Last edited by Samueloses (2024-11-21 14:24:53)

Offline

#6 2024-11-21 14:28:30

seth
Member
Registered: 2012-09-03
Posts: 59,041

Re: [SOLVED] Inconcistence battery capacity

My real battery is 6000mah.

No more.
The cycle count is "0", so either it was never supported or there's an issue w/ the battery self-report.
How old is that thing?

Online

#7 2024-11-21 14:30:40

Samueloses
Member
Registered: 2024-11-20
Posts: 16

Re: [SOLVED] Inconcistence battery capacity

seth wrote:

My real battery is 6000mah.

No more.
The cycle count is "0", so either it was never supported or there's an issue w/ the battery self-report.
How old is that thing?

edit: my laptop isnt show in https://wiki.archlinux.org/title/Laptop mean?
3 years bro.

Last edited by Samueloses (2024-11-21 14:36:20)

Offline

#8 2024-11-21 14:48:19

seth
Member
Registered: 2012-09-03
Posts: 59,041

Re: [SOLVED] Inconcistence battery capacity

The wiki doesn't cover all sorts of hardware, the models listed are what users noted about their own experience w/ the hardware.

Check the battery w/ some live distro or windows, but I'm fairly sure it's just degrading.
You can try to completely discharge the battery, recharge full, discharge it, recharge it full and see where you land.

Online

#9 2024-11-21 14:55:06

Samueloses
Member
Registered: 2024-11-20
Posts: 16

Re: [SOLVED] Inconcistence battery capacity

seth wrote:

The wiki doesn't cover all sorts of hardware, the models listed are what users noted about their own experience w/ the hardware.

Check the battery w/ some live distro or windows, but I'm fairly sure it's just degrading.
You can try to completely discharge the battery, recharge full, discharge it, recharge it full and see where you land.

So, when my laptop is empty. Its wont boot, as any laptop. My first think had battery cant charge totally. Only a x value.
Nice. I should do this (discharge) in live system or in normal daily use?

Offline

#10 2024-11-21 15:26:21

seth
Member
Registered: 2012-09-03
Posts: 59,041

Re: [SOLVED] Inconcistence battery capacity

It doesn't matter how you discharge it, you can unplug it and watch videos until the system powers down.
Doing so from a live system has the benefit of not resulting in an unclean shutdown, which could result in an inconsistent filesystem, but you can of course run it down to like 10% on your regular system and then drain the remainder from some live distro.

Then you plug the charger, wait a bit, boot the system and there wait until it's maybe 99% charged, from there discharge again as before, repeat the charge, remove the AC connection when you reach 99% or 100% (don't allow it to "overcharge") and see where your capacity is at.
Let the battery discharge to like 20% and the recharge it and see whether the behavior has returned to normal.

Be prepared that the capacity is most likely now (still) below 60Wh - batteries age.

Online

#11 2024-11-21 15:37:18

Samueloses
Member
Registered: 2024-11-20
Posts: 16

Re: [SOLVED] Inconcistence battery capacity

seth wrote:

It doesn't matter how you discharge it, you can unplug it and watch videos until the system powers down.
Doing so from a live system has the benefit of not resulting in an unclean shutdown, which could result in an inconsistent filesystem, but you can of course run it down to like 10% on your regular system and then drain the remainder from some live distro.

Then you plug the charger, wait a bit, boot the system and there wait until it's maybe 99% charged, from there discharge again as before, repeat the charge, remove the AC connection when you reach 99% or 100% (don't allow it to "overcharge") and see where your capacity is at.
Let the battery discharge to like 20% and the recharge it and see whether the behavior has returned to normal.

Be prepared that the capacity is most likely now (still) below 60Wh - batteries age.

I ready. I will show the result soon.

Offline

#12 2024-11-23 08:37:13

Samueloses
Member
Registered: 2024-11-20
Posts: 16

Re: [SOLVED] Inconcistence battery capacity

Best! seth ur method was very efficient. Look

 Battery 0: design capacity 4558 mAh, last full capacity 4558 mAh = 100 

no changes in

 tail /sys/class/power_supply/BAT*/* 

But i have strange situation
I wake up and my laptop now say a battery bigger that before but i havent charged and https://archlinux.org/packages/?name=sway drains my battery so fast. should i make a new topic about this.
NOTE: mpvpaper was used to in sway but its has low consumition

Offline

#13 2024-11-23 13:27:55

seth
Member
Registered: 2012-09-03
Posts: 59,041

Re: [SOLVED] Inconcistence battery capacity

I wake up and my laptop now say a battery bigger that before

Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855
Notably since

I AM NOT NATIVE ENGLISH, TRANSLATED USED

Btw: https://deepl.com/

sway drains my battery so fast

Is this according to powertop?
Please open a new thread for this, in doubt you're running on software emulation - so there add the outputs of

lspci -k
glxinfo -B

Online

#14 2024-11-23 14:24:49

Samueloses
Member
Registered: 2024-11-20
Posts: 16

Re: [SOLVED] Inconcistence battery capacity

seth wrote:

I wake up and my laptop now say a battery bigger that before

Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855
Notably since

I AM NOT NATIVE ENGLISH, TRANSLATED USED

Btw: https://deepl.com/

sway drains my battery so fast

Is this according to powertop?
Please open a new thread for this, in doubt you're running on software emulation - so there add the outputs of

lspci -k
glxinfo -B

I will set as solved here.
Thx and i could'nt create a topic without https://mozilla.github.io/translate/ that was usefull

Offline

Board footer

Powered by FluxBB