[TRACKING] Suspend on linux drains a lot of battery compared to other laptop

@Mario_Limonciello, who both authored that script and works at AMD, might have an additional insight. But, seeing that you’re using Linux Mint 21.3 with 6.8.0 kernel, I’m not sure you would benefit from new AMD-released firmware anyway - I think, Mint is known for being somewhat behind on new hardware updates.

With the newer versions of Linux kernel, you don’t even need to set that parameter anymore.

1 Like

The workaround is adding nvme.noacpi=1 to GRUB configuration to force RAM to s2idle

This breaks s2idle on AMD systems. Don’t do it.

2 Likes

Thanks. Roger that. I’ll have a stern word with ChatGPT!

FWIW I’ve also modified the script to make this case clearer.

Finally had some extra time today to run the script for an hour.

Full log:

Haven’t gone through the log completely and I am not that well versed on these things but atleast quickly going through the log nothing special pops up from it?

2024-09-16 08:59:14,750 INFO:	○ Suspend count: 1
2024-09-16 08:59:14,750 INFO:	○ Hardware sleep cycle count: 1
2024-09-16 08:59:14,751 INFO:	○ Wakeup triggered from IRQ 9: ACPI SCI
2024-09-16 08:59:14,751 DEBUG:	Used Microsoft uPEP GUID in LPS0 _DSM
2024-09-16 08:59:14,751 INFO:	○ Woke up from IRQ 9: ACPI SCI
2024-09-16 08:59:14,751 INFO:	○ gpe0B increased from 180 to 198
2024-09-16 08:59:14,752 DEBUG:	ACPI Lid (/proc/acpi/button/lid/LID0/state): open
2024-09-16 08:59:14,752 INFO:	✅ Userspace suspended for 1:00:02.311729
2024-09-16 08:59:14,752 DEBUG:	Kernel suspended for total of 0:59:58.860000 (99.90%)
2024-09-16 08:59:14,753 INFO:	✅ In a hardware sleep state for 0:59:58.485473 (99.89%)
2024-09-16 08:59:14,755 DEBUG:	BAT1 charge level is 3423000 µAh
2024-09-16 08:59:14,755 INFO:	🔋 Battery BAT1 lost 27000 µAh (0.66%) [Average rate: 0.0A]

But is this something to worry about:
Woke up from IRQ 9: ACPI SCI

Nothing looks wrong there. You programmed a one hour sleep:

2024-09-16 07:59:10,438 DEBUG: Suspend timer programmed for 1:00:00

It woke up from hardware sleep exactly one time:

2024-09-16 08:59:14,750 INFO: ○ Hardware sleep cycle count: 1

Nearly the entire thing was spent in the hardware sleep state.

2024-09-16 08:59:14,752 INFO:	✅ Userspace suspended for 1:00:02.311729
2024-09-16 08:59:14,752 DEBUG:	Kernel suspended for total of 0:59:58.860000 (99.90%)
2024-09-16 08:59:14,753 INFO:	✅ In a hardware sleep state for 0:59:58.485473 (99.89%)