System Guts(power information)




Hello. I want to write a program in which the main functionality will
depend on whether or not my
computer is connected to a power adapter(this is for laptops). I looked
in the online-documentation for this and had no luck. I imagine it is
quite easy and may even be as simple as a boolean variable...?

All I want to be able to tell is whether or not my computer is being
externally powered. More specifically
I want to be able to have my program running, and be alerted if I
un-plug my power adapter.

I am using a Mac(powerbook) with java 1.4.2 if that makes any
difference.

Thank you very much.

.



Relevant Pages

  • Re: Board testing in production
    ... interface to the board is through extendable pogo-pins including power, ... communications and mostly voltage measurements. ... Entire board functionality is tested including communication, ... I'm almost ready to take a board into production and want to know what ...
    (comp.arch.embedded)
  • RE: shuting down power to a usb hid device
    ... That just depends on your hardware. ... functionality is provided. ... (when plugged between computer and USB peripheral. ... > I don't mind if I can simply turn of the power the usb chip too. ...
    (microsoft.public.windowsxp.embedded)
  • Power Management Update
    ... I'm pleased to announce the release of the first patchset of power ... These patches should restore suspend functionality for those that were ... - Allows 'backdoor' interface to swsusp, ...
    (Linux-Kernel)
  • Re: CE.NET v4.2 ARMV4I Flash corruption -- functions for test app?
    ... Depending on how much power functionality is enabled on your platform, ... should probably use the SetSystemPowerStateAPI to gracefully shutdown ... This API will filter down through the power manager and also call ...
    (microsoft.public.windowsce.platbuilder)
  • System Information
    ... I want to write a program in which the main functionality will ... computer is connected to a power adapter. ... un-plug my power adapter. ...
    (comp.lang.python)