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.

464 questions
42
votes
17 answers

Power Efficient Software Coding

In a typical handheld/portable embedded system device Battery life is a major concern in design of H/W, S/W and the features the device can support. From the Software programming perspective, one is aware of MIPS, Memory(Data and Program) optimized…
goldenmean
  • 16,908
  • 50
  • 144
  • 206
38
votes
3 answers

Battery drain when using CoreLocation Significant Location Monitoring & CoreBluetooth

We've released an application which runs in the background and uses CoreBluetooth & CoreLocation to automatically save your parking location. At a high level our app just looks for a CoreBluetooth disconnect event and turns on GPS until we get an…
33
votes
4 answers

Simulating low battery for iPhones

I am working on a mobile game, which appearantly crashes when the Low Battery alert is displayed. It works fine on low memory, incoming calls and other messages. Its a pain to test and debug this, since I can find no terminal or iPhone simulator way…
Nils Munch
  • 8,670
  • 11
  • 48
  • 101
31
votes
3 answers

How to start Power Manager of all android manufactures to enable background and push notification?

Some Android devices due to custom Android tweaks are done by manufacturers has some politics about Power Management that breaks some features like push notifications. Huawei - Only Pre-EMUI 5.0 / Android 7 - Go to Settings > "Protected apps",…
Xan
  • 3,550
  • 4
  • 25
  • 36
27
votes
3 answers

How to get information about android battery usage by application

How can I get battery usage per application in Android. I need to know % of battery spent by application. Is it possible using SDK? What I need is the information that's available on an Android device under "Settings>About phone>Battery use", but…
João Lopes
  • 982
  • 2
  • 10
  • 18
27
votes
4 answers

Android Battery in SDK

Is there a way to get battery information from the Android SDK? Such as battery life remaining and so on? I cannot find it through the docs.
Jeremy Edwards
  • 14,108
  • 15
  • 71
  • 98
26
votes
5 answers

Correct method for setKeepScreenOn / FLAG_KEEP_SCREEN_ON

I am using the method setKeepScreenOn(true) and haven't been able to figure out how to call this in relation to the current Activity (which has a content view set). I've been able to get it to work by calling it on one of my buttons which is always…
Emma Assin
  • 821
  • 2
  • 11
  • 22
25
votes
5 answers

Accelerometer stops delivering samples when the screen is off on Droid/Nexus One even with a WakeLock

I have some code that extends a service and records onSensorChanged(SensorEvent event) accelerometer sensor readings on Android. I would like to be able to record these sensor readings even when the device is off (I'm careful with battery life and…
23
votes
9 answers

Find out battery charge capacity in percentage using C# or .NET

I have an application that gets detailed system information, and I have been able to get the percent of charge remaining but not the percent of the battery itself. Explanation: As time goes on, the battery slowly gets worse and worse, and some…
H Bellamy
  • 20,906
  • 22
  • 68
  • 110
18
votes
5 answers

Launching NFC when screen is Locked in Android

I want to launch My Application when we taps on NFC tag even Phone is Locked same as did in Google Wallet Application. I tried in following ways : 1) Tap NFC tag to launch my application after pressing Power button - Error : 05-23 22:00:22.949:…
Venky
  • 10,964
  • 5
  • 46
  • 66
18
votes
1 answer

Reducing iOS Background Location Battery Usage

I'm working on an iOS app that ideally needs to run the location services in the background. I've tested the significant location, and that isn't accurate enough. The accurate location is perfect, but this consumes far too much battery life to make…
Andy
  • 436
  • 4
  • 9
17
votes
1 answer

What are the units for battery temperature and voltage when Intent.BATTERY_ACTION_CHANGED on android device?

I retrieved battery temperature and voltage information using the intent Intent.ACTION_BATTERY_CHANGED and the values I got are pretty weird. I could not get any clue: temperature=270 and voltage=3782! What are these values? Do they have any units…
Ashok Jeev
  • 647
  • 3
  • 10
  • 14
17
votes
4 answers

How to do power save on a ARM-based Embedded Linux system?

I plan to develop a nice little application that will run on an arm-based embedded Linux platform; however, since that platform will be battery-powered, I'm searching for relevant information on how to handle power save. It is kind of important to…
Johan
  • 18,177
  • 25
  • 89
  • 107
16
votes
3 answers

InstallShield battery level warning

Is there any way to display an warning message if the user tries to install my app when the battery level is under 5%? I'm using InstallShield.
Cornel
  • 4,467
  • 15
  • 45
  • 56
16
votes
1 answer

How do I check when the computer is being put to sleep or wakes up?

I want to make my program aware of the computer being put to sleep or waking up from sleep, possibly have an event that is triggered when either of these occur. Is this possible?
esac
  • 22,369
  • 35
  • 114
  • 171
1
2 3
30 31