 |
10-06-2007, 08:33 PM
|
#1 (permalink)
|
|
UbuntuUser
Join Date: Sep 2006
Location: India
Posts: 746
|
Auto on/off PC. Is that possible?
Recently a friend of mine told me that if I connect the serial port of my PC to the serial port of my UPS, then by configuring some windows scheduling services my PC will shut down after only 5% of the battery power remains in case of any power failure! 
I dont know if that is possible in windows but if it then I wanna ask whether it is possible in ubuntu too??? If yes, then please either tell me or provide me with any link to do it.
And is there any way to automatic start the PC if the current comes in the socket in which I have plugged in the UPS. 
The latter query is kinda absurd but even if the former works then please tell me how to do that.
__________________
Core 2 Quad Q6600 G0, XFX 650i ultra, XFX 8600GT 512MB, Seagate 320GB, Altec Lansing ATP3, 2x1GB 800MHz, 19" Viewsonic VA1912WB, LiteOn DVD burner, Logitech K/B, mouse, Amigo 500W PSU, Local Cabby.
|
|
|
|
Advertisements. Register and be a member of the community to get rid of them.
|
|
Advertisement
|
|
11-06-2007, 07:34 AM
|
#2 (permalink)
|
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,536
|
Re: Auto on/off PC. Is that possible?
yes,it seems ur too lazy with computers 
for ups walla system,there is a software called apcupsd.yes the same which uses usb connector,right?
Apcupsd a daemon for controlling APC UPSes
Apcupsd can be used for power mangement and controlling most of APC's UPS models on Unix and Windows machines. Apcupsd works with most of APC's Smart-UPS models as well as most simple signalling models such a Back-UPS, and BackUPS-Office. During a power failure, apcupsd will inform the users about the power failure and that a shutdown may occur. If power is not restored, a system shutdown will follow when the battery is exhausted, a timeout (seconds) expires, or runtime expires based on internal APC calculations determined by power consumption rates. Apcupsd is licensed under the GPL version 2.
http://www.apcupsd.org/
these packages may be available already in synaptic(apt) so dont go compiling from source.also it may need to run some cron jobs too.
if with Ubuntu,i found a nice howto:  and GIYF
http://ubuntuforums.org/showthread.php?t=114748
http://linuxappfinder.com/package/apcupsd
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
Last edited by praka123; 11-06-2007 at 07:40 AM.
|
|
|
11-06-2007, 07:58 AM
|
#3 (permalink)
|
|
UbuntuUser
Join Date: Sep 2006
Location: India
Posts: 746
|
Re: Auto on/off PC. Is that possible?
^^Thanks man.
But there's a little problem. I think my ups has only a serial port (no usb)
Hey but can anybody help me with my UPS. It came with my Compaq PC and has "UPS AVR 500" written on the front.
In the rear part the model # is written as CQ500 (I think CQ means compaq).
I even tried searching APC's site but doesnt show any UPS like I have
So is their any way I can find what type is my UPS (BackUPS or USB thingy)
__________________
Core 2 Quad Q6600 G0, XFX 650i ultra, XFX 8600GT 512MB, Seagate 320GB, Altec Lansing ATP3, 2x1GB 800MHz, 19" Viewsonic VA1912WB, LiteOn DVD burner, Logitech K/B, mouse, Amigo 500W PSU, Local Cabby.
Last edited by cynosure; 11-06-2007 at 08:17 AM.
Reason: Automerged Doublepost
|
|
|
11-06-2007, 09:10 AM
|
#4 (permalink)
|
|
Still Shining!
Join Date: Nov 2006
Location: Up 'n' above
Posts: 1,174
|
Re: Auto on/off PC. Is that possible?
You cannot turn on a computer automatically from Shutdown state.
But if you keep the system in hibernation mode, then its posible to wake up or shutdown/hibernate the system automatically at a scheduled time. There are softwares available for it(its or Windows, I don't know for linux).
You can design a device which senses the power availability and automatically presses the power button by a mechanical hand.
__________________
Simplicity is the ultimate Sophistication
HP dv6 6121tx: Core i7 2630 QM | 4GB | AMD 6770M 2GB GDDR5 | 640 GB
Nokia N86 8MP
|
|
|
11-06-2007, 09:42 AM
|
#5 (permalink)
|
|
Torrent Lover :)
Join Date: Nov 2006
Location: Chandigarh
Posts: 182
|
Re: Auto on/off PC. Is that possible?
But for that your motherboard should support the feature (Auto Startup from hibernation)....i have 810e chipset...mine doesnt
|
|
|
11-06-2007, 10:03 AM
|
#6 (permalink)
|
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,536
|
Re: Auto on/off PC. Is that possible?
@dynosure:
ur wanted program is upsd
http://www.boutell.com/lsm/lsmbyid.cgi/001767
Quote:
|
upsd: UPS Monitor Program Upsd is a UPS monitor program. It supports both local monitoring of a UPS that is directly connected to the computer's serial port and remote monitoring over a network. Remote monitoring is done by polling the master upsd (the one with the direct serial connection to the UPS). There are a number of options to control the poll interval and the delay before shutdown.
|
another one is powstatd:
Quote:
Description: Configurable UPS monitoring daemon
Assuming you have a relay-based "dumb" UPS that corresponds with your
machine via a serial connection, you should be able to configure powstatd
in just a few minutes. It is easily configured, and can be expected to
support most "dumb" UPS supplies.
.
UPS models known to work:
CyberPower PowerSL series
CyberPower Power2000 1500VA
CyberPower Power99 325VA, 400VA, 500VA and 720VA
Some older CyberPower 385VA and 450VA models
TrippLite Internet Office 500 UPS
Various older APC units.
.
Powstatd can also be configured to allow a master machine to control
(Via a network connection) up to 20 (by default) additional slave
machines connected to the same UPS. This allows you to run several
machines off the same UPS, with only one of the machines actually
reading the UPS status over the serial line. This version of powstatd
uses secure cryptography to communicate between master and slave(s),
replacing the older powstatd-crypt Debian package.
|
Quote:
|
Originally Posted by Lucky_star
You cannot turn on a computer automatically from Shutdown state.
But if you keep the system in hibernation mode, then its posible to wake up or shutdown/hibernate the system automatically at a scheduled time. There are softwares available for it(its or Windows, I don't know for linux).
You can design a device which senses the power availability and automatically presses the power button by a mechanical hand.
|
supported in GNU/Linux already.in Ubuntu too.u can refer http://ubuntuforums.org
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
Last edited by praka123; 11-06-2007 at 10:15 AM.
|
|
|
11-06-2007, 06:19 PM
|
#7 (permalink)
|
|
UbuntuUser
Join Date: Sep 2006
Location: India
Posts: 746
|
Re: Auto on/off PC. Is that possible?
Thanks guys.
Will try this and then I'll let you know.
@praka123: Man youre a hero!! 
__________________
Core 2 Quad Q6600 G0, XFX 650i ultra, XFX 8600GT 512MB, Seagate 320GB, Altec Lansing ATP3, 2x1GB 800MHz, 19" Viewsonic VA1912WB, LiteOn DVD burner, Logitech K/B, mouse, Amigo 500W PSU, Local Cabby.
|
|
|
11-06-2007, 06:28 PM
|
#8 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
|
Re: Auto on/off PC. Is that possible?
You can connect Serial Port (9 pin) to USB using Serial-USB converter available in the market costing Rs. 800. I have one but i used it for something which i don't remember that too in XP. But i have never tried in Linux.
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
|
|
|
11-06-2007, 06:33 PM
|
#9 (permalink)
|
|
UbuntuUser
Join Date: Sep 2006
Location: India
Posts: 746
|
Re: Auto on/off PC. Is that possible?
__________________
Core 2 Quad Q6600 G0, XFX 650i ultra, XFX 8600GT 512MB, Seagate 320GB, Altec Lansing ATP3, 2x1GB 800MHz, 19" Viewsonic VA1912WB, LiteOn DVD burner, Logitech K/B, mouse, Amigo 500W PSU, Local Cabby.
|
|
|
11-06-2007, 07:20 PM
|
#10 (permalink)
|
|
NP : Crysis
Join Date: Mar 2007
Location: City 17
Posts: 1,434
|
Re: Auto on/off PC. Is that possible?
^^nothing, just ur ups battery will drain out. its not gud for the ups though. it'll charge but it mustn't happen often or ur batt will konk out
__________________
Gaming: Phenom II x4 965BE @ 3.6Ghz/Corsair H50 Liquid Cooling/MSI 790FX-GD70/2x2GB GSkill Ripjaws 7-7-7-24/3 x GTX 470 w/Zalman VF3000F/Corsair 850W PSU/Antec 1200/2xSpinpoint F3 500Gb RAID 0
|
|
|
12-06-2007, 03:19 PM
|
#11 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
|
Re: Auto on/off PC. Is that possible?
Quote:
|
Originally Posted by cynosure
|
That converter converts RS-232 to USB interface.
See this connector:
and
This is what the cable i meant:
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|