PDA

View Full Version : Screen off aplication


hgrimberg
12th April 2009, 11:52 PM
Is there an application to shut down the screen? I mean a program (cab) or an exe file that just turns off the screen instead of using the Power key?
It could be cool to re-map one of the soft keys (using Advanced config) and create a soft key that shuts down the screen instead of having to go touch the unconfortable Power key.
Thank you.

bapski
12th April 2009, 11:55 PM
you may want to take a look at POCKETSHIELD (http://pocketshield.netserver01.com/)

darnelhouston
13th April 2009, 06:17 AM
umm...so i have some what of a similar request.

is it possible to use the windows default lock without enabling the password. that is when the screen turns off it auto locks (similar to S2U, however using the windows 6.5 lock screen)?

bapski
13th April 2009, 06:21 AM
dont think the default windows lock autolocks..

band27
13th April 2009, 06:26 AM
Is there an application to shut down the screen? I mean a program (cab) or an exe file that just turns off the screen instead of using the Power key?
It could be cool to re-map one of the soft keys (using Advanced config) and create a soft key that shuts down the screen instead of having to go touch the unconfortable Power key.
Thank you.

You can map out a motion to shut of screen with .....this APP (G-Trigger) (http://forum.xda-developers.com/showthread.php?t=494267)

hgrimberg
13th April 2009, 06:37 AM
If you want to lock it using the WM feature, use the Advanced Config program and set it up so that it auto locks the screen after a few seconds of not using it.
Pocketshield is not what I was looking for. I am looking for a small application that only turns off the screen. (instead of using and stressing the power key)
Is there an .exe file in Windows that makes the screen turn off?

l3v5y
13th April 2009, 12:32 PM
If you want to lock it using the WM feature, use the Advanced Config program and set it up so that it auto locks the screen after a few seconds of not using it.
Pocketshield is not what I was looking for. I am looking for a small application that only turns off the screen. (instead of using and stressing the power key)
Is there an .exe file in Windows that makes the screen turn off?

I don't think windows contains one of those.

It's not hard to write, so I can whip up a little exe for you.

Do you want it to have the same effect as the power button, or to just turn the screen off but leave everything running as though the screen were on?

l3v5y
13th April 2009, 01:19 PM
Something that may be off use:

http://vijay555.com/?Releases:VJDeviceLock

hgrimberg
13th April 2009, 11:45 PM
I don't think windows contains one of those.

It's not hard to write, so I can whip up a little exe for you.

Do you want it to have the same effect as the power button, or to just turn the screen off but leave everything running as though the screen were on?



Thank you! It could be nice to have a small exe file that just makes the screen goes off and keep everything else running.
My idea is to then re-map one of the soft keys and be able to turn off the screen by simply clicking on it instead of pressing the power key. It's simpler, faster (your fingers are near the screen, you dont have to move your hand and touch that weird power key on top), and you dont stress a key that could some day not work anymore because of heavy usage.
I tried with a program called Screen Toggle but it takes some seconds to turn the screen off. I think an exe file can be faster.
Thank you a lot!

l3v5y
13th April 2009, 11:53 PM
Thank you! It could be nice to have a small exe file that just makes the screen goes off and keep everything else running.
My idea is to then re-map one of the soft keys and be able to turn off the screen by simply clicking on it instead of pressing the power key. It's simpler, faster (your fingers are near the screen, you dont have to move your hand and touch that weird power key on top), and you dont stress a key that could some day not work anymore because of heavy usage.
I tried with a program called Screen Toggle but it takes some seconds to turn the screen off. I think an exe file can be faster.
Thank you a lot!

Three little exes for you.

Names should be fairly self explanatory.

QuickReset performs a soft reset.
QuickScreenOff turns off the screen, nothing else
QuickPowerOff should emulate the power button

hgrimberg
14th April 2009, 12:23 AM
Thank you so much l3v5y! You are a genious!
Do you know if the Power off saves more battery than the screen off?
I am trying your programs now on my phone.

l3v5y
14th April 2009, 12:30 AM
Thank you so much l3v5y! You are a genious!
Do you know if the Power off saves more battery than the screen off?
I am trying your programs now on my phone.
Power off will save more battery as it'll stop things running.
Screen off will leave everything running, so if you press a button the device will react, but the screen will be off.

hgrimberg
14th April 2009, 12:40 AM
Three little exes for you.

Names should be fairly self explanatory.

QuickReset performs a soft reset.
QuickScreenOff turns off the screen, nothing else
QuickPowerOff should emulate the power button
Screen off is working great and it is super fast!
Thank you again!

l3v5y
14th April 2009, 12:41 AM
Screen off is working great and it is super fast!
Thank you again!

It's fast because the code is:

// QuickScreenOff.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <pm.h>



int _tmain(int argc, _TCHAR* argv[])
{
SetSystemPowerState(NULL, POWER_STATE_SUSPEND, POWER_FORCE);
return 0;
}



If it were slow, I'd be very worried! :D

Glad it's working for you :)

bapski
14th April 2009, 02:57 AM
pls. delete. posted on wrong thread. :)

payner96
14th April 2009, 05:52 AM
I find lockandoff to work well as it locks and turns off your screen. Just map soft key to the program and your set.

bbobeckyj
14th April 2009, 10:26 AM
VJEschaton and mortscript can do the screen off/on thing and registry for the lock.


Power off will save more battery as it'll stop things running.
Screen off will leave everything running, so if you press a button the device will react, but the screen will be off.
It's a bit more grey than that, just add a small 'run on wake' prog to the notification queue such as a mortscript vibrate script or something that writes to a log file, you'll hear/see a lot happening when the power is off. Anything in the notification queue will wake it up but leave screen off and buttons locked. The backlight is the biggest drain on power.

l3v5y
14th April 2009, 06:51 PM
VJEschaton and mortscript can do the screen off/on thing and registry for the lock.


It's a bit more grey than that, just add a small 'run on wake' prog to the notification queue such as a mortscript vibrate script or something that writes to a log file, you'll hear/see a lot happening when the power is off. Anything in the notification queue will wake it up but leave screen off and buttons locked. The backlight is the biggest drain on power.

Most processes are stopped when the power button is hit.

Some service, some processes and the notification system and RIL etc are left running, but most applications are stopped.

Powering off will save more power (some devices do underclock when the power is off...), just it won't be that much more than saved by just turning the screen off.

hgrimberg
14th April 2009, 08:44 PM
I find lockandoff to work well as it locks and turns off your screen. Just map soft key to the program and your set.


This is an awesome application! And it is fast as well. Thank you.
I wonder if there is some tweak or program that does a selective key lock... Under "settings" there is just the option of locking all keys but I wonder if it could be possible to lock all keys except the round center enter key for example. (this way you can turn on the phone by just clicking this more accessible key on the Diamond)

band27
15th April 2009, 01:16 AM
I find lockandoff to work well as it locks and turns off your screen. Just map soft key to the program and your set.

Great little app!! It's been tested and works with WM 6.5.....:)

edywanwan
16th April 2009, 05:33 PM
This (http://www.freewarepocketpc.net/ppc-download-screen-switch-1-1.html) little apps does the job

hgrimberg
17th April 2009, 08:50 PM
This (http://www.freewarepocketpc.net/ppc-download-screen-switch-1-1.html) little apps does the job


Thank you, Edy.
Again, I wonder if there is some tweak or program that does a selective key lock... Under "settings" there is just the option of locking all keys but I wonder if it could be possible to lock all keys except the round center enter key for example. (this way you can turn on the phone by just clicking this more accessible key on the Diamond)

richardsoffice
17th February 2010, 03:00 PM
QuickScreenOff turns off the screen, nothing else


Doh . . when I found your Screen off .exe I thought YES this is what I have been looking for over a year now:) But alas it does not “leave everything running” on my HTC Diamond Touch:(

The problem I am trying to address is, as a tourist in an unfamiliar foreign town using TomTom or iGo is the perfect way to walk from one way point to another, however if I leave the screen backlight on, the battery is depleted to fast and if I use the power button (or everything else I have ever tried) to blank the screen this also disables the GPS receiver on my Diamond, then when I put the screen back on theirs a long delay re-finding the Sats and acquiring a fix especially between tall buildings and especially as it hasn't been able to track my movements.

However the screen-savers dimed screen does not disable this and it saves some power!

Would it be possible to make a very dim QuickScreenDim.exe . . . please?:o

bbobeckyj
17th February 2010, 04:58 PM
@ richardsOffice:
vijay555 has an app to turn off the screen, but I would suggest using his (or someone else's) screen lock app which uses the inbuilt MS screen lock & turns the screen off, without the need for it to be loaded in the today screen.
Also use mortscript to do that & for the dimming of the screen. Set the "Auto backlight adjust" to off, then set it to the dim level you want, then turn the auto adjust back on. You can then use the code below to toggle the auto adjust on/off:

f (regread ("HKCU","ControlPanel\BackLight","LightDetectOn") eq 0)

Regwritedword ("HKCU","ControlPanel\BackLight","LightDetectOn",1)

sleepMessage (1, "LightDetectOn", "", 1)

Else
Regwritedword ("HKCU","ControlPanel\BackLight","LightDetectOn",0)

sleepMessage (1, "LightDetectOff", "", 1)

endIf


@hgrimberg:
mort's button / screen lock can do as you would like, if I understand what you want correctly.

richardsoffice
17th February 2010, 05:57 PM
[QUOTE=bbobeckyj;5649818]@ richardsOffice:
vijay555 has an app to turn off the screen, but I would suggest using his (or someone else's) screen lock app which uses the inbuilt MS screen lock & turns the screen off, without the need for it to be loaded in the today screen.
Also use mortscript to do that & for the dimming of the screen. Set the "Auto backlight adjust" to off, then set it to the dim level you want, then turn the auto adjust back on. You can then use the code below to toggle the auto adjust on/off:

f (regread ("HKCU","ControlPanel\BackLight","LightDetectOn") eq 0)

Regwritedword ("HKCU","ControlPanel\BackLight","LightDetectOn",1)

sleepMessage (1, "LightDetectOn", "", 1)

Else
Regwritedword ("HKCU","ControlPanel\BackLight","LightDetectOn",0)

sleepMessage (1, "LightDetectOff", "", 1)

endIf


QUOTE]

I’m still trying but this is all just a little bit over my head?

bbobeckyj
17th February 2010, 07:48 PM
trying to upload the script from my phone... not sure if I can...

meanwhile, to do it yourself, download mortscript & install. copy the "code" into a text file, change the text file's extension from .txt to .mscr then execute it.

this may sound difficult, when I first read the manual, I gave up immediately, but once you start you'll wonder how you ever managed without mortscript.

richardsoffice
18th February 2010, 12:52 AM
trying to upload the script from my phone... not sure if I can...

Hey thanks bbobeckyj, I have followed your directions regarding mortscript and now if I execute the .mscr file you kindly posted my backlight dims, that’s brilliant.:)

Tomorrow I will have a go at getting something to trigger it, would be nice if I could just invert the phone to trigger it as with GOffDisplaySetup.CAB