#Swap hibernate

34 messages · Page 1 of 1 (latest)

worn ivy
#

Because hibernate is on in new install, i need guide of how to change (and delete) swap file so i can use my swap partition but leave the hibernate option present along with shutdown etc. thanks

untold wharf
#

i dont understand. you want to hibernate without swap file? or use a new one?

worn ivy
#

i already have swap partition, so i do not need swap file. but if i disable hibernate to delete swap file, the hibernate option will also gone so i need to use terminal to hibernate

#

/swap/swafile is a file. i do not use that because it's not stable on btrfs
i create this:
/dev/nvme0n1p6 partition 20G 0B -2

#

i used swap partition for my cachy os, fedora, and opensuse before so i did not need to set offset

#

stable = no offset needed

untold wharf
#

lsblk -f

#

cachyos,fedora,opensuse.. likely no btrfs on LUKS

worn ivy
untold wharf
worn ivy
#

alright i will stop complaining then

untold wharf
#

cat /proc/cmdline and lsblk -f should show enough info to reproduce it
maybe

worn ivy
#

the thing is omarchy set swap file to hibernate button, that is my problem. disable hibernate deleting swap file but also hibernate button. on cachyos, opensuse for instance i can use swap partition and hibernate button is present. that is my concern

untold wharf
#

check /etc/systemd/ dir

worn ivy
#

but hibernate button is not present anymore, only shutdown restart etc

#

i just need guidance how to enable hibernate button on omarchy, that is all. i can enable hibernate button on KDE plasma, gnome, even on ml4w.

untold wharf
#

specifically, check /etc/systemd/logind.conf or other files that might show up in grep -rni hiber /etc/systemd

#

can use those other OS (that work with hibernating with an encrypted swap btrfs subvolume) as a reference, check how they are doing it (lsblk -f, cat /proc/cmdline, and the /etc/systemd dir)

#

hibernation does not work on my laptop so, i'd be interested in how

worn ivy
untold wharf
worn ivy
untold wharf
#

the hibernate menu entry just calls systemctl hibernate

worn ivy
untold wharf
#

so just override omarchy-hibernation-available to exit 0
touch ~/.local/bin/omarchy-hibernation-available
chmod +x ~/.local/bin/omarchy-hibernation-available

worn ivy
untold wharf
#

no, override with new file so you don't actually run that one. to avoid editing ~/.local/share/omarchy

untold wharf
#

new file override might not work. in that case edit and commit in your omarchy dir

worn ivy
untold wharf
#

i may have edited line 5 in omarchy-menu to allow overrides

(you will need to git commit this so you don't break omarchy-update)