An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20200217/b486de30/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: usbhid.zip Type: application/zip Size: 4031 bytes Desc: not available URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20200217/b486de30/attachment.zip>
On Mon, 17 Feb 2020, Stefan Schulze wrote:> So currently the sequence is: > 1. Main power goes off > 2. UPS and nut goes "OB DISCHRG" > 3. I enter `upsmon -c fsd`Does upsmon.conf specify a shutdown on LB? What happens if you let the battery power the system until LB is reached? You could set LB to say 85% for more rapid testing with upsrw -s battery.charge.low=85 -u <upsuser> -p <sekret> my-ups at localhost> 4. System shuts down and sending `upsdrvctl shutdown` > 5. System seems to halt and about one minute later the UPS shuts down > 6. Main power comes back > !!! 7. UPS comes up, display shows power comes from battery, RasPi comes up, nut showing "OL DISCHRG" !!!How old is this battery?> 8. Seconds later the UPS reboots, killing the RasPi > 9. UPS and RasPi are up and running again - "OL CHRG" > > The UPS is set to "offdelay=5" and no ondelayWhat happens if you use the default values of offdelay=20 and ondelay=30 seconds, or longer? Roger
Hi Roger, Hi all,> Does upsmon.conf specify a shutdown on LB?I think so. You mean SHUTDOWNCMD? The relevant parts of my upsmon.conf (notifications removed): MONITOR ups at localhost 1 upsmaster secret master MINSUPPLIES 1 SHUTDOWNCMD "/sbin/shutdown -h +0" POLLFREQ 5 POLLFREQALERT 2 HOSTSYNC 15 DEADTIME 40 POWERDOWNFLAG /etc/killpower RBWARNTIME 43200 NOCOMMWARNTIME 1800 FINALDELAY 1> What happens if you let the battery power the system until LB is reached?It's the same :-(> How old is this battery?About half a year. But I already went into this issue some months before with the 2.7.4 Raspbian package but havn't found the time to fix it.>> 8. Seconds later the UPS reboots, killing the RasPi >> 9. UPS and RasPi are up and running again - "OL CHRG" >> >> The UPS is set to "offdelay=5" and no ondelay > What happens if you use the default values of offdelay=20 and ondelay=30 > seconds, or longer?With defaults its the same. But I noticed two other details: 1. I was a bit wrong with step 7 and 8 - Looks like the UPS is "OL CHRG" (according to display) at first but goes to battery ("OL DISCHRG" according to nut) right when the RasPi (and nut) is booting. 2. When I pull the plug of the RasPi after UPS went down before main power comes back (so between step 5 and 6), the UPS comes up in state "OL CHRG" and is stable. Maybe nut is sending `upsdrvctl shutdown` right after boot again but without shutting down the system or sending an notification? Is there a way to check this reliably? Stefan