All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bryan Henderson <bryanh@giraffe-data.com>
To: rui.zhang@intel.com
Cc: user.anti-spam@maison.homelinux.net, linux-pm@vger.kernel.org
Subject: Re: battery drains after shutdown
Date: 15 Feb 2015 23:36:02 +0000	[thread overview]
Message-ID: <72477.bryanh@giraffe-data.com> (raw)
In-Reply-To: <1423899504.11560.128.camel@rzhang1-mobl4> (rui.zhang@intel.com)

I don't know much about power states in general, and I can't think of any
reason that any manipulation of the hardware clock would affect the power
state to which the computer shuts down.  This is probably more of a question
for an expert on shutdown.

I've heard of setting the clock disabling the wakeup, but not setting the
clock enabling wakeup.  I think you can determine whether this is happening,
though, by looking at /proc/driver/rtc contents before and after a
hwclock --systohc.

I do have one comment: doing hwclock --systohc at shutdown is almost always
the wrong thing to do; it is a custom that made sense 20 years ago, but not
today.

-- 
Bryan Henderson                                   San Jose, California

  reply	other threads:[~2015-02-16  0:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-14  7:38 battery drains after shutdown Zhang Rui
2015-02-15 23:36 ` Bryan Henderson [this message]
2015-02-23 15:22   ` François Boisson
2015-02-23 18:47     ` Bryan Henderson

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=72477.bryanh@giraffe-data.com \
    --to=bryanh@giraffe-data.com \
    --cc=linux-pm@vger.kernel.org \
    --cc=rui.zhang@intel.com \
    --cc=user.anti-spam@maison.homelinux.net \
    /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.