Anyone using a UPS that works with OpenSUSE 11.2 64bits?

Hi,

I’m looking for a UPS for my computer setup. This one looks interesting:
CyberPower CP800AVR 800VA 450W. The docs say:
‘HID compliant USB port enables full integration with built-in power management and auto shutdown features of Windows, Linux and Mac OS X’

Unfortunately I don’t really know what that means? Will it work with OpenSUSE?

My machine is not very power hungry buts its not light-weight. It’s a quad-core
system with 5 SATA disks, 2 burners, a 30" display plus some smaller accessories.
It takes about 2-3 mins to shutdown due to all the services I have running on it,
so to be safe I need a little margin of shutdown time from there.

Anyone used this UPS? or something similar? APC and Cyberpower are generally
easy to get and have models which I can afford.

Thanks in advance,

  • Itai

I use an APC Back-UPS 900 XL UPS which connects by USB to my PC and uses the APCUPSD application that can be configured to monitor a APC UPC to use the USB port and provides all kinds of useful information about its operation. I suggest you read the following thread, some of which was silly on my part, but affirms that using APC is the way to go.

UPS recomendation

Ask any other questions that you may have.

Thank You,

I am using an APC RS550. This gives me about 30 minutes of endurance, more than enough to shut the server down after about 15 minutes when the power did not come back by then. It may be too small for your installation, but you can select a more powerful model. The interface is almost the same for all of them.

APC distributes software (apcupsd) for openSUSE to control the device and handle the power down procedures. With some generous help from malcolmlewis I built a package for apcupsd.

As it seems, CyberPower is supporting linux as well. You may download the source and compile before you buy. This will give you an early indication of possible problems (or their absence).

idanan wrote:

>
> Hi,
>
> I’m looking for a UPS for my computer setup. This one looks
> interesting:
> CyberPower CP800AVR 800VA 450W. The docs say:
> ‘HID compliant USB port enables full integration with built-in power
> management and auto shutdown features of Windows, Linux and Mac OS X’
>
> Unfortunately I don’t really know what that means? Will it work with
> OpenSUSE?
>
> My machine is not very power hungry buts its not light-weight. It’s a
> quad-core
> system with 5 SATA disks, 2 burners, a 30" display plus some smaller
> accessories.
> It takes about 2-3 mins to shutdown due to all the services I have
> running on it,
> so to be safe I need a little margin of shutdown time from there.
>
> Anyone used this UPS? or something similar? APC and Cyberpower are
> generally
> easy to get and have models which I can afford.
>
> Thanks in advance,
>
> - Itai
>
I’ve used APC UPS’ for years. The better models can communicate with Linux
thru an APC provided driver, it used to come with openSUSE.If you go into
YaSt and manage software and type APC you will see its still available for
11.3. Cannot check my 11.4 installtion at this time but I’d bet its there. I
originally downloaded it from APC’c website. I needed a special cable and I
called APC and they sent me one for free.

I’ve used there products since the 1980’s.


Russ
openSUSE 11.3 (2.6.34-12-default)|KDE 4.5.1|
Intel core2duo 2.5 MHZ,|4GB DDR3|GeForce 8400GS

I used to use an XS 900 but have switched over to the more industrial Smart-UPS unit to get the sine wave output and stronger power filtering. I use an APC Smart-UPS 750VA to support my system, configured with APCUPSD. It’s got 500W and provides me 13 minutes of run time should the power fail. Cool unit!

Thanks guys. All the replies were very helpful.

I’ll definitely go with APC. The fact that there is a tool included in OpenSUSE
gives me a lot of confidence regarding support. When drivers/tools come
separately, there is always an undetermined lag when upgrading the OS to
the time the driver/tool is upgraded and that has caused me problems in the
past.

I intend to order this week. Now I have to sort out between the available models.
It’s pretty intimidating to see how many models they have and I do not really
know enough besides Watts and VAs to tell the difference between the models.
They have a great tool on the website which calculates how much you need
based on the hardware… I would never of guessed. The only minor issue I have
is that many models I find around here at affordable prices are not listed on APC’s website (country-specific and worldwide).

The APC BR1300LCD 1300VA 780 Watts BACK-UPS they recommended based on
a 20% safety margin costs more than I was ready to pay. There is a cheaper
APC BN1250G 1250 VA 740 Watts around here but it does not appear on APC’s
site, so I am a bit wary about. We’ll see what I finally get.

Best,

  • Itai

idanan wrote:

>
> Thanks guys. All the replies were very helpful.
>
> I’ll definitely go with APC. The fact that there is a tool included in
> OpenSUSE
> gives me a lot of confidence regarding support. When drivers/tools
> come
> separately, there is always an undetermined lag when upgrading the OS
> to
> the time the driver/tool is upgraded and that has caused me problems in
> the
> past.
>
> I intend to order this week. Now I have to sort out between the
> available models.
> It’s pretty intimidating to see how many models they have and I do not
> really
> know enough besides Watts and VAs to tell the difference between the
> models.
> They have a great tool on the website which calculates how much you
> need
> based on the hardware… I would never of guessed. The only minor issue
> I have
> is that many models I find around here at affordable prices are not
> listed on APC’s website (country-specific and worldwide).
>
> The APC BR1300LCD 1300VA 780 Watts BACK-UPS they recommended based on
> a 20% safety margin costs more than I was ready to pay. There is a
> cheaper
> APC BN1250G 1250 VA 740 Watts around here but it does not appear on
> APC’s
> site, so I am a bit wary about. We’ll see what I finally get.
>
> Best,
>
> - Itai
The BR1300LCD is probably the newer version of the BN1250G. If the lather is
brand you should be able to register it and have them honor the warranty. I
have never had trouble in that regard. Also you can contact them by email or
phone and see what the difference is. Unless the have changed, they do not
charge to answer questions.


Russ
openSUSE 11.3 (2.6.34-12-default)|KDE 4.5.1|
Intel core2duo 2.5 MHZ,|4GB DDR3|GeForce 8400GS

The BN1250G is an older version of the BR1300LCD. Shouldn’t be a problem, either of these units should work.

The reason it didn’t appear on their site is because they’re replaced it with the newer unit. They don’t want you using the older units, they’d prefer you go and buy a brand new unit, every time and as soon as possible.

Look around and make sure you get the best deal possible.

Thanks! I guess the stores around here still carry the older models which is why the price is lower. These are still all ‘new’ and not refurbished or anything, so I’ll ordering right now!

Thanks again,

  • Itai

Hi again,

Got the 1250G and installed yesterday. Installation was a breeze and there is not a widget on my desktop that tells me what the status of the UPS is.

Now my question, will the computer shutdown if there is no power now? How does it
know how long to wait before initiating shutdown? I installed the apc util and deamon
from the OpenSUSE repo but I have not seen any such obvious option.

Thanks you in advance,

All new UPS’ intended for home use include a USB port. Serial UPS connections are for really old units like the 10 and 15 year old versions I spoke about in my first message. In openSUSE to monitor APC UPS’ you load the programs called apcupsd and apcupsd-gui in Yast / Software Management (Search for UPS). You then edit a file called /etc/apcupsd/apcupsd.conf as root (see menu run command below):

kdesu kwrite /etc/apcupsd/apcupsd.conf

You basically need to inform the application apcupsd how you connect to your UPS. For USB, you make two line changes and that is it. Next, you need to start the runlevel services. This is Yast / System / System Services (Run Level) and enable the service apcupsd and then Start it. Finally, you start the program apcupsd-gui at menu / System / Monitor / apcupsd. Once the program is running I go to the preference tab and check Enabled and use TrayIcon. Now you are monitoring your UPS. In order to autostart apcupsd, you need to create an autostart script file or find the autostart function for the desktop that you use. The name of the program you run for the gui is called gapcmon. I happen to have a script that can be used to create a autoscript for KDE. It is listed in the following thread.

KDE Application Autostart Script: Automatically Made For You!

You never know, you might learn something about scripting as well.

Thank You,

Hmmm… AFAIK, the system seems to already do some of that for me. The .conf
file name you gave was useful, I took a look and it seems the defaults are all very
reasonable (shutdown on 5% battery or 3 mins left). A ‘UPS Monitor’ widget appeared
my widgetbar (??? not sure what it’s called actually, the task-bar looking thing :wink: so
I know something is monitoring the UPS. Since there is an ‘annoy user’ warning, I can do a quick test to see if some notification gets sent at least. If it does, the rest
should work as intended.

I have no idea what the command you gave does, I have no such program in my
system… I assume its an optional component since its starts with the letter ‘k’ of which I only have two binaries (kdb5_util and kdestroy).

Well, thanks showing me the .conf file. The cable type default was set to ‘smart’. I assume that will detect USB too, which is what my USP uses.

I’ll post back if for some reason my test is inconclusive.

Thanks again,

  • Itai

Hello idanan. If I can assume you have connected your new APC UPS using a USB cable and your have decided to load the apcupsd & apcupsd-ui programs (using YaST / Software Management), then you need to inform the program that you are using a USB cable. The configuration file must be edited with root user permissions. If you are using KDE then the command to edit this file is menu / Run Command and type the command just as shown below:

kdesu kwrite /etc/apcupsd/apcupsd.conf

You must modify several of the lines at the start of the file to look like the following (all lines that start with a # are just comments and are for you to read only):

## apcupsd.conf v1.1 ##
# 
#  for apcupsd release 3.14.6 (16 May 2009) - suse
#
# "apcupsd" POSIX config file

#
# ========= General configuration parameters ============
#

# UPSNAME xxx
#   Use this to give your UPS a name in log files and such. This
#   is particulary useful if you have multiple UPSes. This does not
#   set the EEPROM. It should be 8 characters or less.
#UPSNAME

# UPSCABLE <cable>
#   Defines the type of cable connecting the UPS to your computer.
#
#   Possible generic choices for <cable> are:
#     simple, smart, ether, usb
#
#   Or a specific cable model number may be used:
#     940-0119A, 940-0127A, 940-0128A, 940-0020B,
#     940-0020C, 940-0023A, 940-0024B, 940-0024C,
#     940-1524C, 940-0024G, 940-0095A, 940-0095B,
#     940-0095C, M-04-02-2000
#
**UPSCABLE usb**

# To get apcupsd to work, in addition to defining the cable
# above, you must also define a UPSTYPE, which corresponds to
# the type of UPS you have (see the Description for more details).
# You must also specify a DEVICE, sometimes referred to as a port.
# For USB UPSes, please leave the DEVICE directive blank. For
# other UPS types, you must specify an appropriate port or address.
#
# UPSTYPE   DEVICE           Description
# apcsmart  /dev/tty**       Newer serial character device,
#                            appropriate for SmartUPS models using
#                            a serial cable (not USB).
#
# usb       <BLANK>          Most new UPSes are USB. A blank DEVICE
#                            setting enables autodetection, which is
#                            the best choice for most installations.
#
# net       hostname:port    Network link to a master apcupsd
#                            through apcupsd's Network Information
#                            Server. This is used if you don't have
#                            a UPS directly connected to your computer.
#
# snmp      hostname:port:vendor:community
#                            SNMP Network link to an SNMP-enabled
#                            UPS device. Vendor is the MIB used by
#                            the UPS device: can be "APC", "APC_NOTRAP"
#                            or "RFC" where APC is the powernet MIB,
#                            "APC_NOTRAP" is powernet with SNMP trap
#                            catching disabled, and RFC is the IETF's 
#                            rfc1628 UPS-MIB. You usually want "APC".
#                            Port is usually 161. Community is usually
#                            "private".
#
# dumb      /dev/tty**       Old serial character device for use 
#                            with simple-signaling UPSes.
#
# pcnet    ipaddr:username:passphrase
#                            PowerChute Network Shutdown protocol
#                            which can be used as an alternative to SNMP
#                            with AP9617 family of smart slot cards.
#                            ipaddr is the IP address of the UPS mgmt
#                            card. username and passphrase are the
#                            credentials for which the card has been
#                            configured.
#
**UPSTYPE usb
DEVICE **

The changes you must make are shown in bold (they will not be in bold in the file that you edit). Once you have made and saved these changes, you must go into YaST / System / System Services. Find apcupsd towards the top of the list, highlight it with your mouse and then pick Enable on the bottom Left and then OK on the bottom Right. Once you have Loaded apcupsd (& the apcupsd-ui) file, edited the apcupsd.conf file and started the apcupsd service, you are ready to use the program. Go to menu / System / Monitor and run APCUPSD from the list. I select the Preference Tab and the check Enabled and Use IconTray. That should be it. The APCUPSD UI program that is ran is actually called gapcmon.

Now if you did not understand this and you did not do all of this, then I am not sure if the program is really running or not. But I am trying to make sure that it is working for you.

Thank You,

Thanks James,

I think that was exactly the information I was missing. Perfectly clear explanation.
Now I even know what kdesu kwrite stands for :slight_smile: although I do not have those programs.

There seems to be a built-in Gnome monitor too in my case which confused me and
made me think the APC monitor was running. It was not, but thanks to your help it
is running now.

Thanks James,

I think that was exactly the information I was missing. Perfectly clear explanation.
Now I even know what kdesu kwrite stands for :slight_smile: although I do not have those programs.

There seems to be a built-in Gnome monitor too in my case which confused me and
made me think the APC monitor was running. It was not, but thanks to your help it
is running now.
Since you are using Gnome, that does explain the situation better. If you mentioned that before, then I just missed it and I am sorry. I am happy to hear you have it working. Good for you. If you should come up with any other issues, please do not hesitate to ask for help if you need it.

Thank You,