LinuxQuestions.org
Review your favorite Linux distribution.
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 07-12-2003, 09:22 PM   #1
slack66
Member
 
Registered: Jul 2003
Location: manila
Distribution: slackware 8 to 9
Posts: 199

Rep: Reputation: 30
ups autoshutdown my computer


hello senario: no power "blackout"...ups switch to battery after a minute ups sense low battery charge in a minute ups will have no power to continue..... is there a way to automatic shutdown my computer if ups detected a low battery before ups is totally shutdown.... iam using slackware 9.0 and 8.1 thks in adv!
 
Old 07-12-2003, 10:51 PM   #2
klod
Member
 
Registered: Apr 2003
Location: shoebox (with broadband ;)
Distribution: debian woody/sid
Posts: 70

Rep: Reputation: 15
APM! Check that apm is compiled in your kernel, then:
"$man apm".
And you will get enough info to start with!

Cheers, Klod
 
Old 07-31-2003, 09:04 PM   #3
nerotique
LQ Newbie
 
Registered: Jul 2003
Distribution: Slackware 11 / Ubuntu 6.06
Posts: 22

Rep: Reputation: 15
Ok. . .here's one that might stump you. . getting the linux box to shutdown via the APM daemon is a snap. . . but here's the kicker. What if I have a Windoze box on my internal network that I wish to shudown as well.

Scenario:

1 UPS - 1 Linux box - 1 Windoze box

Linux box is connected to Windoze box via crossover cable. Power goes out. . . both boxes need shutting down, but only the Linux box gets the message from the UPS, since there is only one USB interface on the UPS.

Is there a way to send a broadcast message from the Linux box to get the Windoze box to shutdown as well or vice-versa?

Thanks
 
Old 09-09-2003, 05:25 PM   #4
hobylinux
Member
 
Registered: Jul 2003
Location: Ohio, USA
Distribution: Mandrake 9.2
Posts: 145

Rep: Reputation: 15
i'm looking to do the same thing with a ups. i just read the man page on apm, and didn't see anything about shutdown--the only options were to put the system into standby or suspend. also, i still haven't got standby or suspend working yet. any suggestions as to other ways to shut down the system?

thanks
 
Old 09-09-2003, 08:26 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,185

Rep: Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087
I only know of the APC UPS deamon for linux called apcupsd that has a master / slave option (don't know what kind of interface) and can be configured to shutdown the PC based on time or battery level. There is a new version that supports USB too.

Just do a web search for apcupsd for documentation and to download the deamon.

APC does proide support for linux but never have tried it out.

Not sure if any of the other UPS manufactures support linux.
 
Old 09-09-2003, 08:45 PM   #6
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
Exclamation Itshould be "doable"

I use Mandrake 9.1 and a Cyberpower 1250 and there is a link on the website to the software. Look on the manufacturers website for a link. Mine went to a University. They will usually be a tar'd and gz'd file that includes setup instructions.

The one I use is powstatd and it supports several brands and has good step by step instructions. It can be used with almost any smart or relay UPS according to the info. It includes power fail, power restore and low battery conditions. Guy couldn't find what he wanted so he wrote it.

If you want a link let me know, I'll go find it for you.

 
  


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
Computer powering off after UPS plug removed arobinson74 Linux - Hardware 1 05-22-2005 10:01 PM
UPS - Need a way to get the computer to turn off Riddick Linux - Software 3 12-30-2004 10:15 PM
Autoshutdown on Athlon wonderpun Linux - General 8 04-15-2003 01:57 PM
Autoshutdown wonderpun Linux - General 4 11-01-2002 12:25 PM
Autoshutdown wonderpun Linux - General 32 09-15-2002 08:44 AM

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

All times are GMT -5. The time now is 04:47 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