Allegedly, on or about 23 April 2017, Sudhir Khanger sent:
Anytime I suspend my device it shutdowns and obviously I lose all my
unsaved work.
I always thought it would be wiser if suspend also did the RAM dump to
drive, so that when the computer was woken up, it would first try to
resume from RAM, then try to resume from storage, finally cold booting
if the other options weren't do-able.
As general debugging advice, you'd want to look at the system logs to
see what it says it's doing as it suspends/shuts-down.
Your hardware has to support suspend mode, in that it has to supply
standby power continuously.
There are/were BIOS settings about that on some computers. If your PC
is one that requires enabling it in the BIOS, and you haven't changed
BIOS settings, it might suggest that the CMOS battery might need
replacing.
--
[tim@localhost ~]$ uname -rsvp
Linux 3.9.10-100.fc17.x86_64 #1 SMP Sun Jul 14 01:31:27 UTC 2013 x86_64
Boilerplate: All mail to my mailbox is automatically deleted, there is
no point trying to privately email me, I only get to see the messages
posted to the mailing list.
ZNQR LBH YBBX!