From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 3508D1389F5 for ; Sat, 15 Nov 2014 17:05:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C13DAE0AF8; Sat, 15 Nov 2014 17:05:23 +0000 (UTC) Received: from vergina.hopto.org (cust-218-222.on4.ontelecoms.gr [92.118.218.222]) by pigeon.gentoo.org (Postfix) with ESMTP id 638D6E09C2 for ; Sat, 15 Nov 2014 17:05:22 +0000 (UTC) Received: from [192.168.0.1] (viper.vergina.hopto.org [192.168.0.1]) by viper.vergina.hopto.org (Postfix) with ESMTP id 1048A6008E for ; Sat, 15 Nov 2014 19:05:21 +0200 (EET) Message-ID: <546787D0.9080703@asyr.hopto.org> Date: Sat, 15 Nov 2014 19:05:20 +0200 From: Thanasis User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.8.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] apcupsd to recycle power References: <54664F99.602@asyr.hopto.org> <546783B1.5050605@gmail.com> In-Reply-To: <546783B1.5050605@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: c5dfb831-3008-4e14-9f4f-c696923873e4 X-Archives-Hash: 13a956fd803de3f88758221004acd62c on 11/15/2014 06:47 PM Daniel Frey wrote the following: > 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` I have even tried to run the command "/sbin/apcupsd --killpower" from a root terminal (while in default runlevel, after manually creating the file /etc/apcupsd/powerfail) and nothing happened. > > 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. Why would this be so? > But > theoretically this window should be pretty small. > > Dan > > > >