I’m currently using Manjaro 21.1.0 with kernel 5.10.53-1, on a HP Probook 455 G8.
Today, I want to test the battery consumption of my laptop, so I unplugged the adapter, then did some web-browsing. Not only the laptop drained battery very quickly (lost 30% in the first hour with a 45Whr battery, and I do have TLP on), but the Powertop 2.14 result was also kind of wrong:
The battery reports a discharge rate of 384 mW
The energy consumed was 7.73 J
The estimated remaining time is 72 hours, 16 minutes
Summary: 1670,6 wakeups/second, 0,0 GPU ops/seconds, 0,0 VFS ops/sec and 44,9% CPU use
As you can see, the shown discharge rate was only 0.38W, and the estimated remaining time was 72 hours, which is not only impossible, but also completely opposite to what I experienced. So do you guys know the reasong for this result, and any solutions for it?
Thanks in advance!
P/s: any tips for better battery management is also welcome!
Powertop can be VERY misleading. If you have ran the --calibrate operation you should be able to provide more data for the before/after readings. Powertop really relies on data from whatever the kernel provides and it’s quite possible that not every sensor is detected/configured correctly. There’s a bunch of discussions like that on the powertop bug tracker, just mix and match whatever works for you.
1 Like
Thanks for answering so quickly to my post! I’m sorry for not being able to reply immediately.
Here is the result of my inix command. Sorry for being such a noob:
System:
Kernel: 5.10.53-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64
root=UUID=b01b73c3-4b50-4d09-b204-d74daf20be3f rw quiet apparmor=1
security=apparmor resume=UUID=d78e3d07-9246-4b76-94ff-bf360c333b98
udev.log_priority=3
Desktop: Xfce 4.16.0 tk: Gtk 3.24.29 info: xfce4-panel wm: xfwm 4.16.1 vt: 7
dm: LightDM 1.30.0 Distro: Manjaro Linux base: Arch Linux
Machine:
Type: Laptop System: HP product: HP ProBook 455 G8 Notebook PC v: N/A
serial: <filter> Chassis: type: 10 serial: <filter>
Mobo: HP model: 8864 v: KBC Version 41.16.00 serial: <filter> UEFI: HP
v: T78 Ver. 01.02.01 date: 04/13/2021
Battery:
ID-1: BAT0 charge: 35.5 Wh (79.2%) condition: 44.8/45.0 Wh (99.5%)
volts: 12.2 min: 11.4 model: Hewlett-Packard Primary type: Li-ion
serial: <filter> status: Unknown cycles: 3
Memory:
RAM: total: 11.32 GiB used: 1.87 GiB (16.5%)
RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
Info: 6-Core model: AMD Ryzen 5 5600U with Radeon Graphics bits: 64
type: MT MCP arch: Zen 3 family: 19 (25) model-id: 50 (80) stepping: 0
microcode: A50000C cache: L2: 3 MiB bogomips: 55125
Speed: 1816 MHz min/max: 1600/2300 MHz boost: disabled Core speeds (MHz):
1: 1816 2: 3837 3: 2542 4: 1762 5: 1891 6: 1739 7: 3625 8: 1736 9: 3897
10: 1831 11: 1700 12: 3925
Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy
constant_tsc cpb cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total cqm_occup_llc
cr8_legacy cx16 cx8 de decodeassists erms extapic extd_apicid f16c
flushbyasid fma fpu fsgsbase fsrm fxsr fxsr_opt ht hw_pstate ibpb ibrs ibs
invpcid irperf lahf_lm lbrv lm mba mca mce misalignsse mmx mmxext monitor
movbe msr mtrr mwaitx nonstop_tsc nopl npt nrip_save nx ospke osvw
overflow_recov pae pat pausefilter pclmulqdq pdpe1gb perfctr_core
perfctr_llc perfctr_nb pfthreshold pge pku pni popcnt pse pse36 rdpid rdpru
rdrand rdseed rdt_a rdtscp rep_good sep sha_ni skinit smap smca smep ssbd
sse sse2 sse4_1 sse4_2 sse4a ssse3 stibp succor svm svm_lock syscall tce
topoext tsc tsc_scale umip v_vmsave_vmload vaes vgif vmcb_clean vme vmmcall
vpclmulqdq wbnoinvd wdt xgetbv1 xsave xsavec xsaveerptr xsaveopt xsaves
Vulnerabilities: Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl and seccomp
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, IBRS_FW,
STIBP: always-on, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: AMD Cezanne vendor: Hewlett-Packard driver: amdgpu v: kernel
bus-ID: 05:00.0 chip-ID: 1002:1638 class-ID: 0300
Device-2: Luxvisions Innotech Limited HP HD Camera type: USB
driver: uvcvideo bus-ID: 3-4:3 chip-ID: 30c9:0010 class-ID: 0e02
Display: x11 server: X.Org 1.20.11 compositor: xfwm4 v: 4.16.1 driver:
loaded: amdgpu,ati unloaded: modesetting alternate: fbdev,vesa
display-ID: :0.0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
s-diag: 582mm (22.9")
Monitor-1: eDP res: 1920x1080 hz: 60 dpi: 142 size: 344x194mm (13.5x7.6")
diag: 395mm (15.5")
OpenGL: renderer: AMD RENOIR (DRM 3.40.0 5.10.53-1-MANJARO LLVM 12.0.1)
v: 4.6 Mesa 21.1.5 direct render: Yes
Audio:
Device-1: AMD driver: snd_hda_intel v: kernel bus-ID: 05:00.1
chip-ID: 1002:1637 class-ID: 0403
Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor
vendor: Hewlett-Packard driver: N/A
alternate: snd_pci_acp3x, snd_rn_pci_acp3x bus-ID: 05:00.5
chip-ID: 1022:15e2 class-ID: 0480
Device-3: AMD Family 17h HD Audio vendor: Hewlett-Packard
driver: snd_hda_intel v: kernel bus-ID: 05:00.6 chip-ID: 1022:15e3
class-ID: 0403
Sound Server-1: ALSA v: k5.10.53-1-MANJARO running: yes
Sound Server-2: JACK v: 1.9.19 running: no
Sound Server-3: PulseAudio v: 14.2 running: yes
Sound Server-4: PipeWire v: 0.3.32 running: no
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Hewlett-Packard driver: r8169 v: kernel port: 2000 bus-ID: 01:00.0
chip-ID: 10ec:8168 class-ID: 0200
IF: enp1s0 state: down mac: <filter>
Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel port: 2000
bus-ID: 02:00.0 chip-ID: 8086:2723 class-ID: 0280
IF: wlp2s0 state: up mac: <filter>
IP v4: <filter> type: dynamic noprefixroute scope: global
broadcast: <filter>
IP v6: <filter> type: noprefixroute scope: link
WAN IP: <filter>
Bluetooth:
Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-3:2
chip-ID: 8087:0029 class-ID: e001
Report: rfkill ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
rfk-block: hardware: no software: yes address: see --recommends
Logical:
Message: No logical block device data found.
RAID:
Message: No RAID data found.
Drives:
Local Storage: total: 238.47 GiB used: 69.13 GiB (29.0%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: SK Hynix
model: BC511 HFM256GDJTNI-82A0A size: 238.47 GiB block-size: physical: 512 B
logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
rev: HPS0 temp: 44.9 C scheme: GPT
Message: No optical or floppy data found.
Partition:
ID-1: / raw-size: 231.08 GiB size: 226.39 GiB (97.97%)
used: 69.13 GiB (30.5%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2
label: N/A uuid: b01b73c3-4b50-4d09-b204-d74daf20be3f
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 288 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
label: NO_LABEL uuid: 00DA-7DDD
Swap:
Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
ID-1: swap-1 type: partition size: 7.09 GiB used: 0 KiB (0.0%) priority: -2
dev: /dev/nvme0n1p3 maj-min: 259:3 label: N/A
uuid: d78e3d07-9246-4b76-94ff-bf360c333b98
Unmounted:
Message: No unmounted partitions found.
USB:
Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0
speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
Device-1: 1-3:2 info: Intel AX200 Bluetooth type: Bluetooth driver: btusb
interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 8087:0029
class-ID: e001
Device-2: 1-4:3 info: Elan Micro ELAN:ARM-M4 type: <vendor specific>
driver: N/A interfaces: 1 rev: 2.0 speed: 12 Mb/s power: 100mA
chip-ID: 04f3:0c5e class-ID: 0000
Hub-2: 2-0:1 info: Full speed (or root) Hub ports: 2 rev: 3.1 speed: 10 Gb/s
chip-ID: 1d6b:0003 class-ID: 0900
Hub-3: 3-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0
speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
Device-1: 3-1:2 info: Logitech M105 Optical Mouse type: Mouse
driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 1.5 Mb/s
power: 100mA chip-ID: 046d:c077 class-ID: 0301
Device-2: 3-4:3 info: Luxvisions Innotech Limited HP HD Camera type: Video
driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA
chip-ID: 30c9:0010 class-ID: 0e02
Hub-4: 4-0:1 info: Full speed (or root) Hub ports: 2 rev: 3.1 speed: 10 Gb/s
chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
System Temperatures: cpu: 55.0 C mobo: 25.0 C gpu: amdgpu temp: 52.0 C
Fan Speeds (RPM): N/A
Info:
Processes: 295 Uptime: 37m wakeups: 272 Init: systemd v: 248 tool: systemctl
Compilers: gcc: 11.1.0 clang: 12.0.1 Packages: pacman: 1365 lib: 359
flatpak: 0 Shell: Bash v: 5.1.8 running-in: xfce4-terminal inxi: 3.3.06
- I got that output in the
Overview
tab of powertop
. The Device stats
tab also showed the same stats.
Thanks for your reply. Run powertop --calibrate
didn’t fix the problem.
Maybe the cause is that powertop didn’t collect enough data for measurement. Tomorrow I will try running powertop on battery for about an hour to see if it will solve the bug.
1 Like
The reason doesn’t seem to be lacking data. I’ve run powertop on battery for 2 hours, and the message Cannot load from file /var/cache/powertop/saved_parameters.powertop
has disappeared. However, the bug still remains.
Here are the messages that I recieved when open & close powertop
. I hope they help identifying the problem:
sudo powertop
[sudo] password for <my_username>:
modprobe cpufreq_stats failedLoaded 447 prior measurements
RAPL device for cpu 0
RAPL device for cpu 0
Devfreq not enabled
glob returned GLOB_ABORTED
Leaving PowerTOP