Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 07-01-2015, 12:38 AM   #1
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, Dragonfly BSD, OpenBSD
Posts: 814

Rep: Reputation: 49
UPS nut kill inverter: offdelay ignored

Dear All,

I am running Slackware64-14.1(Linux marto 3.10.17 #1 SMP Fri Feb 14 16:39:21 CST 2014 x86_64 Intel(R) Pentium(R) CPU G3250 @ 3.20GHz GenuineIntel GNU/Linux)
and nut package nut-2.6.5-x86_64-1_SBo, buit from source using the build script

In the README.Slackware it is suggested that
the commands for killing the inverter be placed in certain positions in rc.6 after remounting the root
file system read only. In my configuration, however, the /usr and /root directories are on
different partitions, so I added these commands after turning off swap and before unmounting the
local file systems, like this:
# rc.6
# Turn off swap:
echo "Turning off swap."
/sbin/swapoff -a

# Turn off UPS's power
if [ -x /usr/libexec/nut/nut_restart_udev ]; then
. /usr/libexec/nut/nut_restart_udev
if [ -x /usr/libexec/nut/nut_kill_inverter ]; then
. /usr/libexec/nut/nut_kill_inverter

echo "Unmounting local file systems."
/bin/umount -v -a -t no,proc,sysfs

I also set in the ups.conf file that the UPS should be killed 3 minutes after issuing the kill
inverter command:
# ups.conf
driver = usbhid-ups
port = auto
desc = "UPS Eaton5E650iUSBDIN"

On power failure the shutdown process reaches the kill inverter commands in rc.6,
issues them and in several seconds shuts down the UPS, obviously ignoring the offdelay setting.
Furthermore, it does not proceed to issue the remaining rc.6 commands, but seems to hang at shutting down the UPS.

Do You have any suggestions?

Thank You very much for Your attention.

Best regards,


PS: Here is some diagnostic info:
upsc Eaton5E650iUSB at localhost
battery.charge: 60
battery.runtime: 619
battery.type: PbAc
device.mfr: EATON
device.model: 5E 650i
device.type: ups usbhid-ups
driver.parameter.offdelay: 180
driver.parameter.ondelay: 200
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.version: 2.6.5-Unversioned directory MGE HID 1.31
driver.version.internal: 0.37
input.voltage: 247.0
outlet.1.status: on
outlet.desc: Main Outlet 1
outlet.switchable: no
output.frequency: 49.9
output.frequency.nominal: 50                                                                                                                                                                                                                
output.voltage: 246.0                                                                                                                                                                                                                       
output.voltage.nominal: 230                                                                                                                                                                                                                 
ups.beeper.status: enabled                                                                                                                                                                                                                  
ups.delay.shutdown: 180                                                                                                                                                                                                                     
ups.firmware: 02.06.0017                                                                                                                                                                                                                    
ups.load: 28                                                                                                                                                                                                                                
ups.mfr: EATON                                                                                                                                                                                                                              
ups.model: 5E 650i                                                                                                                                                                                                                          
ups.power.nominal: 650                                                                                                                                                                                                                      
ups.productid: ffff                                                                                                                                                                                                                         
ups.start.battery: yes                                                                                                                                                                                                                      
ups.status: OL CHRG                                                                                                                                                                                                                         
ups.timer.shutdown: -1                                                                                                                                                                                                                      
ups.vendorid: 0463
Old 07-02-2015, 09:09 AM   #2
Registered: Mar 2012
Location: Ukraine/Odesa
Distribution: Slackware
Posts: 130

Rep: Reputation: 13
I found in documentation, note use UPSRW tool for manage variables


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
NUT - UPS failed driver not connected davidcollins001 Linux - Software 4 09-18-2017 10:11 PM
CyberPower CP1500C UPS and USB with NUT problem 81bones Linux - Hardware 4 09-23-2011 11:01 AM
UPS NUT install problem tramni1980 Slackware 0 08-14-2006 07:05 AM
Questions about nut..finding ups dev address creedog Linux - Software 7 03-01-2006 09:39 AM
Ups & Nut Denis Basta Linux - Software 1 09-27-2005 08:09 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:27 PM.

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