Disable hibernation after selecting "Swap with hibernate" on setup

Hello!

When installing EOS I selected the option “Swap with hibernate” (not exactly like this) during partitioning.

Is there any way to revert this? I tried masking the hibernate.target and hybrid-sleep.target with a systemctl command, but no luck.

Currently when I restart or shut down, it just hybernates, from what I know

Thank you!

What bootloader: systemd-boot or grub?

Also, I guess you use dracut if you went with the default. Or mkinitcpio?

Post the output:

pacman -Q | grep -E 'grub|dracut'

cat /etc/fstab

cat /etc/default/grub

cat /etc/kernel/cmdline

I use Grub and Dracut. Here is the output since you asked it:

- → pacman -Q | grep -E ‘grub|dracut’

dracut 111_eos-1
eos-dracut 1.7-1
grub 2:2.14-1

—> cat /etc/fstab

/etc/fstab: static file system information.

Use ‘blkid’ to print the universally unique identifier for a device; this may

be used with UUID= as a more robust way to name devices that works even if

disks are added and removed. See fstab(5).

UUID=D3B0-CF95 /boot/efi vfat fmask=0137,dmask=0027 0 2
UUID=85df958d-19fe-47b3-9bd5-0cf604075ed0 / ext4 noatime 0 1
UUID=62ecd511-89b7-42a8-a1ce-657a98283169 swap swap defaults 0 0
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0

—> cat /etc/default/grub

GRUB boot loader configuration

GRUB_DEFAULT=‘0’
GRUB_TIMEOUT=‘1’
GRUB_DISTRIBUTOR=‘EndeavourOS’
GRUB_CMDLINE_LINUX_DEFAULT=‘nowatchdog nvme_load=YES resume=UUID=62ecd511-89b7-42a8-a1ce-657a98283169 lo
glevel=3 quiet splash’
GRUB_CMDLINE_LINUX=“”

Preload both GPT and MBR modules so that they are not missed

GRUB_PRELOAD_MODULES=“part_gpt part_msdos”

Uncomment to enable booting from LUKS encrypted devices

#GRUB_ENABLE_CRYPTODISK=y

Set to ‘countdown’ or ‘hidden’ to change timeout behavior,

press ESC key to display menu.

GRUB_TIMEOUT_STYLE=menu

Uncomment to use basic console

GRUB_TERMINAL_INPUT=console

Uncomment to disable graphical terminal

#GRUB_TERMINAL_OUTPUT=console

The resolution used on graphical terminal

note that you can use only modes which your graphic card supports via VBE

you can see them in real GRUB with the command `videoinfo’

GRUB_GFXMODE=auto

Uncomment to allow the kernel use the same resolution used by grub

GRUB_GFXPAYLOAD_LINUX=keep

Uncomment if you want GRUB to pass to the Linux kernel the old parameter

format “root=/dev/xxx” instead of “root=/dev/disk/by-uuid/xxx”

#GRUB_DISABLE_LINUX_UUID=true

Uncomment to disable generation of recovery mode menu entries

GRUB_DISABLE_RECOVERY=‘true’

Uncomment and set to the desired menu colors. Used by normal and wallpaper

modes only. Entries specified as foreground/background.

#GRUB_COLOR_NORMAL=“light-blue/black”
#GRUB_COLOR_HIGHLIGHT=“light-cyan/blue”

Uncomment one of them for the gfx desired, a image background or a gfxtheme

GRUB_BACKGROUND=‘/usr/share/endeavouros/splash.png’
#GRUB_THEME=“/path/to/gfxtheme”

Uncomment to get a beep at GRUB start

#GRUB_INIT_TUNE=“480 440 1”

Uncomment to make GRUB remember the last selection. This requires

setting ‘GRUB_DEFAULT=saved’ above.

#GRUB_SAVEDEFAULT=true

Uncomment to disable submenus in boot menu

GRUB_DISABLE_SUBMENU=‘false’

Probing for other operating systems is disabled for security reasons. Read

documentation on GRUB_DISABLE_OS_PROBER, if still want to enable this

functionality install os-prober and uncomment to detect and include other

operating systems.

GRUB_DISABLE_OS_PROBER=false
GRUB_EARLY_INITRD_LINUX_STOCK=‘’

—> cat /etc/kernel/cmdline

cat: /etc/kernel/cmdline: No such file or directory

In

Remove resume=UUID=62ecd511-89b7-42a8-a1ce-657a98283169

from this line:

Also remove this file: /etc/dracut.conf.d/resume.conf

Then do:

sudo dracut-rebuild

And:

sudo grub-mkconfig -o /boot/grub/grub.cfg

:warning:
Please note: make sure to have your Live USB at hand in case something goes wrong and you need to rescue/repair the system.

If the programs that were opened before I rebooted were meant to be reopened at their previous state after I rebooted,

…then these steps unfortunately didnt work. Unless it’s meant to be like this?

Thanks either way!

Are you using KDE Plasma? If yes, do you use restore session or something like that in the settings.

The steps above would effectively disable hibernation so I suspect you are using some “restore session” function in your desktop.

Oh.

Well, that fixed it.

Thanks!

Glad you fixed up things! And welcome to the forum @xristoduloc !