Performing Action when entering Suspend Mode - Windows Mobile Software Development

Hey everyone,
I am trying to do two tasks: turn the phone on and off programmatically. Since the phone drains alot of the battery, I would like to have it off when in suspend mode and have it back on when in normal mode. I can use CeRunAppAtEvent() to turn the phone on at start up, but I dont know how to recognize a state change from normal to suspend at which point I would turn the phone off. Any suggestions? Thanks

Just curious.... What's cookin' ?

Just want to save battery life, you know

Related

how to turn off?

hi, i just got a BA today. sorry if this seems kinda silly, but im just wondering how do i turn it off? i keep pressing the power button but the BA just wont turn off. the screen just goes blank, then when i press the power button again, the main display appears again. Or that is just how its suppose to turn off? i wanna turn it off so i could open the battery and insert my sim card. thnx guys.
zhenius said:
hi, i just got a BA today. sorry if this seems kinda silly, but im just wondering how do i turn it off? i keep pressing the power button but the BA just wont turn off. the screen just goes blank, then when i press the power button again, the main display appears again. Or that is just how its suppose to turn off? i wanna turn it off so i could open the battery and insert my sim card. thnx guys.
Click to expand...
Click to collapse
I jus remove the battery and change the Sim Card.
The backup battery keeps it all in place until i get the main in.
As for the screen, there is no official "Shut down" unlike other PDA's, it just goes into a deep form of Hibernation.
thnx. i was thinking there was like a shutdown like in most celphones. this is my frst xda. thnx man!
i think its same with all BA.
i think someone should find its solution.
Turn all the radios off: like phone,wifi,bluetooth and activesync ect. basically everything in the comm manager.
Then press the off button, yes the LED blinks still but you only lose ~0-1% of the battery with 8 hours in this state.
Its as near as we can get to "off" but it will do
yeah...BA can't be turned off. It can only be put in deep hibernation since it does not have a hard drive.
ooops I did it again..sorry double post
Shutdown possible
A shutdown is possible of the BA in a particular situation :
Unlock the battery in the back of the BA while holding the battery for not to fall
Then lock it again : it remains shutdown.
Please note that this won't work if you have your BA plugged to your PC with USB cable. In that case, you have to keep the battery unlocked without locking it again, since locking it will turn it on.
Regards,
Abu Abdillah

Slow start up on S621

Is there any way to decrease the time it takes between pressing the power
button and actually being able to use the phone?
I wouldn't think so. How many times do you turn off? Just keep it on.
yeh with flightmode and silent you should never need to turn it off.

Extreme power saver mode w/ scr. on

Hy,
anyone can test and tell me how long does the phone lasts if extreme power mode is enabled and the screen is always on?
thank you

Power Saver Problem

I have this problem where the power saver battery mode sometimes changes to power saving mode by itself (I set it to normal mode or performance mode). This means that the networks turn off when the phone sleeps - a big problem for me because I am using an ip phone service (no 2G voice) that needs an always on connection. I have the Z008 (ze550ml) on the latest .92 firmware. My wife has the same phone and also has this problem. The only solution I can find is to disable power saver completely, but obviously this impacts on battery life. Does anyone know why this occurs? Is it a bug, or am I doing something to cause it? Is there any fix other than disabling the power saver?
There is a setting allows power saving mode to be activated automatically by schedule, I would check that first
semperfi123 said:
There is a setting allows power saving mode to be activated automatically by schedule, I would check that first
Click to expand...
Click to collapse
It's off.
Hi, I have the same problem. Did you find a solution?

Is there a setting to keep Tab S from shutting off while plugged into wall charger?

I guess the tablet isn't actually powering down, it's just going into sleep mode, or whatever it's called when the screen shuts off. Anyway, is there a way to keep this from happening when the tablet is plugged into the wall charger? It isn't a major deal but it is sort of annoying when I have something large downloading or have the tablet otherwise doing something on its own, but I'm not actively using it. I like to walk by occasionally and check in on things, but will often find that the tablet has shut off. Then I have to turn it back on, swipe the screen, or login if I have security on. Anyway, it would be much nicer if it would just stay on when plugged in. I've looked through the settings and can't seem to find anything related. If it's there, I'm missing it.
Thanks.
There are different between shut off and standby (sleep mode):
1- Shut off: Your tablet is shutdown, the only way to turn it on is power button.
2- Standby: the screen is off, you just need to press power or home button to turn the screen on in 2 seconds. In order to prevent the screen turn off so quickly, you only need to change the screen timeout to 10 or 30 minutes. If it turns off by itself, your tablet has a problem.
Mine can standby a whole week and it only loses a little charge when waking up.
Beut said:
There are different between shut off and standby (sleep mode):
1- Shut off: Your tablet is shutdown, the only way to turn it on is power button.
2- Standby: the screen is off, you just need to press power or home button to turn the screen on in 2 seconds. In order to prevent the screen turn off so quickly, you only need to change the screen timeout to 10 or 30 minutes. If it turns off by itself, your tablet has a problem.
Mine can standby a whole week and it only loses a little charge when waking up.
Click to expand...
Click to collapse
There is no 30 minute screen timeout on my Galaxy Tab S 10.5. The most I can set it to is 10 minutes, and that's where it's at.
Thanks anyway.
bfollowell said:
I guess the tablet isn't actually powering down, it's just going into sleep mode, or whatever it's called when the screen shuts off. Anyway, is there a way to keep this from happening when the tablet is plugged into the wall charger? It isn't a major deal but it is sort of annoying when I have something large downloading or have the tablet otherwise doing something on its own, but I'm not actively using it. I like to walk by occasionally and check in on things, but will often find that the tablet has shut off. Then I have to turn it back on, swipe the screen, or login if I have security on. Anyway, it would be much nicer if it would just stay on when plugged in. I've looked through the settings and can't seem to find anything related. If it's there, I'm missing it.
Thanks.
Click to expand...
Click to collapse
we call that a screen time out... you can activate the stay awake while charging feature in developer option... how to activate developer option.... go to setting -> about device -> and press the Build Number 7 times. you will see something like developer option activate. then find the stay awake while charging option. that's all. :victory:
edan1979 said:
we call that a screen time out... you can activate the stay awake while charging feature in developer option... how to activate developer option.... go to setting -> about device -> and press the Build Number 7 times. you will see something like developer option activate. then find the stay awake while charging option. that's all. :victory:
Click to expand...
Click to collapse
Super, that's exactly what I was hoping for...
...once I get my completely screwed up tablet running again...
I'm starting another thread.
Thanks!

Categories

Resources