04-20-2019, 06:08 PM
Remember to backup BEFORE it is impossible
Yes ubuntu 18.04 and ubuntu 18.04 based distros use swapfile by default, but they can also use swap partition if configured. Swapfile is created when you installed your system and it is maxed out at 2GiB or 5% of your SSD storage (5% of 120GiB SSD is 6GiB) by default. Here is the problem your swap partition/file must be equal or larger than your RAM=4GiB and now it is 2GiB
Do this
But instead of getting your swap partition UUID from fstab create swap partition with Gparted and then do steps 2-6 from xmen123's post.
Or reinstall your system and select "something else" when it asks how to install and do bigger swap partition manually.
Or live without hibernation and only use suspend it shouldn't use more than 15% of battery life if you suspend it for 4hours. Mine machine uses about 40% of battery life in 24h when suspended.
(10-27-2018, 11:41 PM)suzykersten link Wrote: Computer Information:
Dell Inspiron 11-3168
Pentium CPU, 4gb RAM, 120GB SSD
(10-27-2018, 11:41 PM)suzykersten link Wrote: I haven't found many other people sharing this problem, so I'm not sure if it just might be a hardware issue. I noticed that LL didn't make a swap partition when I first installed it, though from what I understand Ubuntu moved away from that towards swap files, so that might not be an issue.
Computer Information:
Dell Inspiron 11-3168
Pentium CPU, 4gb RAM, 120GB SSD
Yes ubuntu 18.04 and ubuntu 18.04 based distros use swapfile by default, but they can also use swap partition if configured. Swapfile is created when you installed your system and it is maxed out at 2GiB or 5% of your SSD storage (5% of 120GiB SSD is 6GiB) by default. Here is the problem your swap partition/file must be equal or larger than your RAM=4GiB and now it is 2GiB
Do this
(02-21-2019, 03:27 AM)xmen123 link Wrote: what worked for me
1.- Copy the UUID number series of your swap
$ cat /etc/fstab
UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
2.- Edit the file / etc / default / grub and look for the line
GRUB_CMDLINE_LINUX=""
within the "" sticks the UUID swap series thus remaining
GRUB_CMDLINE_LINUX="resume=UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
3.- Update the grub
$ sudo update-grub
4.- Check the file "resume" is the same as the UUID of your swap
$ cat /etc/initramfs-tools/conf.d/resume
5.- update the initramfs
$ sudo update-initramfs -u
6.- Restart
Note: it works on touch
the only inconvenience that I see is that once hibernated when resume does not ask for the password of the user, that picardia ;D
https://help.ubuntu.com/community/SwapFaq
But instead of getting your swap partition UUID from fstab create swap partition with Gparted and then do steps 2-6 from xmen123's post.
Or reinstall your system and select "something else" when it asks how to install and do bigger swap partition manually.
Or live without hibernation and only use suspend it shouldn't use more than 15% of battery life if you suspend it for 4hours. Mine machine uses about 40% of battery life in 24h when suspended.