Besides changing the behavior, the other interesting aspect of this is /sys/power/suspend_stats/last_sleep_energy as a new file to expose the amount of energy that the battery consumed during the last sleep cycle. The “last_sleep_energy” is reported in mAh.
I’m surprised this didn’t exist before. I use the report in windows all the time to figure out why my POS laptop died after 20 minutes of being in sleep.
I’m surprised this didn’t exist before. I use the report in windows all the time to figure out why my POS laptop died after 20 minutes of being in sleep.