yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Development and Hacking General] dt_matthews:
The only explanation for the behaviour you are experiencing is that it would appear that your device is - inconsistently - putting your device in to a Power State that means the Operating System's Notification Queue are not even being run, I would only have expected this to have been the case if the device is actually powered OFF (not sleep) BUT its possible I suppose that your device has some other power state mine doesnt. I cant replicate this behaviour on the device emulator, or on my device (HTC Trinity) where it works as I would expect every time. As a test, you could try leaving your device charging (and therefore by default not going in to a power save mode) and see if it still ocurrs?

I'm also unclear as to why this doesnt happen everytime - that is what needs to be isolated (charger / battery power etc.)

cheers, dan
[Windows Mobile Development and Hacking General] lello73:
Power State...

...that seems to be the problem. I now have make the following test (s. att.) and with this setting, it is working correctly. I suppose, that the battery will not endure so long.

xml config: 14:00 active profile "vibration", 14:05 deactive profile to default

Power State enable:

14:01 incomming call -> profile was still not set

14:02 incomming call -> profile was now set

14:06 incomming call -> profile was still "vibration"

14:07 incomming call -> profile default was now set

xml config: 14:10 active profile "vibration", 14:15 deactive profile to default

Power State disable:

14:11 incomming call -> profile "vibration" was set

14:16 incomming call -> profile default was now set

It's a pity, otherwise your program would be really great! :(

Dan, do you have a way, to send a init signal to wake up the device and then change the profile?
[Windows Mobile Development and Hacking General] ritterkeks:
i think this all describes a known bug with wm and can easily be prevented...

although, according to dan, his program doesn't use the wm notification queue, the problem seems clearly, that the program isn't allowed to run when the device is on standby.

this also happens (rarely) with alarms and (more often if you have many emails on your server) with email checking.

so somone that has this problem, please try the "normal" fix for this.

as i have a kaiser, i use the kaiser tweak which has the options "AC Resume from Suspend" and "Battery Resume from Suspend" which should be both set to a longer time (30 sec, i use 45, u can use more if you want).

i don't know the corresponding registry key nor have the time to look it up, but if you have a tweak-program for your device or the one from shap (?) it should be in there.

to dan: is there no way you could add the ability to set the device to flight mode / switch phone-part off? it would then be perfect for me (and i will donate if it works)

hope i could help
[Windows Mobile Development and Hacking General] dt_matthews:
i'll have a look at the win32 api to see if there is anything i can do - unfortunately as i cant replicate it, it makes it tricky to against it...

what device do you have?
[Windows Mobile Development and Hacking General] dt_matthews:
howdy

i was reading this thread thru again earlier and other threads on similar issues with wm schedules not firing - i had misntpreted Phil's (kind) early post on this, i thought that issue [which i couldnt replicate] was only pertaining to specific queue types but it appears any (including my queu entries) can have the same issue if the device has lots to do when it rebuilds the whole queue. i will put a fix in for it over the weekend, if someone who has the problem at the mo' could test it once i post it up i would be most grateful.

cheers,

dan
[Windows Mobile Development and Hacking General] dt_matthews:
will have a look and try to do that for ya ;-)
[Windows Mobile Development and Hacking General] dt_matthews:
updated version;

# Fix for O.S bug (relating to device not having time to fully build the Notification queue during the specified wake time)

** I can't test this since my device does not exhibit this problem - if anyone who has had the problem could verify if this ameliorates this I would appreciate it.**

Cheers,

dan
[Windows Mobile Development and Hacking General] dt_matthews:
like buses, wait forever then two come along ;-)

new version (as I spotted a bug if not all days contain a session)

cheers,

dan
[Windows Mobile Development and Hacking General] ritterkeks:
i deleted my other program yesterday, because i had so many problems with it, and now wanted to try your latest cab today.

as i tried to run profiletimer the first time it said, my .net compact framework was to old.

so i searched for the latest version and installed 3.5. then i again got an error, which told me, i should install another cab to display this error.

after done so, i get:

ProfileTimer.exe
ArgumentOutOfRangeException

Parametername: index

i hope i can get this running tomorrow.

cheers^^
[Windows Mobile Development and Hacking General] dt_matthews:
my bad, forgot to test a scenario after added some day skipping code ;-)

this version should be ok now

cheers,

dan
[Windows Mobile Development and Hacking General] ritterkeks:
ok, some feedback now.

downloaded your corrected version and installed it.

profiletimer.exe launched fine now and i set up my own schedule.

then on monday, with profiletimer running, it should set my phone to mute at 07:50. instead i got another error message, this time from scheduler.exe which i closed so i could continue using my phone...

but: later that day i did a softreset and made a test entry for one hour and after that softreset it worked fine, including today.

so i hope it will work reliably from now on.

another question: could you add an option to deactivate the icon in the "tray" of the home screen? i think manila / touchflo3d users don't even see this.

profiletimer is listed in the running programs so i can access it through that.

now i'm looking forward to a new version with the ability to set the device to flight mode (or deactivate the phone).

would be great for me (and surely some other people out there).

ritterkeks
[Windows Mobile Development and Hacking General] dt_matthews:
cheers for the feedback.

re the flight mode control, if i get significant requests for it, I will add it but adding TAPI control is a large code-base and not something I would want to add if it wasnt widely requested....
[Windows Mobile Development and Hacking General] ritterkeks:
i didn't thought that it was such a big deal, as there is already a function to toggle wifi (ok, not in the schedule but in the "sleep function")

i don't know anything about this, but for me that didn't seem so different ;-)

but instead of exclaiming how important this specific feature would be for ME...

: it should be quite easy to add the ability to simply run another programm at scheduled times - so people would have much more possibilities to do custom tasks with your app.

I could then just use the existing command line tool by tytnguy to set flight mode on and off.

If one can simply add another line within the profiletimer config where there is given one command to be run at beginning of the session and one at the end (or in my case the same program just with the "toggle" argument to be run one time at the beginning and one time at the end of the session),

profile timer would just do what i wand.

of course, for me, this should work day-spanning, as i want the device to be in flight mode over night.

hopefully you can understand what i wrote ;-)

looking forward to your reply

ritterkeks
[Windows Mobile Development and Hacking General] dt_matthews:
the work is not in the configuration (scheduling) but the Wifi (or for that matter, any interaction with the device's comms), if the utility by tytnguy can toggle the wifi then calling it on a schedule should be ok, i will have a go when i get a bit of time

cheers,

dan
[Windows Mobile Development and Hacking General] ritterkeks:
that's what i meant, but not for wifi - this is already in your app? - but for flight mode ;-)

so, if you add the ability to call a custom program with the schedule that would be great.

i'll wait for that then... and until then just switch the phone off by hand every night.

mfg,

ritterkeks
[Windows Mobile Development and Hacking General] lello73:
It works...

Hello dan,

now the tool on my diamond does what I wanted. Thank you for your work. My gift will arrive soon ;)
[Windows Mobile Development and Hacking General] rknuette:
Without having tested it this app seems to be really useful. It would be a magnificient tool, if the change of the profile would be possible according to a bluetooth connection, e.g. if the phone connects to my hands free kit in my car, the speaker volume goes up, if I connect my BT headset, the speaker volume is lowered (for the sake of my ears).

Do you see a chance of implementing something like that?

Regards,

Rudi
[Windows Mobile Development and Hacking General] dt_matthews:
hi rudi

tbh, that's not really the purpose of the app in terms of its architecture, it exists to perform actions on a *timed* schedule rather than a user event (e.g. connecting hardware etc).
[Windows Mobile Development and Hacking General] dt_matthews:
cool, glad you find it useful :o
[Windows Mobile Development and Hacking General] ritterkeks:
@rknuette (in german as he speaks german i think):

hast du schon nach einem program gesucht, das das machen könnte?

hab grad keine namen mehr im kopf, aber es gibt ein haufen tools, die scheinbar beinahe alles können. ka.. spb phone * ? phoneAlarm? irgendeins von diesen komplett-suiten könnte das beherrschen, eines hatte ich mal ausprobiert und hätte zumindest cell-based profile switching erlaubt.

das programm hier is, wie er schon sagte, halt nur dafür da, dinge nach einem terminplan auszuführen, und wenn es diese einzelne sache gut macht, bin ich zufrieden (auch wenn ich es gerne sehen würde, wenn er die möglichkeit, eigene programme durch den zeitplan zu starten, hinzufügen würde..
[Windows Mobile Development and Hacking General] Andy_S:
Hi. This is great app as i need to automatically mute ringer in the morning after working night so the phone wont wake me. BUT... i need to adjust also SYSTEM volume - not only ringer. Would it be possible to adjust that setting too? eg some separate value in XML for this?
[Windows Mobile Development and Hacking General] dt_matthews:
new version;

# added more info about the sessions to the treeview

# fixed bug if not all days had a session
[Windows Mobile Development and Hacking General] dt_matthews:
new version now alters the system volume (0-5) as specified by the 'volume' attribute in the xml element

feedback welcome ;-)
[Windows Mobile Development and Hacking General] Andy_S:
Thanks. What about ringer volume? Would it be possible to alter it too - either together or preferably with its own attribute (eg ringer)?

will try this version.
[Windows Mobile Development and Hacking General] Phil82de:
Hi Dan,

wow, much updates, since I was here the last time - thanks for so much work!!!!

One question:

How does the new option for system-volume work? How can I set the two different (system and ringer) volumes separately? (At night I like to set the ringer off so nobody wakes me - but I like to have the system volume on 4 so I can hear podcasts to fall asleep or my alarm bell in the morning. When I am in a meeting at work later I like to set everything off)

Two Bugs:

- In the Last Version I used until today I found a little bug. After I kill the PT-App the planed volume-changing still continue!?!

- Just for your Infortmation, not important for me: In the new Version (0.1.407.1324) I can not use the adhoc Tasks cos I can not type a number in the minute-box. After I open the onscreen-keypad and type the box is still empty.

One request:

If it is possible to toggle wifi (in the adhoc Task) - could it be possible to be planed over the xml-file for an special time like the volume-changing? Could be useful for somebody, couldn't it?

Cheers!

Phil
[Windows Mobile Development and Hacking General] dt_matthews:
updated version.

Now controls both the device and ringer volume on timed schedules and reverts to specified defaults for both volumes also.

****

Important:

This version breaks compatibility for the configuration (config.xml) file. Therefore, you will need to modify the supplied config.xml (new format) rather than using your old one.

*****

changes;

# added systemVolume attribute in xml

# changed volume attribute to ringerVolume

# updated code-base for above new config structure

# refactoring

cheers,

dan
[Windows Mobile Development and Hacking General] dt_matthews:
oops - small bug in last version - will fix and upload tonight!

cheers
[Windows Mobile Development and Hacking General] ZaLiTHkA:
Lol... Was that the display not updating whether or not the phone is being charged or not? :) I loaded the app while plugged into my PC and the screen still shows charging when I unplug it. Minor issue though, I wasn't even going to complain about it anyway..

By the way, has anyone else noticed their device lights up at midnight since having this app installed? Whether or not i have a timed profile set to run through the night, it lights up at midnight every night without fail. Lol. I'm not sure if it's specifically PT or something else; i have so many things running on this poor little HTC. :rolleyes:
[Windows Mobile Development and Hacking General] dt_matthews:
the charge indicator refreshes based on the config setting 'timerUpdateInterval' in config.xml so typically will be up to a minute until it reports a change in the charge status.
[Windows Mobile Development and Hacking General] dt_matthews:
new version.

system and ringer volume now working, however on my device there is a problem setting the ringer volume, it either sets to max or zero despite settings valid intermediate values in code. love it. i will look in to a resolution.
[Windows Mobile Development and Hacking General] Andy_S:
New version tested. Ringer volume: not working. System volume: Working.

found one "bug" - if <session> records not aligned from first to the last, (eg first with begin at 13 is before second which begins at 7) program crashes.
[Windows Mobile Development and Hacking General] ZaLiTHkA:
Volume adjustments work fine on my Touch, for both system and ringer. :confused: Not sure about the bug, when you say 'not aligned' are you referring to the spacing inside the .xml file? I haven't managed to duplicate that on my phone....
[Windows Mobile Development and Hacking General] Andy_S:
nope, not spacing. just create two rules in one day. One in the morning and then in the afternoon. Swap them - place that later before that earlier, save it and run profiler.
[Windows Mobile Development and Hacking General] dt_matthews:
i did note in the original post that I havent put belt and braces validation on the app, the scenario you describe is after all illogical, and indeed, impossible for the app to resolve. I have added some basic validation for that scenario - uploading it in a minute. ;-)
[Windows Mobile Development and Hacking General] dt_matthews:
new version;

added some cursory validation to determine invalid sessions (overlapping)

cheers
[Windows Mobile Development and Hacking General] Andy_S:
i haven't said so. I just found a bug, so i am reporting it :) Just to pleed for exception catching than that ugly error log.

what about that ringer? Any chance to fix it?
[Windows Mobile Development and Hacking General] dt_matthews:
not sure what you mean??

with regards the ringer, as you know the problem is the level and for some reason the code which seems correct just doesnt have the effect documented in the API, and, furthermore appears to function on my emulator and some devices! i will do some digging to try and resolve ;-)
[Windows Mobile Development and Hacking General] Andy_S:
i havent said that this is logical or even sane cause (that xml swap). Just a little bug.

Thanks for the good news. I'll be glad, if you would be able to do this :)
[Windows Mobile Development and Hacking General] dt_matthews:
ringer volume level now functional

feedback welcome

cheers,

dan
[Windows Mobile Development and Hacking General] rahlquist:
Sorry but I haven't been able to find, is there a way to disable the notification sound that plays when the profile changes other than renaming/removing the file?
[Windows Mobile Development and Hacking General] dt_matthews:
hi, as per a previous post on this thread, its been coded to check if the file exists so just delete/move/rename it and the app will work without fanfare ;-)
[Windows Mobile Development and Hacking General] rahlquist:
Thank you. I have one other suggestion/request. Since this is a good time based app, how about adding the ability to control brightness as well. I know that during the day I could use a bright screen and at night well not so much.

Thanks for the wonderful app and I will be donating as soon as payday arrives!!!
[Windows Mobile Development and Hacking General] GLOC:
There doesn't appear to be a link to the new version, am I being fick?
[Windows Mobile Development and Hacking General] dt_matthews:
glad its useful for you ;-)

will look in to screen brightness adjustment
[Windows Mobile Development and Hacking General] Andy_S:
so... ringer volume still not working (testing it with modifying default values & killing PT).

one to-do: add a shortcut for this app to the start > programs menu. Thx.
[Windows Mobile Development and Hacking General] dt_matthews:
the ringer volume is working fine on my emulator and device -- try a soft-reset then running again.
[Windows Mobile Development and Hacking General] skywalker6705:
Hey, figured I'd chime in since this app has pretty much saved me a ton of agony during classes that I'd toss a donation your way.

I did encounter a stack overflow error a few versions ago, but just updated today to 1.409.2138 as it was the latest I could find available in the thread. Ringer has been working fine for me, but I was curious: I don't really know since I set them the same most of the time, but does this program set the ringer back to what it was when an event is over, or to the default set in the config?

Also: I highly recommend adding profile timer to your exclusive applications in the task manager. It keeps me from accidentially forgetting it's open and closing it.
[Windows Mobile Development and Hacking General] tabannis:
I don't think so unless i'm being a bit dense too. Post #1 doesnt have a download link.
[Windows Mobile Development and Hacking General] dt_matthews:
I'm doing a refactor and will repost asap

cheers
[Windows Mobile Development and Hacking General] tabannis:
Thanks for the speedy reply. I'm hoping this app will stop my new phone (HTC Touch HD) disturbing me at night with email notifications. Has the app been tested with a WVGA touch screen? If not i'll gladly help out with any testing.
[Windows Mobile Development and Hacking General] dt_matthews:
cool, once I post a new version pls give me any feedback

cheers,

dan
[Windows Mobile Development and Hacking General] rahlquist:
Hey Dan, any luck with looking into the backlight setting? I'll be sending you some beer money (if you drink beer if not...) by the end of the week(waiting for the cash to get moved to my papal).

Thanks!
[Windows Mobile Development and Hacking General] dt_matthews:
sorry, been a bit busy - what would the idea be behind controlling the backlight, surely that is already catered for in your Power settings? if you can give me some more detail on the usage and I'll let you know ;-)
[Windows Mobile Development and Hacking General] rahlquist:
No worries.

My thinking was this, at night I generally dont need the brightness as high as midday. Sometimes in the morning when I am out in full sun I may not remember to brighten the screen and as you know if you have the brightness low in full sunlight it can be nigh on impossbile to get it adjusted so you can see it.

So wheat I was thinking was that you may be able to add a setting similar to the volume controls that allows you to set the screen brightness according to time of day much like the volume so for example;

<dayProfile day="Monday">
<session activate="00:00" deactivate="06:00" vibrate="on" ring="off" volume="0" brightness="2"/>
<session activate="08:00" deactivate="17:00" vibrate="on" ring="off" volume="0" brightness="10"/>
<session activate="22:00" deactivate="23:59" vibrate="on" ring="off" volume="0" brightness="2"/>
</dayProfile>

That means from midnight to 6 am brightness would be to a low 2 setting then at 8 am it would go to full birghtnes then again at 22:00 it would drop to 2.
[Windows Mobile Development and Hacking General] JugglerLKR:
anyone to provide download link with latest fixes and updates?
[Windows Mobile Development and Hacking General] dt_matthews:
I'll be posting a new version with some added features soon - probably over the weekend

cheers

dan
[Windows Mobile Development and Hacking General] dt_matthews:
new version.

Attachment in first post.

Please note PT is now 'donation-ware' - upon a payment (of any amount) you will be sent a PT license by email and further instructions for activation.

See manual (PT_manual.htm) for instructions.

This new version includes:

# Screen brightness control

# extra error-handling and sanity checking

Thanks,

dan
[Windows Mobile Development and Hacking General] rahlquist:
Dan,

So am I to understand without the license you give the program no longer works? I installed over the old Profile timer, it removed the old one including the license data (I have it at home but I am at work currently). Also I had originally set the old ProfileTimer.exe as a protected app in task manager so it would run at startup and not get killed. I am guessing the app dies after I clear the donation window now because the license isn't there? So I guess I will reinput the license info when I get home.

Thanks for the update with the brighness! I cant wait to get it working :)
[Windows Mobile Development and Hacking General] dt_matthews:
As per the manual (PT_manual.htm), if you send a payment to me with the Device ID you wish to run PT on I will then send you a license by email. For those who have previously donated and wish to upgrade to this version, please drop me an email with the Device ID and I will sort you out.

cheers,

dan
[Windows Mobile Development and Hacking General] rahlquist:
And what do you mean by Device ID? Sorry if that should be inherently obvious having a rough week here.
[Windows Mobile Development and Hacking General] dt_matthews:
On your device, go to Start Menu > Settings > System tab > About applet

The middle tab holds your device id.
[Windows Mobile Development and Hacking General] learnmore:
Remove Tray Icon?

Does anyone know how to disable the tray icon for this app? I hate the waste of screen real estate for one icon.

Other than the annoying icon, this app appears to be just what I've been looking for. I'll test it out for a few days and then gladly donate.

Thanks!
[Windows Mobile Development and Hacking General] dt_matthews:
Hi, I have updated the app to allow for the enabling/disabling of the trayicon via the config file but the app is no longer hosted here as it isnt strictly freeware any more. PM me if required.

regards,

dan
[Windows Mobile Development and Hacking General] rahlquist:
dan, brughtness appears to not be working.

suggestions?
[Windows Mobile Development and Hacking General] mr.jaguar:
wow. forcing me to pay for something I can't even test. it's the thought that counts. thanks. I am interested in this, but the requirement of a donation to download it sucks.
[Windows Mobile Development and Hacking General] dt_matthews:
there is a freeware version availiable (an alpha version) on various sites i believe (leeched from here I presume) so y all means try it and if you like it and want the release version then contact me