Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Power about Uninteruptable Power Supply events

Power about Uninteruptable Power Supply events

Scheduled Pinned Locked Moved C#
question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    frank21
    wrote on last edited by
    #1

    I need a way to be able to detect when ac power to my computer is not available. My cpu is on an UPS and system power management does not catch this event if i unplug the UPS and my system runs on battery. I read the documentation for the system power management class and it will detect an ac to battery power event for a system (internal battery) battery. Does anyone know of a way i can detect when power is coming from a battery in the UPS? Thanks in advance!

    J 1 Reply Last reply
    0
    • F frank21

      I need a way to be able to detect when ac power to my computer is not available. My cpu is on an UPS and system power management does not catch this event if i unplug the UPS and my system runs on battery. I read the documentation for the system power management class and it will detect an ac to battery power event for a system (internal battery) battery. Does anyone know of a way i can detect when power is coming from a battery in the UPS? Thanks in advance!

      J Offline
      J Offline
      J Dunlap
      wrote on last edited by
      #2

      Well, to the computer it's still just AC power. But AFAIK many UPS power supplies have some sort of serial-port or USB connection, and drivers that tell the computer when it's on UPS battery power. I'm not an expert on this by any far stretch, though, so I can't really answer you question completely.

      **"What lies behind us and what lies before us are small matters compared to what lies within us." -- Ralph Waldo Emerson

      FLUID UI Toolkit | FloodFill in C# & GDI+**

      K 1 Reply Last reply
      0
      • J J Dunlap

        Well, to the computer it's still just AC power. But AFAIK many UPS power supplies have some sort of serial-port or USB connection, and drivers that tell the computer when it's on UPS battery power. I'm not an expert on this by any far stretch, though, so I can't really answer you question completely.

        **"What lies behind us and what lies before us are small matters compared to what lies within us." -- Ralph Waldo Emerson

        FLUID UI Toolkit | FloodFill in C# & GDI+**

        K Offline
        K Offline
        Kentamanos
        wrote on last edited by
        #3

        jdunlap's correct. Unless the UPS is connected to your computer by something other than your computer's power cord, there's no way for your computer to know. Old UPS's used serial ports, and a lot of the newer ones use USB, but in either case the UPS has to "tell" the computer. Take a look at the documentation for your UPS.


        I, for one, do not think the problem was that the band was down. I think that the problem may have been that there was a Stonehenge monument on the stage that was in danger of being crushed by a dwarf.
        -David St. Hubbins

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups