app to turn on an off device - Windows Mobile Development and Hacking General

would there be an application that will turn on the device when it's OFF. Reason behind this is that my power button wasn't working anymore so I need an app to turn on my phone. Apparently, my alternate route is using AE button plus for turning off, and to turn on my phone is that I have to take out the stylus, but I noticed that it used to consume battery usage...if I take it out on the second time it will eat up 2% of the battery usage...and I had even tried using the switch display off/on with the AE button plus but it will make my usage with my phone for upto 8 complete hours only....before I can even use my phone upto 12-14 hours...
if not an application, maybe remapping or registry hack will help..
please I need some help..
thanks in advance

anyone who could share or help.....thanks

What type is ur pda? Do u mean turn on from COMPLETELY turn off?

Go to Start,Settings,System,Key Lock and set it to "Do not lock buttons".
This way, any button press on any button will wake the device. You might want to lock it before switching off so you don't dial people by mistake.

iam using HTC diamond and currently have the SUN 6.1 with 2.5 manila version, but it seems that the keylock doesn't work properly on that ROM
thanks for all your help, just asking some other options here

Related

lock + standby in one go?

Hi all,
I was wondering if it's possible to lock the device and put the phone in standby in one go?
Often when you lock your phone you don't need it anymore and putting it in standby immediatly might save some precious battery juice...
Cheers
B
or for example when in standby, when receiving a message .. the phone wakes it self up .. if you have to leave it in yur pocket, it means that you can touch the touch screen unwillingly.
So yes, I want to be able to lock my phone and put in into standy mode at the same time ;D
http://forum.xda-developers.com/showthread.php?t=359212
2 post above you...
ah right. this does the trick too.
didn't know.
thanks !
twolf said:
http://forum.xda-developers.com/showthread.php?t=359212
2 post above you...
Click to expand...
Click to collapse
Hi twolf,
that thread has 32 pages, can you point me a bit closer to the standby thing? Thx!
cheers
B
just th first, its a software...
:/
quite aware of that but I don't want to alter my slider behaviour... maybe I'll send a message to the creator of the soft to see how he has added this functionality to his app.
cheers
B
Why not use key lock that's on the device already - put it into to standby and it locks the keys but wakes up on calls & messages.
Start - Setteings - Key Lock - Lock allbuttons except Power Button
well.. the normal keylock doesn't switch the mobile into standby, you need to wait a while before the auto-standby kicks in... and I really don't find the standby button convenient to press
I have the same problem
Another solution?
My standby buton don´t work
Use Slide2Unlock, you can tell it to lock the phone when it goes to standby
Thanks, but, the Slide2Unlock don´t power on my PDA.
the Standby botton, is the power on/off.
best regards

Locking the HD

Hi all,
I have decided to uninstall S2U2 and I don't want any other locking applications. However, is there is a way I can have the standard device lock activated with a short press of the power button?
Currently I am having to hold the 'End call' button until it locks, then turn the screen off with the power button.
Thanks
I have a pin setup and use the short press of the power button to put the phone into powersave 0 whixh then outs the phone into pin lock after a short while
If you push the hang off button for more than 10seconds, it will be locked
No...
FetchBLN said:
If you push the hang off button for more than 10seconds, it will be locked
Click to expand...
Click to collapse
I don't know about your device...
On my HD you can press the end button and count until 3, and the device is locked
I can't remember whether it's in HD Tweak or Advanced Config, but there's an option to automatically lock the keypad on screen turning off (both timed out or power button press I assume, but not tested) so you could try that?
Edit: instead of being lazy I actually looked it up - it's in HD Tweak, option 4.1; Lock -> AutoLock
Just tried it and it works, turn backlight off by short power press and it's locked a well as screen turning off!
Good tip: works for me!
By the way: you can configure what happens when you pres the "disconnect" button too.
Guys
Thanks for this thread. I am very confused when it comes to locking the phone. Can anyone tell me...
Does the built in device lock work well? Will it keep the phone locked when a call comes in ?
If so, then why do people use S2U2 or other third party apps? Also some people say that S2U2 drains the battery. Is this true? How does it drain the battery?
The HD tweak had the disadvantage that when the screen turns in 'shaded' state the device is also locked.
Then when unlocking the device the screen stays 'shaded'.
avimak said:
I don't know about your device...
On my HD you can press the end button and count until 3, and the device is locked
Click to expand...
Click to collapse
Maybe it takes you 10 seconds to count to 3.
I've finally got there with locking my HD... I had a S710 before the HD, and I liked the fact that on that I could hold down the "end call" button, and that it would lock the phone and turn the backlight off. The screen would then turn off completely after whatever time I had entered (2 mins I think). And on unlocking the device the backlight would turn on.
On my HD I have now disabled the device password, but enabled my PIN request, so that it secures the phone if it has been turned off completely. This means that I can now hold down the "end call" button for 3 seconds or so and it locks the device (requiring a 2-tap process to unlock, like the S710). I have also used the standard windows mobile settings (power) to have the backlight automatically turnoff after 30 seconds, and have used HD Tweak (setting 4.1) to autolock the device when the backlight turnsoff. The only problem is that when AutoLock happens using HDTweak, when I unlock it the backlight fails to turn back on, even once I have started using the screen. Any ideas on how to fix this?
Dave
chaosdefinesorder said:
I can't remember whether it's in HD Tweak or Advanced Config, but there's an option to automatically lock the keypad on screen turning off (both timed out or power button press I assume, but not tested) so you could try that?
Edit: instead of being lazy I actually looked it up - it's in HD Tweak, option 4.1; Lock -> AutoLock
Just tried it and it works, turn backlight off by short power press and it's locked a well as screen turning off!
Click to expand...
Click to collapse
Just to confirm my above question regarding this specific feature of HD Tweak... I have got this working on my HD now too, but when it autolocks, and I unlock it, the backlight doesn't turn back on, and the only way to make it turn back on is to hardbutton off and on the device (not power-off, just press the button the top of the phone and press it again).
This is stopping me from using the HD Tweak autolock now, which is annoying because it does precisely what I need! Can anyone offer any advice?
I've just realised that it actually says within HD Tweak itself (on 4.1 option selector) that this is a known issue... any idea on if and when it will get fixed?
How about using Gyrator to lock the device? I have set it to lock the device and switch off the screen on inserting the stylus. Also, I have it set to unlock and switch the PDA on when the stylus in removed.
Simple. Works for me, anyway!
james00000007 said:
I have a pin setup and use the short press of the power button to put the phone into powersave 0 whixh then outs the phone into pin lock after a short while
Click to expand...
Click to collapse
Hi,
Is this similar to an application my friend had on his iphone. Basically, when he needs to use the phone, he needs to put in a pin to unlock. I think the Nokia E61 has a similar feature.
nikki-m said:
How about using Gyrator to lock the device? I have set it to lock the device and switch off the screen on inserting the stylus. Also, I have it set to unlock and switch the PDA on when the stylus in removed.
Simple. Works for me, anyway!
Click to expand...
Click to collapse
Can u let us know how to u set it?
nikki-m said:
How about using Gyrator to lock the device? I have set it to lock the device and switch off the screen on inserting the stylus. Also, I have it set to unlock and switch the PDA on when the stylus in removed.
Simple. Works for me, anyway!
Click to expand...
Click to collapse
i hav a qns, at the locked screen, when u rotate ur device, does the screen rotate as well???
i had tis problem whn using gyrator to lock, whn its lock at home screen, the screen wil rotate if i rotate my device. how to disable that???
davehodgkinson said:
Just to confirm my above question regarding this specific feature of HD Tweak... I have got this working on my HD now too, but when it autolocks, and I unlock it, the backlight doesn't turn back on, and the only way to make it turn back on is to hardbutton off and on the device (not power-off, just press the button the top of the phone and press it again).
This is stopping me from using the HD Tweak autolock now, which is annoying because it does precisely what I need! Can anyone offer any advice?
I've just realised that it actually says within HD Tweak itself (on 4.1 option selector) that this is a known issue... any idea on if and when it will get fixed?
Click to expand...
Click to collapse
Mhh, I also think it's very annoying. I first used the auto lock feature by setting
HKey_CURRENT_USER/ControlPanel/BackLight/AutoDeviceLockEnable = 1, but I also have the backlight-issue, which is really annoying.
I also installed S2U2, but after installing that program the battery-life was inacceptable. By now I'm using the manual method, pressing hang-up for 3 seconds. It works, but I often forget it, and it then happens easily that I press the hard-button which awakes the phone from standby and I make pocket-calls.
The auto-lock feature is also exactly the thing I need, except the fact that I get the backlight issue then. Does anybody know how to fix the backlight issue? Maybe by editing another key in the registry?
Regards,
Tobi
As I said in the hint topic, in order to lock my device I just press the power off button (this activate the stand by), simple and fast
I use S2U2 at first, but it drains power too much, so I uninstall it after 2 days.
Then I use your method - hold the end call button to lock the device.
Now, I change the right softkey to invoke a small application that will turn off the machine (just like press power button). When I take out the stylus, the machine will on again.
Thus, I don't need to press any button, and I feel it is better......personally.......
stm2008 said:
I use S2U2 at first, but it drains power too much, so I uninstall it after 2 days.
Then I use your method - hold the end call button to lock the device.
Now, I change the right softkey to invoke a small application that will turn off the machine (just like press power button). When I take out the stylus, the machine will on again.
Thus, I don't need to press any button, and I feel it is better......personally.......
Click to expand...
Click to collapse
which application are you using now to turn off the screen? sounds interesting.
Tyrion84 said:
As I said in the hint topic, in order to lock my device I just press the power off button (this activate the stand by), simple and fast
Click to expand...
Click to collapse
Yes, but when I activate standby and put the phone into my pocket, I often accidently hit the button again, which reactivates the phone. hit_one_button_to_unlock ist not tobi-proof

Is Wake on Home Button Push Possible?

Hey, did anyone found solution... is it possible to tweak settings somehow so that display turns on by pushing home button? Or do I really have to push power button every time?
I know of volume button tweak, but.. that one is no good (volume settings gets displayed)... Any other ideas, suggestions? (other than "pull the stylus")
Thanks!
Try AE Button Plus. You can customize a lot of buttons. I didn't tried what you asked, but it worth a try.
Anyway, take care using it.
I would say not. There appears to be no power to these lower buttons while in standby, so no software could work?
Kev
cokester said:
Hey, did anyone found solution... is it possible to tweak settings somehow so that display turns on by pushing home button?!
Click to expand...
Click to collapse
No, for the reasons given.
BUT... you could use MobileMagic to toggle the screen on/off when device is turned face down. That way when you turn it face down, screen goes off and buttons are locked. To turn it back on, turn devicedevice face down again.
You do need to go to Start-Settings-System-Power-Advanced and untick the option, "Turn off device if not used for", because if the device gets turned off (instead of just screen off) it won't respond.
I have it set to turn screen off on reverse portrait too,
so it turns off automatically when I put it in my pocket.
Im also afraid for that power button... used it a lot on my diamond so it got bricked, its so gentle... Im using it as much as little possible now on mine HD for that reason.
I have s2u2 unlock on stylus out, so I pull out the stylus, the HD comes on and unlocks. It's so simple.
gadgetuk437 said:
No, for the reasons given.
BUT... you could use MobileMagic to toggle the screen on/off when device is turned face down. That way when you turn it face down, screen goes off and buttons are locked. To turn it back on, turn devicedevice face down again.
You do need to go to Start-Settings-System-Power-Advanced and untick the option, "Turn off device if not used for", because if the device gets turned off (instead of just screen off) it won't respond.
I have it set to turn screen off on reverse portrait too,
so it turns off automatically when I put it in my pocket.
Click to expand...
Click to collapse
gadgetuk437
Do you find this has any impact on battery life? If i'm right, this just turns off the screen but does not put the device to sleep?
cokester said:
Hey, did anyone found solution... is it possible to tweak settings somehow so that display turns on by pushing home button? Or do I really have to push power button every time?
I know of volume button tweak, but.. that one is no good (volume settings gets displayed)... Any other ideas, suggestions? (other than "pull the stylus")
Thanks!
Click to expand...
Click to collapse
That's not possible for the simple reason that the buttons below the screen are part and parcel of the touch screen, so if the screen is off, they won't work.
gadgetwizard said:
Do you find this has any impact on battery life? If i'm right, this just turns off the screen but does not put the device to sleep?
Click to expand...
Click to collapse
That is correct.
Power consumption, in this case, depends on what applications are left running. GPS, streaming video, etc would be a bad idea to leave running. But more workday apps use very little juice when the huge power drain of the screen is turned off.
MackTK said:
Try AE Button Plus. You can customize a lot of buttons. I didn't tried what you asked, but it worth a try.
Anyway, take care using it.
Click to expand...
Click to collapse
Nope... I've tried that app. Its great for locking down the normal WM hardware buttons, but it doesn't have the HTC bespoke "Home button" on the list of configurable buttons.

All programs close when screen goes black

Hi all.
I have this annoying problem with my Blackstone.
When the screen turns off everything closes down. It's really annoying if i'm using messenger or something and not look on it for 2 min it closes messenger down.
I know i can choose in battery setting not to turn off the unit if it's not used for a while, but i still like that the screen is turned off, but still working.
Can this be done??
Dipper60 said:
Hi all.
I have this annoying problem with my Blackstone.
When the screen turns off everything closes down. It's really annoying if i'm using messenger or something and not look on it for 2 min it closes messenger down.
I know i can choose in battery setting not to turn off the unit if it's not used for a while, but i still like that the screen is turned off, but still working.
Can this be done??
Click to expand...
Click to collapse
Yes it can.
Go to Start/Settings/System/Power/Advanced and you can select the screen or backlight to turn off if device is not used for x mins on either battery or external power
Fallen Spartan said:
Yes it can.
Go to Start/Settings/System/Power/Advanced and you can select the screen or backlight to turn off if device is not used for x mins on either battery or external power
Click to expand...
Click to collapse
Yeah i know, but it only turn the lights down, not turn the screen off. It's only if i choose to turn off the device the screen turns off.
I use gyrator to set up an event that turns the screen off without turning the device off when the stylus is inserted (you can modify the default gyrator behaviour which is to lock the screen when the stylus is inserted). If you want to be fancy you could set it up to turn the screen off if the phone is turned face down, you don't really need the screen on then anyway unless you're in the habit of looking at your phone above your face while lying on your back, or trying to use it while doing acrobatics in an stunt plane.
shuflie said:
I use gyrator to set up an event that turns the screen off without turning the device off when the stylus is inserted (you can modify the default gyrator behaviour which is to lock the screen when the stylus is inserted). If you want to be fancy you could set it up to turn the screen off if the phone is turned face down, you don't really need the screen on then anyway unless you're in the habit of looking at your phone above your face while lying on your back, or trying to use it while doing acrobatics in an stunt plane.
Click to expand...
Click to collapse
Well i can't get it to work :-/
What i'm looking for is also a thing so the device isn't turned off when i push the turn on/turn off button on the top. I want to use this button to turn off the screen and not close down the programs.
This is what i'm looking for and i hope someone can help me
Dipper60 said:
Well i can't get it to work :-/
What i'm looking for is also a thing so the device isn't turned off when i push the turn on/turn off button on the top. I want to use this button to turn off the screen and not close down the programs.
This is what i'm looking for and i hope someone can help me
Click to expand...
Click to collapse
Just tried the screen off when phone is face down and it doesn't seem to be working for me either for some reason. But the stylus in event is working fine, just pop the stylus out and put it back in again and the screen goes completely off without killing the processes in the background (can still explore phone with active sync). I wouldn't want to mess with the power button as that is really useful to provide a proper device suspend when I want it.
I have a similar problem but with the GPS.
I have raised the question here, on some other forums and directly to HTC.
From HTC I got the answer that it is done by design to minimize battery drain and that they would have many angry costumers complaining about low battery life.
The only solution I know of so far is to use a 3rd party app.
I use "screenoff" and everytime I use the GPS I go to advanced-power and uncheck all the boxes.
When I'm done using the GPS I check the boxes again, otherwise I'll have to remember to turn the screen off manually everytime in "normal" usage of the phone.
I think it's sad though on such an expensive device not to have the option to run programs and hardware in sleep mode.
I'd rather find a solution where I can push the power button as usual and where I can have the boxes in advanced-power checked all the time.
I managed to get gyrator to turn the screen off by flipping face down, just needed to put the screen off command before all the rotation disable commands. Now if I want to disable the screen I just have to flip it face down for a second or so.
Thx for all your help.
But i found out that it's not only when the screen turns off everything closes. If i just leave it on home screen for like 2 min. everything also closes down.
I've heard from another forum that it's something HTC has decided to do to keep on the battery....
I don't know if there is anything to do here then??
Go to the start button, select settings, select system , scroll down and select power then the advanced tab and UNTICK Turn off device if not used for 2mins for both external and battery power.
shuflie said:
Go to the start button, select settings, select system , scroll down and select power then the advanced tab and UNTICK Turn off device if not used for 2mins for both external and battery power.
Click to expand...
Click to collapse
Done that... Still closes everything after around 2. min....
Strange, doesn't do that on mine.
shuflie said:
Strange, doesn't do that on mine.
Click to expand...
Click to collapse
I had a similar problem and only thing which resolved it was a hard reset!
I'm just testing it again to make sure. Have a track playing in the HTC music app and I'm signed in to messenger. Screen is off and I'm waiting for 3 mins to make sure.
Fallen Spartan said:
I had a similar problem and only thing which resolved it was a hard reset!
Click to expand...
Click to collapse
That was going to be my next suggestion, really doesn't sound like normal operation to me. So hardreset and install one app at a time until you find out what is messing things up for you. 3 mins are up and track is still playing and I'm still signed in to messenger.
Thanks to a guy called Dawsonas I just found a program called Pocketshield.
It has an application permission feature:
"When this app is running override power off: just do screen off" (use this option for music players, GPS apps, loggers, IM, or any app that needs the device to stay awake). This setting will take effect either when "Power off on lock" or "Power off after 20 seconds" options are enabled.
Check it out
http://pocketshield.netserver01.com/
Magster said:
Thanks to a guy called Dawsonas I just found a program called Pocketshield.
It has an application permission feature:
"When this app is running override power off: just do screen off" (use this option for music players, GPS apps, loggers, IM, or any app that needs the device to stay awake). This setting will take effect either when "Power off on lock" or "Power off after 20 seconds" options are enabled.
Check it out
http://pocketshield.netserver01.com/
Click to expand...
Click to collapse
I will try that
But do you guys think it could be some settings in the ROM? Should i try another one or what do i do when you say it isn't normal for the phone?

[Q] Wake up from sleep mode using the touch screen

I am wondering if it is possible to configure my windows mobile to wake up from sleep mode using the touch screen.
After the phone went to sleep, by pressing the power button for example, I cannot just touch the device to wake it up. I don't think pocket dial is such a big deal, I could use a lock screen to prevent that.
Only solution I found is to configure windows not to turn the device off. But I think the battery will drain faster if the device can't go to sleep mode.
Any thoughts?
No, that's not possible - you need the hardware-keys.
You also can use the proximity-sensor, but then in unattended mode. That would drain battery.
So it is impossible? There is no hack or program I can use to wake the device up using touchscreen?
adrianomoutinho said:
So it is impossible? There is no hack or program I can use to wake the device up using touchscreen?
Click to expand...
Click to collapse
What's your device ? My Blackstone wakes up if i remove stylus, it's not what you wanted, but i assume you don't want to use the power button, that's why you asked about alternate methods to wake up the device.
My device is the hermes tnty. I cannot wake the device up if I remove the stylus.
You can try installing S2U2 application which has the option of waking up and unlocking phone when stylus is pulled out. It is a nice freeware lockscreen application, i use it on my phone. Try it and see if that helps with your problem
I Tried S2U2, does not work. I still have to press the power button, or any other button if I change lock options.

Categories

Resources