From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4756315852A for ; Sun, 18 Aug 2024 19:11:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F400B2BC04C; Sun, 18 Aug 2024 19:11:47 +0000 (UTC) Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A1CD02BC03F for ; Sun, 18 Aug 2024 19:11:47 +0000 (UTC) Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-201df0b2df4so28951865ad.0 for ; Sun, 18 Aug 2024 12:11:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724008306; x=1724613106; darn=lists.gentoo.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=Xmm9gNSjRHjlMHjMYxoVuuQadj2IvMwfrJ1rWNpyq10=; b=EEwlPplDkRfN6sOI7dhF98DYk6lje3EQJ6bKPNtG+1s91A/Xnf2eaOe0K2OsxuJtMS eyOttqV6ms0FjNmoVvvLjfmf5xGkYiemhW1q8z88xhpVem1+Vp6hNV3HcRYGul5q2zsU DRUas9RtVgOw4EYrXlx2atBOSVCvX/EHYlQT2lOSy9gi3wXprcioHuD5yU3mSIpxTYfz ldt4rGXdKPvAlBj6a9McXRa4kkU1YMB5D+nn8L9U0Sz4Ork5m102E9xI0XDy4OwmgdmH 0YbxOZ1KujkjDX3lmQ3tjFq+PJJ227zfLPIckIaP8Mrqq46wl2dSKwJuDiqYSbe0pwUH xD0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724008306; x=1724613106; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Xmm9gNSjRHjlMHjMYxoVuuQadj2IvMwfrJ1rWNpyq10=; b=iveIJFvC3/SkVo5tycAR6+DtoZWxofbL1cY40d9uOsFJrZvo90sj7csRhjT0M5AiS9 pEVcRnjRJJr3XwniSJEYdjQzgr6dfu5wBctqAFSUeTfydPL0X6EV8U7nFh3iz3a+iiYH mq0C1lHA+24PBrN4+n23gSSWN6jGZA9c8T8R8xWU+0T29FCGgr2/DcoqW90pH6kK9DhA 25JdjA361QDVcuNbeccc7xakNDpsO0NJF9XN5uDzTsjrdvSsRMd3HN4A4m3AimCHXAlX KF3kTA16P135CmbRdehYwZpvu2M40BzrinkUQmY/HB1pInxtzooZdM/tx+feFNUiTpQS J20Q== X-Gm-Message-State: AOJu0YyABEOASZkqGpmjsaN9mKpxtz1aZVmRqMbee27GoESo+JnnHHAq J5BXcXCCDAJLgv3G+AHFPd4ynwjUC47NgYwccjM3T72CL3iwbn0ZsEER6g== X-Google-Smtp-Source: AGHT+IH3L09RkHLWw2BY19+svJFSw4dRtAqjvL9gkhb619LyIQX6FjPZHk1xfrnvHei+XmAI4OlWdg== X-Received: by 2002:a17:902:dacc:b0:201:fd3c:a321 with SMTP id d9443c01a7336-2020404a405mr107560925ad.62.1724008306213; Sun, 18 Aug 2024 12:11:46 -0700 (PDT) Received: from [192.168.247.5] (d206-116-145-237.bchsia.telus.net. [206.116.145.237]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2d3faea6b6csm4542613a91.35.2024.08.18.12.11.45 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 18 Aug 2024 12:11:45 -0700 (PDT) Message-ID: Date: Sun, 18 Aug 2024 12:11:44 -0700 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 X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [gentoo-user] Suggestions for Gentoo-compatable UPS; stores around Toronto?? To: gentoo-user@lists.gentoo.org References: <84993af5-6bd9-f91c-60e2-78f60e91cc18@gmail.com> Content-Language: en-US From: Daniel Frey In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 421d449b-c437-4f03-bd5c-2536ad783355 X-Archives-Hash: 417a1ef9310c3bbb92b96ddd962f8e9e On 8/18/24 08:52, Walter Dnes wrote: > On Sun, Aug 18, 2024 at 07:00:52AM -0500, Dale wrote >> Walter Dnes wrote: >>> My current manual hibernation script is... >>> >>> #!/bin/bash >>> sync >>> sudo /usr/sbin/hibernate > >> The one thing I wish I could figure out how to set up, once power >> is lost, wait 2 minutes, maybe 5 minutes, then power off even if >> the battery still has lots of power left. > > I asked Mr. Google. APCUPSD has an ONBATTERDELAY command that does > something only if the battery is in use (i.e. AC power is off) for at > least a certain specified length of time.. > I've been using apcupsd with Gentoo for ages, more than 20 years. apcupsd is able to do what you want but as far as I know, there's no apc.shutdown unit for systemd - this will also shutdown the UPS itself. Another thing to be aware of is that APC has a new protocol for their newer UPSes and I've not tried a newer one with apcupsd to see if it is supported. This may be a concern and will likely need more investigation. Dan