From: Daniel Frey <djqfrey@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] apcupsd to recycle power
Date: Sat, 15 Nov 2014 08:47:45 -0800 [thread overview]
Message-ID: <546783B1.5050605@gmail.com> (raw)
In-Reply-To: <54664F99.602@asyr.hopto.org>
On 11/14/2014 10:53 AM, Thanasis wrote:
> I have an APC SC620I, which in case of power failure, it successfully
> initiates a shutdown to the connected (via SMART cable) PC, but if the
> mains power returns, the UPS does not recycle the power to the PC, and
> consequently the PC stays off.
>
> Regardless if the mains power returns soon after the UPS has initiated a
> shutdown to the PC, shouldn't the UPS recycle the power anyway, so that
> the PC comes back on as set in BIOS?
I assume that your PC shuts off thus reducing the load - and, of course,
this increases the runtime of the remaining battery so the UPS never
actually shuts down?
I don't think you can get apcupsd in any case to cycle the outlet
groups, but you can try a couple things.
First, is apcupsd even sending the signal to shutdown the UPS?
/etc/init.d/apcupsd.powerfail needs to be added to the shutdown runlevel:
`rc-update add apcupsd.powerfail shutdown`
At the end of the shutdown this is run and it tells the UPS to power
off. If you have multiple PCs this should be enabled on the slowest to
shutdown to make sure it doesn't kill a machine still shutting down.
>
> Am I missing something in the configuration or the daemons that should
> be running?
>
> (Running sys-power/apcupsd-3.14.8-r2)
>
> /etc/apcupsd/apcupsd.conf folows:
> KILLDELAY 0
If the above fails (if the above does indeed fail, some troubleshooting
should happen to try to figure out why it doesn't work), KILLDELAY is
the parameter you likely seek, but it is dangerous. If you set this it
will wait x seconds after a shutdown was requested and forcibly shut
down the UPS power.
However, in the even that power is restored between the UPS kill and the
time it actually turns off the mains will still not be cycled. But
theoretically this window should be pretty small.
Dan
next prev parent reply other threads:[~2014-11-15 16:47 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-14 18:53 [gentoo-user] apcupsd to recycle power Thanasis
2014-11-15 9:35 ` Mick
2014-11-15 12:52 ` Thanasis
2014-11-15 13:54 ` Bruce Schultz
2014-11-15 14:22 ` Thanasis
2014-11-15 14:59 ` Mick
2014-11-15 16:54 ` Thanasis
2014-11-15 17:22 ` Mick
2014-11-15 14:40 ` Rich Freeman
2014-11-15 16:37 ` Thanasis
2014-11-15 16:47 ` Daniel Frey [this message]
2014-11-15 17:05 ` Thanasis
2014-11-15 17:19 ` Daniel Frey
2014-11-15 18:19 ` [gentoo-user] " James
2014-11-17 1:06 ` [gentoo-user] " thegeezer
2014-11-17 11:39 ` Thanasis
2014-11-18 7:22 ` J. Roeleveld
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=546783B1.5050605@gmail.com \
--to=djqfrey@gmail.com \
--cc=gentoo-user@lists.gentoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox