yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] camro:
ok,

i set the option to 6 digits.

for me this option is not clear - how this should work:

XXYYZZ

XX is for what

YY is for what

ZZ is for what

i try the version 4.03.

but:

1.) i switch off the phone.

2.) i switch on the phone.

now the phone go to lock mode and switch the backlight on - BUT ONLY for ~6seconds.

i can set whatever i want - hole the time it switch now off the backlight off after ~6seconds.

i want that the backlight can set via paramter.

therefore i think, that the option: "Poweroffafterlock"

and the

XXYYZZ

XX is for: switch backlight on in seconds after lock ?

YY is for: after YY seconds switch off backlight ?

ZZ is for: ????

does you mean this with your settings ?

if yes - i had tried to set it to: 606060, but also it switch off the backlight

another try: switch off the phone and switch on the phone:

1.) lock mode + backlight on for ~6-7 seconds, then it switch off the backlight

2.) after ~55sec later the display is switch off.

EDIT: i've tried to change the settings, but the settings seems to be, that they are not set on locking.

but it seems to be, that an option for switch off the display is working - but not always. i played with it:

XXYYZZ -> and sometimes the backlight is going out + switching off the display very fast - so sometimes it seems to be, that the settings react a little bit - or better - it seems to be, that sometimes the switch off the screen works - but not paramter for backlight on after switching the phone on. -.. hmm

the same is on calling.

ups - another bug...

it doesn't lock my phone any more an dailing :(

----------

EDIT.

"Poweroffafterlock"

i make another testing, and it seems to be, that i doesn't overwrite the display settings.

and i think that the option YY is working but only if the settings is lower as it is set in battery settings.

XX - seems to be that it doesn't work, because i can insert any value and it react on the same way.

for what ZZ is ... ??? i don't know

please can you check this bug first, because after this fix - i can start my testings on calling.

br camel

----------

EDIT.

"Poweroffafterlock"

more testing on it:

now i'm sure:

XX -> belongs to the time which the phone switch off ! (and also it chould be longer as it is set in battery settings - but 99 is max)

YY -> ?? no idea what it should make :( i've tried serval values - no difference

ZZ -> ?? no idea what it should make :( i've tried serval values - no difference

EDIT:

if somebody - call me -> it works almost perfect (the backlight is only ~7sec on - and -as i told it above - i can't adjust it in csdevctrl)

if i call somebody - don't switch to lock mode :(
[Windows Mobile Apps and Games] zalaros:
camro have you ever read this post? http://xdaforums.com/showpost.php?p=2424492&postcount=148 I think you should ;) It's on the first page :)

In that post it says:

- PowerOffWhenLockedSecs=XXYYKK (Default is 0)

If set it will turn off the device the mentioned seconds after it has been locked.

Either set each pair it to a number between 01 and 99 or set it to 00 to be disabled.

XX applies after it woke up.

YY applies after it was idle while in call.

KK applies after it was idle.

For example,

100015 means,

turn off after 10 seconds the device has been locked after it wake up, do not turn off if it was locked for a call, turn

off 15 seconds after it was locked as it was idle.
[Windows Mobile Apps and Games] camro:
ok, sorry, maybe i missed that info - shame on me *DUCK ;-)

for me it works amost perfect - and there are only 2 bugs left

1.) backlight on after switching on the phone

anyway.... the backlight off after X-seconds - i miss or it doesn't work.

for now it is fixed to 6-7sec !!!

(if i see the settings under "battery, then it was set to 10sec. if i change this and then try lock mode , and after that once again back to battery settings, it was set once again to 10sec ?

it seems to be, there is a bug

2.) lock mode if i make a call

this works on 3.31 - i'm 95% sure

EDIT:

@CHRIS

i found a serious key in registry:

Control\Power\State\BacklightOff -> bkl1: it is set to 0x4

if i set this ex: to 5, then it doesn't switch off the backlight and it seems to be , that your settings "Turn On Backlight if Locked Sec" works then....

hmm - i will test with different paramters that more ...hmm :(

i try to set this parameter to 5-30 -> then your "Turn On Backlight if Locked Sec" is working :)

if i set it to 4 -> then it switched off the backlight after ~6-7sec - really amazing.

EDIT:

it seems to be, that the number 4 is a device

i found some information for: blk

// the name of the backlight device

TCHAR tszBacklightName[] = TEXT("BKL1:");

well, if i set to another device(<> 4), then it works :) if this is a fine solution - don't know, but it works :)

so, for me, only the new wish is:

@chris - can you change this to 3 digits per option ? and add the option for backlight dim ?

XXYYZZ to XXXYYYZZZ (because set to ex: 120sec are could be fine

bugs:

.) lock mode doesn't work if i start a call

this works on 3.31 - i'm 95% sure

.) "exclude this keys" -> i want to add 075 + 076

can i set also a list ? ex: "075;076;" ?

this keys are for loundness, but it seems to be that this is not working (also tried only to include 075)

best regards - cu camel
[Windows Mobile Apps and Games] eske.rahn:
Recommendation on unlock, Be careful if you use 1 or -2 (left to right, bottom to top

If you set the unlock to 1(=left to right) or -2(=bottom to top), you should be careful NOT to start your swipe on the 'Unlock' screen-key.

If you do, the screen-key sometimes(!) changes to 'Cancel', and the first generated-click will thus be interpreted as Cancel, and the second generated-click ignored. So the device is still locked.

I KNOW this sound like a silly posting :o

But I set the option to one, and found myself doing exactly what I described above numerous times, before I found out that it wasn't the program that was ill behaving, but my interaction with the PPC without looking, that didn't do what I intended. :rolleyes:
[Windows Mobile Apps and Games] nofuse:
Posted csdevolg as requested have changed lock if idle in call for secs to 0 still no difference always locks, are no other diamond users having this problem? If not please post your settings

EDIT: It still appears that the phone is only locking during every outgoing call, but it only has to be unlocked once then it remains unlocked , incoming calls are fine and always unlocked so I can use volume buttons without any problems. Aren't all calls treated the same?
[Windows Mobile Apps and Games] chrisstavrou:
:) i should have mentioned that before as unfortunately the unlocking sequence is implemented using simulations of keystrokes instead of true APIs (WinCE do not provide one, or at least i was not able to locate one).
[Windows Mobile Apps and Games] chrisstavrou:
Version 4.03

Hi all,

4.03 is out and includes:

- Changed the power off time to be 3 digits instead of 2 (PowerOffWhenLockedSecs=XXXYYYKKK)

- Changed the keys to be excluded to be defined as a list (KeysToExcludeWhenFullyLocked=XXX;YYY;...)

As always let me know any errors you might find.

I am finally back from a long trip so i hope i will find time to do some fixing (when needed).

Chris
[Windows Mobile Apps and Games] chrisstavrou:
Hi Camro,

seems i was a bit in a hurry :(

can you please try updating the key

CustRegKeyActiveCalls

to be

HLM\System\State\Phone\Active Call Count

I have also did a change to handle the 3G connection properly (not to mixed it with normal calls) in the attached version.

Can you please give it a try and let me know ?

Txn

Chris
[Windows Mobile Apps and Games] chrisstavrou:
This is caused by the same bug which hopefully has been fixed with the attachment on the previous post.

I will release a new one as soon as i get a confirmation.
[Windows Mobile Apps and Games] camro:
YES

this helps -> wlock on dialing works now :)

but, what i miss is:

1.) i make a call

2.) unlock the phone.

3.) then after 10sec, the display of phone switch off

but i have configured it, that it should :

after idle of 60 sec switch off the display, and after addional 60sec the displaY should switch off

why does it do this ?

:(

i will try to deactive with advcanced config the "sleep on call" + "fast sleep on dialing", maybe this new option of wm6.1 handle this

-> YES, this bug works now, i had to deactive the sleep options on "phone" in "adavnced config" from schaps

i will test the other stuff also ...

new name -> chis goes to perfectchris :)
[Windows Mobile Apps and Games] zalaros:
chrisstavrou

In the latest version the suspend issue has gone. Now Kaiser gets suspended normally. I have another bug to report. I have enabled the option to lock the phone during call and to enable bluetooth during a call and disable bluetooth after call is over. On incoming call everything works perfectly but on outgoing call the phone doesn't get locked and bluetooth is not activated. Also i can't unlock kaiser using the buttons. I can unlock it only by sliding the screen. Inform me if you need more info ;) ThanX :D
[Windows Mobile Apps and Games] chrisstavrou:
Try please the one i have attached a few posts up (not on the first page) as this problem you are referring to, i think its been fixed.
[Windows Mobile Apps and Games] zalaros:
The unlocking issue is solved. But again on incoming call everything works perfectly but on outgoing call the phone doesn't get locked and bluetooth is not activated.
[Windows Mobile Apps and Games] chrisstavrou:
Can you please try updating the key

CustRegKeyActiveCalls

to be

HLM\System\State\Phone\Active Call Count

The default value seems to be wrong for most of the ROMS which should be the above.
[Windows Mobile Apps and Games] zalaros:
OK now EVERYTHING is working perfectly for me :D

When i say everything i mean,

Lock device after wake up

Suspend device if woken (from missed call, sms, or anything else) in X seconds

Lock device on call (incoming or outgoing)

Bluetooth on during call (incoming or outgoing)

Bluetooth off after call is over (incoming or outgoing)

Unlock device using certain keys or slide movement on screen.

What can i say... i'm very happy now :D

PS: As soon as i get paid from my job i'll send you a donation. At the end of every month the wallet is sooooo empty :p ;)
[Windows Mobile Apps and Games] Micht:
Hi

I'm using v4.03 of this awesome app but I've a small problem.

When the phone is locked, it always change the Window backlight switch off delay to 10s.

What I want is to have 30s of backlight, then it locks and switch off light. And again after 30s, it'll switch off the screen.

I've missed something ? Or is it a bug ?

Thanks for help.

Micht
[Windows Mobile Apps and Games] Micht:
OK I've found the solution by myself.

I've to disable all the standard Windows settings and let csdevctrl control the switches off.

Maybe it could be a good idea to start a FAQ post with all the usual question, no ?

++
[Windows Mobile Apps and Games] chrisstavrou:
Version 4.04

Hi all,

version 4.04 is out including the fixes mentioned before.

Keep in mind that if it does not lock when calling, you will need to review

CustRegKeyActiveCalls to be

HLM\System\State\Phone\Active Call Count

Hi Micht,

i have fixed it with this version so if you want give it a try.

Txn

Chris
[Windows Mobile Apps and Games] Micht:
Hi,

Thanks, it works great with 4.04.

But I've found something else :

* If we set PowerOffWhenLockedSecs=015000030 (for example)

* The power is switched off even if the USB cable is connected avec ActiveSync is running ...

* So ActiveSync is shutted down :(

++

Thanks for your hard work
[Windows Mobile Apps and Games] chrisstavrou:
Ops,

that's something that we have missed.

I am adding a new parameter for this and release the new version by Sunday.

For now, you may try setting

LockWhileOnExternalPwr=0

not to lock (which means not to power off as well) if it is running on external power.
[Windows Mobile Apps and Games] Christian72D:
I´m using the latest version on my Kaiser with the M-Opal 1.4 WM6.1 ROM.

It selected the "Unlock when keyboard slided out" option, but it does not unlock.

What do i have to set?

Or should i post a log?
[Windows Mobile Apps and Games] chrisstavrou:
Hi,

can you please check if this key is present in your registry:

HLM\System\GDI\Rotation\SlideKey

If yes then can you please use the debug program, perform some testing by sliding the keyboard out while it is locked and then post the log file.
[Windows Mobile Apps and Games] ruebyi:
Hi!

I have one more "bug" on my Herald:

I want to use the slide function to unlock my device, so I launched the setup, and made my settings, then I made a shortcut of the csdevctrl.exe into my autostart folder.

Now my problem:

It works as long as I don't make a softreset! After a softreset autolock starts automatically again, but I can't unlock by sliding. to activate this again I have to launch the setup again, in which are all settings still correct. After closing the setup again it works... until the next softreset!

ruebyi
[Windows Mobile Apps and Games] nofuse:
Tried 4.04 now everytime I've an incoming call I can't answer it using the touchscreen, and the phone still locks during the call.
[Windows Mobile Apps and Games] Micht:
I've already set LockWhileOnExternalPwr=0

But the problem is :

When the phone is locked and you plug the power, it's not auto unlocked.

So the power is pulled off after the specified time as the phone is locked.

Maybe a UnlockWhileOnExternalPwr setting could be usefull ...

++

Micht
[Windows Mobile Apps and Games] thx1200:
Issues with Touch Pro

Just tried the latest version with my new Touch Pro. It works great except for two things...

1. After receiving or ignoring at least one call, anytime I power on my device, it will jump from whatever app I'm in to the phone app about two seconds after turning it on. I can unlock the phone at any point, but I'm always at the phone app. This behavior also happens with S2U2, so it's something you two have in common. This never happens when AutoLock or S2U2 is disabled. If I turn off AutoLock and then turn it back on, this problem disappears without having to do anything drastic like a soft reset.

2. Swiping/sliding to unlock does not work while the HTC caller ID screen is on the top of the Z-order while receiving a call. The unlock soft-key is also hidden and since Touch Pros (and Diamonds) do not have a hardware softkey, there is no way to unlock AutoLock without using the first-key, second-key sequence.
[Windows Mobile Apps and Games] chrisstavrou:
Hi all,

sorry for the long delay but i could not login for some reason in the webside, it would time out.

Anyway,

i have included in the 4.04 zip, the two sub programs (csvibratedev.exe,csbluethdev.exe) updated to allow only single execution avoid possible slow downs of the PPC.

I strongly recommend you use them.

Txn

Chris
[Windows Mobile Apps and Games] chrisstavrou:
Hi,

for the second point (i think 'nofuse' refers to the same)

can you please perform the next to see how the device behaves when locked:

- Lock your device using the Device Lock from the today screen pluggin (csdevlock should not be running).

- Call your device from a different phone and try answering the call.

- Assuming you managed to answer the call, please check if there is the option 'Unlock' at the bottom of the screen and if it can be activated by the softkey below that (if any) or simply by pressing the 'Unlock' on the screen.

- Also, when the first step takes place, (lock the device), are you able to unlock it with a softkey or press at the bottom left handside the 'Unlock' prompt?

How csdevctrl works during incoming call is as follows:

- (Assuming you have selected Full Lock During Call) the incoming call screen shows but the keys are blocked due to the 'Full Lock' option.

- Sliding to the direction which 'Unlocks' the phone, the phone is not actually unlocked, but the keys are released so that you can answer the phone.

- Once you answer the phone, the dialer should show up and the phone is still locked (the 'Unlock' prompt should still be shown at the bottom left).

- Sliding once again, if the 'Unlock' shows as expected, it should also 'unlock the phone'.

As there is no direct api call to unlock, i am afraid this is as close as i could get during incoming calls.

If anyone confirms the above, it would be great to understand how Touch works.

Cheers

Chris
[Windows Mobile Apps and Games] chrisstavrou:
I am looking at this problem as it sounds strange,seems for some reason the registry key for sliding is missing).

Txn for the comments.

Chris
[Windows Mobile Apps and Games] Micht:
Hi guyz

I think I've found an issue with version 4.04.

I'm using g-alarm as my alarm app and when the alarm pops, I've a .net crash.

I've first thougth that it was g-alarm that was crashing but no, it's Auto Lock because when auto-lock is not launched, I haven't that bug.

Is-it possible to have v4.03 to do some testing ?

Thanks for your help.

++

Micht
[Windows Mobile Apps and Games] Micht:
Hello,

Nobody has v4.03 ?

Please if anybody has this version, post it here.

++
[Windows Mobile Apps and Games] nofuse:
As requested
[Windows Mobile Apps and Games] Micht:
Thanks :D

I can now do some testing ^^
[Windows Mobile Apps and Games] Micht:
OK it's confirmed.

Auto Lock v4.04 crash when an alarm of g-alarm pops.

I've no problem with v4.03.
[Windows Mobile Apps and Games] gerald_s:
Cslockdev AND csdevctrl?

I am running csdevctrl and its set to lock after 15 seconds. But sometimes I want to lock my device immediately without waiting for the automatic lock. So I linked cslockdev to a button. When I'm starting cslockdev csdevctrl is also running. Will this cause problems or draining the battery or something else?
[Windows Mobile Apps and Games] Micht:
I've also assigned a SoftKey to cslockdev and I've NO issue with that.

So don't worry :D
[Windows Mobile Apps and Games] gerald_s:
Thanks for you answer.

The reason for asking was that I noticed an unwanted behavior but maybe its a bug with this feature.

I want first to lock the device and then to turn off the backlight. So I changed the data in the entry "power off after lock" to 030030030. With this settings it should turn off the backlight 30 seconds after locking, according to this:

XXX applies after it woke up.

YYY applies after it was idle while in call.

KKK applies after it was idle.

But the only effect I noticed is that the device is locking then the backlight is dimmed. Then - after some seconds - the backlight is turning on again. Then off and so on. So this will drain the battery for sure. It doesn't make a difference if I'm setting it to turning off if it was idle (000000030). But if I set it to 0 then the power is turning off after 30 seconds.

So maybe its a problem with the builtin power off feature or its a problem because I'm using very often cslockdev.
[Windows Mobile Apps and Games] chrisstavrou:
Hi Micht,

is it possible to post the .net error message you get on the screen ?

FYI,

CSDEVCTRL is a plain c program, no .Net stuff, so most likely something is crushing in Alarm and hopefully i can locate the conflict.
[Windows Mobile Apps and Games] chrisstavrou:
Hi,

the "power off after lock" is supposed to suspend the device, not only turn off the backlight.

From what you are describing to me, it seems it tries to suspend it but it fails to do so and as a result the light is turned on again.

If you don't mind, is it possible to use the debug version to capture some info as below:

- Run the csdevdebug.exe ( a window will appear, let it run, do not close it until the simulation is over)

- Perform the case you described.

- Stop the program by closing the window.

- Post the \csdevlog.txt file for me to review it.

Txn

Chris
[Windows Mobile Apps and Games] gerald_s:
Very strange, now it does not happen again.

In the background I'm running:

.) s2u - but all features beside "use slide to answer a phone call" are disabled. So it should not affect the lock feature in any way.

.) Pocket Secure to protect the device with a password after waking up

The only things I did since yesterday:

.) I installed a new beta of PS (currently I'm in the beta testing program)

.) I installed .net v3.5

But as you coded it in pure c the new .net is not related to anything.

Maybe it is the new PS beta or it only happens after some phone calls?
[Windows Mobile Apps and Games] zalaros:
chrisstavrou i found out that in the latest version of csdevctrl the unlocking using hard buttons does not work after i unlock kaiser at least one time. To make it more clear to you, if i unlock kaiser using the hard buttons then i can't unlock it again with the hard buttons and i can unlock it only with the slide move on the screen. So unlocking with the hard buttons happens only once.
[Windows Mobile Apps and Games] shaggylive:
would it be possible to have a suspend setting? ie; "suspend" OR "blank screen" (completely turn off lcd) or just an option "do not suspend power"
[Windows Mobile Apps and Games] blove:
first all, thank chrisstavrou for this great soft, i expected it for along time!

I installed ver 4.04 on T-Mobile Wing and have 3 problems:

1. i set slide to unlock 1. when created shortcut to csdevctrl.exe in startup folder, after startup device slide to unlock no effect. i must run csdevctrl.exe again by manual then OK.

2. when just lock, the screen is not active (ex: clock on screen not run). i click on unlock and cancel then screen activated (clock run).

3. after locked and back light off, i turn on back light then the screen is black, only show taskbar and unlock button. i click on unlock button and cancel then the screen is show again.

hope to be fixed soon, thanks!
[Windows Mobile Apps and Games] camro:
chris,

do you also handle the value here ?

because

i don't know why, but the phone sets the time often to 10sec back ....

HKCU\ControlPanel\Backlight\BatteryTimeoutSaved -> as i wrote above -> this was my point where i find other setting

(maybe your tool can reload the settings on first load ? (ex_ after reboot first start)
[Windows Mobile Apps and Games] lamberto1:
Slide action to run a file

Is it possible to have a SLIDE ACTION to run a MY executable/registed file as happens in - AfterUnLockRunFilePath=XXX or -- AfterLockRunFilePath=XXX etc. ?

Thanks
[Windows Mobile Apps and Games] Shouma:
Thanks bro..will test :)
[Windows Mobile Apps and Games] zalaros:
Has anyone else noticed that too?
[Windows Mobile Apps and Games] ZuinigeRijder:
How is partial locking done

I have a question about the locking code for doing the partial (In-Call) locking.

I myself use code in TouchLockPro for disabling the touchpanel power, so no TouchPanel touches are detected anymore. But people of CDMA Diamond devices experience this is not working with their phone brand. But they say that it works with your program (which is great).

So I am curious how you do the partial (In-Call) locking.

Thanks,

Rick.
[Windows Mobile Apps and Games] chrisstavrou:
Hi all,

sorry for the delay in responding but i had total system crash, disk (boths disks actually even if they were Raid 1 !!!), memory bad ..

anyway i am reinstalling/restoring so i hope next week i will have it running again to fix the errors.

Well, the lock is done using the windows lock, the same as clicking in the Lock pluggin of Today screen.

This lock stops the input from the screen but still allows the hardkeys to be used (thats why i call it partial lock).

For a full lock, i capture the hardkeys and stop them from being probagated.

I could not find a straight forward API to do either lock or unlock so its all emulated with keystrokes.

Let me know if you need any more details.

Chris