LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-30-2015, 11:38 PM   #1
tramni1980
Member
 
Registered: Jul 2006
Location: Gießen, Germany
Distribution: Slackware64-14.2 & -current
Posts: 799

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 http://slackbuilds.org/repository/14.1/system/nut/

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
/bin/sync

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

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
[Eaton5E650iUSB]
driver = usbhid-ups
port = auto
desc = "UPS Eaton5E650iUSBDIN"
offdelay=180
ondelay=200

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,

Martin

PS: Here is some diagnostic info:
Code:
upsc Eaton5E650iUSB at localhost
battery.charge: 60
battery.runtime: 619
battery.type: PbAc
device.mfr: EATON
device.model: 5E 650i
device.type: ups
driver.name: 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
driver.version.data: MGE HID 1.31
driver.version.internal: 0.37
input.voltage: 247.0
outlet.1.status: on
outlet.desc: Main Outlet
outlet.id: 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, 08:09 AM   #2
StreamThreader
Member
 
Registered: Mar 2012
Location: Ukraine/Odesa
Distribution: Slackware
Posts: 130

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


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:42 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration