Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.development.system > #456

Re: How to find cause of boot?

From Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
Newsgroups comp.os.linux.development.system
Subject Re: How to find cause of boot?
Date 2012-07-29 09:42 +0200
Organization [posted via] Leibniz-Rechenzentrum, Muenchen (Germany)
Message-ID <u4fw8bxbbf.fsf@md.dent.med.uni-muenchen.de> (permalink)
References <a7i4qvFf4tU2@mid.individual.net>

Show all headers | View raw


Josef Moellers <josef.moellers@invalid.invalid> writes:

> I'd like to find out why my system was booted: because someone hit the
> power button or whether it was woken by the on-board RTC.

Power button pressed:  I do not know of a way to detect this and
strongly suspect it's impossible.

RTC:  How do you set the wakeup time?  Ages ago, I wrote a tool
to do this by programming RTC registers directly:

http://malloc.de/tools/wakeup_clock.c

I suspect by now you're setting via some acpi kernel function?  If you
can't read back the wakeup time, you may be able to identify the RTC
registers with the above tool.  Then at boot check whether you're some
seconds past the programmed time and if so do your PVR check and possibly
shutdown.

Regards,
Wolfram.

Back to comp.os.linux.development.system | Previous | NextPrevious in thread | Find similar


Thread

How to find cause of boot? Josef Moellers <josef.moellers@invalid.invalid> - 2012-07-28 14:38 +0200
  Re: How to find cause of boot? Wolfram Gloger <wmglo@dent.med.uni-muenchen.de> - 2012-07-29 09:42 +0200

csiph-web