Web lists-archives.com

Re: Completely disable Hibernation

coco.20@xxxxxxxxxxx composed on 2018-03-13 18:13 (UTC+0100):

> Felix Miata wrote:

>> Remove resume=<whatever> and include 
>> noresume in all bootloader stanza(s) is how
>> I do it.

> I'm afraid I don't know what any of that means, I'm afraid.  Could you
> expand?

After you turn on your PC, and the PC's branding and/or BIOS information
screen(s) clear, you should get a brief menu that offers an opportunity to
select how to proceed. Usually that opportunity is presented by a bootloader
application named Grub, which in Stretch is version 2.0x.

The menu you see is a result of the content in /boot/grub/grub.cfg.
/boot/grub/grub.cfg is created programmatically whenever a kernel is added or
removed and various other times. The programming that creates it can be
customized by user changes to the files in /etc/grub.d/ and in /etc/default/grub.

You can change the behavior of any particular boot by striking the "e" key when
the boot menu appears, then adding, removing or modifying what appears on the
screen after striking the "e" key. It is at this point that you can remove the
current stanza string that begins with "resume=", or modify it to prepend "no"
and remove the characters that follow "=".

If the boot-time edit produces a result you wish to keep, you should modify
GRUB_CMDLINE_LINUX_DEFAULT and GRUB_CMDLINE_LINUX in the file /etc/default/grub
to include "noresume". Once that is done, the next time /boot/grub/grub.cfg is
rebuilt via grub-mkconfig or update-grub your changes will be automatically

$ man /etc/default/grub

An additional option to answer the original question would be to reconfigure
swap to be smaller than the amount of installed RAM.
"Wisdom is supreme; therefore get wisdom. Whatever else you
get, get wisdom." Proverbs 4:7 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/