-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday, 2017-12-14 at 18:36 -0500, David T-G wrote:
% % but how can I see if it simply stopped and restarted or come back % from hibernation?
Reading the logs :-)
If the machine is restarted, then everything gets kicked off as a fresh process, right?
In the case of waking from hibernation, the processes all pick up right where they left off. Think of it like forking a process; the new fork didn't have to get called but instead just exists.
I get the screen saver active on return, enter my password, and see all my opened apps and files in the same point as they were. You might not notice if the desktop was empty.
If you really need to know, I'd write a flag file or similar as part of the hibernation script and then detect it as you wake up and come out of the system call. In practice, though, you basically won't know it happened :-)
I write entries in a log file (/var/log/Sesiones.log): 2017-11-08 15:04:54+01:00 - Booting the system now ================================================================================ Linux Telcontar 4.4.92-18.36-default #1 SMP Tue Oct 24 15:20:18 UTC 2017 (3f3cfaa) x86_64 x86_64 x86_64 GNU/Linux 2017-11-08 20:09:15+01:00 - Hibernating the system now... 2017-11-08 23:24:23+01:00 - Thawing the system now)... 2017-11-09 04:39:05+01:00 - Hibernating the system now... 2017-11-09 09:45:46+01:00 - Thawing the system now)... ... 2017-12-05 04:15:03+01:00 - Halting the system now =========================================== uptime: 04:15am up 26 days 13:10, 1 user, load average: 0.69, 0.68, 0.66 2017-12-05 11:46:23+01:00 - Booting the system now ================================================================================ Linux Telcontar 4.4.92-18.36-default #1 SMP Tue Oct 24 15:20:18 UTC 2017 (3f3cfaa) x86_64 x86_64 x86_64 GNU/Linux 2017-12-06 04:18:05+01:00 - Hibernating the system now... - -- Cheers, Carlos E. R. (from openSUSE 42.2 x86_64 "Malachite" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlo0CygACgkQtTMYHG2NR9UsZQCePPX3fLf8BYfM1bZWKQsYbozG YioAn2kj0QDHTEhX8QDXdIIuFsCSVy2O =AzD1 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org