All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nigel Cunningham <ncunningham@linuxmail.org>
To: Rajsekar <raj.delete.se.here.too.kar@peacock.iitm.ernet.in>
Cc: linux-kernel@vger.kernel.org
Subject: Re: swsusp also stores system clock
Date: Mon, 17 May 2004 15:22:47 +1000	[thread overview]
Message-ID: <40A84C27.90803@linuxmail.org> (raw)
In-Reply-To: <y49oeonr88c.fsf@sahana.cs.iitm.ernet.in>

Hi.

The solution to this is to run

/sbin/hwclock --hctosys

after resuming. You might need to add --direct-isa if this hangs.

Regards,

Nigel

Rajsekar wrote:
> I started liking swsusp so much that I dont shutdown my system anymore, I
> just suspend.  Is this wrong? 
> 
> But I noticed that the clock also gets saved and when I resume my system,
> the clock is annoyingly wrong.  I suppose that this is done on purpose for
> some reasons by the developers.
> 
> Currently, I use hwclock to set my system clock on resume.
> 
> Is there a better way or a patch ?
> 


-- 
Nigel & Michelle Cunningham
C/- Westminster Presbyterian Church Belconnen
61 Templeton Street, Cook, ACT 2614.
+61 (2) 6251 7727(wk); +61 (2) 6254 0216 (home)

Evolution (n): A hypothetical process whereby infinitely improbable 
events occur
with alarming frequency, order arises from chaos, and no one is given 
credit.

  reply	other threads:[~2004-05-17  5:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-17  4:24 swsusp also stores system clock Rajsekar
2004-05-17  5:22 ` Nigel Cunningham [this message]
2004-05-21  9:14 ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40A84C27.90803@linuxmail.org \
    --to=ncunningham@linuxmail.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=raj.delete.se.here.too.kar@peacock.iitm.ernet.in \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.