yashsingh1/xdaforums huggingface dataset:
[Sable] sergiorus:
Yes, i understand you idea. Tryed with CorePlayer.

But some thoughts aloud. For example I connected thru ActiveSync to PC. I want to toggle Screen. I open your backlight controller appl, press menu and then press toggle. I think it is too many steps. Maybe it should be a separate application?? Just press some hardkey and ToggleScreen
[Sable] mato-peto:
witch registry values i have to change to toogle screen? Thx for answer.

(PS Sorry for my bad english)
[Sable] ke_steve_le:
yea.. the steps really too complicated.. I will add a command line switch to it.

And so sorry about there is no update for a long time, because I'm quite busy these days :)

I don't really understand your questions... (In fact my English is very bad too :o)

Are you talking about how to do this toggle screen feature by changing Registry value? hmm... this is not done by changing Registry, is by calling iPAQ DLL function.
[Sable] EREZYAD:
great app tnx

i also use it on the ipaq 900 :)

can you set it to have 8 levels of backlight within the app?

{to get it on your device you can set it from reg by editing HKCU/control panel/backlight/max brightness = 8 (orig = 4)}

can you add settings screen ?

like a bar to set time off on ac/battery power and 2 check box to enable/disable backlight off

I think it will be best if one can use your app as alternate to WM orig settings screen 4 all functionalities

:confused::rolleyes::D
[Sable] sergiorus:
Any updates?
[Sable] Zoltair Wright:
A great program, thanks a million!
[Sable] ke_steve_le:
wow~ great news that it works on ipaq 900~

Sure, I will change the max brightness in the next release~

It's a good idea to add the other backlight settings, let me think about the UI in order to be controlled by finger :)

Sorry sergiorus, last time I'm trying to add PNG support for changing skin, but I was failed to handle with the PNG alpha channel (No alpha is OK), without Alpha channel, the outcome is not so good... and I'm so busy (lazy) these days :p , haha, I'll try my best to add skin support, in March. I'll have a long vacation next week (15-Mar - 22-Mar), so, wait for me ;)

Thank you for your support ~
[Sable] Xander:
Toggle screen command-line parameter

Hello,

this program I was searching from a day I have HP614, this is first one which can really blank the screen and turn off backlight. Thank you. I need to measure the the battery benefit.

Two things need improovement from my point of view:

-if screeen is off, it needs to be inactive; otherwise it's hard to put PDA into a pocket etc.

-command-line parameter for toggle screen (screen off), to eb able to map it to HW button

Thank you very much for your investigation about this HUGE bug of HP.
[Sable] ke_steve_le:
Some post in this thread disappeared? I remember I have replied to Xander before...

I have just finished the Device Lock feature! The ToggleScreen function is running perfectly on my 612c now! (v0.9.1.3)

By the way, I have flashed the WM6.5 rom by keyx (thanks so much), I havn't test my app on WM6.1, please report any problem to me :)

====== Release notes ======

Version 0.9.1.3 (released 2009-04-02)

Changes:

- Toggle Screen (Beta) will lock screen and keyboard now, press "ENTER" key to unlock the device

- Added more command line switch

/togglescreen:

Turn off LCD screen and backlight, also lock the device, press "ENTER" to unlock

Known Issues:

- Backlight timeout will be disabled when Toggle Screen feature start, this will not restore automatically, user should enable this by themselves.
[Sable] ke_steve_le:
some technical problems about this application...

this Backlight Controller is written in C++/MFC, to implement device lock feature, I made this app fullscreen and block all all mouse event.

I use SHFullScreen() to hide Start icon, task bar and sip button:

i.e. SHFullScreen(GetSafeHwnd(), SHFS_HIDETASKBAR | SHFS_HIDESIPBUTTON | SHFS_HIDESTARTICON);

However, SIP button cannot be hide, it's always there, I have also tried using FindWindow() to find the handle of MS_SIPBUTTON and hide it, and ofcoz, failed at the end..

I have no experience on making a FullScreen application, anyone here know how to hide the SIP button? Thanks in advance!!
[Sable] ke_steve_le:
Updated:

Version 0.9.1.4

Fixed:

-	Backlight timeout value will be restored when device unlock.

Changes

-	When there is incoming call, automatically turn on LCD backlight
[Sable] keyx:
Great, I will include it in my 6.5 rom

BTW, i am making CHT(Traditional Chinese) build so you may want to check back my thread later if you are interested
[Sable] ke_steve_le:
Wow Great! CHT~! I can't wait for it! :)
[Sable] keyx:
Done but english xt9 does not work:(, you can get it in my thread and try
[Sable] benjaminries:
This utility is great on the iPAQ 910c - thanks. Two suggestions:

1. Wouldn't "bright on the right, dark on the left" make more sense in landscape mode? Maybe it is just my Western bias, but I'm used to things progressing from left to right.

2. Any way you could make the D-pad work with this? I know the 61x doesn't have a d-pad, but the numpad can turn into a d-pad even for you guys with a hack right? Anyway it would be super awesome on the 91x to be able to use the hardware d-pad and/or the scroll wheel to change the brightness in this app.
[Sable] ke_steve_le:
Thanks! I think I can add 91x to this thread's title :P

Yea it's true, it's from right to left just because this is easier to implement if the direction of slider remains unchange in both Portrait and Landscape mode.. HAHA

I will change it to "left to right" in next version :D

Sure, I will do this, using the key Up and Down

===

Long time ago I said that I will add Skin change feature, but I still cannot find a way to handle PNG alpha channel on WM6.. I will continue this part If I know how to solve this problem.
[Sable] Solaris_irc:
ke_steve_le your app is very handy, but i would like it to have some features in future realeses:

1.- To be able to use the togglescreen and that the app does not show up, like when other devices use the toggle screen feature, or whit a separate exe just for that feature.

Also in my device, the turn backlight off after XX seconds in configuration\system\backlight turns off when I change the brightness in your app. So I only use it for the togglescreen feature, the separated feature in an exe would be great.

Idea for a feature or separate app: is there a way to intercept the backlight off request that some apps use to avoid sleep mode? cause as you already know when those apps send the request the lcd only dims, that way afther the request was made the app will send the reaquest with the HP metod, that way the lcd light will be turned off for real. Im no depeloper nut I think is posible just like nueled can.

Thanks for your app!

sorry for my bad english.
[Sable] ke_steve_le:
Updated:

Version 0.9.1.5 (released 2009-04-14)

Changes

- Automatically Exit after unlock from ToggleScreen Mode, making it more convenient to use.

- Flipped Landscape Mode UI, increase brightness from Left to Right

- Support D-pad control: Up - Increase brightness / Down - Decrease brightness
[Sable] ke_steve_le:
1. v0.9.1.5 should be good for you, it will exit automatically after unlock from ToggleScreen Mode :)

2. If the Timeout value is disabled, it's a bug before v0.9.1.4, but this is caused by ToggleScreen, not brightness settings. Could you test it again and provide more information?

hmm... I don't know whether this is possible or not, I need to find more information about intercepting the Screen Off request
[Sable] ke_steve_le:
Sorry there is a bug in v0.9.1.5, Up/Down key will turn on the backlight in ToggleScreen Mode, please use v0.9.1.6 instead.

Version 0.9.1.6 (released 2009-04-14)

Fixed

-	D-pad Up/Down key turn on the backlight in ToggleScreen Mode
[Sable] Solaris_irc:
really cool the exit on unlock, but the problem un backlight settings persist, after some lock and unlock the problem shows up, but it seems random not always at the first time I use the screentoggle.

but so far the app is really cool! thanks!
[Sable] Solaris_irc:
After a lot of test I found the problem!! when I use the togglebacklight function and press the power button it happens, if I use the enter to unlock it does not happen!

1.-Try it your self to see if it happens the same, use togglebacklight and unlock with enter key, check the backlight settings.

2.-use again the togglebacklight and this time use the power button to turn on the screen before unlocking with enter, check the backlight settings.
[Sable] ke_steve_le:
Thanks for reporting the bug :D I'll fix it as fast as possible~
[Sable] ke_steve_le:
Version 0.9.1.7 (released 2009-04-16)

Fixed

- Backlight Timeout value cannot restore if Device Power Off and On during ToggleScreen Mode.
[Sable] Solaris_irc:
It works!!!! Man your great and quick!! no more Backlight Timeout value to off, thanks for the new version. I'll test it some more to see if I can find something, thanks!
[Sable] ke_steve_le:
:) Thanks for your support!
[Sable] EREZYAD:
good work :)

waiting 4 the full backlight Interface support ;):D
[Sable] keyx:
ideally it would be great if this program can intercept backlight/screen off globally and launch itself to do the backlight off in order to fix the backlight bug. I wonder if windows mobile support hooks or you will need to constantly query the power state to do that?
[Sable] benjaminries:
one more suggestion for 91x / d-pad (sorry!)

Well this app works amazingly for my purposes - I have it mapped to a dedicated hardware button. Thanks for fixing the landscape orientation and adding the d-pad support.

If I could make just one more request/suggestion - in landscape mode, if you could also make dpad-right increase brightness and dpad-left decrease brightness, that would intuitively match the display. Of course I would keep UP and DOWN key mappings in this mode as well, so that it continues to work with the scroll wheel.

Awesome work.
[Sable] ke_steve_le:
Yes, it is possible to intercept the ScreenOff event globally, but there is still some technical problems, so, wait for my good news!
[Sable] ke_steve_le:
Yea! I have finished the new feature - Toggle Screen Monitor! It can intercept the Screen Off event and start ToggleScreen automatically, I have tested with WMP and CorePlayer, it works well on my 612c :D

OK, now I'm packing a Cab file, I'll upload it later today.
[Sable] ke_steve_le:
Version 0.9.5.0 uploaded, install the cab file and enjoy :)

Use Backlight Controller with WMP or other music player to make the Toggle Screen function works!! It can now catch the Screen Off event and start Toggle Screen automatically ~

By the way, if anyone want to stop Backlight Controller from intercepting ScreenOff, just delete this shortcut and reboot:

It's v0.9.5.0 now, I hope it can be Version 1 at the near future~

===

Version 0.9.5.0

Changes:

-	Cab file is now available for easy installation

-	First release of ToggleScreenMonitor

-	Backlight Controller can now intercept ScreenOff event, and start ToggleScreen mode automatically (Tested with WMP and CorePlayer only, please provide feedback)

-	Added 2 more D-pad control: Right - Increase brightness / Left - Decrease brightness
[Sable] keyx:
it only catch music player though, it doesn't catch some other program or task manager function of backlight off (e.g cz612 mode, window key+ #)

Still it's great, thanks a lot for your work
[Sable] ke_steve_le:
Backlight Controller can catch cz612 Win+#, but it seems that cz612 is blocking my app from running...

Here is how I test:

1) Press Win+#

2) Screen blank, backlight is still on, but Backlight Controller seems failed to intercept

3) Press Power button to exit blank screen

4) Backlight Controller is running but didn't lock the device.. :(

This prove that Win+# can trigger Backlight Controller to run, but failed to ToggleScreen..

I don't have any solution at this moment..
[Sable] benjaminries:
Nice update.
[Sable] keyx:
i think cz612 use keyboardhook, not sure if it matter, i recalled before it caused s2u2 locking error because of some conflict with keyboardhook that i have to set to don't use keyboardhook in s2u2.

BTW i don't know how you achieve the backlight off function, but i wonder if there is a way to redirect sound to call speaker (useful for voip apps like skype), i remember seeing the ipaq sdk doc(IPAQUtil.dll) has an api to control sound stuff
[Sable] Solaris_irc:
Does not work for me, it says: Can't open the file 'wM6_612c_backlight'. Or it is not signed with a trusted certificade, or can't find some of his components...etc

tested with pocket player and pocket music, with same result tries to run the app but the error mesage apears
[Sable] Solaris_irc:
even with the windows + # on cz612 the same message apears, I have the latest official ROM from HP
[Sable] ke_steve_le:
May be it's the same case like s2u2.. I will find out more about this later

yes I think this API : iPAQAudioSetRadioPath() of ipaqutil.dll can control the sound output but I 'm not sure about this.

oh really? May be it's becoz I'm using relative path when running WM6_612C_Backlight, I will change it to Full path in the next release :)
[Sable] ke_steve_le:
Which rom you are using? may be it's really a certificate problem...
[Sable] Solaris_irc:
I'm using HP's official 1.01.04 ROM in spanish
[Sable] sergiorus:
Hi bro

Nice updates, already integrated to my roms. But have one suggestion.

Is it possible to make power and battery icons not on black background, but on transparent. I was trying to customize your application with RegHack. Background i changed, battery and power icons on portrait mode changed, but in landscape mode it is not working. See screenshots.
[Sable] ke_steve_le:
Hmm... It seems that there is problem when running on Non WWE machine :( Some Chinese machine reports the same problem, I'll try to fix it soon.

It's possible but I have some difficulties when displaying PNG with alpha channel :( I can't promise you on this but I'll try my best.

http://xdaforums.com/showpost.php?p=3612774&postcount=36
[Sable] Solaris_irc:
Thanks ke_steve_le I really love the app and a working intecept feature for us sounds awesome!!
[Sable] ke_steve_le:
Version 0.9.5.1 (released 2009-04-22)

Fix:

-	Error prompt of can't open the file 'WM6_612c_backlight.exe'

Remarks:

Please report if this release can fix the Can't open issue or not :) Thank you!
[Sable] Solaris_irc:
it works!! at least for pocketplayer and for coreplayer, and for pocketmusic and WIN+# does not work, in pocketmusic it tries to work but the player is always on top of all and the back light remains on, I have to press the power button two times to recover the screen picture and the player is on top while backlight app is on the background open in the menu for brightness change.
[Sable] keyx:
2 things i noticed:

- locking through intercept cause s2u2 lock, I have to unlock it then it will turn off screen

- can you provide the option to allow keys control while locking through intercept? it will be useful to control playback function .etc
[Sable] Solaris_irc:
that would be great, or even better why not to make the ToggleScreenMonitor app to be independent from the backlight app, that way the ToggleScreenMonitor app will only hunt for the request and send the off screen request to IPAQUtil.dll without the call for backlight app, giving our ipaqs the so desired function for backlight on this programs, and at the same time this progrmas will work as intended by their developers because the ToggleScreenMonitor app will only correct the backlight off function. Think in it as an app suite like fingersuite that has fungermenu and fingermsgbox. and the best part would be that it will work silently correcting this backlight issue.
[Sable] ke_steve_le:
Great!

I'll try to find out a solution for PocketMusic and Win+# later :)

do you mean when my app Intercept Screen Off, S2U2 will lock the device? That's strange... what event trigger S2U2 to lock the device? Sorry I didn't play with S2U2 so don't know how it works. I'll have a try later when I have time.

Haha, sorry I never think about controlling playback :P I will do this in the future release

hmm.. that's not possible, I need ToggleScreenMonitor always run in the background, and trigger Screen Off of backlight app. The toggle screen feature is not only done by IPAQUtil.dll, IPAQUtil only turn off backlight and blank the screen, I also need to block Touch screen input and keyboard input, this blocking part is done by Backlight app.
[Sable] Solaris_irc:
but normally the player apps lock the keys and screen (normally) so at the end it would be a backlight off correction, or if it is impossible, the posibility to disable the lockkeys would be great.
[Sable] ke_steve_le:
it's not, the player won't lock anything :( The screen off event should normally disable touch screen input, but iPAQ is so strange that not locking the screen.

That's the reason why I need my Backlight app, when screen off, Backlight app will become fullscreen and capture all the screen input, so that you will not accidentally touch the Close/OK or Start Menu button.
[Sable] keyx:
I just recalled wmp support unattended mode though, i think when you are playing music in wmp actually you can press power button and the screen is fully off. all buttons are disabled except power which made it look like the device in standby but the music still play. I do wonder what exactly is unattended mode and how it compare to screen off? how about just set to unattended mode instead of turning screen off and have to lock the screen (which can cause conflict with locking apps/activesync in my experience)

here is what i saw over microsoft

First to enter Unattended Mode call
PowerPolicyNotify(PPN_UNATTENDEDMODE, TRUE);
(I don't think there's a managed wrapper, but you should be able to pInvoke it.)
To leave Unattend, call
PowerPolicyNotify(PPN_UNATTENDEDMODE, FALSE);
[Sable] ke_steve_le:
wow, this is my first time to hear about Unattended mode... Thanks for the info! I will study more about this and have a try :D
[Sable] Solaris_irc:
does not work fine with resco audio recorder and vito audio notes, in resco recorder tries to turn off the screen but it lights again and after that when I press the On button the screen turns on and the backlight lock screen is not there, but if I press the enter button after presing the On button the backlighttoggle starts and the screen locks and the light turns off, almost the same for vito audio notes, exept that this one does not try to turn off the light, just the screen, but for the rest is the same as resco audio recorder. And for pocketmusic the app tries to turn off the light but only the screen turns off and the light is on, after that if I press enter nothing hapens, and if I press the power button the player turns off and go to sleep mode, after that I have to wake the device and if I press the enter key the backlighttoggle runs like for vito and resco recorder.
[Sable] sergiorus:
Hi bro, how can i create shortcut directly to switch off display. I tried "\Windows\WM6_612C_Backlight.exe /togglescreen" but with no luck. :(
[Sable] ke_steve_le:
wow... seems there's so many problem with this new feature :eek:

I'll try my best to find out a solution..

That /togglescreen switch should place outside the double quote

60#"\Windows\WM6_612C_Backlight.exe" /togglescreen

Just place the above text in a *.txt document, and then rename the file extension to *.lnk, then it will work!

or

Unzip my attachment, there is a ToggleScreen.lnk file. It's a shortcut file with /togglescreen that points to \Windows\WM6_612C_Backlight.exe
[Sable] Solaris_irc:
thanks ke_steve_le for the reply, yep a lot of problems but it's going the right way, maybe that unatended state keyx mention could help, but im no programer so i'll leave that to the pro, thanks for the great app!

here I found a proyect about the power management in winmo, it's really interesting and explains a lot:

Windows Mobile Power Management
[Sable] sergiorus:
ke_steve_le

Thanks, working :D
[Sable] synghyn:
I'm using this now and it works perfectly for me! I really don't have much of a use for the toggle screen feature personally so I'm only using the backlight adjustment. Man this is better and easier than the built in setup, HUGE improvement.

Thanks for your work, it is appreciated!

Syn
[Sable] ke_steve_le:
Thanks for your appreciation :D

wow.. a really long reply :cool:

so.. Yea! I'll put more effort on developing this app! Really thanks for your support~
[Sable] Solaris_irc:
no ke_steve_le, I should thank you for this great app, for now I just disable the togglescreenmonitor.exe and use the manual option in the app, and I notice that S2U2 turns the backlight off with it's double check backlight setting.

keep up the awesome work!!:D
[Sable] :
Dear Steve Limited Edition hehhe :)

Firstly thanks a lot for you awesome program, really useful. HP should give you a free pocket pc :D

I use AE Button Plus which allows us to set button keys to start shortcuts and other commands. I've set one of the soft keys to toggle display on/off, but when i press this button, the screen fades slowly to blank but it still emits light.

It seems that the "global hook" successfully intercepted your backlight program but does not completely turn the display off. Also it gave a warning messag saying "...cannot open wm6_612c_backlight.. a critical component is missing etc etc"

I have read all pages of this post but i may have overlooked specific instructions to get rid of this. How do you solve it?

Plus i cant get the shortcut you created to get working. My backlight program is not located in windows (in programs files) so i made it like this:

60#"\program files\WM6_612C_Backlight.exe" /togglescreen

... how ever it still did nothing.

TIA
[Sable] :
...also using task manager programs and looking at cpu activity i see togglescreenmonitor.exe running 9 processes.

Generating 0% cpu activity but i just thought i'd let you know.
[Sable] ke_steve_le:
:) ok, I'll have a try with S2U2~

I use AE Button Plus to ToggleScreen without any problem, here I attach the screenshot of AE Button Plus Setting page:

If you are using my Cab Installation file, the path should be like this:

60#"\Program Files\Backlight Controller\WM6_612C_Backlight.exe" /togglescreen

Hope this will help :D

what do you mean by running 9 processes? ToggleScreenMonitor will run Backlight Controller process only. Could you descibe a little bit more or post a screenshot of your TaskManager?
[Sable] Solaris_irc:
Don't forget to let S2U2 control the power settings. And after some test S2U2 can't turn off the screen if pocketmusic is running... so at the end the pocketmusic problem seems to be the app or someting with it.

i'll keep testing :D
[Sable] ke_steve_le:
S2U2 always lock the device when application try to turn off the screen.

WMP / Coreplayer / PocketMusic... all of these are failed if S2U2 is installed. :(

No idea about how to solve this..

I have also read the documents about UNATTENDEDMODE, it will turn off both LCD and Audio.... so can't use it for ScreenOff function

For PocketMusic, it works without any problems if you don't touch hardware keys after ToggleScreen.

But if you do the followings:

Situation 1:

- Set "Cancel" button as "Display On/Off" in Pocket Music

- Press "Cancel" to turn off Display, it will trigger Backlight Controller

then if you press "Cancel" (i.e. the Button that you set in PocketMusic) button during screen off, pressing "ENTER" (default key to turn on screen for Backlight Controller) will not turn the screen on ... you need to press "Cancel" one more time to get the screen back.

Situation 2:

- Set "ENTER" button as "Display On/Off in Pocket Music

- Press "ENTER" to turn off Display, it will trigger Backlight Controller

Then press ENTER to turn on screen now.... it will instantly turn off again by PocketMusic , the "ENTER" key is catch by PocketMusic and treat it as a ScreenOff command.

...

There are many issues created by ToggleScreenMonitor that intercept screen off event. Should I make it Intercept only WMP / CorePlayer that proved working correctly?