Related
I know, I know... vijay555 just released a similar application earlier today. It seems we were working on the same thing at the same time. After discussing this with him in his thread: http://forum.xda-developers.com/viewtopic.php?t=45851
I've decided to go ahead and release my own version as an alternative.
The program can (and probably should!) be mapped to a hardware button using the Buttons control panel applet. I run mine on Button 4(hold) because I never use the voice recorder. This also prevents locking the device unintentionally.
I have also added two minor features to the application that some might find useful. You can optionally put the device to sleep after it is locked (same as pressing the power button) and you can configure a program to run just before the device is locked. This is useful if you have an application that you may want to look at frequently without unlocking the device. (Contacts, Calendar, a full-screen clock application, etc).
Both of these options are set in a control panel applet System->Device Lock.
NOTE: I know some people have use memmaid to register the lock application to run on wake up. If you do this, DO NOT select the suspend device option!! This will result in not being able to wake your device up for more than a few seconds (Wake up the device, your notification tells the device to lock, the lock process suspends the device, You wake up the device, rinse, repeat)
If you do this, all is not lost, just soft reset your device and uncheck the option to suspend in the control panel.
Here's a link to the installer (Requires WM5 PocketPC edition):
http://www.mr2-power.com/downloads/DeviceLock.CAB
You will likely need to soft-reset to see the new Control Panel applet.
*NEW* The latest version does NOT require the Lock Device today item to be loaded!
Enjoy!
-Matt Armstrong
Tried it on a BA and it works but change the default from suspend when locked since the applet doesnt show till after soft-reset. Thanks.
so you're saying make the default behavior NOT to suspend. Someone in another forum also requested the ability to blank the screen rather than suspend. I'll likely add this option in the next couple of days. I can change the default registry entry now though. A new installer should be up in a couple of minutes.
-Matt
Ok, yet another new CAB file has been uploaded. This new version has the option to suspend the device OR just blank the screen. If you blank the screen your programs will continue to run (and consume more power!). To restore the screen just press the power button. I also changed the default behavior after install to JUST lock the phone (not susped or blank). Everything else is the same.
-Matt
P.S. I appreciate all of the feedback very much. Keep it coming!
Thanks for the changes armstrom, ill download and test again. Thanks
Just installed and it works ok.
I have updated the software one final time for the night.
I have eliminated the requirement that the Lock Device today item be loaded. Now you can go unload that item and free up 20 pixels of screen real-estate For some reason this was a biggie to many people :? So it's finally done.
Keep the bug reports coming as you find them.
-Matt
great version. Without the plugin makes it invaluable. Maybe you can make as an option to hook it to the power button to get it to run when you power off? Or we can use vjkey for that
Well, I can add that option. In fact an early revision of the software did have it. I was just having inconsistent results with it on my MDA. For some reason the MDA wasn't firing the wakeup event if I suspend and then resume with just the power button. (press the power to suspend, then press again to resume). If I programmatically suspend the device, then I get the event every time. I can add it back in though if you want to try it on your device. Maybe you'll have better luck?
Edit: I just installed the new version vj's software and it has the same problem as mine. For some reason my phone does fire the wake-up event properly! I'll add the option back in to my software since it seems to work on other people's hardware just fine.
-Matt
Awesome!!
Man this place is great!
Armstrom, both you and VJ are awesome. This was the biggest single thing I've missed since buying my 8125. Since I use Xpress mail and the device wakes up when a message comes in, and if it's in my holster, and a button is gettind pushed, all sorts of weird things would happen.
So I had to always remember to go to Today, scroll down, hit the lock function...grrr.
But no more. I can't believe the terrific amount of support, hard work and resources you guys all contribute to these cool little gadgets.
Thanks again to both of you.
-JMS
If this can be made wot work reliably with power on events it would be awesome.
Thank you for putting these together.
One quick question...
I would love to have the Today screen as my default app to load on a lock action, however I can't find a way to do it. There is no .lnk file to point your Device Lock to.
I tried installing PHM Keys (as there's a Today .lnk in there) but it won't install in WM5.
Any programatic way to invoke/call the Today screen from a shortcut/lnk file so I can point the Device Lock to that file so Today is always showing when I lock my phone.
Thanks again, you guys are great.
-JMS
(Apologies for multiple entries - posting problems)
(Apologies for multiple entries - posting problems)
(Apologies for multiple entries - posting problems)
Great job Matt.
One quick question for ya - I would like to keep Egress running on the today screen when the device is locked. When I choose NOT to suspend the device or blank the screen, the today screen shows but the egress app is not cycling thru the latest news (it sticks on the last before the lock).
Is there any way to keep Egress at least cycling thru the news it d/l before the lock (if not allowing it to continue to update at egress specified times)?
Thanks again!
Thank you
A very useful app!
jkimrey said:
Great job Matt.
One quick question for ya - I would like to keep Egress running on the today screen when the device is locked. When I choose NOT to suspend the device or blank the screen, the today screen shows but the egress app is not cycling thru the latest news (it sticks on the last before the lock).
Is there any way to keep Egress at least cycling thru the news it d/l before the lock (if not allowing it to continue to update at egress specified times)?
Thanks again!
Click to expand...
Click to collapse
I'm really not sure how to solve that issue. I've never use the application you're talking about. Perhaps it is detecting the device being locked and not updating itself? I'm really not sure.
-Matt
Matt,
I think it must have something to do with the phone being in locked mode. I've found that when the phone is locked, the screen will go black after a couple seconds for both the lock on the today screen as well as when using a hardware button thru your application.
When I use the today screen app, after tapping the screen when black, it will display the today screen with the cycling headlines.
When I use your lock app, however, and tap to get the screen back, it doesn't cycle. If I hold down the power button and then turn it back on after being locked by your app, however, it does cycle.
Not a huge deal, just found it interesting...Wonder what would be different between the included today screen lock and your lock app that would cause this?
Thanks again!
armstrom said:
jkimrey said:
Great job Matt.
One quick question for ya - I would like to keep Egress running on the today screen when the device is locked. When I choose NOT to suspend the device or blank the screen, the today screen shows but the egress app is not cycling thru the latest news (it sticks on the last before the lock).
Is there any way to keep Egress at least cycling thru the news it d/l before the lock (if not allowing it to continue to update at egress specified times)?
Thanks again!
Click to expand...
Click to collapse
I'm really not sure how to solve that issue. I've never use the application you're talking about. Perhaps it is detecting the device being locked and not updating itself? I'm really not sure.
-Matt
Click to expand...
Click to collapse
Ok, I have added the option to lock the device on wake-up. Note: I have not been able to test this because my device does not properly send wake-up notifications. If someone could give this a try and let me know if it works I would appreciate it.
I have also added command line options to override the configuration specified in the control panel applet. The options are as follows:
-o:* Overrides the lock options and takes a number 0-2.
0 = Lock Only
1 = Lock then Suspend
2 = Lock then Blank Screen
-r:* Overrides the application to run after locking. This must have Quotes around it. Specifying -r:"" will prevent the default application from running.
Here are some examples:
Blank the screen and run the calculator.
DeviceLock.exe -o:2 -r:"\Windows\calc.exe"
Just lock and don't run anything
DeviceLock.exe -o:0 -r:""
You do not need these command line options if you just want the device lock to always follow what you have specified in the applet. These are only to optionally override the specified behavior. Some people on another board expressed the desire to have the device lock in two different ways depending on what they were doing. This is the way
Again, please let me know if the lock on wake functionality works or not
The cab is in the usual place.
-Matt
Here are some examples:
DeviceLock.exe -o:2
With some WM6 ROMs, one can turn the phone off and keep WMP playing. The DOPOD ROM acts this way but the BA WM6 and the Sprint WM6 Titan shut off WMP when the phone is turned off.
Does anywone know a hack or have a .cab to keep the music playing when the phone's turned off?
Thanks
in the forums there was devicelock cab which can just lock the device and turn off the screen which prevents the working programs of closing
rambo6 said:
With some WM6 ROMs, one can turn the phone off and keep WMP playing. The DOPOD ROM acts this way but the BA WM6 and the Sprint WM6 Titan shut off WMP when the phone is turned off.
Does anywone know a hack or have a .cab to keep the music playing when the phone's turned off?
Thanks
Click to expand...
Click to collapse
Just a small trick for you guy, without having to install any new software or cabs, but using your current WMP:
1. Turn on your WMP,
2. Go to Menu / Options
3. Chose tab Buttons (at the end to the right)
4. Scroll down to the bottom and you will see "Toggle Screen"
5. Select "Toggle Screen" and click Assign button.
6. Press any arrow button (up or down, as right and left are assigned to Previous and Next already) to assign to this function (I chose "up").
7. OK and done.
Now when you play WMP, you just need to press that button and the screen is totally off.
Enjoy listening! Cheer!
There is a little trick to it
Just keep your WMP playing and do not minimize or toggle back to Today Screen or anywhere else. Jus keep WMP your active program and then press I/O button jus once, your PPC will get off, but you should know thats only the backlight thats getting off. Yep if you want more than your backlight to get off, proceed with the tweak as someone is hinting here. But why tweak your PPC?
Install GS Player and make a hot key for "display off & lock".
put slide to unlock and set it turn off with backlight.
minimize wmp.
wait backlight to off or run s2u.
it turn off ur screen without pausing the wmp and also lock the device so u can put it in cover or pocket.
WMP Playback in Standby
ever tried to use this regkeys:
[HKEY_LOCAL_MACHINE\Software\Microsoft\MediaPlayer\Preferences]
"UnattendedPlayback"=dword:1
"FastCacheReserve"=dword:800000
"LocalCacheReserve"=dword:800000
it means turn off screen, not phone. there r so many software can turn off screen: pbar, pocketplus...
Thanks guys. I'll try some of these out. My BA is working great with WM6.
petervbeck said:
ever tried to use this regkeys:
[HKEY_LOCAL_MACHINE\Software\Microsoft\MediaPlayer\Preferences]
"UnattendedPlayback"=dword:1
"FastCacheReserve"=dword:800000
"LocalCacheReserve"=dword:800000
Click to expand...
Click to collapse
I tried this but it didn't work. Thanks anyway. Any other ideas? I notice that on my hermes, there are similar registry settings. It works on the Hermes. But not on the BA or Kaiser
Instead of WMP...
You should try PocketMusic... it's much better than WMP... aside from what you want to happen...
it has a graphic equalizer... a Bass booster... an alarm option... and i think a better playlisting...
I've read posts from people saying that they're able to do things like listen to mp3s, stream radio, etc. with the screen off, so I think there must be something wrong with my phone, because I can't do any of that. When the screen goes off, regardless of whether it's from me pushing the top button or from the phone sitting idle for a certain length of time, all sound stops. It happens both with or without headphones connected.
I think I've searched through every possible setting in the "control panel" area. Is there some registry setting I have to change to make the phone allow programs to run after the screen turns off?
Certain programs will cause the screen to remain on indefinitely. It'll dim after a certain length of time, but it won't turn off. This allows the programs to continue running, but I'd like to get the screen to turn completely off. Is that possible?
I've got a Sprint Touch with the latest official Sprint WM 6.1 ROM and am using Slide2Unlock. Could S2U be causing this?
Thanks for any help.
Brent212 said:
I've read posts from people saying that they're able to do things like listen to mp3s, stream radio, etc. with the screen off, so I think there must be something wrong with my phone, because I can't do any of that. When the screen goes off, regardless of whether it's from me pushing the top button or from the phone sitting idle for a certain length of time, all sound stops. It happens both with or without headphones connected.
I think I've searched through every possible setting in the "control panel" area. Is there some registry setting I have to change to make the phone allow programs to run after the screen turns off?
Certain programs will cause the screen to remain on indefinitely. It'll dim after a certain length of time, but it won't turn off. This allows the programs to continue running, but I'd like to get the screen to turn completely off. Is that possible?
I've got a Sprint Touch with the latest official Sprint WM 6.1 ROM and am using Slide2Unlock. Could S2U be causing this?
Thanks for any help.
Click to expand...
Click to collapse
No, you need to do a registry edit on some ROMs.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MediaPlayer\ Preferences]
Then see if there is a value called "UnattendedPlayback". If not create a new dword entry and name it "UnattendedPlayback" and set it's value to 1. WMP should now play when in suspended mode.
That seems like it'd only work for WMP. However, I think I found the answer I was looking for.
Changing
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power\State\Unattended\WAV1:
to "0" seems to have done the trick. It was originally set to "4".
Now when I use Pandora (which was what I mainly wanted this for), I can turn off the screen and it'll continue playing.
hmm, even after changing both of those registry keys, mine still doesn't work. It pauses for a second when I turn the screen off, comes back for a few seconds, then stops again and continually stops/starts until I turn the screen back on. Any ideas? Thanks
That's what I was experiencing before I changed that registry key.
here's a cab for the second mentioned registry fix.
It's on me and my friend's premium account
so it should stay available for a while.
**Just tested on my phone!!**
*Not sure if it works with other phones besides HTC Touch,
but feel free to try at own risk*
http://rapidshare.com/files/220308931/SHK_Customs_Keep_Music_Playing_Registry_Fix.cab
Easiest solution is to use psShutXP. It will add a shortcut to turn off the display. If you use WisBar you'll get the same option. psShutXP is light, free, and easy to use.
This works for the T-Mobile Wing. It's the second registry edit made into a cab by codybear.
It works for the Pandora app perfectly. BTW, you can get the Pandora app for the Wing and possibly other phones HERE
Registry edit cab attached below for ease of access.
TheChampJT said:
Easiest solution is to use psShutXP. It will add a shortcut to turn off the display. If you use WisBar you'll get the same option. psShutXP is light, free, and easy to use.
Click to expand...
Click to collapse
no sense in using another app when you can just change a registry.
I have a Kaiser, and there's nothing more irritating than accidentally bumping a button while having the phone in your pocket, then having random things in your pocket scroll through your address book until it calls someone. Or opens up IE and finds a high-bandwidth website. When you don't have a data plan.
Things like this hurt. I've been trying to find a solution to it, and I happened to stumble upon an olllllld application on another forum. It's called AutoLock. I found it Here.
Anyways, long story short, it uses the built-in Windows Mobile screen lock and turns it on whenever the phone's screen turns on. So hitting the power button is enough to lock your phone. It's super convenient, and for the most part, it's not too buggy.
I've been using this for probably over a month now. It's a lifesaver. I had the .exe on my SD card, and every time I reflashed, I had to make a new shortcut and place it into the startup folder. So tonight, I made a CAB file out of it.
I hope you guys get as much use out of it as I do.
A quick note: It runs in the background. Terminating it will not allow it to function. The CAB will add a shortcut to the startup folder, so a soft reset will start it. Otherwise you can start it from the shortcut in the Programs folder.
Frequently Asked Questions:
Q: Is there a way to disable the program window that pops up after a soft-reset?
A: There is no way to disable the message screen on startup. Just hit the X in the top right corner, and it should minimize out of sight.
Q: When receiving a call, does the answer button and screen stay locked?
A: The answer button and the screen both unlock when the phone is ringing. If the call is answered/ignored/stops ringing, the screen will be re-locked.
Q: Will it work with my phone?
A: This program has been confirmed to work on a few models. I believe that it should work on pretty much any touchscreen device running Windows Mobile. Please, try it and tell me if it works!
Tested Phones:
Kaiser (ATT Tilt)
Touch Pro (Fuze)
Xperia
racer7 said:
I have a Kaiser, and there's nothing more irritating than accidentally bumping a button while having the phone in your pocket, then having random things in your pocket scroll through your address book until it calls someone. Or opens up IE and finds a high-bandwidth website. When you don't have a data plan.
Things like this hurt. I've been trying to find a solution to it, and I happened to stumble upon an olllllld application on another forum. It's called AutoLock. I found it Here.
Anyways, long story short, it uses the built-in Windows Mobile screen lock and turns it on whenever the phone's screen turns on. So hitting the power button is enough to lock your phone. It's super convenient, and for the most part, it's not too buggy.
I've been using this for probably over a month now. It's a lifesaver. I had the .exe on my SD card, and every time I reflashed, I had to make a new shortcut and place it into the startup folder. So tonight, I made a CAB file out of it.
I hope you guys get as much use out of it as I do.
A quick note: It runs in the background. Terminating it will not allow it to function. The CAB will add a shortcut to the startup folder, so a soft reset will start it. Otherwise you can start it from the shortcut in the Programs folder.
Click to expand...
Click to collapse
Nice one mate!
I assume you can also use this on a Touch Diamond??
neways, I will give it a shot....
Thanks for your work
Regards
Jeroen
thanks
racer7 said:
I have a Kaiser, and there's nothing more irritating than accidentally bumping a button while having the phone in your pocket, then having random things in your pocket scroll through your address book until it calls someone. Or opens up IE and finds a high-bandwidth website. When you don't have a data plan.
Things like this hurt. I've been trying to find a solution to it, and I happened to stumble upon an olllllld application on another forum. It's called AutoLock. I found it Here.
Anyways, long story short, it uses the built-in Windows Mobile screen lock and turns it on whenever the phone's screen turns on. So hitting the power button is enough to lock your phone. It's super convenient, and for the most part, it's not too buggy.
I've been using this for probably over a month now. It's a lifesaver. I had the .exe on my SD card, and every time I reflashed, I had to make a new shortcut and place it into the startup folder. So tonight, I made a CAB file out of it.
I hope you guys get as much use out of it as I do.
A quick note: It runs in the background. Terminating it will not allow it to function. The CAB will add a shortcut to the startup folder, so a soft reset will start it. Otherwise you can start it from the shortcut in the Programs folder.
Click to expand...
Click to collapse
this is a very usefull program.is there anyway to disable message screen when program start after softreset?thanks a lot in advance
It's unfortunate that I didn't create this program. I only found it through about six months of searching on the internet. Maybe a friendly XDA-Developer could write a similar program and keep it updated with new features!
As far as I know, there's no way to disable the message screen on startup. Just hit the X in the top right corner, and it should minimize out of sight.
As for if it works on a Diamond... go try it and tell me how it works!
Awesome program! Thanks
Looks interesting. Thx for sharing!
racer7 said:
It's unfortunate that I didn't create this program. I only found it through about six months of searching on the internet. Maybe a friendly XDA-Developer could write a similar program and keep it updated with new features!
As far as I know, there's no way to disable the message screen on startup. Just hit the X in the top right corner, and it should minimize out of sight.
As for if it works on a Diamond... go try it and tell me how it works!
Click to expand...
Click to collapse
yep i am just hitting x .it works in my xperia without problem.thanks again.
So what happens when a call comes? Does it lock the answer button too? And the screen?
kull said:
So what happens when a call comes? Does it lock the answer button too? And the screen?
Click to expand...
Click to collapse
Since it's the inbuilt Windows Mobile locking setup, when a call comes in, the phone is still locked, but the answer skin floats above the lock. So the screen "unlocks" so you can answer or reject the call, but it locks as soon as you answer or ignore it again.
I've discovered, using my Jade, that you can do the same thing by just setting the built-in Windows Mobile device lock to 0 minutes... You'd need to provide a password, though...
First press of the power button puts the phone to sleep... Press it again, it will ask for your password to unlock...
I have tried to make this myself but im not the best at c# I was hoping someone would like to write a small app that disables and enables the touch panel without using the gsensor or light sensor or nav sensor. i want to use this with a mort script so it would launch the app to disable touch panel then run the rest of the script then launch the app to enable it. i don't care if its two separate apps. if someone can help i would appreciate it so much. thanks
This isn't an actual shortcut, its a bit better than that if you ask me.
http://www.freewarepocketpc.net/ppc-download-sensorlock.html
Basically you just spin the phone in your hands and it will lock, watch the video, it shows what to do
I've also found an application called sleep, I used that for a while but now I'm on WinMo 6.5 and I just use the lock button instead. Just do a quick google for a program called sleep, shouldn't be too hard to find.
And also there is an inbuilt lock thingie where you can set your phone to lock the screen if you hold down the end call button for like 5 seconds but that one is a bit of a pain cause you gotta hold it for ages before it locks and then when you try to unlock it is hard especially if youre outside with the sun shining.
AdamHC said:
This isn't an actual shortcut, its a bit better than that if you ask me.
http://www.freewarepocketpc.net/ppc-download-sensorlock.html
Basically you just spin the phone in your hands and it will lock, watch the video, it shows what to do
I've also found an application called sleep, I used that for a while but now I'm on WinMo 6.5 and I just use the lock button instead. Just do a quick google for a program called sleep, shouldn't be too hard to find.
And also there is an inbuilt lock thingie where you can set your phone to lock the screen if you hold down the end call button for like 5 seconds but that one is a bit of a pain cause you gotta hold it for ages before it locks and then when you try to unlock it is hard especially if youre outside with the sun shining.
Click to expand...
Click to collapse
thanks for the response, i have used sensorlock and it is a great app but i want the screen lock so i can run script that involves buttons press while the phone is in my pocket
question about SIP default
i know this may not be the most appropriate thread to put this question on, my apologies. From the title I thought it may be. Anyhow, I installed phm registry editor and am trying to learn to use it, but not sure how to find something im wanting to change. My SIP default seems to be that anytime i open my sms inbox, or email, etc, my keyboard pops up without me selecting it to do so. I want to change it so it only pops up when I select the little tab/icon to MAKE it pop up.
Any help would be greatly appreciated. Much thanks in advance.