CyberPower CP1500EPFCLCD UPS setup

Setup for Ubuntu Server:
I run Ubuntu server up-to-date and, for CyberPower CP1500EPFCLCD UPS, I installed the PowerPanel Personal for Linux x64, from official website, www.cyberpower.com.
I read the official manual and these:
https://forum.storj.io/t/psa-nut-cyberpower-ups-and-freebsd/25829?u=snorkel
and
https://networkupstools.org/docs/man/usbhid-ups.html

I set up the configurations, unplugged the UPS from then wall and it stopped the PC after the specified delay (5 min), than started to count down 600 sec on it’s display (the default shutdown-sustain = 600).
When UPS reached 0, nothing happened, it didn’t turn off.
I plugged the UPS back to wall and the PC didn’t start. The UPS kept showing 0 till shutdown.
I unplugged the PC from UPS and plugged it back, and it booted.
So, setting shutdown-sustain = 600 messes it up. It’s the same parameter as in NUT, offdelay.
After all that reading, I tried to setting it to 0 (zero) and voila; it worked.
Setting shutdown-sustain = 0 in PowerPanel or offdelay=0 in NUT, makes these chain of events possible:
1.the UPS will shutdown the PC after the specified delay (like powerfail-delay = 300);
2.when powering off, the PC will send the shutdown command to UPS;
3.the UPS will count down 60 seconds and will power down (so 0 will give you a delay of 60 sec).
4.when power is restored, the UPS powers on and the PC a few seconds later.

These are the commands I use:

# download the deb file from official website
sudo dpkg -i /path-to-file/file-name.deb
sudo dpkg -r powerpanel
# docs
cat /usr/share/doc/powerpanel
# commands
man pwrstat
man pwrstatd
pwrstat -help
pwrstat -version
pwrstat -status
pwrstat -config
    # settings for pwrstat
sudo su
pwrstat -alarm off
pwrstat -pwrfail -delay 300 -active on -cmd /etc/pwrstatd-powerfail.sh -duration 1 -shutdown on
pwrstat -lowbatt -runtime 900 -capacity 35 -active on -cmd /etc/pwrstatd-lowbatt.sh -duration 1 -shutdown on
exit
    # settings for pwrstatd
sudo su
nano /etc/pwrstatd.conf
shutdown-sustain = 0   # shuts down the PC and gives 1 min delay; other values are not supported
/etc/init.d/pwrstatd restart
/etc/init.d/pwrstatd status
exit
    # logs
/var/log/pwrstatd.log

These are the resulting parameters:

pwrstat version 1.4.1 - Linux x64bit

powerfail-delay = 300
powerfail-active = yes
powerfail-cmd-path = /etc/pwrstatd-powerfail.sh
powerfail-duration = 1
powerfail-shutdown = yes
lowbatt-threshold = 35
runtime-threshold = 900
lowbatt-active = yes
lowbatt-cmd-path = /etc/pwrstatd-lowbatt.sh
lowbatt-duration = 1
lowbatt-shutdown = yes
enable-alarm = no
shutdown-sustain = 0
turn-ups-off = yes
ups-polling-rate = 3
ups-retry-rate = 10
prohibit-client-access = no
allowed-device-nodes =
hibernate = no
cloud-active = no
cloud-account =

I didn’t set up email notifications. You can with those shell scripts.
Explanations: when power outage occurs, the PC is shutdown after 300 sec, than, after 1 minute, the UPS shuts down. If the battery is low, the PC will shutdown when there remains less than 900 sec of runtime or 35% battery cappacity. I don’t know the UPS power off delay here; didn’t test it. When power is restored and the battery has enough juice, the UPS powers on and almost instantly, or after a very short delay, the PC is powered on. Of course, you have to properly set the BIOS.

Setup for Synology NAS:

The UPS will power off after NAS stopped the drives and leds are blinking like before powering off, without a delay like in the PC case. I can’t figure it out if the NAS finished all the chores, but the drives are stopped, which is good. I will try to record both situations, with that setting on and off, to see if it’s any difference for the NAS.
From what I’ve read, Synology uses NUT, so maybe we can teak some settings under the hood.

TLDR: throw that shit away and get a proper UPS not designed by morons.

See my write up about this garbage: Configuring CyberPower UPS on TrueNAS Core | Trinkets, Odds, and Ends

Linux is more forgiving, as it halts the system after remounting filesystem readonly. But CyberPower not being configurable is not forgivable.

I’ve actually reached out to their customer support to clarity the behavior. The dude put me on hold for 30 min to “research” then cam back, said “this information is proprietary” and hung up.

Screw this retched company. Buy APC/Schneider or Eaton (did not use myself but heard good things). Defenestrate cyberpower, stat!

3 Likes

This descovery comes after I had a problem with the Power Panel Personal for Windows too, on another machine. The most recent version is 2.6.1. I had 2.6.0 installed from the official localised website. I opened it to change some setting and showed me that ver. 2.8.0u is available.
In my stupidness and lazzyness, I didn’t click Check for Updates, to do a refresh. I just hit Apply Update. the socalled version 2.8.0u installed and didn’t start.
I figured something is wrong, I unistalled it from Control Panel, downloaded the 2.6.1 and installed it. It works fine.
And from yesterday I keep scanning the system for malware, firewall rules, etc. Nothig pops up, but I am very stressed about it. I contacted support. We will see what they say. I’m not an expert in malware detection, but I hope the system is clean. I can’t find any mentions of that version, though.

I have the same brand of ups and when it is near 80-90% load and the power goes out it kills the server that runs on it, TLDR get a online ups.

That’s different. It could be because it’s time to replace batteries (and good ups would have told you that). Online UPS won’t help.

CyberPower UPSes don’t recalibrate batteries, and when I asked about how to do it manually customer service told me it was also “proprietary information”. Clowns.

These UPSes also exhibit another issue: if power is lost in an unclean matter (transient, or brownout) they immediately shut off and don’t power back on when power returns.

I had to ask neighbors to come press the button when I was traveling. Twice in one week. Two different CyberPower ups. You better believe they both are rotting in the landfill now.

3 Likes

I agree with all your points, but the UPS wasn’t too old. I bought it just two months before that incident. The UPS never actually turned off; it just killed the server while continuing to run without any alarms or warnings. I did an experiment with a light bulb and could visually see it flicker for a split second, which apparently was too long for the server power supply to handle. That’s why I said I needed an online UPS. Keep in mind that this was a server power supply, which likely has less power loss tolerance compared to an ATX PSU.

Maybe it has to do with the switching speed from grid to battery, and the PSU of the computer.
Good PSUs nowdays can tolerate a few ms of lost power untill UPS switches to backup power.
I always look for pure sinewave UPSes, and the CyberPower PFC Sinewave series (this model is one of them) are the cheapest from the big 3: APC, Eaton, CP. I believe this type of UPSes can switch quickly than others, along with the betters wave form. The Active PFC PSUs need this kind of wave. My old PC/server was receiving the same treatment for a simulated sinewave or non sinewave APC UPS (can’t remember), until the PSU burned out.
I’m not an electrician, but I changed 2 PSUs because of that UPS. No more problems since I switched to APC Smart UPS and CP PFC Sinewave.

If you read my second post, you’ll see that’s exactly what I said happened.
Also, it is a pure sine wave model, but it’s a terrible sine wave. When I plug in a LED light bulb, it flickers even on AC power—most likely due to the voltage correction. The PSU’s I’m using are old HP server power supplies, Typically a pair of them run on different power sources per server, so it doesn’t matter if one experiences a power cut. Also, I don’t think any sane data center would use anything besides a pair of online UPS’s.