Roger Salisbury
2010-Aug-21 09:17 UTC
[Nut-upsuser] Fw: Interfacing a Contact-Closure UPS to Mac OS X and Linux
Hi David As per the link http://www.llondel.org/ups.shtml & the final testing paragraph. I have set up a Lantech UPS similiar to your write up for your Powersure Proactive and Powersure Personal UPS's On LOW BATT it shuts down OK. BUT as with other many UPS's during the wait period from low batt to start of shutdown ... IE [SHUTDOWNCMD "/sbin/shutdown -h +20"] 20 minutes in this case. Reapplying AC power before the 20 minute mark stops the shutdown & all is normal again. This option isn't working on my setup. What happens in your setup. What I could do a run a script that cancels the shutdown. ... with " shutdown -c" . But there is no alert as to AC power being restored. Pulling power before "LOW BATTERY" there is an alert. IE from /var/log/syslog ............. Aug 21 12:12:05 roj-desktop upsmon[18721]: UPS powerpal at localhost on line power But after LOW BATTERY is detected there is NO such alert. thx Any comments greatly appreciated. Roger Salisbury roger at pchelp2u.com.au 75 Mawson Pde Chifley Sydney NSW 2036 0296618811 mob 0400339007 Interfacing a Contact-Closure UPS to Mac OS X and Linux Having acquired some cheap Liebert Powersure Proactive and Powersure Personal UPS boxes, I set about interfacing them to my Mac and Linux machines. In the process I learned a few things about OS X that I didn't know before. The UPS Both models of UPS have a 9-way D socket on the back with a basic contact-closure signalling arrangement that allows On Battery and Low Battery to be indicated by the closing of relay contacts. The Proactive uses relays and is polarity-independent whereas the Personal uses solid-state switching and is polarity sensitive. It also assigns a remote-shutdown function to pin 6. PIN FUNCTION 1 Low Battery (+) 2 Not Used 3 Not Used 4 UPS Off 5 UPS Ground 6 On Battery (NC)/Remote Shutdown 7 Low Battery (-) 8 On Battery (COM) (-) 9 On Battery (NO) (+) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20100821/a9696e70/attachment.htm>
Charles Lepple
2010-Aug-21 11:22 UTC
[Nut-upsuser] Fw: Interfacing a Contact-Closure UPS to Mac OS X and Linux
On Aug 21, 2010, at 5:17 AM, Roger Salisbury wrote:> Hi David > > As per the link > > http://www.llondel.org/ups.shtmlNot sure if David is on the list, but we can probably help.> & the final testing paragraph. > > I have set up a Lantech UPS similiar to your write up for your > Powersure Proactive and Powersure Personal UPS's > > On LOW BATT > it shuts down OK.Do you get the "OB" ("on battery") status before "LB" ("low battery")?> BUT as with other many UPS's during the > wait period from low batt to start of shutdown ... IEIn NUT, there is no wait period - when upsd sees the LB status from the driver, it starts the shutdown sequence. The idea is that if an UPS says "low battery" (versus just "on battery") then it only has a few minutes left. The other potential problem with allowing a return from the low battery state is that if the power returns for only a minute or two, and the UPS starts up, there will not be enough battery power to detect whether or not the computer should keep starting up or not.
Seemingly Similar Threads
- Fw: RESTORATION of POWER .... I seem to have cabling & drivers set up correctly for a contact closure UPS BUT ..........
- Help needed: LIEBERT PowerSure Personal XT - USB interface
- UPS Liebert GXT-3
- UPS Liebert GXT3 config
- [HCL] <Liebert> <PowerSure PSI 1440> supported by <?>