Solution: How to keep "Lock" from activating while - General Topics

Finally!!!!
I finally figured out a solution that will work for any GPS Application (actually, ANY Application) that you want to "Keep Alive". The long and the short of it is this:
When you upgrade your WM5 ROM with the MSFP addition, the “Password” application (under START -> SETTING -> PERSONAL -> PASSWORD”) has been replaced by “LOCK”. This new application is part of the MSFP and is designed to give you greater protection for your data stored on your device. If enabled, this will “LOCK” your device if it doesn’t receive any input from the user. The real problem lies if you have your device set up to receive “Push Email” from an Exchange Server. The “Lock Settings” (i.e. how long your device will wait for user input until it “locks” the device) is established by your Exchange Server Administrator. If he/she has enabled the “Lock” feature to activate in 5 minutes, then your device will lock after 5 minutes of no user input. What’s worse is, as a user, YOU CANNOT CHANGE this setting. It has to be done on the Exchange Server side (i.e. your Exchange Server Administrator must change it).
There is good news and bad news.
First the bad news:
You must own or purchase a copy of SKScheMa (by SKTools (http://s-k-tools.com)). Cost is $9.60 at www.pocketgear.com
Now the good news: There’s a fix!
This is a three step process:
1) Install the software and configure it properly.
2) Add a script
3) Add a “Watch” Function
Step 1:
a) Download and install SKScheMa. I would recommend installing it to Main Memory (this is what I did and it works). NOTE: I got an email from the developer that THE INSTALL PROCESS MAY NOT COMPLETE ALL THE WAY. Once you install the program from AS, you need to go into "File Explorer" and double-click on the following icon: sksw.exe (under the \windows directory). This will finish the install. IF YOU DO NOT DO THIS, YOU WILL NOT BE ABLE TO ACTIVATE THE "WATCH FUNCTION". THE WATCH FUNCTION MUST BE ACTIVATED IN ORDER TO PREVENT THE SCREEN FROM LOOKING UP.
b) Open the software.
c) The first thing we need to do is to enable “Watch Mode”. Click on “Tools -> Settings-> General” and look for “Watch Mode”. By default, it is turned off. To turn it on, just click on the box “Watch Mode” to highlight it, and in the top box (above where you clicked), use the pull down menu to select “On”.
d) Now click on the box just below the “Watch Mode” (it’s titled “Make a shortcut for any saved script in …”). We want to turn this off, so once you’ve click on the box, use the pull down menu in the upper most box to select “No”.
We’re done with Step 1! Click “OK” using the left soft key and we’re moving onto Step #2
Note: To make sure you’ve successfully turned on “Watch Mode”, use the right soft key and select “Tools -> Queue”. In the “tool bar” on the main screen, you should see:
“Queue | Watch On”.
If you don’t, you didn’t enable “Watch Mode”. Head back to the beginning of step one and make sure you enable “Watch Mode”.
-----------------------------------------------------
Step #2
a) Copy the following into Notepad (on your computer):
#r(#label) #p(whilerunning)
#r(#sendkey) #p(#H)
#r(#0) #sleep(58000)
#r(#chkprocess) #p(TomTom Navigator.exe)
#r(#iftrue) #p(whilerunning)
#r(#label) #p(end)
b) On notepad, select “File -> Save As”. THIS FILE MUST BE SAVED WITH A “.sksc” EXTENTION (i.e. TOMTOM.sksc). To do this from the “Save As” window, use the “Save As Type” pull down menu and select “All Files” (NOT .TXT!!!!). Once you’ve selected “Save As Type”, type the name of the file AND THE EXTENTION next to “File Name:” (i.e. type in TomTom.sksc). Now just click “Save”.
d) Copy this file to the following directory on your PPC:
\Windows\Start Menu\Programs\sScripts
e) Proceed to Step 3.
------------------------------------------------------
Step #3
----------------------------------------------------
Method 1 (Longer):
a) Using the right soft key, select “Tools –> Watch”.
b) Using the left soft key, select “New”.
c) Scroll through the various fields and enter in the following information:
“Watch for” : Select from the pull down menu “Windows”
“Window title” : Type in “TomTom Navigator.exe” (without the quotes)
“To execute If the Window is Activated” : Type in “:SKSCHM” (without the quotes)
“with parameters” :
#r(#script) #p(\Windows\Start Menu\Programs\sScripts\TomTom.sksc) #onlyrun
(The above should all be on one line)
d) When done, use the “Left Soft Key” to select “OK”. You should see your “Watch Function” listed. Use your stylus to click “OK” in the upper right hand corner. Now whenever TomTom is launched, it will be “kept alive” with this program.
----------------------------------------------------
Method 2 (shorter):
a) Copy the following into Notepad (on your computer):
#c[TomTom Navigator.exe] #a[:SKSCHM] #ap[#r(#script) #p(\Windows\Start Menu\Programs\sScripts\TomTom.sksc) #onlyrun]
(This should be one long line)
b) On notepad, select “File -> Save As”. THIS FILE MUST BE SAVED WITH A “.sksw” EXTENTION (i.e. TOMTOM.sksw). NOTE: THIS IS A DIFFERENT FILE EXTENTION THAN THE SCRIPT FILE WE JUST CREATED. To do this from the “Save As” window, use the “Save As Type” pull down menu and select “All Files” (NOT .TXT!!!!). Once you’ve selected “Save As Type”, type the name of the file AND THE EXTENTION next to “File Name:” (i.e. type in TomTom.sksw). Now just click “Save”.
c) Copy this file to the following directory on your PPC:
\Windows\Start Menu\Programs\sScripts
d) On your PPC and using the right soft key, select “Tools –> Watch”.
e) Now select “Tools -> Context menu -> Load from File…”
f) Select the directory you just copied our “Watch Function” to (i.e. (\Windows\Start Menu\Programs\sScripts\) and select the file you just copied over (i.e. TOMTOM.sksw) by highlighting and clicking “OK” with the left soft key.
g) You should see your “Watch Function” listed. Use your stylus to click “OK” in the upper right hand corner. Now whenever TomTom is launched, it will be “kept alive” with this program.
It sounds more complicated than it really is. Let me know if you some questions.
--------------------------------------------
A few comments on the script file:
#r(#label) #p(whilerunning)
% Creates a label for your "While Loop"; "whilerunning" Label
#r(#sendkey) #p(#H)
% Simulates the depression of the "Home Key"
#r(#0) #sleep(15000)
% This is a counter for 15 seconds (i.e. 15000 ms). You can increase this as necessary.
#r(#chkprocess) #p(TomTom Navigator.exe)
% Checks to see if the following process is running (i.e. TomTom Navigator.exe) You can modify this line for any application you want to keep alive.
#r(#iftrue) #p(whilerunning)
% If the process is running, return to label above marked as "whilerunning" (This is your "while loop")
#r(#label) #p(end) % end of "While Loop"
Hope this helps!
EDIT:
IMPORTANT UPDATE: For this to work properly, you must be using an English ROM. Thanks Rogier for the tip!

Ooooooo YES!!!!!
I am a Happy Man. This works now.
Seems the German Version of the Utility does not liked the script or so.
On an Englisch ROM all seems to work fine.
Thanks a lot for your help.ö
Rogier

AMAZING!
Admins: this should be stickied!
"Chapeau weatheryoko!"

Related

How to ActiveSync after deleting repllog.exe (All XDAs)

This article is copied from http://www.ppcsg.com/index.php?showtopic=53614
It has sorted my problem out first time
Click to expand...
Click to collapse
Dear all,
It is a known fact that though useful to clear redundant notifications, the ScaryBear combo of:
1) ScaryBear Clear Notification Fix and
2) ScaryBear Check Notification,
especially the latter allows u to delete whole notifications completely, despite some of which are ill-advised to do so .
This is especially so for the notification event, 'repllog.exe', which tells ur desktop serial device driver to look out for an incoming RS232 cable = time to ActiveSync. Still, some bros/sisters unknowingly deleted this and were consequently unable to ActiveSync with their desktop = hard-reset.
Fret not, for those bros/sisters with itchy fingers while using the ScaryBear Combo, Bro fattyfattybombom has conjured up a workable method (LINK: CLICK ME), which I'll now help to surmise.
How to ActiveSync again after deleting the notification event 'repllog.exe':
Phase #1: (Force a one-time sync)
1) Connect ur device to ur desktop (doesnt matter if ur ActiveSync is dead).
2) Press-and-hold the 'Action' hardware button.
3) Tap the clock at the top-taskbar.
4) Release stylus and button.
5) Under the popup menu, select 'Run'.
6) Type in: \windows\repllog.exe
Note:
- Conversely, for Step #2 to Step #6, u can tap on the repllog.exe in ur '\Windows\' folder.
Phase #2: (Create a new notification queue event)
1) U'll need to install shareware 'MemMaid by DinarSoft', which has a option of creating new notification event (doesnt matter if u just use the trial version).
2) Open 'MemMaid' and go to the 'Notification Queue' tab (i.e. 2nd tab).
3) Tap the icon 'Add...'.
4) Under the 'Add Notificaion>Program' field, tap on the '...' icon.
5) Under the folder tree, scroll to \windows\repllog.exe and tap on it.
6) Under the 'Add Notificaion>Event' field, select ' An RS232 connection was made'.
7) Tap on the 'Add' icon.
8) Exit the program and soft-reset ur device.
9) ActiveSync as normal.
Hope this can help save some bros/sisters from hard-resetting their devices after ScaryBear accidents. Thanks to Bro fattyfattybombom again.

cycle through brightness levels

Hi eveybody.
i'm looking for a little piece of software which i can use to cycle through the different brightness levels. Just as i can do it with the htc home plugin.
but this plugin is too big for me. i'd love to put it into wisbars system tray or make have it in any other home plugin.
i tried the search but didn't find anything.
hopefully i just tried the wrong terms for my search and you can tell me lots of applications
thanks...
i've tried the search on this many times. would love to get that HTC Home plugin brightness icon mapped to a hardware button. no luck yet.
what a shame...
anybody else? any ideas?
Try this:
http://forum.xda-developers.com/showthread.php?t=379270
thanks!
will try....
hm... seems i'm too stupid to do it right. i don't know how i need to configure and which program i should start to cycle.
can you help m with this?
MVbklight for polaris:
- install MVbklight.1.4.1.cab
- unzip and copy to program folder (\Program Files\MalVal\MVBklight\)
- i have problems with today plugin, then delete MVBklight.dll after disable it in Settings>Today
- run Cfg.exe (MVBklCfg from Programs)
- on the second tab, first item language (set MUI), next OK
- run Cfg again
- on the first tab set "Settings for" to Manual, OK
- run Cfg again
- set "Device type" to WM5/WM6
- set "Battery DeviceIoControl code" to 0x7
- set "Power DeviceIoControl code" to 0x8
- Apply and OK
Now for cycle backlight run (from program folder):
Cmd.exe 0 2 5 7 10
or try Bklight_cycle.lnk
(cycle through 2 5 7 10, for other cycle try different numbers between 0-10)
SPB Mobile Shell 2 has what you're looking for: When the mobile shell comes up there are three screens. On mine, the brightness icon, a yellow light bulb with a dashed line below it, is in the very top left of the center screen, the one with all the program and setting icons, and allows you to cycle thru brightness levels while you're using it. I love it. I couldn't find the icon anywhere else in the shell, tho... Good luck.
Try to find ComManagerPlus developed by me
This programm can do this thing and many more. Freeware. Link later.
alladdin said:
MVbklight for polaris:
- install MVbklight.1.4.1.cab
- unzip and copy to program folder (\Program Files\MalVal\MVBklight\)
- i have problems with today plugin, then delete MVBklight.dll after disable it in Settings>Today
- run Cfg.exe (MVBklCfg from Programs)
- on the second tab, first item language (set MUI), next OK
- run Cfg again
- on the first tab set "Settings for" to Manual, OK
- run Cfg again
- set "Device type" to WM5/WM6
- set "Battery DeviceIoControl code" to 0x7
- set "Power DeviceIoControl code" to 0x8
- Apply and OK
Now for cycle backlight run (from program folder):
Cmd.exe 0 2 5 7 10
or try Bklight_cycle.lnk
(cycle through 2 5 7 10, for other cycle try different numbers between 0-10)
Click to expand...
Click to collapse
GREAT!
Thanks a lot!!!
Works wonderful.
you made me happy
I copied the .lnk file to the Start Menu -> Programs folder and I mapped it to a hardware button. Works like a champ.
1. Unpack CommManagerPlus_0.7.5.ZIP.
2. Install CommManagerPlus.cab from WM5WM6 directory on device.
3. Soft Reset device.
4. Place files from directory Lnk on device. (i.e \Programm Files\CommManagerPlus\)
5. Run CommManagerPlus.
6. Go to the Brightness tab.
7. In Brigtness Registry Section select - BackLight.
8. In ACBrightness or Single key select – ACBrightness
9. In Battery brightness key select – Brightness
10. In Mode Section check DeviceIoControl.
11. In dwIoControlCodeAC enter 8
12. In dwIoControlCodeBatt enter 7
13. InBrightness min and max set step to 2.
14. In min enter 1
15. In max enter 10
16. Tap Ok.
17. Tap Cancel.
18. Use brigtness.lnk installed from Lnk as you want.
19. Check another *.lnk
i must say that it worked like a champ (see my previous post) but I found my device a bit sluggish so I ended up removing MVBklight. How's CommManagerPlus performance wise?
hbc said:
1. Unpack CommManagerPlus_0.7.5.ZIP.
2. Install CommManagerPlus.cab from WM5WM6 directory on device.
3. Soft Reset device.
4. Place files from directory Lnk on device. (i.e \Programm Files\CommManagerPlus\)
5. Run CommManagerPlus.
6. Go to the Brightness tab.
7. In Brigtness Registry Section select - BackLight.
8. In ACBrightness or Single key select – ACBrightness
9. In Battery brightness key select – Brightness
10. In Mode Section check DeviceIoControl.
11. In dwIoControlCodeAC enter 8
12. In dwIoControlCodeBatt enter 7
13. InBrightness min and max set step to 2.
14. In min enter 1
15. In max enter 10
16. Tap Ok.
17. Tap Cancel.
18. Use brigtness.lnk installed from Lnk as you want.
19. Check another *.lnk
Click to expand...
Click to collapse
That was (almost!) exactly what I was looking for, now mapped to the pointless (for me) Orbit's Windows button.
I did change a couple of things so it mimics the way the button in the HTC Home plugin works - changed STEP to 3, and MAX to 11 (just like Spinal Tap!)
Cheers.
hbc said:
1. Unpack CommManagerPlus_0.7.5.ZIP.
2. Install CommManagerPlus.cab from WM5WM6 directory on device.
3. Soft Reset device.
4. Place files from directory Lnk on device. (i.e \Programm Files\CommManagerPlus\)
5. Run CommManagerPlus.
6. Go to the Brightness tab.
7. In Brigtness Registry Section select - BackLight.
8. In ACBrightness or Single key select – ACBrightness
9. In Battery brightness key select – Brightness
10. In Mode Section check DeviceIoControl.
11. In dwIoControlCodeAC enter 8
12. In dwIoControlCodeBatt enter 7
13. InBrightness min and max set step to 2.
14. In min enter 1
15. In max enter 10
16. Tap Ok.
17. Tap Cancel.
18. Use brigtness.lnk installed from Lnk as you want.
19. Check another *.lnk
Click to expand...
Click to collapse
hi, what else does it do? you said many more... do you have a link or other more elaborate description pls?

A few windows 6.1. mods

Hello!
Do you happen to know how to:
a)put the gsm indicator on the today screen (VERY preferably on the HTC today, e.g. below the alarm clock on the right side or horizontally near the operator name - not to waste space)
b)block GPRS: just to tell the phone to never ever try to connect to it. At the moment e.g. while pressing the weather button, it starts connecting - quite annoying, especially if pressed by chance
c)create folders in programs menu (as e.g. the "games" folder) and then copy shortcuts into it
d)in the menu start - change from 7 shortcuts and 5 recent programs into 12 shortcuts and 0 recently opened programs.
Thank you for help!
Best regards,
Theriel
c) Go under "\Windows" direcotry and then under "\Start menu"
that's the direcotry tree
I meant programs menu - the one you get into by clicking start->programs. .
Any ideas about this as well as the other questions ?
b) there are several ways to kill all data connections. you can use something like the Advanced Config Tool and disable the data connection setup on the phone. Or you can use a tool like MoDaCo's NoData tool. Search the forums you will find your answer.
c) It is where "wonderiuy" said it is. For the icons in Programs you need to go one level deeper in the start menu. My Device -> Windows -> Start Menu -> Programs. There you will find links to all the icons when you go to Start Programs.
Thanks a lot! I have also a small question: is there any reason for which I shouldn't enable all the power managements that there are in Advanced Config Tool?
I would be still grateful for answering a) and d) :].
d) Disable large start menu
Start -> Settings -> Large start menu -> disable (or rather not enable) it
theriel said:
b)block GPRS: just to tell the phone to never ever try to connect to it. At the moment e.g. while pressing the weather button, it starts connecting - quite annoying, especially if pressed by chance
Click to expand...
Click to collapse
Do this,
1. Click the weather tab and click the location name at the top. You will get into ‘Select City’ window.
2. Tap the ‘Menu’ at the bottom right of the screen and choose ‘Weather Options…’ from the pop-up list.
3. Uncheck ‘Download weather data automatically*’
b) Easy solution: Go to Settings -> Connections -> Connections -> Advanced -> Manage Networks -> and choose "Company Network" for "Programs with automatic internet connectivity use ....". Name of options may vary, because I use German ROM. Translation done by brain.exe on the fly
Thanks a lot mates! So, there is no way to solve my problem "d)" ?
see post #6 in your own thread (above). Does that not do what you asked?
That has nothing to do with choosing the programs you want to have listed in the menu start. Large menu is completely different thing which, by the way, I have disabled since the very beginning.

[Guide] Change Wifi Sleep Policy delay after Screen Off

Inspired by the guide from this thread, I made a small (tiny) guide that might be helpful to others. The purpose is to change the delay in time after which WiFi will be turned off after the screen turns off, which is by default 15 minutes, that is if the Wifi sleep policy is set to "After 15 Min".
1- Get the file "settings.db" from /data/data/com.android.providers.settings/databases/ using any approriate method, I used ES Explorer & copied to SD card.
2- On the PC, using Sqlite3Explorer open the "settings.db" file. (make sure you also have the dll file).
3- Right click on secure folders & choose 'Show Data'
4- Click on the green plus icon "Insert Record"
5- On the new (empty) column, Double click on name column & insert "wifi_idle_ms", then click update - and Double click on value column and insert the time for wifi to turn off in miliseconds. (60000 for 60 seconds, etc.) (click update on the screen were data was entered)
6- Click on the "Update" button to save changes.
7- Right click on the secure folder again & choose 'show data', to ensure that the new column has been added at the bottom.
8- Go to File and select "Close Database"
9- Take the modified "settings.db" file & copy it back to your SD card then to the same original forder, overwriting the original one.
*** Always backup***

How To Guide AOD activeclock (clocktransition) bug workaround on non-flagship phones

This guide is mainly for those who know what the "clocktransition" or "activeclock" bug is, where your AOD brightness drops significantly after a few seconds of AOD set to always on while you have the under-display FP reader on.
This workaround functions by turning AOD off and then on after the screen turns off, eliminating this bug from happening.
It's not perfect but gets the job done.
We use an app called "Tasker" from the Playstore (as well as "Tasker Settings")
Here's the guide:
Open Tasker Settings first just to make sure it's running
You can do this at any time, but make sure you remove Tasker from apps that can optimize battery usage (the app will constantly remind you about this anyway)
Open Tasker and go to the "Tasks" tab (dismiss any of the annoying reminders you get from Tasker)
* Add a new task (+ sign at the bottom) and give it a name. Any will do. I will name it "Aod off-on"
Then add an Action on the screen it takes you to (+ sign at the bottom)
In the "Select Action Category" pop up, search for "Wait" and select it. This "Wait" command is done so that there is a few seconds before the task can turn AOD off and on so you can fully appreciate the clocktransition animation. You can add any value you want here. I recommend between 3 to 7 seconds but it's up to you.
Save (back button)
Add a new action
In the "Select Action Category" pop up, search for "Custom Setting"
In the drop down menu under "Type", select "System" instead of "Global"
In "Name", type aod_mode
In "Value", type 0
Save (back button)
Add a new action
In the "Select Action Category" pop up, search for "Custom Setting"
In the drop down menu under "Type", select "System" instead of "Global"
In "Name", type aod_mode
In "Value", type 1
Save (back button)
You are done with your task, now go back and create a profile that will trigger it
Switch back to the "Profiles" tab and add a new profile (with +)
Select "Event" -> Search for "Display Off"-> Leave Normal Priority
Go back and it will request that you select a task, select the one you created
You should be done. Now, the task will activate everytime you turn the screen off.
Note: If this doesn't work for you, you'll probably have to edit the task and in both instances where you change the aod value to 1 and 0, you'll have to give it root permissions (there should be a checkbox when editing the task and the action to use root)
Enjoy, let me know if it works for you!

Categories

Resources