My Librem 13v2 with PureOS and Coreboot 4.7-Purism-4 is draining too much battery while suspended. Over night the battery went down from 100% to 60%. I didn’t find any activity in logs.
Mar 23 23:19:51 librem systemd-sleep[29161]: Suspending system...
Mar 23 23:19:51 librem kernel: [34589.635825] PM: suspend entry (deep)
Mar 24 06:33:05 librem Tor[968]: Your system clock just jumped 25995 seconds forward; assuming established circuits no longer work.
Mar 24 06:33:05 librem kernel: [34589.635827] PM: Syncing filesystems ... done.
I noticed before the laptop stays warm when it’s suspended so I don’t think it was introduced in recent updates.
If I measure the DC current of power supply its 0.13 A (about 2.5 Watt) when it’s suspended with fully charged battery. This is a lot more than I would expect.
On my Librem 15v2 (with AMI bios and Debian), I have the same problem. I once left the laptop suspended for ~48 hours, it fully drained the battery. Please note that I configured the USB ports to sleep when idle through powertop (and it works, since I have to toggle them back to “normal” if I want to plug in a usb mouse, otherwise the mouse goes to sleep after a very short time of inactivity).
This could be indeed the fault of stripping down the intel nonfree firmware - anyone with Debian can compare their behavior now and once they enable nonfree repo and add the missing firmware (isenkram is useful tool for detecting lacking firmware) to confirm this.
It seems that the “Failed to load DMC firmware i915/skl_dmc_ver1_26.bin. Disabling runtime power management.” is driven by pureos not including proprietary software that would be necessary for GPU power optimization. It could be the source of the issue, but that makes it seem less likely to me.
After checking, I don’t have any “failed to load xxx” in my dmesg. But isenkram found a few missing packages: firmware-misc-nonfree and firmware-iwlwifi for the following extra firmware files:
i915/bxt_dmc_ver1_07.bin
i915/bxt_guc_ver9_29.bin
i915/bxt_huc_ver01_07_1398.bin
i915/kbl_dmc_ver1_04.bin
i915/kbl_guc_ver9_39.bin
i915/kbl_huc_ver02_00_1810.bin
i915/skl_dmc_ver1_27.bin
i915/skl_guc_ver9_33.bin
i915/skl_huc_ver01_07_1398.bin
intel/ibt-11-5.ddc intel/ibt-11-5.sfi
intel/ibt-12-16.ddc intel/ibt-12-16.sfi
I have now installed them, I will let the laptop suspend for a night and let you know how it went…
All these firmware packages are installed on my buster installation and still seems to have the trouble.
$ dpkg --list | grep firmware-linux
ii firmware-linux 20170823-1 all Binary firmware for various drivers in the Linux kernel (meta-package)
ii firmware-linux-free 3.4 all Binary firmware for various drivers in the Linux kernel
ii firmware-linux-nonfree 20170823-1 all Binary firmware for various drivers in the Linux kernel (meta-package)