Auto reset every 30 minutes - Windows Mobile Development and Hacking General

I'm looking for software that will automatically reset my device every 30 minutes. It should postpone resets if device is active (screen on).
The software I've seen so far only schedules once daily. Pretty dumb. I tried ShutXP, but I can't figure out how to make that automatically reschedule the next reset ... anyone?

I can write up a script for ya... install mortscript while you wait, if you haven't already...

Love you! Awesome! I have Mortscript installed already.

ResetTimer v0.1b
Here we are...
xd1936's ResetTimer v0.1b
-scroll down below and try v0.2 please -
Features:
-Soft resets the device at any given interval
-Time may be adjusted in the registry...
Go to \\HKCU\Software\xd1936 and change the value, in seconds. The default is 1800 seconds, or 30 min
-Please soft-reset after installation
Just let me know if this proof-of-concept works... the whole screen-off thing hasn't been implemented
Let me know if anything is wrong with the software, or my math
It is beta software...
Enjoy!

So, I guess it's worth asking, but why do you need your device reset'ed so often? That's gonna do terrible things to battery life.

Error: Unknown funtion regreaddword
Line:
y=RegReadDWord("HKCU","Software/xd1936","waittime")
Seems Mort has permanently gotten rid of RegReadDWord in 4.1. I replaced with RegRead and it worked.
As for your question, no matter how I configure my device, I always end up with memory leaks and need to reset my device fairly regularly ... if not every 30 minutes, then every hour or two.

Cool, I think this'll work better... I can't test them currently, so bear with me
xd1936 ResetTimer v0.2b

you could try the freeware Oxios closeapps and Oxios hibernate to reclaim your memory instead of the soft reset, works pretty well for me. It's an executable not a schedule thing but should be easy enough to script something in mortscript or skschema. I just run it manually every so often.

So is it working? What's the story?

Related

Universals gone wild!!! Repeating alarms etc

My exec has gone nuts.
First, alarms stopped displaying the message boxes, and as I couldn't dismiss them, they went on for ages.
Now, I get my reminders through from weeks ago through, with no messages, all at once, in a mishmash of notification beeps, and voice command reading them out.
I really have no idea what could be wrong.
I haven't changed anything.
I'd love a fix which doesnt involve hard reset (and yes, I have soft reset it!)
Thanks,
Skelly
[edit by V: please try to use a useful topic title, and post in the right area ]
___________________
XDA Exec, O2, WM5
Check out MamMaid it has an option for clearing notifications.
Read my step by step guide in the following thread to fix your device - this guide does NOT involve a hard reset.
http://forum.xda-developers.com/viewtopic.php?t=60036
And do not use the built-in Clock/Alarm application any more, it is VERY buggy and almost certainly what has caused your problems (as it did on mine).
Thanks: it helped me also: at last solved a irritating problem. You are a great help!
What do people recommend as the best alarm clock program to use?
My alarm clocks stopped working so relying on the Universal atm to wake me up every morning but today one of my calendar reminders didn't go off and I nearly missed a 3 hour conf call (tragedy I know!!!).
G
I'm using SPB Time, a bit bloated at over 3MB just for what is basically a clock but it has everything you will need (clock, WORKING alarm, stopwatch, etc).
Seriously people stop using the built in clock/alarms app completely, it messes up your notifications queue over time making reminders not go off properly and all sorts of other unpleasant bugs which just get worse as your device gets older, which is why I suspect we are seeing more and more of these cases a year after the device was originally released.
It is unknown at this time whether or not these bugs are fixed in later WM5 ROM releases, although I suspect not...
skelly said:
My exec has gone nuts.
First, alarms stopped displaying the message boxes, and as I couldn't dismiss them, they went on for ages.
Now, I get my reminders through from weeks ago through, with no messages, all at once, in a mishmash of notification beeps, and voice command reading them out.
I really have no idea what could be wrong.
I haven't changed anything.
I'd love a fix which doesnt involve hard reset (and yes, I have soft reset it!)
Thanks,
Skelly
[edit by V: please try to use a useful topic title, and post in the right area ]
___________________
XDA Exec, O2, WM5
Click to expand...
Click to collapse
Ho YES I know this problem well!!! It is a total Pain in the But.
I have tried most tings and the only thing thatw orked for me was a hard reset a finaly a ROM upgrade seems to have stopped the problem coming back AGAIn & AGIN . Well for now anyway.
I think SL9 has the answer I have not tried the exact method given But Did try Memmaid and It did not help. I did not however deselect the alarms first and did not do a Soft reset straight after. These may be the secrets to success. I have not had the problem recently (please NO MORE) so unable to try SL9 method but seems to have worked for many
Here is SL9s method Good luck and thanks to SL9
================================
Yes, I had this problem also. You can perform a hard reset, that will solve it but then you loose all your data and it is a pain! So I spent all day trying to find out how to fix it without doing a hard reset, and here are the results:
1. Open the Clock & Alarms app, and click on the Alarms tab. Make sure everything is unticked and unselected.
2. Install and launch MemMaid (http://www.dinarsoft.com/ - Note: MemMaid is shareware that expires after something like 30 days, or you might use another app which allows you to edit the notifications queue), and then press the Jump To softkey and click on the the Notification Queue option.
3. Press the Find Duplicate button, and make sure you say yes to deleting all duplicates.
4. Now you have to scroll through the list slowly, you must find all the ones which have this text in them and check the tickbox: \Windows\clock.exe.
5. Now you have located the rogue alarm notifications and ticked them, press the Delete button and confirm in the next step. Make sure you have NOT ticked/selected any other notifications except the clock.exe ones before you do this step, otherwise it can easily make your phone stop working!
6. Soft reset your device. When it has finished booting, you should notice that it doesn't vibrate madly with alarms for 20 minutes like it used to do before, and you should have a flashing green LED on the right instead of orange
7. Stop using the built-in clock & alarms app if you don't want this to happen again - it is too buggy! Find a replacement alarm app, there are loads of free ones out there!
Last edited by sl9 on Wed Aug 23, 2006 17:50; edited 1 time in total
===================
Thanks again to SL9
Condex

Some quick questions

hi everyone
got my xda exec yesterday, I love it, its performance , its speed, everything, but
some apps keep restarting for example pocket msn and activesync,
it only takes a bit of memory but it is anoying when they flicker open by themselves
also is there a way to full turn the phone off instead of sleep mode, wouldn't mind a fresh turn on like soft reset every morning
all help appreciated
thanks
You can't close apps on Windows Mobile ("officially"), the OS is supposed to close them itself. You can close them with the Memory control panel, or a proper task closer like VJOkButt, SmallMenuPlus (Excellent app, get it now!), HTC Task Closer etc.
For a soft reset, try soft resetting. Poke your stylus into the little hole on the back near the USB port.
The device can be put into a more long term sleep mode, but it's not a standard feature.
V
exemike said:
some apps keep restarting for example pocket msn and activesync
thanks
Click to expand...
Click to collapse
You need to set active sync to MANUAL otherwise, every set of minutes it would automatically open itself up, because the default is set to AUTOMATICALLY sync every 2 minutes or so. Go to the UNIVERSAL WIKI page to look for the instructions on how to set it MANUALLY. You need to create a dummy server for that then the options will be available.
thanks for the swift answers guys, I've sorted my activesync
but now I'm lookin for something that can shutdown my phone like soft reset but so it doesn't restart
know anything bout some software or key remap or somin
thanks
Check out ButtonMax, I think Resco have a button mapper and various other companies too.
AEButtonPlus is always my top choice tho.
V

[new release] RunEveryday - Updated to v1.1

The missing Task Scheduler known from Windows XP!
RunEveryday 1.1 is done! It has:
1) a GUI, easily manage your scheduled tasks
2) Improved notification re-scheduler (old one proved to be kind of buggy)
3) Optionally force device to wakeup (as some programs need this to operate properly)
4) Under the hood, much improved code, easier bug fixing & updates in the future
no more need to use another program to setup the parameters etc. etc, just startup the app without any parameters, and you will be presented with a config dialog. in addition, you should remove any old entries within the notification database before using this new one (they are incompatible).
Everything should wotk MUCH better with this one. but still a few known issues:
1) When changing the system date, and you skip over a day, RunEveryday will get out of sync and stops working propperly. Work around: Start RunEveryday, and without changing anything, press the "Apply" button. this will correct all time/date stamps in the notification database.
2) For now, there can't be any spaces within the filename. Spaces within the directory name are oke though. THis is because I needed to seperate the Full path file name with any command line options, otherwise CreateProcess wouldn't work propperly. (Will be fixed in next version)
3) Keyboard doesn't popup when trying to enter text in the Command line. Workaround: select other program which has keyboard support first, then open RunEveryday, so you can openup the SIP yourself. This will be fixed in next version.
Compatibility: WM2003, WM5, WM6, QVGA, VGA and Square (240x240). in Other words: all recent devices
That's it! if there's any additional problems, I'd like to hear about them.
////////////////////////////////////////////////////////////////
// Text Below is outdated
Older version 1.0 usage:
A command driven app that will maintain itself within the notification database which will execute its params as a program.
for example, run:
\Program Files\RunEveryday.exe \Windows\prog.exe anyparams
this will basically execute \Windows\prog.exe anyparams
but it will register to start the same app with same params again in 24 hours, when it runs next time, it will delete the entry, and schedule again in another 24 hours, and so forth.
With an application like TaskMan you can easily see the notification entry this prog makes, and change it's time-schedule. (in other words, manage this app)
Also, creating a new entry with TaskMan, is really simple, make a CNT_TIME event, point it to RunEveryday.exe, and the application to run as it's params, and it's all set!
// Text Above is outdated
////////////////////////////////////////////////////////////////
My personal usage:
I have a task running every day at 23:00 -> turn radio off (with Vijay's app)
and a task in the morning 09:30 -> turn radio back on
But ofcorse you can use it for many other things! be creative!
Update to v1.1: Some people reported that they couldn't run the app because of some missing libraries. This probabbly goes for most of you WM2003 users: You need a static linked version, which I now have included below. Also, if you happen to get a message like "Cannot find ‘RunEveryday’ (or one of its components)", please try using the static linked version.
nnnnnnnniiiiiiiiiccccccccceeeee.. very niiiicccceee. Nicest thing that happened after the sad sad removal of ROMs... I'm soooo *touched..
UPDATE: Btw, an idea, for your next upgrade.. that is to add a day-of-the-week scheduling feature that is able to schedule events on days as well. Example, I may want to switch off my phone at 23:00 everyday. However, if I may went on partying late at night on Friday and Saturday. Hence, my job of "switch radio off at 23:00" can be programmed to be used on Sun-Thur only. And I can then add another job that "switch radio off at 02:00", to be performed on Sat and Sun only, just to make sure my phone won't switch off when I'm out partying on Friday and Sat night.
Thanks ;-)
And ohw, I meant TaskMgr, found here:
http://forum.xda-developers.com/showthread.php?t=280104
Edit: Works really great with mortscript's. Lots of possibilities.
hanmin said:
UPDATE: Btw, an idea, for your next upgrade.. that is to add a day-of-the-week scheduling feature that is able to schedule events on days as well. Example, I may want to switch off my phone at 23:00 everyday. However, if I may went on partying late at night on Friday and Saturday. Hence, my job of "switch radio off at 23:00" can be programmed to be used on Sun-Thur only. And I can then add another job that "switch radio off at 02:00", to be performed on Sat and Sun only, just to make sure my phone won't switch off when I'm out partying on Friday and Sat night.
Click to expand...
Click to collapse
I was actualy thinking about that, but that's making things more complicated. Right now, it's fairly simple. no config dialogs requiered etc etc, as you can have multiple apps at different times, which you might want to run at different days of the week, config wise it gets more complicated, much more coding. Maybe later, if I really need it, I'll make something like it, otherwise, this will have to do (sorry). I'm simply sharing some code that I wrote since I needed it myself ;-)
Edit: oke oke, maybe I'll make a "RunEveryWorkDay" variant (still no config required) Not much code writing, will post it here later on, as soon as I have some time on my hands to make a few adjustments.
Okey, I had a little time (kind of quick, haha)
Rather then having a different EXE handling workday events, I made on which is more dynamic.
Example 1, Run only on work days (monday through friday)
\Program Files\RunEveryday.exe OXXXXXO \Windows\prog.exe anyparams
So the string "OXXXXXO \Windows\prog.exe anyparams" becomes the complete param for RunEveryday.exe
As you can see, the first block of the params has become the days for which you want it to be active, X's x's 1's are for active, O's o's 0's for days to be disabled. Days are represented in following order: Sun, Mon, Tue, Wen, Thu, Fri, Sat.
You can still simply omit those days, and it'll work as previously (ALL days):
\Program Files\RunEveryday.exe \Windows\prog.exe anyparams
Everything is still untested (in this latest release) so it might not work propperly. So if you encounter a problem -> tell me and I'll fix it.
I'm working on a much improved version. It will have:
1) a GUI, easily manage your scheduled tasks
2) Improved notification re-scheduler (old one proved to be kind of buggy)
3) Optionally force device to wakeup (as some programs need this to operate properly)
4) Under the hood, much improved code, easier bug fixing & updates in the future
Expect it to be released in the next couple of days (will post it here)
Nice app. Im going to give it a try now
Is Taskman the only app that can set the time?? Can Memmaid be used?
Everyone who has downloaded and tried the initial release, please download the new one, as it contains critical bug fixes.
freeyayo50 said:
Is Taskman the only app that can set the time?? Can Memmaid be used?
Click to expand...
Click to collapse
See the first message in this thread, any other programs like Taskman or memmaid are no longer needed, RunEveryday is now a self-contained program with it's own user interface.
Thanks, this looks very useful, I also wanted an app to turn the radio on/off at scheduled times, Just need to find the VJ apps you use.
nigelw said:
Thanks, this looks very useful, I also wanted an app to turn the radio on/off at scheduled times, Just need to find the VJ apps you use.
Click to expand...
Click to collapse
here:
http://www.vijay555.com/?Releases:VJVolubilis
Thanks, I've got the files and installed them, but so far I've been unable to get it to work.
I suppose this is more of a problem with the VJ files, but I can't seem to get the radiooff to work. I have moved the binary to \Program Files so it's the same as your sample screenshot, but nothing happens, the radio remains on.
To debug, I created a .lnk file using Total Commander and added the /radiooff but that also does nothing.
I'm using a T-Mobile MDA Compact III in the UK, HTC Artemis (or is the Hero as it doesn't have Wifi?).
nigelw said:
Thanks, I've got the files and installed them, but so far I've been unable to get it to work.
I suppose this is more of a problem with the VJ files, but I can't seem to get the radiooff to work. I have moved the binary to \Program Files so it's the same as your sample screenshot, but nothing happens, the radio remains on.
To debug, I created a .lnk file using Total Commander and added the /radiooff but that also does nothing.
I'm using a T-Mobile MDA Compact III in the UK, HTC Artemis (or is the Hero as it doesn't have Wifi?).
Click to expand...
Click to collapse
To get it to work, be sure to enable "Force Wakeup". The radio won't go off unless you enable this option. In addition, Vijay has a spelling error on his website, he listed the option "radioff", but in fact it should be radiooff (double 'o' in the middle) otherwise his app doesn't recognize the command.
Optionally, you can enable "Suspend when woken up", this will put the device back to sleep when command has been executed, and works nicely with Vijay's app, your device will only be active for a few seconds. I didn't document this feature: but when you have this option enabled, and the command is still executing after 30 seconds, RunEveryday times out, and will put the device to sleep (but lets the command active in background).
Hmmm, just realized what you really posted, if a loose lnk file doesn't work either, it probably is (indeed) VJ's file that doesn't work. maybe you can ask him if he can add support for your device.................................
Thanks for the prompt response.... but I've just worked out what the problem is!
I followed the screenshot on page 1 using /radioon when it should be -radioon
My .lnk files now seem to work, so I will make the changes on your app and see if it works.
I'd like to start doing my own development, I'm particularly interested in retrieving information from the radio like Operator, signal strength, serving cell etc.
Anyone any comments on usability / stability / issues ?
I would really like some feedback ;-)
I've only been using it a couple of days, but it hasn't given me any problems. The only issue I have is one that you are already aware of, and that's support of text input, or maybe copy/paste?
Hope that helps, and thanks again.
Okey, great. In the near future I'll update it to be more complient with windows-ways-of-working. (keyboard, normal dialog, copy/pasting etc), but as it's all working without problems, it's not very high priority. However, if there's any indication of some bugs somewhere, i would get right on it, cause I really do want it to be reliable.
Hi, have you managed to make any improvements to the software? My install has gone wrong, I launch RunEveryDay but the 2 tasks I had configured no longer list in the dropdown (these were to turn the phone/radio off at midnight and back on at 9am).
I did change the timezone recently when I went on a business trip, so maybe that caused the problem when I returned?

MortScritp script trying to fix notification queue bug.

Hi,
I'm trying to write script fighting with problems with notification queue. Script is supposed to run MemMaid (which clears duplicate and messed up reminders in queue), sleep given period of time and repeat this procedure (several times a day). While script is in sleep() function device powers off. And here is my problem - sometimes script wakes up PDA, but not always. Another strange thing - I observed that if I run script, wait on device power off - I can then switch device off manually and script works OK.
Here is the source. I don't know much about PDA's suspend mode so maybe it should be written another way or it can't be done. Thank you in advance.
Script:
t=2
// minutes of sleeping only 2 - for testing only
t=60000*t
toggleDisplay(1)
message("Start")
repeat (300)
toggleDisplay(1)
runwait("\windows\MemMaidLauncher.exe","-Q")
sleep(t)
endrepeat
what version of mortscript are you using? I'm using v4.01b12 (I think it's up to beta 22 or something), anyway, In my documentation the values for toggle display are (off) and (on), using toggledisplay(on) has never failed for me. another thing you might try, instead of SLEEP, is to rescedule your script to run using RUNAT.
this is the script I use to run weather watcher everyday at 7am:
# Schedule WWupdate to run daily at 7am
# initialize variables
CurrentHour = 0
CurrentMinute = 0
CurrentSecond = 0
CurrentDay = 0
CurrentMonth = 0
CurrentYear = 0
target1 = (SystemPath("ScriptPath") & "\WWupdate.mscr")
target2 = (SystemPath("ScriptPath") & "\SchedWWupdate.mscr")
#Figure out what year, month, and day it is
GetTime ( CurrentHour, CurrentMinute, CurrentSecond, CurrentDay, CurrentMonth, CurrentYear )
If (CurrentHour < 7)
RunAt( CurrentYear, CurrentMonth, CurrentDay, 7, 0, target1)
Rerun = Timestamp()+86401
RunAt( Rerun, target2 )
EndIf
If (CurrentHour > 6)
RunAt( CurrentYear, CurrentMonth, CurrentDay+1, 3, 0, target2 )
EndIf
SleepMessage( 10, "WWupdate set to autorun at 7:00am", "Complete...", 1)
ToggleDisplay(OFF)
Good Luck!
Thank you for answer, but I think RunAt function puts task into notification queue so if queue is soiled with buggy reminders our task will never work. Correct me please if I'm wrong.
I don't know anything about buggy reminders, but the only way to see if it works is to try it. When someone tells me something doesn't work, I try it anyway, very often I find that the naysayers are wrong. Nothing risked, nothing gained! There are freeware tools to clean the notification queue. I kept having these notifications about 'replog' and 'calnot' and ran one of these tools that fixed the problem. I've never seen or heard of a situation where one notification interfered with another.
joemanb said:
I don't know anything about buggy reminders, but the only way to see if it works is to try it. When someone tells me something doesn't work, I try it anyway, very often I find that the naysayers are wrong. Nothing risked, nothing gained!
Click to expand...
Click to collapse
I've tried RunAt and I'm sure it puts task into NQ.
joemanb said:
There are freeware tools to clean the notification queue. I kept having these notifications about 'replog' and 'calnot' and ran one of these tools that fixed the problem. I've never seen or heard of a situation where one notification interfered with another.
Click to expand...
Click to collapse
So you are lucky... I had several cases when NQ had bad entries and any of reminders and scheduled tasks didn't work - so I tried to write script not using NQ for scheduling tasks. I tried many freeware and shareware tools and some of them did a good job, but problems is - how to run them when NQ scheduling doesn't work.
Thanks anyway.

Maintenance Reset

WARNING: This is my first attempt at programing.
I made these mortscripts to automatically soft reset my device every hour (or however often you want to). The reason I made this:
1. My available program memory leaks. No matter how I try to fix it, I can't stop it.
2. I've used SKTools-FreeUpRam, and hibernate, and whatever, but they don't recapture all my memory like a simple reset does.
3. Since my device spends most of its time off, in my pocket, it only makes sense to take care of that while I'm not using it.
The available programs which schedule resets, only do it once a day.
Please take a look at this program, and help me develop it.
Here's a link:
http://sto-helit.de/forum/viewtopic.php?f=18&t=5058&start=0&st=0&sk=t&sd=a
You can also try SKSchema. It allows you to schedule a soft reset effortlessly.
Is SkSchema included in sktools? Because I purchsed sktools. How much does SkSchema cost?

Categories

Resources