power

Power Status Monitor for Storage Device

We have dual power supply to a storage device. How we should be monitoring the failure of even a single power supply? Storage device is used by application on linux OS. ...

Processor Utilization by threads spawned by a program

I have a java program which spawns multiple threads say, 10-20 threads. This program is scheduled to be run on a machine that has 32 processors. I am keen to know if all the processors' power would be utilized by these threads. Solaris is the environment; does that make any difference? ...

power of an integer in c++

Hi! I need to get the result from pow(a,b) as an integer (both a and b are integers too). currently the calculations where (int) pow( (double)a, (double)b) is included are wrong. Maybe someone can help with a function that does the pow(a,b) with integers and returns an integer too? But here is the odd part: I made my script in Linux wi...

Is the ^ operator really the XOR operator in C#?

I read that the ^ operator is the logical xor operator in c#, but i also thought it was the "power of" operator. Can someone clear this up for me? ...

Using an IOService port reference to turn off a device...

Hello, This question relates to IO Kit programming on Mac OS X. I have an IO Service Port reference (io_service_t). Is there an API I can use to make whatever is on the end of that IOService port reference power off? I have tried with all my googling might, but have not found a solution. Any help would be appreciated. Cheers Jan ...

Why does SetThreadExecutionState(ES_SYSTEM_REQUIRED) prevent display power-off?

I'm attempting to keep the system on while allowing the display to power off, to allow a download to finish while the system is unattended. To achieve this I call: SetThreadExecutionState(ES_SYSTEM_REQUIRED); whenever I get data from the download. However, this seems to prevent display power down as well (the display dims per its conf...

OSPM - power management in OS

How does one increase or decrease the frequency scaling factor , or turn off frequecy scaling ? how to turn ON or OFF cpuidle state ? how to switch between tickless and non-tickless ? how to make sense of the data obtained form commands like top , memstat, iostat, netstat etc how to turn ON/OFF power management option ? how to manipulat...

Log my battery performance on netbook

Which Windows API (Windows Xp and Window 7) do I use to log my battery performance on netbook? I want to write an app which can graph the watt vs time. I always run a select few apps on the netbook. Is there a tool for this already? ...

problem with alert email in TFS and power tools

Hi I have a problem with TFS and email notifications. I can not receive any email from TFS server for work item tracking. I correctly have configured web.config in ...\Web Services\Services in TFS server. and I am useing power tools for alert. but when I set an alert to notify me for an item,any event haven't happened yet. I have checked...

Is there software or code to alter USB power output

I had a look at this and this but no one sounded particularly sure of their ideas and I'm kind of after a different thing anyway. I want to hook my usb power cables (red and black) up to my phone so I don't have to use a battery (the battery is dead anyway and this is just an experiment). The problem is that USB standards ensure that a m...

How to raise a double value by power of 12?

I have a double which is: double mydouble = 10; and I want 10^12, so 10 * 10 * 10 * 10 * 10 * 10 * 10 * 10 * 10 * 10 * 10 * 10. I tried double newDouble = pow(10, 12); and it returns me in NSLog: pow=-1.991886 makes not much sense... I think pow isn't my friend right? ...

Control USB port's power?

Does anybody know how to control USB pins on a certain USB port? I think it is definately possible in assembler but what about C++ or C#? I want to be able to use USB battery as a power supply for an LED or something like that. So then a program would power it on and power it off making it flash. I know it sounds pointless but I nee...

Does CallNtPowerInformation(SystemPowerInfomation...) work on WIndows XP?

I'm trying to access the "TimeRemaining" value for the power management idle counter. Google search indicates that lots of folks (including me) can get a value once, but every subsequent call gives the same results. No countdown, no change in CurIdle value... Here's a short version of the code in question: #include <windows.h> #inclu...

How to measure the power consumed by a C algorithm while running on a Pentium 4 processor?

How can I measure the power consumed by a C algorithm while running on a Pentium 4 processor (and any other processor will also do)? ...

Math question in regards to functions in the form (1) / ( b ^ c )

I've found functions which follow the pattern of 1 / bc produce nice curves which can be coupled with interpolation functions really nicely. The way I use the function is by treating 'c' as the changing value, i.e. the interpolation value between 0 and 1, while varying b for 'sharpness'. I use it to work out an interpolation value betwe...

c# How to get the events when the screen/display goes to power OFF or ON?

Hi I have been searching but I can't find the answer. How do I know when the screen is going off or on. Not the SystemEvents.PowerModeChanged . I dont know how to retrieve the display/screen EVENTS private const int WM_POWERBROADCAST = 0x0218; private const int WM_SYSCOMMAND = 0x0112; private const int SC_SC...

How to detect when the laptop is running on batteries in .NET?

Hi, How to detect when the laptop is running on batteries (or AC) in .NET? Thanks, Mahesh ...

In WMI, can I use a join (or something similar) to acquire the IisWebServer object for a site, given server name and deployment location

Given a server name and a physical path, I'd like to be able to hunt down the IISWebServer object and ApplicationPool. Website url is also an acceptable input. Our technologies are IIS 6, WMI, and access via C# or Powershell 2. I'm certain this would be easier with IIS 7 its managed API. We don't have that yet. Here's what I can do: ...

Tracking power use on Android

I have an application that keeps a long-standing network connection to a server. I periodically ping the server to know if its still alive. I imagine that it affects battery life, but other than trying to wall-clock time the time between charges, I don't have a good way of quantifying this. Is there a mechanism for being told when the...

How to handle power-failure in WinCE?

I've got a WinCE device powered over ethernet (PoE) and I want to prevent File-System corruption following a potential power loss, e.g. user pulling the plug. As a side note, I'm already using TexFAT which is supposed to prevent FS corruptions. While the later certainly does help reducing FS corruptions (over using plain old FAT), it...