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 AE0761389F5 for ; Sat, 15 Nov 2014 16:47:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 83D85E0AC5; Sat, 15 Nov 2014 16:47:50 +0000 (UTC) Received: from mail-pd0-f170.google.com (mail-pd0-f170.google.com [209.85.192.170]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 21F21E0AAB for ; Sat, 15 Nov 2014 16:47:48 +0000 (UTC) Received: by mail-pd0-f170.google.com with SMTP id fp1so2351061pdb.15 for ; Sat, 15 Nov 2014 08:47:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=c+2oYHVjdmEXlogIHs+n9itfSMYzEC8rhDh3j5Bdt30=; b=w6pTB+HiKahzafHY/8Y+8C9lITkNoTP7RyA6wUPYIIWVauuiVlEksvoa5BK64lexlX 2RjFLscclAZOT4c3aan7PVBg8xgrJ1LBtnNO6DTzM4+9jloCDqf6Zqq7bRCyaV6WVSTF 5jMTWw3W55+YY1YlR2DS566B74D1QRflMb218XXLBubcixJkflLD3Dl7ohxi5VSXtQGx wZXgFyRXj4AZK+wd5LyTVxc1oGy8If+3Wvf8VMoLyvFmGYoImgJcaL5QH/0qmiu5byUm il38QwVOaZmmakJdBLqyKWrKEQODllX44RMAHRk6Qg1LI3tKA9tgRebo4BnmtDqegOR4 mZWw== X-Received: by 10.70.38.134 with SMTP id g6mr18004720pdk.124.1416070068083; Sat, 15 Nov 2014 08:47:48 -0800 (PST) Received: from [192.168.247.60] (76-10-185-200.dsl.teksavvy.com. [76.10.185.200]) by mx.google.com with ESMTPSA id sg4sm26126319pbc.24.2014.11.15.08.47.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 15 Nov 2014 08:47:47 -0800 (PST) Message-ID: <546783B1.5050605@gmail.com> Date: Sat, 15 Nov 2014 08:47:45 -0800 From: Daniel Frey 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> In-Reply-To: <54664F99.602@asyr.hopto.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 97b8fe6e-f43d-4161-9a4c-4e6461306ce0 X-Archives-Hash: a982ea47fec912758833d79b931bbba9 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