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
0
votes
0 answers

SetWaitableTimer on Windows 8 tablet fails with ERROR_NOT_SUPPORTED

I set a waitable timer to wake Windows at a predefined time as such: if(SetWaitableTimer(hTimer, &liWhen, 0, NULL, NULL, TRUE)) { if(GetLastError() == ERROR_NOT_SUPPORTED) { //Waking is not supported } } I run this code on a…
c00000fd
  • 20,994
  • 29
  • 177
  • 400
0
votes
1 answer

Can't find out which usb port is the one at the front

I have 2 fronta usb plugs but I want to know which ones are so I can turn on or suspend the power of one of them. the motherboard has 4 back usb plugs at the back and two at the front. ls /sys/bus/usb/devices/ 1-0:1.0/ 1-3.4/ 1-3.4.3:1.0/…
Mauricio
  • 433
  • 5
  • 15
0
votes
3 answers

USBCELL - Can anyone program this?

USBCELL rechargeable batteries - charged using the USB port These came out a while back and are worth the money, in my opinion. I searched for software specifically made to monitor the battery level of USBCELL batteries and got nothing. There are…
CheeseConQueso
  • 5,831
  • 29
  • 93
  • 126
0
votes
1 answer

How to find code called by suspend_ops->enter(state);

I am trying to understand the linux kernel power management at a low level and have finally got stuck since my C is not very strong. I am able to follow the code down to where it calls suspend_ops->enter(state); in the suspend_enter(suspend_state_t…
redmaw
  • 225
  • 2
  • 8
0
votes
2 answers

Interface or API to retrieve power consumption data for built-in devices in linux

I need to write a power, temperature monitor system for linux system. It needs display some power statistics for for some or all builtin-devices as what powerTop does.I have searched quite a bit and I'm still clueless. Could some one give me a…
Kevin Q
  • 679
  • 1
  • 13
  • 19
0
votes
1 answer

force close app when battery is low

I'm coding for app,where i just want add a feature i.e when battery level is getting low(say for less than 20%),app will automatically get stopped and respective services also get closed ,is it possible?if so please give some methods to do…
immutable
  • 2,174
  • 3
  • 20
  • 27
0
votes
1 answer

Event name for Disabling power button

on Windown Mobile 6, under Settings\System\Power\Misc there is a "Disable Power Switch" what I have to check programatically to get rid of popup menu. By comparing registried I figured out, that it can be set trough 'Drivers\BuiltIn\Power\Settings'…
0
votes
1 answer

The difference of wakelock core code and interfaces in kernel 3.0 from 3.7/3.8?

I was told that wakelock in kernel 3.7/3.8 is different from 3.0. What has changed and is there any document or discussion somewhere talking about this? Thanks!
user1804788
  • 187
  • 1
  • 3
  • 12
0
votes
1 answer

Set time for the screen to stay on

I already know where to begin, at least by WakeLock class, but I can only call methods on and off the screen ... I do not know the simplest way to terminate a while for the screen to begin start off .. (brightness decreases slightly before turning…
Artur Couto
  • 498
  • 1
  • 6
  • 19
0
votes
1 answer

Android opportunistic communication vs power management (what happens to service when phone goes to sleep)

I am writing an application for android that will use opportunistic communication. So when two devices are nearby they exchange data. For now it will happen when they are in the same wifi network (using mdns) or when they have paired bluetooth…
siemanko
  • 1,389
  • 1
  • 13
  • 26
0
votes
0 answers

Can I enable/disable wake timers on Windows XP?

I know that one can enable or disable wake timers on Windows Vista and later OS using PowerWriteACValueIndex or PowerWriteDCValueIndex APIs with the GUID_ALLOW_RTC_WAKE or {BD3B718A-0680-4D9D-8AB2-E1D2B4AC806D} from the GUID_SLEEP_SUBGROUP or…
ahmd0
  • 16,633
  • 33
  • 137
  • 233
0
votes
1 answer

Unattended Mode changes to Suspend after one minute

In my application (C#, .Net CE 3.5, WM 6.5), I have a thread that do sync with a web service. I want thread keep running if device goes to idle mode. So I use some Windows CE API, to run my thread in unattended mode and keep WiFi on during this…
Behnam
  • 15
  • 1
  • 7
0
votes
1 answer

Android GCM : Auto waking doesn't work

Here is the code of my class GCMIntentService which is called when a notification arrived on the phone. My problem is the following : When a notification arrives on the phone, he wakes up, but then it never returns to standby mode. I think that the…
pxrb66
  • 119
  • 1
  • 1
  • 9
0
votes
1 answer

How does a wdf driver handle device's re-power-on event?

I've taken over the maintenance job of a device driver from another guy recently. The driver works with a pci-e board. when the system starts up, the driver will allocate a 128Mb memory, and then set some registers on the board to pass the…
Gang YIN
  • 2,509
  • 2
  • 21
  • 25
0
votes
3 answers

Does a BroadcastReceiver only listen to changes?

I was reading the guide here about setting up a BroadcastReceiver to check changes in the battery. And it stated that I could setup a BroadcastReceiver like this:
Mohit Deshpande
  • 53,877
  • 76
  • 193
  • 251