DIGIT-ARC read-only archive · snapshot: July 23, 2026

Mains failure detection

4 posts · originally from https://geek.digit.in/community/threads/mains-failure-detection.23498/

A
amitgg Original post #1
Feb 9, 2006 at 9:47 PM
Is it possible to know whether my system is running on mains or battery(ups) so that system automatically shuts down after giving a message.

My ups is not having usb support.
phatratt
Feb 11, 2006 at 8:46 PM
does'nt your UPS makes any beeps,the beep sounds indicates(while switching on and during power cut)wheather it is running on mains or battery.
M
Feb 12, 2006 at 3:35 AM
there are two types of UPS.. online and offline.
if your UPS is not connected to the computer using USB or serial, then its an offline UPS. sorry there is no way for your computer to detect if its running on power or UPS.. i am not sure though.. they may be another way.
J
job9434 #4
Feb 12, 2006 at 9:35 PM
munim2020 , iam sorry to say that your answer is so wrong!!!!!!!!! .

ONLINE UPS : online ups means it will always runs on battery , it never link ac directly to the pc ,at the same time it use ac to charge its battery

OFFLINE UPS : thats the ups that we use in our home and for normal desktop use .These ups are line intractive ups that it draw power directly from ac and it regulates it then its supplys to computer .In the event of power failure it goes to battery mode