Questions tagged [power-management]

The process by which some operating systems will attempt to conserve energy.

May include spinning down disks or fans during idle time. May also effect monitors and entire systems.

Power management system usually implement selectable policies such as conservative or performance.

Primarily relevant to laptops where battery life is an issue though may also refer to turning off monitors to avoid screen burn-in.

See also hibernate and sleep.

473 questions
9
votes
3 answers

What CPU instructions use the most power?

The background is thus: next week our office will have one day with no heating, due to maintenance. Outdoor temperature is expected between 7 and 12 degrees Celcius, so it might become chilly. The portable electric heaters are too few to cater for…
Macke
  • 24,812
  • 7
  • 82
  • 118
8
votes
1 answer

Android accelerometer, sensor usage and power consumption

I have a quick question about the accelerometer in Android devices. Is it always on/active? Given that accelerometer is used to detect the orientation of the device, either landscape or portrait. In the official documentation (SensorManager) it…
8
votes
2 answers

Battery use, what to expect?

I'm making a 2D game for Android, and I've recently been looking at optimization. I looked at the battery-use in Settings and found that after leaving my game in the foreground (with the screen on) for a little over an hour, I had drained 11% of…
Jack
  • 2,625
  • 5
  • 33
  • 56
8
votes
1 answer

Android BroadcastReceiver android.intent.action.BATTERY_CHANGED

I am able to listen for the Intent Intent.ACTION_BATTERY_CHANGED within my activity and it works great. I tried defining the receiver in the manifest:
Bear
  • 1,541
  • 3
  • 20
  • 32
8
votes
3 answers

How can I detect when the user has pressed the power off button?

I have an arcade cocktail cabinet (no keyboard, just a joystick and buttons) running Ubuntu 12.4.1, when the power button is pressed a popup appears and the system shuts down fine, but when my full-screen game launcher menu application is running…
KPexEA
  • 16,560
  • 16
  • 61
  • 78
8
votes
1 answer

How do I enable "Allow this device to wake the computer" programmatically?

On some computers, the network adapters are, by default, configured with the "allow this device to wake the computer" option turned off. As a result, Wake on LAN won't work. I need to turn this option back on, but I can't do it by hand - too many…
Harry Johnston
  • 35,639
  • 6
  • 68
  • 158
8
votes
1 answer

How to turn screen on during partial wake lock

My activity runs with a partial wake lock because it is continually handling received Bluetooth data. The wake lock is set up like so: powerManager = (PowerManager) getSystemService(Context.POWER_SERVICE); wakeLock =…
Tary
  • 1,021
  • 1
  • 10
  • 13
7
votes
3 answers

Get the remaining battery time available from an Android phone

Is it possible to get the remaining battery time available from an Android phone? Thanks.
Sodino
  • 587
  • 6
  • 16
7
votes
3 answers

How does memory use affect battery life?

How does memory allocation affect battery usage? Does holding lots of data in variables consume more power than performing many iterations of basic calculations? P.S. I'm working on a scientific app for mac, and want to optimize it for battery…
NoobDev4iPhone
  • 5,531
  • 10
  • 33
  • 33
7
votes
4 answers

Read Laptop Battery Status in Float/Double

I have a program that reads battery status in Windows that looks like this (simplified code): #include #include using namespace std; int main(int argc, char *argv[]) { SYSTEM_POWER_STATUS spsPwr; if(…
BootStrap
  • 73
  • 1
  • 1
  • 3
7
votes
1 answer

How to turn on/off the monitor(s)?

I wanted to be able to turn on/off my monitors from a Delphi script, from Windows XP to 7. I have searched within the Delphi section on stackoverflow and didn't find the answer. I also found many samples which doesn't work anymore on Windows 7 (only…
Whiler
  • 7,998
  • 4
  • 32
  • 56
7
votes
1 answer

Do android broadcast receivers consume battery life?

I have two receivers that are listening for android.intent.action.BOOT_COMPLETED and android.intent.action.PACKAGE_REPLACED. I was wondering how much battery life they are causing my phone to consume since they cause my app to constantly run now.
ninjasense
  • 13,756
  • 19
  • 75
  • 92
7
votes
3 answers

Windows - CPU power management APIs

What APIs are provided by Windows for CPU power management (I'm interested in CPU frequency scaling, setting min and max CPU frequency - similar to what you can do in Control Panel in power plans, but in a programmatic way). I'm also interested in…
kjv
  • 11,047
  • 34
  • 101
  • 140
7
votes
2 answers

Detect Changing Battery state at every percentage in android

i want to detect battery change at every percentage. I am able to detect battery level once with broadcast receiver. But its not updating value automatically when % change from 66 to 67. Here is my code. private void batteryLevel() { …
djk
  • 3,671
  • 9
  • 31
  • 40
6
votes
2 answers

Determine power usage programmatically in Windows?

Are there any OS capabilities in Windows to know your system's current power usage programmatically? (Ideal solution could be via WMI interface.)
ahmd0
  • 16,633
  • 33
  • 137
  • 233
1 2
3
31 32