How to detect automatic power down? - Windows Mobile Development and Hacking General

Is there any way to detect when system is going to automatic power down? I need my proram to close itself in this case.
Is it possible?
Thanks a lot in advance.

I found that the serial port needs resetting on Power On. When that happens a serial port raises a EV_POWER event.
But that event is raised on power on, not power off as you ask.

vangelderp said:
When that happens a serial port raises a EV_POWER event.
Click to expand...
Click to collapse
How I can hook the EV_POWER event, please?

Detecting power on is easy enough. You want to detect power off?
V

vijay555 said:
Detecting power on is easy enough. You want to detect power off?
Click to expand...
Click to collapse
Yes, I need to detect "power off".
But tell me how to detect "power on" too if you know how.
Thanks.

This might help with both.
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnarppc2k/html/ppc_otification.asp
V

Related

Complete ShutDown

Is there a way to complete shutdown the universal?
If I press the powerbutton it's not really powered off... for example it however pops up the notifications/alarm etc.
Let me know if there's a way.
Thank you,
Roberto
take the battery out, its the only way
The x51v comes with an app to switch off entirely, through the magic of persistent memory.
A review of the kjam says:
If you hold down the power button for about 4 seconds, the K-JAM will bring up a Yes/No dialog asking if you want to continue with a full power off. If you choose Yes, it will shut the device off completely, meaning it won't use the battery at all.
Click to expand...
Click to collapse
http://pocketnow.com/index.php?a=portal_detail&t=reviews&id=710&p=1
Anyone tried this? I don't have my uni with me.
V
vijay555 said:
Anyone tried this? I don't have my uni with me.
V
Click to expand...
Click to collapse
Holding down the power button on the Jasjar simply turns the backlight off. You need to hold it down again to turn it back on. I did this accidentely the first time and I thought the device was broken for a minute, because it didn't apprear to turn on when I pressed the power button.
Brett
vijay555 said:
The x51v comes with an app to switch off entirely, through the magic of persistent memory.
A review of the kjam says:
If you hold down the power button for about 4 seconds, the K-JAM will bring up a Yes/No dialog asking if you want to continue with a full power off. If you choose Yes, it will shut the device off completely, meaning it won't use the battery at all.
Click to expand...
Click to collapse
http://pocketnow.com/index.php?a=portal_detail&t=reviews&id=710&p=1
Anyone tried this? I don't have my uni with me.
Click to expand...
Click to collapse
Just tried holding down the power button for 20 seconds and it only turned off the backlight. Nothing else.

How swithc OFF my XDA mini?

Dear friend,
how do I do to put OFF completely my magician XDAmini?
Best regards
Daniele
Take the battery out?
And pushing the power button?
The power button can only put the phone is Standby. In PDA phones there is no such thing as OFF. The RAM needs power all the time. Sliding the battery cover in and out will also power off the device. Don't leave that long though, otherwise you risk losing all the information.
Hello,
I'm new so plz be patient. Ok, pressing the power button only allows us to set the device in standby mode. How do I turn off the phone (gsm) mode then? The idea is just that I want to figure out a way to reduce the power consumption as much as possible.
Thx for all coming answers..
To turn the phone itself off click on the signal strength indicator then click on 'Turn on flight mode'
This turns off the phone part of the device but leaves the pda side still functional
HTH
Alrite. But is there a way to accomplish that task with hardware buttons? Guess not, ey?
Just don't wanna pull out my stylus that often.. *g*
Press and hold the power button for several seconds. this will actually turn the device OFF.
Do the same to turn it back on.
pnharrison said:
Press and hold the power button for several seconds. this will actually turn the device OFF.
Do the same to turn it back on.
Click to expand...
Click to collapse
This is not true. When you do that, the background light will be off, but the phone is still working.
moses3k said:
Alrite. But is there a way to accomplish that task with hardware buttons? Guess not, ey?
Just don't wanna pull out my stylus that often.. *g*
Click to expand...
Click to collapse
You could install PocketZenPhone from here: http://zendrui.free.fr/ and then, as long as your fingers are not too fat, you can press an icon on the today screen. 8)
Cool, thx for this hint.
moses3k said:
Hello,
I'm new so plz be patient. Ok, pressing the power button only allows us to set the device in standby mode. How do I turn off the phone (gsm) mode then? The idea is just that I want to figure out a way to reduce the power consumption as much as possible.
Thx for all coming answers..
Click to expand...
Click to collapse
I don't think that the GPRS is using that much power, but to turn it off, hold the RED Phone button down for several seconds (I never timed it, I just wait for the "GPRS Connected" icon to disappear.
Your best bet for power consumption is to lower the screen brightness to it's lowest level, and set the screen backlight to go off at 30 seconds, and lastly to set the device to power down at 1 minute of inactivity.
copy this app to your magician, in a folder you want. Bind it to a hard button or make a shortcut on your Todayscreen with SPB Pocket PLus or another program.
PocketZenPhone (the tray version of it) can also be used to set the profiles via hardware buttons. This can be done with making shortcuts to the .exe with setting the specific profile. I'm using this together with MortButtons to switch between my profiles of PocketZenPhone.
Yzord said:
pnharrison said:
Press and hold the power button for several seconds. this will actually turn the device OFF.
Do the same to turn it back on.
Click to expand...
Click to collapse
This is not true. When you do that, the background light will be off, but the phone is still working.
Click to expand...
Click to collapse
Yzord; no it really does work (did you try it ?)
Yes, pressing the power button briefly just turns the screen off ; I think we all know that.
However holding the button down for several seconds will allow you to turn it off completely. = power off; no applications running; no phone or other network connections; zero power consumption, nada.
PH
the best way to stop using magician:
charge battery to 50%
do a backup
pull out battery
pack you magician
several years later
get it out
put in battery
do a restore
charge and use it
(maybe 5% drop one year, so can put aside ten years
pnharrison said:
Yzord said:
pnharrison said:
Press and hold the power button for several seconds. this will actually turn the device OFF.
Do the same to turn it back on.
Click to expand...
Click to collapse
This is not true. When you do that, the background light will be off, but the phone is still working.
Click to expand...
Click to collapse
Yzord; no it really does work (did you try it ?)
Yes, pressing the power button briefly just turns the screen off ; I think we all know that.
However holding the button down for several seconds will allow you to turn it off completely. = power off; no applications running; no phone or other network connections; zero power consumption, nada.
PH
Click to expand...
Click to collapse
It will still lose some power in keeping the RAM filled, if it loses all power (goes very slowly however), all your installed programs and data will be lost. It takes a long time, but it still uses power to keep the RAM chips powered and the clock correct. Furtheremore, with the Magician it keeps the phone and alarms awake, so you can receive calls. You have to turn on flight mode manually to turn the radio off. Also you have to turn off all alarms to prevent your device from waking up. Your method is more like the one used on the Wizard, where holding the power button for 5 seconds really turns everything off and when pressing and holding again makes the Wizard start up again (with boot screen and all).
cucchiarellid said:
Dear friend,
how do I do to put OFF completely my magician XDAmini?
Click to expand...
Click to collapse
Also thought of this when I first got my xda mini. Now, after some reading here in the forums, I just switched my xda mini to flight mode before I go to sleep. It turns off the phone. Hope this helps.

Any other way to turn on the phone beside power button?

Hey,
Any other way to turn on the phone beside power button?
Like home button or something?
Please let me know
Thanks
awaisuk said:
Hey,
Any other way to turn on the phone beside power button?
Like home button or something?
Please let me know
Thanks
Click to expand...
Click to collapse
You could pull the battery out or wait for the battery to die. Just kidding, sometimes the phone turns on automatically when plugged in
Kingissa said:
You could pull the battery out or wait for the battery to die.
Click to expand...
Click to collapse
I'm pretty sure he asked how to get the phone ON without the power button, not OFF.
And no I don't think there is unless you open up your phone and do some improvised modding in there. If your power button is messed up though you should probably just get a warranty replacement.
For a single time turning on - remove the battery, plug in USB charger, insert the battery. Try several times if didn't work the first time.
When in Android - you can install an OS that supports trackpad wake, to wake the phone up with trackpad instead of power button. Default OS does, too.
For proper power button functionality - there's nothing you can do but replace either the button or the whole phone.
Hmm thanks for that Jack, I never knew about the USB thing. Never tried it on an android anyways so I wouldn't have ever tried it.
As another suggestion, you could try remapping your keys as well. Someone posted recently in this forum about remapping his power button to the camera button to bypass a faulty button. I don't think it will let you turn on the phone with the camera(I'm not sure anyways, I haven't done this), but it will give you power button functionality throughout the OS of your choice.
I hate to bump this but mine just broke and my dumbass decided to pull the battery because it wouldn't go to sleep =\
I'm going to try to get another one tomorrow but I need a phone in the mean time
Thanks in advance

Power Button Workaround?

Hi All,
Hope this is the right section...
I have a lenovo thinkpad tablet & my power button seems to be faulty - I can't feel the usual resistance when I press it anymore and pressing the power button no longer does anything - a real pain once the tablet goes to sleep...
I was wondering if there's any way to set up a different physical button to act as the power button, or at the very least, allow a different physical button to wake the device?
Usually when something like this happens to a device I open it and try to fix it, but I really don't want to destroy another perfectly good piece of technology!! :silly:
Thanks all!!
As long as it's not off, you should be able to wake it by plugging it in with the charger or putting it on/taking it off of the dock. Works for me.
This might work
Try this app in Google play.
Might work based on the description I read:
https://play.google.com/store/apps/details?id=com.omd.autoscreenon
ram1986 said:
Try this app in Google play.
Might work based on the description I read:
https://play.google.com/store/apps/details?id=com.omd.autoscreenon
Click to expand...
Click to collapse
will try
traihan said:
will try
Click to expand...
Click to collapse
Did it work for you?

How to disable power button ? HELP!!!

i am using xiaomi redmi note 7 and my power button is not working fine. Whenever i kind of touch it , it starts working randomly. it turn my phone off or it brings camera.
now i want to disable it temporarily to use the phone atleast.
is there any way ?
plz let me know!
thankyou!
NOTE: The device is unlocked but no custom recovery installed.
I use havoc os.
I saw the option only on custom roms.
Forget i misunderstood your question
With root u can look her and change
system/usr/keylayout/Generic.kl
On my old phone I changed the volume up and down buttons there for my headset.
joke19 said:
Forget i misunderstood your question
With root u can look her and change
system/usr/keylayout/Generic.kl
On my old phone I changed the volume up and down buttons there for my headset.
Click to expand...
Click to collapse
will i be able to ON my phone (if turned off) once i change the key ?
iffy rizvi said:
will i be able to ON my phone (if turned off) once i change the key ?
Click to expand...
Click to collapse
No, if you deactivate the button it'll stop working, you can try to Power It up with Double tap to wake, but i really suggest a new Power button for your phone.
N1ck474 said:
No, if you deactivate the button it'll stop working, you can try to Power It up with Double tap to wake, but i really suggest a new Power button for your phone.
Click to expand...
Click to collapse
if the system file r misbehaving... factory reset wont solve that?
You should first figure out whether the issue is caused by the hardware or your ROM. If it is the power button itself, then there's an app named Scalefusion that can be used to diable the power button.
You
iffy rizvi said:
will i be able to ON my phone (if turned off) once i change the key ?
Click to expand...
Click to collapse
Can remap the button for volume down button and use it as a permanent power button.
joke19 said:
Forget i misunderstood your question
With root u can look her and change
system/usr/keylayout/Generic.kl
On my old phone I changed the volume up and down buttons there for my headset.
Click to expand...
Click to collapse
Similar issue for me a hairline crack in power button so phone keeps restarting/unlocking screen and calling emergency services.
How would I change to another button to permanently be my power button? Also the directory above do I get that on phone settings somewhere or connect to pc and find it that way?
Thanks

Categories

Resources