cosmic-epoch icon indicating copy to clipboard operation
cosmic-epoch copied to clipboard

Feature request: Hibernate

Open ivlis opened this issue 1 year ago • 10 comments

I'm not sure if that's by design or it's a bug, but I don't see a sleep option in the power menu:

screenshot-2024-08-30-13-07-38

The settings also have no option to configure sleep for the laptop lid state.

ivlis avatar Aug 30 '24 14:08 ivlis

Suspend is sleep.

git-f0x avatar Aug 30 '24 14:08 git-f0x

Okay, true; that means hibernate is missing :)

ivlis avatar Aug 30 '24 14:08 ivlis

I think the general trend in distros is to remove hibernate, because it can have issues.

git-f0x avatar Aug 30 '24 15:08 git-f0x

this is also mentioned in Issue: Feature Request - #537 I'm also looking forward to these options hopefully making it to this DE.

@git-f0x - Is this considered a distro? I was under the impression that this is a DE. These features exists on in POP! OS.

locomot1f avatar Aug 30 '24 15:08 locomot1f

No, it is a DE. But I've seen some distros (e.g. Fedora) not having a hibernate option, due to issues. It could probably be conditionally added if it's a really wanted feature (though sleep and shut down are probably enough for most people). Edit: While I don't have an install of Pop 22.04 to check, by default, Pop has 4GB of on-disk swap, which isn't enough for hibernate when having >4GB of RAM.

git-f0x avatar Aug 30 '24 15:08 git-f0x

i had to do my research on the difference between Hibernate and Suspend.

locomot1f avatar Aug 30 '24 15:08 locomot1f

IMO hibernate really isn't worth it. Sleep/suspend has lasted me weeks on a full battery

Department-stack avatar Aug 31 '24 00:08 Department-stack

Hibernate is worth a shot if it can be implemented. Using hibernate battery will also last longer compared to sleep. During sleep if your battery falls to zero your entire work that was open on your system will be destroyed if not saved. Hibernate allow saving the state of apps so no matter if battery is emptied, data will be available on next boot as it was left before hibernating the system.

If implemented it can also be used to prevent data loss when during sleep if battery falls below 5% system will hibernate before state of system is killed

iamkartiknayak avatar Sep 17 '24 18:09 iamkartiknayak

If implemented it can also be used to prevent data loss when during sleep if battery falls below 5% system will hibernate before state of system is killed

I haven't thought about that

Department-stack avatar Sep 17 '24 20:09 Department-stack

That's how it works in Windows. We can set a battery percent threshold, below which system will hibernate

iamkartiknayak avatar Sep 17 '24 20:09 iamkartiknayak

Hibernation is handy when you are multi-tasking, when for example researching a project for which you have different apps open. Suddenly you have to go, and you don't know when you are back: hibernate your system, doesn't use power. Suspend uses power, so when the battery runs out, you loose your workflow.

But you can use hibenation, if you have set it up when installing your distro, by evoking: systemctl hibernate

feikedonia avatar Dec 17 '24 19:12 feikedonia

I'm also tired of the endless workarounds and articles required just to enable hibernation. Even after all that hassle, it still doesn't work properly. That's why I fully support adding this feature—it’s so underrated.

mohamed591195 avatar Dec 19 '24 05:12 mohamed591195

I've issued a feature request against pop-os/iso to make installing hibernation on Pop!_OS as seemless as possible. https://github.com/pop-os/iso/issues/343

feikedonia avatar Dec 19 '24 15:12 feikedonia

The lack of hibernate option is one of the big reasons I've moved back to Windows after each attempt at Linux desktop. I'm really hoping to stick to Fedora COSMIC this time, but hibernate would definitely make adoption easier for people coming from Mac and Windows.

raphmim avatar May 10 '25 19:05 raphmim

If you have a big enough swap-partition, you can set a keyboard-short-cut for the command systemctl hibernate.

Settings → Input-devices → Keyboard → Keyboard-short-cuts → Custom

Image

feikedonia avatar May 13 '25 10:05 feikedonia

If you have a big enough swap-partition, you can set a keyboard-short-cut for the command systemctl hibernate.

Settings → Input-devices → Keyboard → Keyboard-short-cuts → Custom

Image

thanks for the idea, i think a keyboard shortcut is the best option until it can be added to the DE.

I am running cosmic alpha and followed the instructions here and Hibernate works great. https://support.system76.com/articles/enable-hibernation/

loganmancuso avatar Aug 05 '25 13:08 loganmancuso

There are some linux systems which have problems with suspend, it isn't just the other way around.

dairymilkbatman avatar Oct 02 '25 05:10 dairymilkbatman

There are some linux systems which have problems with suspend, it isn't just the other way around.

Yes, but that's the user's decission, aint it? You could just provide a warning.

That's my opinion.

feikedonia avatar Nov 11 '25 09:11 feikedonia