LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 05-21-2005, 05:07 PM   #1
arobinson74
Member
 
Registered: Nov 2002
Location: Lone Tree, CO
Distribution: Xubuntu Gutsy
Posts: 174

Rep: Reputation: 30
Computer powering off after UPS plug removed


I have a Conext 950VA battery AVR/UPS.

I have the control cable plugged into the serial port on my motherboard.

I have installed the apcupsd software (APC's).

I am trying to test that everything is working. I have setup the software (/etc/apcupsd/apcupsd.conf) with the following options:

UPSCABLE simple
UPSTYPE backups
DEVICE /dev/ttyS0
LOCKFILE /var/lock
ONBATTERYDELAY 6
BATTERYLEVEL 5
MINUTES 3
TIMEOUT 0
ANNOY 300
ANNOYDELAY 60
NOLOGON disable
KILLDELAY 0
NETSERVER on
NISIP 0.0.0.0
NISPORT 3551
EVENTSFILE /var/log/apcupsd.events
EVENTSFILEMAX 10
UPSCLASS standalone
UPSMODE disable
STATTIME 30
STATFILE /var/log/apcupsd.status
LOGSTATS off
DATATIME 0

OK, now I have not started apcupsd yet (confirmed with "ps aux | grep apc" and "ps aux | grep ups".

Now I start "apctest". I run tests 1 & 3 fine. Then a ~2-4 minutes after I run test 3 (which is test the UPS with the power cord unplugged), the computer powers off (not shutdown, full power off).

Steps:
apctest
1 <enter>
3 <unplug> <enter>
<plug UPS powercord back in>
<quit apctest>
<wait ~3 min>
<power off, computer auto-restarts>

Now I have Slackware 10.1, but with the 2.6.10 kernel and some custom configuration options. I have looked into the bios of the computer (MSI K7N2GM-V motherboard) and found nothing that would alert me to this behavior.

If apcupsd isn't running (only apctest was), and the bios doesn't see to be involved, what could be causing the computer to poweroff after around ~3 minutes?

I do have ACPI support enabled in the computer and battery power as a module, but I don't know if that could be tied in or not.

Not sure where to look to see what is doing this. I only want to have apcupsd check for power events.
 
Old 05-22-2005, 10:01 PM   #2
arobinson74
Member
 
Registered: Nov 2002
Location: Lone Tree, CO
Distribution: Xubuntu Gutsy
Posts: 174

Original Poster
Rep: Reputation: 30
Nevermind, had to switch
UPSCABLE simple
to
UPSCABLE 940-0020C
 
  


Reply



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
Removed redhat from system and computer wont load in XP lukegt Red Hat 1 01-15-2005 09:13 PM
UPS - Need a way to get the computer to turn off Riddick Linux - Software 3 12-30-2004 10:15 PM
ups autoshutdown my computer slack66 Linux - Hardware 5 09-09-2003 08:45 PM
UPS powering multiple machines rsbecker007 Linux - Hardware 1 07-16-2002 10:43 PM
How to plug a laptop to a desktop computer? Frank General 2 06-13-2002 08:23 PM

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

All times are GMT -5. The time now is 10:06 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
Open Source Consulting | Domain Registration