All of lore.kernel.org
 help / color / mirror / Atom feed
From: Enno Fennema <e.fennema@tiscali.nl>
To: linux-acpi@vger.kernel.org
Subject: Re: RTC or button wakeup
Date: Mon, 30 Jun 2008 16:23:10 +0200	[thread overview]
Message-ID: <4868EC4E.8020804@tiscali.nl> (raw)
In-Reply-To: <1214788019.26947.2.camel@yakui_zhao.sh.intel.com>

Zhao Yakui wrote:
> On Sun, 2008-06-29 at 18:10 +0200, Enno Fennema wrote:
>> Could anyone suggest a way to determine in a (shell) program whether my 
>> computer was switched on by RTC alarm or by me pressing the power button.
>>
>     ACPI: Disable Fixed_RTC event when installing RTC handler
> 
> In fact the commit is already merged into upstream kernel. Will you

Thanks for yor reply but ... you are streets ahead of me.

I have RTC alarm enabled in BIOS and the alarm starts my machine from 
Soft-off and boots correctly at, in my case, 23:05 every evening, and 
not at 00:00 or any other time. At 23:10 cron starts my daily jobs.

I think I am not interested in any further RTC alarms, which will not
happen for 24 hours anyway.

My problem is to decide at the end of the daily jobs whether to switch
off the machine with /sbin/halt (if RTC started my machine) or not to
switch off (if pressing the power button had started the machine).

Are you saying that testing (after installing the patch) either RTC_STS 
or RTC_ENA would give me my answer.

Before installing the patch I see no both bits look identical when 
switched on by hand or by RTC. Sorry, I am an acpi-newbie and probably 
missing something.

Regards,
Enno



  reply	other threads:[~2008-06-30 14:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-29 16:10 RTC or button wakeup Enno Fennema
2008-06-30  1:06 ` Zhao Yakui
2008-06-30 14:23   ` Enno Fennema [this message]
2008-07-01  6:26     ` Zhao Yakui
2008-07-01 17:40 ` Henrique de Moraes Holschuh
2008-07-02 10:42   ` Enno Fennema

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=4868EC4E.8020804@tiscali.nl \
    --to=e.fennema@tiscali.nl \
    --cc=linux-acpi@vger.kernel.org \
    /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.