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
6
votes
2 answers

Programmatically prevents battery charge

Some computers (e.g. Dell, Vaio) come with software that prevents a battery from charging. This functionality allows me to use my laptop with battery (protected from power outage) and keep my battery from charging until it's down to, at most, 50%…
Rafael
  • 345
  • 3
  • 16
6
votes
3 answers

Possibilities to reduce power consumption with cocos2d apps

I made a board game with includes just some little animations. I reduced the fps from 60 to 30 to reduce the processor load. But the device still gets very warm. Another application made without cocos2d is not heating it so much. Are there any…
zeiteisen
  • 7,078
  • 5
  • 50
  • 68
6
votes
3 answers

How to investigate which process causes wakeups during laptop sleep-mode in MacOS (or Linux)?

My MacBook spontaneously wakes up from sleep mode with high fan activity. I want to do a investigate this in RTC or power settings? Or by strace-ing of processes, etc (using some process/kernel magic!). Hint: It is probably managed by "rtcwake". I…
Sohail Si
  • 2,750
  • 2
  • 22
  • 36
6
votes
2 answers

per process power consumption in Android

Is there a way to see the power consumption of an Android process? I have a rooted HTC Hero, and I have developed some native programs in C language. I want to see the power consumptions of these programs. So, I want a way to measure the power…
Thanasis Petsas
  • 4,378
  • 5
  • 31
  • 57
6
votes
2 answers

Acquiring PARTIAL_WAKELOCK every 10 seconds

Is there any problem with an application which acquires a partial wake lock at 10 second intervals. My use-case for this is being able to continually monitor the user's movement via the device accelerometer. Basically, I have a Service which is…
6
votes
3 answers

Exclude Android app from being put into standby bucket

With Android 9 battery optimization has been pushed further and apps are classified into standby buckets depending on how much the user has recently interacted with the app (see Android documentation). The system limits the device resources…
6
votes
4 answers

Android Nexus One - Can I save energy with color scheme?

I'm wondering what color-scheme is more energy-saving for AMOLED display? I've already decided to manage c-scheme according to ambient light, thanks to this post: Somewhat-proof, the link posted by nickf: Ironic Sans: Ow My Eyes. If you read that…
Maksym Gontar
  • 22,765
  • 10
  • 78
  • 114
6
votes
4 answers

OS Reboot, Shutdown, Hibernate, Sleep, Wakeup (Windows Python)

I'm looking for an automatize way of doing Windows Power Management functions: - Reboot - Shutdown - Hibernate - Sleep - Wakeup Is there a Python module to cover this functionality? Of course any other solutions are also appreciated...
Azurin
  • 61
  • 1
  • 2
6
votes
1 answer

How to access iokit/pwr_mgt from swift?

I'm trying to write an OSX app (not iOS) that prevents the system from going to sleep when certain things are happening. To do so, I'm trying to access the pwr_mgt submodule of IOKit from a MacOS app using Swift. In XCode, I've indicated that I…
Marcosc
  • 3,101
  • 4
  • 17
  • 16
6
votes
4 answers

Monitor battery charge with Win32 API

I'm trying to write a small app that monitors how much power is left in a notebook battery and I'd like to know which Win32 function I could use to accomplish that.
Fábio
  • 3,291
  • 5
  • 36
  • 49
6
votes
2 answers

How to obtain Battery Stats in Android at runtime?

I want to display Battery level stats in my app. How can we obtain such information like Battery Power, Battery Voltage, etc.?
Muhammad Maqsoodur Rehman
  • 33,681
  • 34
  • 84
  • 124
6
votes
2 answers

Difference between various kIOPMAssertionType's

What is the difference between kIOPMAssertionTypeNoIdleSleep, kIOPMAssertionTypePreventSystemSleep and kIOPMAssertionTypePreventUserIdleSystemSleep? I am trying to create an IOPMAssertion that will prevent the mac from going to sleep autommatically…
Alex
  • 5,009
  • 3
  • 39
  • 73
6
votes
2 answers

How can I intercept the push of the physical power button in Windows?

Is there any way to intercept the event of the physical power button being pressed in order to react to this event? i.e.: Push button -> My program catches the event -> My program performs action. My goal is to write a C# program/service that will…
Xapphire13
  • 61
  • 1
  • 3
6
votes
1 answer

What happens to TCP connection when a computer switches to sleep mode?

I want to know what happens to a TCP connection when a computer goes to sleep. Is there any differences between Linux and Windows in aspect of realization of TCP and handling the sleep mode? So, the question is: is the connection terminating on…
Don Angelo Annoni
  • 350
  • 1
  • 2
  • 17
6
votes
3 answers

What is the Cocoa equivalent of UpdateSystemActivity?

I'm converting a Carbon app to a Cocoa app and I can't find the Cocoa equivalent for: UpdateSystemActivity(UsrActivity); Any Mac people out there care to point me in the right direction? Thanks. UPDATE: I'm building 64bit. Building 32bit works…
i_am_jorf
  • 53,608
  • 15
  • 131
  • 222