I've noticed this only a few times, and it doesn't always happen, but
there isn't enough data to form a pattern.
Fedora Workstation 28
kernel varies but mainly I use Rawhide kernels to catch bugs
[ 0.000000] DMI: HP HP Spectre Notebook/81A0, BIOS F.40 02/26/2018
Battery is 100% charged. Computer is powered off via GNOME power
button icon thingy. Unplug power cord. Go to bed. Morning I plug power
back into the laptop and boot, and the battery icon indicates
charging, click on that icon and it reports it's charging the batter,
will take 40 minutes until full (80%).
So how the heck is the battery losing 20% when the laptop is powered
off? I have in the past couple weeks left the laptop overnight in
suspend to RAM mode, unplugged from power, and in the morning it's 90%
charged, which makes some sense I guess even though that still seems
like a lot of loss. But 20% powered off makes no sense.
The first time this happened I was suspicious of my own memory: OK
maybe I left it in suspend even though I'm 99% certain I powered it
off, but which is more likely, that I'm being spacey or that the
laptop discharged 20% overnight while powered off? But this time I am
certain it was powered off.
Anyway, it's been charging a bit before I ran this:
[chris@f28h ~]$ upower -i /org/freedesktop/UPower/devices/battery_BAT1
native-path: BAT1
vendor: Hewlett-Packard
model: PABAS0241231
serial: 41167
power supply: yes
updated: Thu 17 May 2018 08:42:18 AM MDT (45 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: charging
warning-level: none
energy: 27.412 Wh
energy-empty: 0 Wh
energy-full: 31.5161 Wh
energy-full-design: 38.115 Wh
energy-rate: 6.7067 W
voltage: 8.743 V
time to full: 36.7 minutes
percentage: 86%
capacity: 82.6869%
technology: lithium-ion
icon-name: 'battery-full-charging-symbolic'
History (rate):
1526568138 6.707 charging
[chris@f28h ~]$
Pretty weird.
--
Chris Murphy