To know your swap partition, run swapon -s. Let's say it reports /dev/sda5.
Open /etc/default/grub and find the line with GRUB_CMDLINE_LINUX_DEFAULT=. This
is the list of kernel command line options GRUB will pass to Linux. Add
resume=/dev/sda5, so the line
GRUB_CMDLINE_