[TRACKING] High Battery Drain During Suspend

:unamused:

Best practice is to shut down your laptop if you arenā€™t going to be using your laptop all day. Itā€™s better for the machine, and with the speed of SSDs these days there is really nothing to it. With all the grief this suspend mode battery life issue seems to be causing I just thought Iā€™d mention it.

Taking a couple minutes to set your workflow back up seems like a very minor inconvenience. Honestly, neglecting to properly shut down your computer if you arenā€™t going to be using it seems more like laziness than a legitimate workflow aide.

2 Likes

Whereā€™s that line drawn between 30 minutes, 2 hours, 4 hours, 5.5 hoursā€¦?

In what sense is it better?

Having the right tool doing the right thing is all about laziness. Having computersā€¦is all about laziness. I would hate to walk over (using a car is lazy, right?) to Blockbuster to rent a video. Why do something that can be automated or have a shortcut?

Suspend IS a feature. Itā€™s just really poorly implemented (by Intel?).

I mean, OMG, itā€™s a feature thatā€™s been a feature for 25+ yearsā€¦ And ā€˜lazinessā€™ is all you got to say about not to use it? You have issues.

You seem to be mixing up ā€œunused durationā€ with ā€œneeding a resume stateā€. People need a resume-able state, regardless of the unused duration. The ā€˜choiceā€™ between making use of a power off state, vs a resume-able state is a personal choice. Who are you to judge on someone elseā€™s usage decision?

You are a person, a parent. Respect the other personā€™s choices and donā€™t overstep your authority. (This is a return for your overstepped judgement. Should you not have done so, this wouldnā€™t need to be said.)

9 Likes

Could you please stop hijacking this thread? This is about an issue some of us are experiencing. If you want to go argue against the utility of suspending a laptop, please open a new topic and have fun.

14 Likes

:joy:

To be clear, I donā€™t take issue with the suspend feature. I use it all the time; it comes in handy on a daily basis. The benefits of being able to walk away from a session and come back with everything preserved donā€™t need to be explained.

There is a difference between that, and closing the lid to leave your laptop in your bag for days. That is just not properly taking care of your machine.

The incredulity at battery drain is also a bit misplaced I think. People set these laptops up with the largest RAM sticks they can afford and then are puzzled when the battery drops off in suspend. The computer has to maintain a constant electrical current to hold that session in memory. :man_shrugging:

I understand the convenience of being able to toss your laptop in your bag without giving it much thought, but if the problem is ā€œhigh battery drain during suspendā€, then shutting it off seems like a no-brainer.

First of all, I donā€™t have any authority here. Iā€™m just a regular person. Second, I was just sharing thoughts and opinions I have from my own personal experience, because I thought I had a viewpoint that was relevant to the discussion here. Thatā€™s what a forum is for.

I do respect your choice to do whatever youā€™d like with your computer. I honestly couldnā€™t care less if you ever shut it off at all. Also, I absolutely understand if you donā€™t like my adviceā€“you are welcome to ignore it. :wink:

1 Like

Thereā€™s an issue, something is not working correctlyā€¦ Itā€™s frustrating having to read these comments that is in no way helping fix the issue, I know Iā€™m now doing the same.

Iā€™d imagine months to come, people will use this thread to figure what could be a problem with their laptop, and how to fix it but will need to read through all this stupidity before finding the solution.

Please have a read.

3 Likes

Please show respect for others here and address the issue directly.

Weā€™d rather not have to close the thread if thereā€™s a legitimate issue to address.

4 Likes

Hi again

The reason Iā€™m active on this thread is to log my efforts in tuning my framework laptopā€™s performance and help others do the same. The comments on this thread are not complaints or cribs, they are valid concerns depending on each personā€™s use.


I repeated my overnight experiment with deep sleep enabled instead of s2idle with the HDMI card inserted. Over 11.5 hours, the laptop drained 16%. That is approximately 1.4% per hour.

This is a dramatic increase from s2idle with the HDMI card inserted. The downside is that it takes ~10 seconds for the laptop to wake from deep sleep. The laptop almost immediately wakes from s2idle sleep.

I will be trying some other methods (like powertop tuning or tlp) to get the HDMI card to stop drawing power. Will keep this thread posted.

8 Likes

I have two USB A and two USB C expansion cards on my laptop and with deep sleep mode I observe a similar battery drain during suspend @Raghav_Subbaraman, between 1~2%/h. And this is with TLP enabled, which according to powertop sets everything to a ā€œgoodā€ power management without touching any setting.

I donā€™t know if such a battery drain is normal but I tested with the two other laptops I have at home and they both have a similar battery drain during sleep. One is running linux and the other is running Windows 10. But these two machines are gaming computers with power hungry GPU and all, it should not affect suspend battery life but maybe itā€™s worth noting. I donā€™t know how it compares against other laptops of the same catergory though.

In my opinion the s2idle sleep mode consumes so much energy that it is useless but the drain seems pretty logical to me given that the machine basically stays on.

Maybe IRST is worth a try to find a middle ground between power consuming deep sleep and slow to wake hibernation ?

2 Likes

Thanks for the test @zoui

I installed tlp and used powertop to put everything to recommended settings too. However, these did not affect the battery drain during suspend. I might not enable hibernation for my use as Iā€™m satisfied with deep sleepā€™s power draw.

I do get slightly better battery performance (while normal day-to-day use) because of tlp and powertop.

The HDMI card issue is still unsolved.

1 Like

Regarding HDMI maybe you can try to turn off the corresponding USB port before suspend and re-enable it on wake up.

Some hints about disabling (ā€œsuspendingā€) USB ports :

And how to hook scripts to suspend/wake up (with systemd) :
https://wiki.archlinux.org/title/Power_management#Sleep_hooks

4 Likes

If turning off the USB ports during suspend helps, then is this something that the embedded controller firmware can do? You only need to keep those ports powered that have USB remote wakeup enabled (like a USB keyboard/mouse plugged in), and turn off ports connected to devices without remote wakeup (like the HDMI card, or a USB A card with nothing plugged in).

3 Likes

To those who is using linux mint (should also work on ubuntu), i have write a script which would automatically turn to deep-sleep when not plugged in and switch to s2idle when plugged in

please follow the the comment i made here: Ubuntu 18.04 - Dell XPS13 9370 no longer suspends on lid close - Ask Ubuntu

2 Likes

I retried testing power use during s2idle with an HDMI card plugged in, changing the ā€œautosuspendā€ power options of the relevant USB port.

Tested in Fedora 35, Linux 5.16.9-200.fc35.x86_64

I changed the status on /sys/bus/usb/devices/[device]/power/control and autosuspend, checking that the system was suspended (or not) by checking runtime_status.

s2idle with HDMI card plugged in, runtime_status = suspended: 1.23 W
s2idle with HDMI card plugged in, runtime_status = active: 1.24 W

so I donā€™t think thereā€™s actually a difference here. It does seem this is a bit of an improvement over the measurements I took with the 5.15.18-200 kernel.

1 Like

I have opened a ticket to report the issue to Framework. Support told me they forwarded it to their engineering team. Letā€™s wait and see :slight_smile:

1 Like

Quick update from framework:

We are working with our manufacturer and Intel on potential firmware changes that could improve the issue youā€™ve reported, but donā€™t have a specific timeline we can communicate at this time given the collaboration and work required.

Letā€™s wait and see

5 Likes

Hi everyone, jumping in with some weird but interesting numbers here. I run Ubuntu 22.04, read the couple posts about battery optimisation already, I installed powertop, tlp, etcā€¦ Every tunable is ā€œgoodā€ in powertop, I get a decent 5-6w idle with the laptop running, and when sleeping (s2idle) I measure a consumption of just about 1w at the USB-C plug (using an USB-C power meter, while the battery is full). I let the laptop sleep for 3:30 hours, and the plug still reports about 1W consumption average (3.6Wh after 3h30min). This looks pretty good to me, it would mean the laptop can last about 55h in sleep which is fine. But unforunately, after I unpluged the laptop and resumed after 16h, the battery was almost empty, 48Wh had been consumed according to the power statistics, this averages at 3W compared the 1W I saw when plugged-in. Also the laptop was a bit warm. Iā€™m very surprised by this? why would the laptop consume more power during sleep unplugged? maybe it wasā€™t really sleeping and woke up when I unplugged it? I reproduce this problem twice already (the first time I didnā€™t measure). Iā€™ll try to run more tests to see if I can help pinpoint the problem but if you have any clue on this difference: 1w when plugged-in, 3w when unplugged, Iā€™m interested :slight_smile:

2 Likes

It sounds like youā€™re comparing quantities measured through different means:

if I understand correctly, you measured the power draw while plugged in through an external power meter.

For unplugged, you based your power usage on a difference in charge as reported by the battery.

The two should be comparable, but since youā€™re using two different methods, the difference may come from at least one of the two methods not being properly calibrated.

Since the system is not suspended under s2idle at all, it quite conceivable that some glitch in the operating system ends up using more CPU when it is in ā€œunpluggedā€ mode than when it is ā€œplugged inā€ ā€“ possibly just from extra activity from updating the battery charge somewhere. It would be silly, but quite possible.

Yes there can be a small offset but not this big, 3W basically means the laptop is running, and this drain speed is abnormal. This night I tried something slightly different: I unplugged the laptop first, and then put it to sleep (by closing the lid). This morning after 11h50min the battery reports only 9Wh drained, which means less than 1W average, so that means the sleep is working fine this time and with pretty good results. So I suspect unplugging the laptop during sleep is causing some trouble and higly increasing battery drain (maybe itā€™s waking it up or changing the power level somewhere). Iā€™ll make a couple more tests to confirm this result so then we can investigate what happens when unplugging.

2 Likes