I did a fresh install again on a new laptop dual boot Windows. I created a partition for linux and used replace partition in the installer. Ive been messing with this trying to figure out the best setup. I want the system when i close the lid to hibernate. Right now it is set to suspend but i see i don’t have swap or hibernate so I’m not sure it’s doing that or just shutting down the display. I left it overnight and battery was dead already. My fstab is them following.
Can i add hibernation after the fact? I need swap file to do that and add info to my fstab?
If i do this I’m looking to have the laptop shutdown on hibernation. Is that the way it hibernates?
Also yes, hibernate actually fully powers off the machine after saving your current state into your swap and setting it to resume from swap. However, I will say, if you have an SSD, hibernation doesn’t get you much. Resuming from hibernate vs. power off/on when system is on an SSD is pretty much the same speed (possible 1-3 seconds slower w/ power on, but very similar).
Yes, you can definitely add hibernate after the fact, but there’s a LITTLE more to setting up hibernate from a swapfile than from a swap partition.
I just might wipe this off again and install it with hibernation and try it first. Then i will add Windows maybe? Everything seems to work including backlighting. I’ve been experimenting with it. It’s not that I mind Windows it’s the 3rd party crapware and Microsoft’s own crap it installs. I usually take everything out except for Windows 10 and then i add what i want with software. Not Windows store apps.
Can you explain how i do this before i end up doing another bare metal install? First make a swap file. Then i have to add stuff to fstab? Plus i have to edit grub?
You need a swap partition and resume=swap_device kernel parameter to hibernate your system state, although this works a bit differently if encryption is involved.
I actually use fallocate for creating mine, so that I can specify the size in GiB (Gibibytes), so that it’s truly 8. Easier than doing the maths for dd.
Eh, it’s not hard. Do it a couple times in a VM and it’ll be simple as anything. Yeah, a few extra commands, but still easy. Just…not worth it to me since I moved to SSD’s.
IDK, simply giving a list of commands to blindly copy and paste doesn’t really help
Rick understand, which IMHO doesn’t really help him in the long run.
I understand EndeavourOS is not Arch, but a certain degree of encouragement to learn should be given for such a simple task.
1 . Create swap partition.
2 . Set resume kernel parameter to swap partition UUID.