Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 10-06-2007, 08:33 PM   #1 (permalink)
UbuntuUser
 
cynosure's Avatar
 
Join Date: Sep 2006
Location: India
Posts: 746
Default 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.
cynosure is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 11-06-2007, 07:34 AM   #2 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Smile 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.
praka123 is offline  
Old 11-06-2007, 07:58 AM   #3 (permalink)
UbuntuUser
 
cynosure's Avatar
 
Join Date: Sep 2006
Location: India
Posts: 746
Default 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
cynosure is offline  
Old 11-06-2007, 09:10 AM   #4 (permalink)
Still Shining!
 
Lucky_star's Avatar
 
Join Date: Nov 2006
Location: Up 'n' above
Posts: 1,174
Default 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
Lucky_star is offline  
Old 11-06-2007, 09:42 AM   #5 (permalink)
Torrent Lover :)
 
akshaykapoor_3's Avatar
 
Join Date: Nov 2006
Location: Chandigarh
Posts: 182
Default 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
akshaykapoor_3 is offline  
Old 11-06-2007, 10:03 AM   #6 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Smile 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.
praka123 is offline  
Old 11-06-2007, 06:19 PM   #7 (permalink)
UbuntuUser
 
cynosure's Avatar
 
Join Date: Sep 2006
Location: India
Posts: 746
Default 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.
cynosure is offline  
Old 11-06-2007, 06:28 PM   #8 (permalink)
Wise Old Owl
 
The Unknown's Avatar
 
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
Default 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
The Unknown is offline  
Old 11-06-2007, 06:33 PM   #9 (permalink)
UbuntuUser
 
cynosure's Avatar
 
Join Date: Sep 2006
Location: India
Posts: 746
Default Re: Auto on/off PC. Is that possible?

^^ No bro, I am not getting it.
800 bucks
And what will happen if my PC does not shut down even after all these thingies
__________________
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.
cynosure is offline  
Old 11-06-2007, 07:20 PM   #10 (permalink)
NP : Crysis
 
xbonez's Avatar
 
Join Date: Mar 2007
Location: City 17
Posts: 1,434
Default 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
xbonez is offline  
Old 12-06-2007, 03:19 PM   #11 (permalink)
Wise Old Owl
 
The Unknown's Avatar
 
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
Default Re: Auto on/off PC. Is that possible?

Quote:
Originally Posted by cynosure
^^ No bro, I am not getting it.
800 bucks
And what will happen if my PC does not shut down even after all these thingies
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
The Unknown is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
auto wht?? ashfame Hardware Q&A 6 25-06-2006 09:41 PM
Auto Cad adi87 QnA (read only) 2 24-06-2006 06:05 PM
Auto shut down Dark Star Hardware Q&A 6 07-05-2006 04:43 PM
Why not auto Booting?XP cd rajas700 Software Q&A 2 04-12-2005 10:14 AM
win xp auto update help hsiyer Software Q&A 1 30-04-2005 03:58 PM

 
Latest Threads
- by Sujeet
- by soumya
- by clmlbx
- by Charan

Advertisement




All times are GMT +5.5. The time now is 12:40 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2