You are not logged in.

#1 2021-11-27 14:51:43

potuz
Member
Registered: 2009-10-23
Posts: 113

apcupsd --killpower not working

Hello, I've got an APC UPS and have apcupsd setup according to the wiki. I set up a `TIMEOUT`  of 60 to test and I see the system powering down correctly. Sending a wall to inform that it will be killing the power. My understanding is that systemd is running the unit  `apcupsd_shutdown`  from `/usr/lib/systemd/system-shutdown`  correctly, since this unit in turn ends up calling `apccontrol --killpower`  which in turn prints the wall "Appcontrol doing: apcupsd --killpower on UPS", and I see the message "attempting to kill power on UPS"  from apcupsd, but the ups never gets its power down.

EDIT: just to clarify, the system "powers down" in the sense that it actually halts, but the power is never cut off since the UPS doesn't kill the power. This prevents the system from returning in the event that the power actually does come back before the battery of the UPS ran out

Last edited by potuz (2021-11-27 14:59:51)

Offline

#2 2021-11-27 16:15:58

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: apcupsd --killpower not working

Connect computer directly in mains wallet and disconnect UPS from mains.
Only connect UPS to the USB then execute "apcupsd --killpower" (first stop apcupsd service). This must put UPS in hibernate mode.

Maybe your UPS model does not support hibernate command.

Edit: you can also use "apctest" command (first stop apcupsd service)

Last edited by djgera (2021-11-27 16:20:48)

Offline

#3 2021-12-04 12:03:50

potuz
Member
Registered: 2009-10-23
Posts: 113

Re: apcupsd --killpower not working

Unfortunately neither sheds any light:

# touch /etc/apcupsd/powerfail
# apcupsd --killpower
0.407 apcupsd: usb.c:987 UPS appears to support BackupUPS style hibernate
#

And nothing happens, so it's not killing the power. Same with apctest

# apctest
...
Please enter any character when ready to continue:

2021-12-04 08:46:20 calling kill_power function. 
62.780 apcupsd: usb.c:987 UPS appears to support BackupUPS style hibernate
2021-12-04 08:46:30 returned from kill_power function. 

And nothing happens on the UPS again. Self test passes. Is there anything I can do to cut the power. This problem essentially renders the UPS useless.

Offline

Board footer

Powered by FluxBB