Suspend/sleep not working

I meant it quite literally create swap and then use

lsblk -f

To get swap’s UUID as can be seen here,

NAME        FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
zram0                                                                              [SWAP]
nvme0n1
├─nvme0n1p1 vfat   FAT32       C49B-DE4E                             298.8M     0% /boot/efi
├─nvme0n1p2 btrfs              6a7bcee6-f3ae-4c03-b6b0-7cb27fb4c8d4  260.4G    43% /var/tmp
│                                                                                  /root
│                                                                                  /var/cache
│                                                                                  /var/log
│                                                                                  /srv
│                                                                                  /home
│                                                                                  /
└─nvme0n1p3 swap   1     swap  1b9b6f2d-a19b-4eee-b2bf-6af31dfdf566                [SWAP]

Once you have the UUID (1b9b6f2d-a19b-4eee-b2bf-6af31dfdf566 in my case). Go to garuda boot options and in the field kernel parameters append this

resume=UUID=<UUID-of-swap-partition>

eg, for me this would be,

resume=UUID=1b9b6f2d-a19b-4eee-b2bf-6af31dfdf566

to the start of the kernel parameters string. once done click apply. It will regenerate grub.cfg.

Sure, take your time. :+1:

Here from kernel.org,

resume=         [SWSUSP]
                        Specify the partition device for software suspend
                        Format:
                        {/dev/<dev> | PARTUUID=<uuid> | <int>:<int> | <hex>}

In case you wanna read more about the various kernel command line parameters that we use → The kernel's command-line parameters — The Linux Kernel documentation

3 Likes