[RESPONDED] Battery Drain When Asleep/Idle/Shutdown

Don’t have that option in settings. Is there a command to make it happen in the terminal?

Did you follow this guide when installing Fedora?
Fedora 39 Installation on the Framework Laptop 13 - Framework Guides

Specifically, this section here on battery optimization:

You might want to temper your expectations with Linux and comparing it to Apple Silicon. Apple has decades of power savings research and experience in ARM based hardware and billions invested in long term R&D that have made their silicon platform possible. They control the hardware and software stack.

In comparison I saw about 25% battery loose over a 12 hour period on standby with Ubuntu 22.04. With hibernation, you see none, and with the NVME drives this can be a relatively fast solution. If you have a lot of RAM it will take longer, as Linux has all but abadoned hibernation development, while Windows uses fast compression to really speed things up.

12 Gen gen i7 with 64gb RAM
Ubuntu LTS - hibernate - 52 seconds, wake - 46 seconds
Windows 11 - hibernate - 13 seconds, wake - 8 seconds

Now if you get past the need to do this as quick as possible, Linux hibernation solves the problem of standby power drain while maintaining your session.

1 Like

This is me since owning the FW13 with AMD.

Battery life is terrible under all circumstances, even compared to a previous x86 laptop (dell XPS with 11th gen Intel).

But I also wanna like it so much, I gave up on my chance to return it. I’m confident that some power savings will come from the kernel, and I got also a thin hope that Framework themselves can optimize things further with BIOS updates, although I’m not counting on it.

hey, thanks for that guide, i’ll take a look at it. i just upgraded from 38 to 39, so it wasn’t a fresh install. but i’ll take a look at the guide and see what it says.
is there a way to enable hibernate? i’m not seeing it in my settings anywhere. just see the option to sleep or shut down.
and yes, you’re definitely correct about Apple, and i am definitely not expecting Apple Silicon level power management, it just seems like it should last somewhat longer than what it does.

yeah i am going to push forward with it for a while longer and see what kinda updates, if any, can help it out. i almost went with a Tuxedo laptop or Slimbook laptop, because i’ve kinda jumped all in on Linux and they cater to that. and they make upgradable products too, though not to the extent that Framework laptops are upgradable, mostly because their ports aren’t modular. if i ever do make the switch, it’ll be to one of those 2 companies’ products.

got TLP installed and enabled. not sure how well it works with what its defaults are, but i’ll look more into configuring it. thanks again :+1:

I kept an eye on those, but while I love the fact that they’ve been supporting Linux for a while now, they often still come with a useless barrel charging port (no-go in 202x), and as you say they are not as upgradable and repairable as FW.
Actually I was even under the impression that some yt channels they sponsor have only recently started highlighting their easy to repair/upgrade capabilities since FW disrupted the market, as if they were kind of trying to benefit from the slipstream generated by FW.
FW’s mission remains at the top of the pyramid in terms of repairability/sustainability, at least in my book, and they deserve so much credit to go all-in with this philosophy.

And it takes some real balls in a market where the soldered-RAM-and-SSDs Apples of the world have such a large piece of the cake. So that’s why my wallet voted for Framework.

But yeah, efficiency leaves a lot to be desired :frowning:

1 Like

There is absolutely a way to get hibernation working on Linux.

It is somewhat more complicated if you are using an encrypted drive. I believe Fedora uses a default 1gb swapfile just like Ubuntu does.

You can use the swapfile which preserves the integrity of your hibernated image, but it is a little trickier and not that easy.

On the other hand, if you can partition your storage such that you have a 16-20gb swap partition, this is much easier to setup for hibernation.

Basically hibernation will not work if you don’t have a swap file or partition at least as large as your installed RAM amount. If your swap is large enough then executing the hibernate command will work. BUT if you don’t have your grub updated to point to that drive on resume you would not be able to load that hibernation image back up when booting back up.

Basically, there is exactly how to set all this up contained on this forum. What I would recommend is that you use the swapfile. Ubuntu and Fedora use this, and most people encrypted their drive.

Follow this here to see how to do that. This is for Ubuntu specifically, but I think it works on Fedora as well. I’m talking about it there:

1 Like

Check out the ubuntu FAQ regarding SWAP requirements (It is valid for almost all distributions). But check the mentions of hibernation/suspend.
https://help.ubuntu.com/community/SwapFaq

1 Like

TLP has definitely made an improvement, thanks for the suggestion. still going to look into swap more.

1 Like

Is hibernate the same as Sleep?
image

Sleep puts all components in low power consumption state.
Hybernat dumps the content of the current memory to disk (usually swap partition or paging file under windows - I guess …) and shuts down the computer (no power drain). When you power it back on, it read the memory dump back into memory and continues from there.

So no, not the same.

1 Like

Thanks for that very speedy response!

Is there a way to use hibernate with the 12th Gen Intel?

Like this maybe

There is one challenge when it comes to hibernating a Linux instance using the command line: you will need a swap space sufficiently large to encapsulate the entire RAM size, and potentially some extra for normal concurrent swap usage by applications. Thus, if you have 8GB of RAM memory in your system, you may want to allocate a 16-20GB swap space to ensure there is plenty. If you would like to learn how to do this, see our How to Create and Enable a Swapfile At the Linux Command Line guide.

Yes. That should be possible out of the box. But I don’t know which OS you use.
Usually it is disabled if there no space to store the RAM Dump into.

I’m running Windows 11

Sorry, don’t know how to do that there.
Only using Linux. But check on the net how to enable hibernation under Windows.
Note: They may also call it “suspend to disk”

1 Like

Looks like this has merged from Linux into a Windows thread.

For Linux, you will need adequate RAM and hibernate can be finicky. Amoun’s details are correct.

You can easily add hibernate to an existing fedora install which defaults to btrfs by creating a subvol for hibernate and adding the offset into the kernel cli. This has the advantage of not requiring a seperate partition and wasting space as well as working with luks YMMV

2 Likes

would there be any documentation on my distro’s forums or anything? or do you have anything to link to specifically? thanks