Power Manager WM5, can someone write an app for bluetooth? - MDA III, XDA III, PDA2k, 9090 General

I found this information from the following link:
http://66.249.93.104/search?q=cache...t/html/WinCEFAQ.asp+disablegwespoweroff&hl=en
In general terms, how does the Power Manager work?
The Power Manager acts as a mediator between the following three entities:
* Devices, which may be able to intelligently manage their own power.
* The OEM, who defines system power states that restrict how much power devices can consume.
* Applications, which need to receive notifications of power-related events and which may want to maintain devices they are using at some minimum power level.
The Power Manager implements the following set of rules for making these three parties work together:
* System power states impose power consumption ceilings on all devices.
* Applications impose power consumption floors on specific devices (to obtain minimum performance levels).
* The Power Manager will allow devices to intelligently manage their own power as long as they keep their power levels between the ceiling and the floor.
* If the floor is higher than the ceiling the device's power will remain elevated for as long as the application requires the device.
* If the system transitions to a suspend system power state, application-imposed "floors" will be set aside while the system is suspended.
How do OEMs, device driver writers, and applications interact with the Power Manager?
OEMs set up named system power states in the Registry. These have the following characteristics:
* They define a maximum, or ceiling, device power level.
* They can include a set of hint flags that tell the Power Manager how to handle transitions into the power state.
For example, the POWER_STATE_SUSPEND flag tells the Power Manager that it will need to call PowerOffSystem() in addition to changing device states.
The OEM will generally customize the Power Manager to have special knowledge about which state is appropriate at any given time, based on the system's environment. For example, an OEM may define states for being on battery, on low battery, on AC power, in cradle, out of cradle, and so forth.
Power manageable devices have the following characteristics:
* They need to advertise a power management interface that the Power Manager understands. This is generally the default GUID, {A32942B7-920C-486b-B0E6-92A702A99B35}. They can do this using AdvertiseInterface() or by adding their GUID to the IClass REG_MULTI_SZ value in their configuration registry key.
* When the device becomes available, the Power Manager will send it an IOCTL_POWER_CAPABILITIES request to which it must respond.
* The Power Manager will update the device's power state using IOCTL_POWER_SET calls.
* If a device driver wants to intelligently manage the power of its device, it can request power updates using the DevicePowerNotify() API. These may or may not cause the Power Manager to issue an IOCTL_POWER_SET at some point in the future.
Applications can interact with the Power Manager in the following ways:
* They can request notifications of power-related events using RequestPowerNotifications(). When they no longer need notifications they can call StopPowerNotifications().
* They can request to keep devices they are using at a minimum power level using SetPowerRequirement(). They should keep requirements in effect for the shortest possible time, and then release them with ReleasePowerRequirement().
Can we get any useful information out of this to get bluetooth working on the blueangel flawlessly for WM5??

Related

How to Wake up from Power Suspend when AC power is On again

Hello everybody,
i'm running XDAs (I+II+III) in cars provided with an external power supply from the car battery.
The connector is designed as proposed in Wiki page about connectors
http://wiki.xda-developers.com/index.php?pagename=Connectors
With this design, however, the devices don't 'wake up' from Power Suspend mode, when the external AC power changes from Off to On again.
What I'm looking for, is the same behaviour as with the Active Sync craddle. If the device is Off and you put it into the craddle, the device
switches to On again.
I don't know, if this can be achieved with a hardware solution or whether the craddle sends a SetSystemPower(On) message to the device.
Any help appreciated.
greets
jofoko

Decreasing program response time?

I purchased PDAWin's TV Remote Control program some time ago, and it meets all my needs, but there is one issue, the delay! when you push a button, there is approx. a .75 second delay between when the button is "pushed" on the screen, and the IR pulse is actually transmitted, and the program allows you to press the next button. needless to say, this makes entering complex instruction to my DVR for example, quite tedious. My question is this: Is it possible to make the program more responsive/faster, to make it behave exactly as if you were using the actual physical remote? Make it allow for rapid button entry, without delays? and if so what method would you recommend?

A proper way to "close" applications

I find that when you "close" program with HOME button, it will go to background and enter S - sleep state, but wil have higher priority than other programs in background (400 instead of 500) and CAN USE some cpu cycles. For example program called Network Monitor. When you run it.. it is showing graph of network speed. And when you enter HOME button, it will disappear, but through task manager you can see, that it is still using 5-7% of CPU constantly. I have read in thread about task managers, that programs in backround don't use phone resources... this is not really true. (yes programs, i don't speaking about services. I'm speaking about network monitor GUI, not service!)
But trick is, when you "close" program with BACK button. What happen? Program goes to background and enter S - sleep state, but program priority is now normal as in other background programs = 500. And in case of network monitor, now it don't use any CPU cycles.
This is not only about Network Monitor, some other programs closed with HOME button uses CPU in background too, but not constantly and only around 1-2%.
So if you can, close program with BACK button. This is little impractical of course, because BACK button have in programs another - back function, and you will need push it more times.
-sry for bad english-
I see same memory usage if I close application with back or home button..
I just hit the "back" and "home" button a couple of times...then again...I have compulsive habits

Need help with Civato's custom ROM

OK, I have some minor issues that I still need to iron out but am finding apps to correct or tweak settings.
One issue that is slightly above being minor is the power button function during sleep.
The power button wakes the device as expected, but with his custom ROM, I am not able to disable the power button feature to wake.
All other ROMs have the ability edit the keymap file by removing wake call function.
Once I am able to disable the wake function with the power button, my device will be green friendly when being stored in confined areas such as the original box for x-mas gift. )
Thanks!

Hardware Keys Hacked

Hi,
Today while reboot some application asked for two hardware keys, I've pressed Volume-Up and Volume-Down keys and land up into following issue.
1. Pressing Volume-Up key start selecting elements on screen with blue focussing rectangle instead of volume increase functionality. This is similar as pressing TAB keys in desktop application to switch controls on screen. Volume-Down key acting as Enter (or Select Key) instead of volume decrease. Now I can operate all applications on phone using two keys but cant control volume
2. I've not installed any such application to map these keys. Now this app is not appearing again when I reboot my phone
How can I reset volume keys back to original state and remove or disable this hacking application or feature of android phone. I don't want to install a button remapping application - first need to eliminate the bug.
Device: One Plus 3
ROM: Resurrection 5.4.8
Same issue her
Super irritating. Can't find anything via Google search except this thread.
you have Talkback turned on - go into accessibility settings and disable it.
navigating in this mode is different (for users that need slower inteface), so :
tap = double tap

Categories

Resources