sleep and rsync
Carruth, Rusty
Rusty.Carruth at smartm.com
Wed Jan 2 14:07:11 MST 2019
Yes, but beware of suspend vs hibernate. (vs screensave)
Hibernate is to disk, suspend is to RAM, and then of course there is screensaver, which is ‘simply’ turning the video output off.
In both hibernate and suspend mode, your computer isn’t doing anything productive, and won’t run any background processes AFAIK.
Hibernate stores the state of your computer on disk (IIUC, its stored (at least partially) in the (first) swap PARTITION, which means you need to have a ‘big enough’ swap partition for hibernate to work, and indeed for hibernate even to be an option when you ask your computer to go into a lower power mode, again IIUC), and then powers off the computer. Resuming from hibernate takes a while depending upon the size of ram and the speed of disk. If you’re ‘lucky’, you can see your computer take a trip through grub on the way up.
Suspend ‘stores’ the state of your computer in RAM, which IIUC really means that the only thing that is happening is RAM refresh. No processes can do anything, no network answers, nothing. Resuming from suspend is REALLY FAST, looking almost like it is coming out of screensaver on some machines. And no trip through grub.
Screen save mode means that your video output is shut down. On some video cards (at least one of which I’ve had the misfortune of having), this is a condition that can only be exited by a reboot, which means that screensave mode with that video card is a call for a hard power cycle…
In any case, EVERYTHING is still running on your computer, and getting your video back is simply turning the video stream back on (assuming your video card works correctly, as I said).
As far as I know and understand, anyway.
So, which mode is your computer in? If you can ping it, then it is NOT in hibernate or suspend (or hasn’t made it there yet).
Fairly reasonable set of answers also here: https://askubuntu.com/questions/3369/what-is-the-difference-between-hibernate-and-suspend
(And, I’m sort of lying when I said that you have to hard power cycle to get out of bad video mode. If you have a machine that you can ssh into the video-off machine you can usually get a reboot command to work).
Rusty
From: PLUG-discuss [mailto:plug-discuss-bounces at lists.phxlinux.org] On Behalf Of Bob Elzer
Sent: Wednesday, January 02, 2019 11:38 AM
To: Main PLUG discussion list
Subject: Re: sleep and rsync
there are two different things.
screen saver and power management.
power management will put the computer in suspend mode which will copy memory to a buffer then put the system into a very low power mode waiting to be woke up after wich it will copy the buffer back to memory and resume where it left off.
screen savers can display nice graphics but they can also turn off the monitor.
if a screen saver turns off the monitor, the computer continues to run and perform all its functions.
if you move the mouse or type something and the monitor responds with a password right away, then it is the screen saver turning off the monitor.
if it takes a little while and the disks are flashing and making noise that would be the computer waking up from suspend mode.
hope this helps
On Tue, Jan 1, 2019, 5:34 PM Michael <bmike1 at gmail.com<mailto:bmike1 at gmail.com> wrote:
, doesn't work. Oh well, all use the media player because when that is playing it does not go off
On Tue, Jan 1, 2019, 18:33 David Lopez <lopezdavid123 at gmail.com<mailto:lopezdavid123 at gmail.com> wrote:
keep computer on by simply using the linux (ubuntu) timer on until rsync is finished.
settings-->power-->power saving=="never"
this is a time set at 3 minutes - change it to an hour or more until rsync is done.
david lopez
On Tue, Jan 1, 2019 at 4:25 PM David Lopez <lopezdavid123 at gmail.com<mailto:lopezdavid123 at gmail.com>> wrote:
keep computer on by simply using the linux (ubuntu) on until rsync is finished.
settings-->power-->power saving==never
this is a time set at 3 minutes - change it to an your or more until rsync is done.
david lopez
On Tue, Jan 1, 2019 at 1:33 PM Michael <bmike1 at gmail.com<mailto:bmike1 at gmail.com>> wrote:
how does one make it so the computer will not go to sleep?
On Tue, Jan 1, 2019 at 1:26 PM der.hans <PLUGd at lufthans.com<mailto:PLUGd at lufthans.com>> wrote:
Am 01. Jan, 2019 schwätzte Michael so:
moin moin,
your computer effectively turns off when it goes to sleep.
tcp connections such as rsync might continue if you bring the computer out
of sleep soon enough. Most likely you'll have to restart the rsync as the
tcp connections will have timed out. rsync might also have controls to
require re-authentication.
rsync will continue from where it left off once you restart it.
ciao,
der.hans
> I run rsync and sometimes the computer goes to sleep while I'm running it
> (or at least the screen goes black and I need to reenter the pass word).
> What happens to rsync when it goes to sleep? Like does it continue to run
> or is it suspended? Do I need to ^C the thing and restart it or does it
> pick up where it left off (if it does not continue to run)?
--
# https://www.LuftHans.com https://www.PhxLinux.org
# I've got a photographic memory,
# but I'm lousy photographer. - der.hans---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org<mailto:PLUG-discuss at lists.phxlinux.org>
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss
--
:-)~MIKE~(-:
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org<mailto:PLUG-discuss at lists.phxlinux.org>
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss
--
David López
Software Engineer
--
David López
Software Engineer
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org<mailto:PLUG-discuss at lists.phxlinux.org>
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org<mailto:PLUG-discuss at lists.phxlinux.org>
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20190102/a36039d6/attachment.html>
More information about the PLUG-discuss
mailing list