power

How can I know when Windows is going into/out of sleep or Hibernate mode?

Is it possible to subscribe to a Windows event that fires when Windows is going into or coming out of Sleep or Hibernate state? I need my application to be made aware when the computer is going to sleep to do some cleanup and avoid timing issues when it comes out of sleep. ...

How do I wake up my Windows monitors once turned off by power settings?

So my Vista machine is set to turn off it's monitors after 10 minutes. (Note : machine is not suspended, or hibernated) I have a .Net application running, that needs to "wake" the system at a specified time. As a human, you just move the mouse or press a key. How do I do this programatically? I've tried : programatically setting the...

In Mac OS X, is there a programmatic way to get the machine to go to sleep/hibernate?

Is there some command line or AppleScript that I can write/run to make the machine go to sleep automatically or even better, into hibernate mode? I can run the program as root. ...

Windows UPS (Uninterruptible Power Supply) service - turn off UPS?

I'm using the UPS service to monitor the state of my UPS from an application -- the key at HKLM\SYSTEM\CCS\Services\UPS\Status has all the information you can get from the Power control panel. BUT -- I'd like to be able to tell the UPS to shut down from my app as well. I know that the service can tell the UPS to shut down -- for instan...

Reducing power consumption on a low-load server running WinXP?

I am using a quad-core windows XP based Dell Machine machine in my office as a server for an application that I am developing and for occasional work with remote desktop connection. The machine is typically under very light load, running a MySQL server with few connections and a few Java processes that make a database connection every f...

Estimate approximate power consumption of a PC

I wanted to know whether we can approximate the power consumption of the PC if we have 1> sum of peak power consumption of all PC components in Watts (P) 2> machine uptime (T) 3> Avg CPU usage (Pcpu - a number between 0 and 1) 4> Power supply power factor (PF - a number between 0 and 1) I have formulated this equation. Please verify i...

How to make computer return from standby mode

I would like my computer to do specific tasks periodically or at a specific time. Such as: to wake up each 15 minutes, connect to the Internet, check e-mail, beep (if there is unread mail), then go standby again to wake up at 8 am and play music In the best case, it should be asleep and therefore, silent and going low-power. It's n...

How to design a less power consuming mobile application ?

I will soon work on a project about a mobile application. This application will work on a PDT with Windows Mobile and we will use Visual Studio and .NET to developp it. This application will intensively use Wifi and need to consume as little power as possible. I found on the internet a lot of stuff concerning embedded software and real ...

Windows Mobile - Disable Power Button

Has anyone successfully trapped the power/standby button on a WM5 device such that your code prevented users "switching off" even the screen? I have an application that uses the screen in a landscape orientation and I'd like to trap the power key press so that (a) users can hold the device with both hands and not accidentally power-down...

Windows CE Registry Setting - Never Power Off

I have a unique industrial application where I do not want the Windows CE device to ever power off (powering off cuts the wireless connection, resulting in a looooong delay re-establishing a link to the server). The issue: a hard reset removes the "never turn off" setting of the device, allowing it to sleep. Avoiding a hard reset is no...

How do I cancel standby and hibernate?

my application running in C#, using third party framework.it works as an UI for many application.my question is when my appplication is running and the system should not happen standby/hybernate OS operations. somehow i have to cancel the event for standby/hybernate raised by OS.please any one help my in this regards. Thanks Sun ...

iPhone - Detect if device is charging

I can't find anything definate using my favourite tool however I thought I would put it out here.... Is there a way, using the iPhone SDK, for an App to detect if the device is in a state of receiving power (charging, dock etc.) I would like to be able to disable the idleTimer automatically if the device is receiving power (otherwise i...

Is USB power always enabled ? And if not, how to write a driver.

I have a device that came with an AC power adapter where the connector is a mini USB plug. The device however doesn't seem to power itself from a computer's USB port (using a standard USB-mini USB cable) unless a specific driver is installed. The driver is only available for Windows. I would like to charge the device from USB plugs on...

How to programatically get current battery level with COCOA

How can I get the current battery level using the cocoa framework running with Leopard? Currently I am getting it running a NSTask with: pmset -g ps | grep -o -e [0-9]*% | sed -e 's/%//g' But i think this is a clumsy way of doing this. Thanks ...

Disable ACPI power button

Hi, is there any simple way to disable processing ACPI power button events (Shutdown) temporarily using the Windows API in Visual C++, so the user isn't able to shut down the computer using the power button? ...

Schedule machine to wake up

What's the best way to programmatically cause a Windows XP (or above) machine to wake up at a specific time. (Ideally a lot like how Media Center can start up automatically to record a particular TV program) I've got a Windows service (written in C#) and I'd like this service to be able to cause the machine it is hosted on to start up a...

Symbian Power Status Notification

Hi, I have an application that uses memory card and I need to do some save/restore state operations when the power of the card reader is turned off and on back again. This usually happens after some time of activity and phone goes to a power save mode. In Windows Mobile I solved the same problem by receiving power notifications from the...

C#, Win CE 4.2, Write file, power loss

Hello programmers, I'm using C# & the compact framework on an embedded device to log data to a compact flash card. Because data integrity is of upper most importance, I'm wondering how to write the data to the flash disk. Will files get lost/damaged if power is lost during a write/flush or while the file is opened? What's the best way t...

What is relation between MCPS(million cycles per second) and power consumed

Hello, I have been working on a ARM cortex A8 board on mp3 decoder. While doing this i have a requirement saying the mp3 decoder solution i am doing should consume 50 milli-watts of power. This generated few questions in my mind when i thought about it:- 1.) I recall that there is some relation between the Core Voltage applied(V), ...

How to make my Pocket PC stay on till my application has finished?

I've got an application that presents the user with ongoing status for roughly 15 minutes. What I want to do is make it so the unit will not power off during this time (because the wifi goes down and the status stops :( ) I'd assume the system is capable of doing this gracefully because I can watch a whole episode of Dilbert (22min) wit...