LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-06-2017, 03:58 PM   #1
dilettante9
Member
 
Registered: Jun 2012
Location: U.S.
Distribution: Debian, Xubuntu
Posts: 46

Rep: Reputation: Disabled
CyberPower UPS configuration with Mint


Try as I might, I have never been able to get any Linux computer to shut down automatically in the event of a power failure. I've mainly, over the years, used Mint and Xubuntu.

Currently, I have a computer, mainly used as a file server, that has Mint 18 installed. I've got it hooked up to a CyberPower 825LCD UPS. Although the UPS is detected, there is no option for auto shutdown out of the box.

So, I've installed PowerPanel for Linux, which is CyberPower's proprietary software. I can use the Pwrstat command to get status and configuration information, but no matter what command I enter, and even when I play around with the settings in the config file, /etc/pwrstatd.conf, the computer fails to shut down in the specified time when I unplug the UPS.

I've also tried Network UPS Tools (NUT) in the past, but I've been unable to figure out the proper driver settings.

Bottom line: Does anyone either: (1) know how to configure PowerPanel for Linux; (2) know how to make NUT work with a CyberPower 825LCD, or (3) as a last resort, know of some UPS that I can buy and some software that I can use to get automatic shutdown working?

Last edited by dilettante9; 06-06-2017 at 04:00 PM.
 
Old 06-06-2017, 06:48 PM   #2
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
Quote:
Originally Posted by dilettante9 View Post
know of some UPS that I can buy and some software that I can use to get automatic shutdown working?
I've been using apc ups's, currently Back-UPS ES 750 with apcupsd 3.14.14, works fine with automatic shutdown.
 
Old 06-06-2017, 10:44 PM   #3
dilettante9
Member
 
Registered: Jun 2012
Location: U.S.
Distribution: Debian, Xubuntu
Posts: 46

Original Poster
Rep: Reputation: Disabled
Thanks. I have an old APC unit that's gathering dust. Not sure if it still works, but one option is that I can try to get a battery installed and see if I can configure it to shut down the server with APCUPSD.
 
Old 06-07-2017, 08:22 AM   #4
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
Quote:
the computer fails to shut down in the specified time when I unplug the UPS.
The autonomy of a UPS depends on the load so I wouldn't expect the shutdown process to kick in for probably 20 to 30 mins after power loss.

I found the User Manual here.

Useful info on configuring, Cyberpower Power Panel here though you may already have this stuff.

Play Bonny!

 
Old 06-07-2017, 06:08 PM   #5
dilettante9
Member
 
Registered: Jun 2012
Location: U.S.
Distribution: Debian, Xubuntu
Posts: 46

Original Poster
Rep: Reputation: Disabled
Thanks, Soadyheid and Glorsplitz. I've determined that my old APC unit, a Back-UPS RS1500, that's been sitting in my garage needs a special data cable, which I have ordered. Once I get it and some batteries, I'll try it with apcupsd, as recommended by Glorsplitz.

In the meantime, I'm going to continue playing around with the commands and config file in Power Panel to see if I can get auto-shutdown working with the CyberPower 825LCD. If anyone has experience configuring Power Panel and has any tips, I'd appreciate hearing them.

As a side note, I do need to get this working. I'm in the process of switching my data shares from ext4 to btrfs, and despite btrfs supposedly being production ready (except for RAID 5/6 which I'm not using), I still don't 100% trust it to maintain data integrity in the event of a power failure, so I need graceful shutdown.
 
Old 06-07-2017, 07:14 PM   #6
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
I've had a number of graceful shutdowns using an apc ups and apcupsd.

and from here

Quote:
Supported UPSes and Cables

apcupsd supports nearly every APC brand UPS model in existence and enough different cable types to connect to all of them.
so there ya go!
 
Old 06-07-2017, 08:29 PM   #7
Steve R.
Member
 
Registered: Jun 2009
Location: Morehead City, NC
Distribution: Mint 20.3
Posts: 521

Rep: Reputation: 98
Quote:
Originally Posted by dilettante9 View Post
I've determined that my old APC unit, a Back-UPS RS1500, that's been sitting in my garage needs a special data cable, which I have ordered.
I was also "missing" a cable so I looked into making my own. The pin-out diagram is shown here. Turned out my "lost" cable was still in the box that the UPC came in. Posting this in case anyone else has an old APC UPS that still uses one of these cables who may want to make their own USB connection.
 
Old 06-08-2017, 03:15 AM   #8
dilettante9
Member
 
Registered: Jun 2012
Location: U.S.
Distribution: Debian, Xubuntu
Posts: 46

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Steve R. View Post
I was also "missing" a cable so I looked into making my own. The pin-out diagram is shown here. Turned out my "lost" cable was still in the box that the UPC came in. Posting this in case anyone else has an old APC UPS that still uses one of these cables who may want to make their own USB connection.
Thanks, Steve. I reviewed the diagram. I believe that I now understand the logic of the connection using those old cables, which is always helpful when troubleshooting. However, making my own cable would be beyond my technical skills. Fortunately, I found a cable on eBay for about six dollars that claims to be compatible. It's coming from China so I've got a bit of a wait.

Last edited by dilettante9; 06-08-2017 at 03:22 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Won't source install CyberPower UPS deamon/service on Antergos User9 Linux - Software 2 11-04-2016 07:24 PM
Pleasant CyberPower UPS Hardware Linux Support Surprise enorbet Linux - General 9 04-15-2016 05:11 PM
CyberPower CP1500C UPS and USB with NUT problem 81bones Linux - Hardware 4 09-23-2011 10:01 AM
CyberPower USB UPS - Configured but not connecting tskears Linux - Hardware 3 03-10-2007 04:53 PM
CyberPower UPS? Reasonably decent or junk? haertig Linux - Hardware 7 02-17-2006 05:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration