There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

Asyx ,

community.frame.work/t/…/53080

This worked for me you just need to be careful to use your wi-fi device. I have a 2022 G15 which has the same wifi chip so for me, even though I don’t have a Framework, it worked exactly as described in the guide.

skullgiver ,
@skullgiver@popplesburger.hilciferous.nl avatar

Depends on your distro. You need to set up all the requirements for hibernation (like “enough swap space to store current memory contents + whatever is left in swap” and zswap doesn’t count).

IIRC Fedora defaults to ZRAM instead of swap, so you probably need to set up a swap partition first. I don’t know if you need to disable ZRAM, but you probably need enough swap space on disk to store the contents uncompressed.

You’ll also need to modify the kernel parameters/initramfs configuration to add the resume parameters in the right spots, or the system will hibernate but not try to resume your session on boot.

Then there may be some selinux issues depending on if Fedora fixed them or not. I don’t think hibernation is supported by default on Fedora so you may need to tweak things like polkit files to get the permissions right.

I believe running the command sudo systemctl hibernate should manually induce hibernation. You can use it to test if your computer even has the ability to hibernate before figuring out what permission tweaks you need for KDE. Make sure you’ve saved your work before trying that, though, as not all systems will wake from hibernation without further troubleshooting.

You may also need to disable security settings like secure boot and/or kernel lockdown mode it hibernation might be refused.

Mwa OP ,
@Mwa@thelemmy.club avatar

oh alr

ReversalHatchery ,

You’ll also need to modify the kernel parameters/initramfs configuration to add the resume parameters in the right spots, or the system will hibernate but not try to resume your session on boot.

In the right spots? I was in the impression you only need to do that so one place, in the bootloader’s boot entry (or, yeah, if there are multiple entries then possibly each one). Which other places should I also look?

Also, I’ve recently set up hibernateion for someone, and IIRC forgetting the resume= kernel parameter is not that critical today because it will immediately resume instead of completing shutdown.

skullgiver ,
@skullgiver@popplesburger.hilciferous.nl avatar

It depends on the existing bootloader configuration. I think for Fedora you need to add a flag in a dracut config file somewhere, I don’t know if that also takes care of the bootloader configuration.

RmDebArc_5 ,
@RmDebArc_5@sh.itjust.works avatar

Here is the official fedora guide

Mwa OP ,
@Mwa@thelemmy.club avatar

ty

PotatoesFall ,

I’ve tried to get hibernation working on like 3 different distros. Followed tutorials exactly step by step. Never works.

Linux doesn’t do hibernation. Anybody who says otherwise is not living in the same universe as me.

Mwa OP ,
@Mwa@thelemmy.club avatar

how come opensuse has that button

PotatoesFall ,

Last time I had openSUSE hibernation didn’t work. I am just convinced that the entire linux community is gaslighting me about hibernation lol

Mwa OP ,
@Mwa@thelemmy.club avatar

oh

woelkchen ,
@woelkchen@lemmy.world avatar

how come opensuse has that button

Having that button doesn’t automatically result in that feature actually working. The development stakeholders don’t seem to be interested in it actually working other than chance and given that even Windows and macOS moved to “always connected” suspend instead of full sleep with hibernation, I don’t see a push for feature parity on the horizon (that’s why Windows laptops and more recently also MacBooks often cannot wake up because the battery is depleted). It’s really bad and IMO one of the few big problems to solve (at least on my Windows notebook because of its broken regular suspend, I can force it into hibernation).

I had somewhat decent success making a swap file (not a partition):

sudo fallocate --length 16600MiB /swapfile;sudo chmod 600 /swapfile;sudo mkswap /swapfile;sudo swapon /swapfile;sudo nano /etc/fstab

Then add /swapfile swap swap defaults 0 0 the fstab file now open in Nano.

ReversalHatchery ,

How were you setting it up? Maybe you just always made the same mistakes.
From memory, this is how I did it last time:

  • create swap partition of RAM size
  • put that in fstab, reffered to by PARTUUID
  • activate swap with swapon -a, or just reboot
  • edit bootloader config to have resume=PARTUUID=yourpartuuidxxxxxxxxxxx in the kernel parameters list. Be sure to edit the right file, not one that will be overwritten. For GRUB2, this is /etc/default/grub I think.
  • if the bootloader’s config system works like this, regenerate the complete config. On openSUSE, the file mentioned above has a comment at the top with the command you need to use. It’s something like grub2-mkconfig -o /boot/grub.cfg but do not copy this command because it’s probably inaccurate
  • save your work while you’re unsure if it will work
  • test hibernation

I have done this on 2 PCs already.
If you have garbage hardware, like a chromebook that only allows expandable storage through a micro SD card reader, which can randomly lose its mind so that Linux resets it on resume, then it may not work ever or only unreliably. But with SATA connected storage you shouldn’t have this problem.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines