Battery drains in about 10 hours when the computer is asleep with Ubuntu 18.04, it is a lenovo y520 (7700hq, 1060 with bumblebee).
When I tested no USB devices were plugged in, actually nothing was plugged in.
The sleep mode is s2 - deep. I am not interested in hibernation (it is quite slow and takes a lot of space).
In windows and Mac OS (hackintosh) sleep mode uses 1 or 2% of battery in a day.
After resuming from suspend, use this command in the terminal:
If you see this:
It could mean when you suspended the CPU's were not put to sleep as per his bounty Q&A a couple of years ago: systemd suspends system but upon resume kernel then enters sleep and wake-up
If so, I'm sad to report the problem persists to this day on my newest laptop just as it did on that older laptop.
Problem since 2012?
This old email chain: Re: Kernel stops at "PM: Preparing system for mem sleep", never makes it to "Freezing user space processes ... " has a similar problem.
From my log file today:
Some other interesting points is it often takes 5 to 8 seconds to suspend when it should be about 1 second. This bug is reported in many places too.
If you don't have the same problem in the previous sections and, your laptop stays warm when suspended, then your fix maybe here: Ubuntu 18.04 - Dell XPS13 9370 no longer suspends on lid close
On my old computer, I solved my suspend issues by adjusting some settings in the motherboard BIOS.
For my hardware:
On the "Advanced" page in BIOS under "CPU configuration", I set "Enhanced Alt State" to ENABLED, and under "ACPI Settings" , I set "Suspend to RAM" to AUTO and "ACPI table" to ENABLED.
After I made these changes, I could suspend my PC.
Note: BIOS settings and motherboard firmware vary by manufacturer and model