Bug#318191: nvram-wakeup starts 5 minutes early
Sergei Haller
pkg-vdr-dvb-devel@lists.alioth.debian.org
Thu, 14 Jul 2005 17:29:30 +0200 (CEST)
On Thu, 14 Jul 2005, Hamish Moffatt (HM) wrote:
HM> Package: nvram-wakeup
HM> Version: 0.97-7
in the following, I am talking about original sources:
HM>
HM> nvram-wakeup always configures the BIOS to start the system 5 minutes
HM> earlier than requested. This is confusing and not well documented.
HM>
HM> The -s parameter apparently says that you want the system "up and
HM> running" by that time. nvram-wakeup allows 5 minutes to boot up; that
HM> number is hard-coded in constant WAKEUP_BEFORE in nvram-wakeup.h.
HM> That constant is mentioned briefly in README.gz, but its value is not
HM> given.
added the line
Defaults for WAKEUP_BEFORE and NEED_TO_SHTDWN are 5 minutes each.
to README.
HM> It would be more intuitive if you just told nvram-wakeup the time you
HM> wanted the system to power back on. Let the user worry about setting it
HM> early if they need to.
it has historical reasons.
HM> So, my suggestions:
HM>
HM> 1. At least document that it will boot 5 minutes early in
HM> nvram-wakeup(1).
HM>
HM> 2. Better yet, allow the early time to be configurable. This is
HM> probably the best bet for backwards compatibility.
I hardly have time at the moment. but if someone would contribute a patch,
I'd insert it.
- the options should be called wakeup-before and need-to-shtdwn,
respectively
- and have the old hard-coded value of 5 minutes as defaults.
(for compatibility reasons)
Kindest regards,
Sergei
--
-------------------------------------------------------------------- -?)
eMail: Sergei.Haller@math.uni-giessen.de /\\
-------------------------------------------------------------------- _\_V
Be careful of reading health books, you might die of a misprint.
-- Mark Twain