Linux Lite Forums

Hardware - Support => Start up and Shutdown => Topic started by: suzykersten on October 27, 2018, 07:41:23 PM

Title: Hibernate not saving any session data
Post by: suzykersten on October 27, 2018, 07:41:23 PM
Been using Linux Lite for a good few months now, and I love pretty much everything about it! The only problem I haven't been able to fix is hibernate issues. Anytime I got to hibernate, no session data is actually saved, I just boot back up as if I had fully shutdown the laptop.

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
Title: Re: Hibernate not saving any session data
Post by: TheDead on October 28, 2018, 01:03:08 AM
Hi,

A question for you; Does it do the same thing if you CHOOSE hibernate from the shutdown menu?
Oh, and if you had another OS, did the hibernate work?

Cheers!
Title: Re: Hibernate not saving any session data
Post by: suzykersten on October 28, 2018, 12:11:23 PM
Yup, regardless of whether I choose hibernate and regardless of whether I check or don't check the "save session for future logins", it doesn't change and I just get a normal reboot.

I had Windows before, and hibernate worked fine, would just close the laptop and it would hibernate itself after about 20 mins.

I have noticed that some apps seem to be lacking some kinda of recovery files that they expected to have, like Firefox always saying "we couldn't restore your tabs", focuswriter always saying that it coudln't pull up the last session, etc.
Title: Re: Hibernate not saving any session data
Post by: Jerry on October 28, 2018, 01:16:56 PM
Use Suspend if you want to resume your work. At the end of the day, both save into low power mode but Suspend is more reliable as it uses ram, just make sure you have plenty of it (ram).

Sent from my Mobile phone using Tapatalk
Title: Re: Hibernate not saving any session data
Post by: suzykersten on October 28, 2018, 06:31:41 PM
Yeah, I was doing that for a bit. The big reason I stopped is because I'll shut my laptop after class/when I need to move to a new place, forget to take it back out/get caught up in something else, then I won't open my laptop all day and by tomorrow it will be dead. Plus it was nice not having to worry about charging it every new time I opened it, cause after like 4 hours suspend has eaten a good chunk of battery.
Title: Re: Hibernate not saving any session data
Post by: xmen123 on February 20, 2019, 10:27:01 PM
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 (https://help.ubuntu.com/community/SwapFaq)
Title: Re: Hibernate not saving any session data
Post by: minesheep on April 20, 2019, 02:08:04 PM
Remember to backup BEFORE it is impossible

Computer Information:
Dell Inspiron 11-3168
Pentium CPU, 4gb RAM, 120GB SSD

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
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 (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.