PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   HTC Touch Pro 2 (http://forum.ppcgeeks.com/forumdisplay.php?f=97)
-   -   [APP] Proximity Sensor for Screen Off (http://forum.ppcgeeks.com/showthread.php?t=112471)

one80oneday 02-28-2010 05:22 PM

[APP] Proximity Sensor for Screen Off
 
1 Attachment(s)
The tweak uses the TP2’s proximity sensor to turn of the screen when a finger or any object is detected in front of it. This would work a little like during a phone call, except it does not turn back on until you press a hard button. This tool only works in portrait mode, to prevent accidental screen-offs when using landscape apps.

May be this tool will be usefull.
It switch off screen using proximity sensor detection.
Like alternative power button.
After proximity detected - screen switched off and proximity sensor don't used until screen will be switched on again manualy.

No screenshots
Second time running will unload program from memory, it can be used for switching on/off proximity lock feature.

All settings in registry, settings reloaded on each program run.

HKEY_CURRENT_USER\Software\Exidler\Hd2ProximityScr eenOff
AfterCallReactivateSensor = dword:150 - time in ms when activate proximity sensor after call ended
SensorOffWhenProximity = dword:0 - time in ms when disabling proximity sensor on proximity detected. May be useful for disabling accident detection. This time proximity sensor is still active and if no porximity detected with this time - screen will be switched on automatically
ActiveOnlyIfLocked = dword:0 - Activate Proximity sensor only if Phone locked.

HKEY_CURRENT_USER\Software\Exidler\Hd2ProximityScr eenOff\Exceptions
Create any named sub keys with values:
ClassName = string - name of windows class
WndTitle = string - title of window
ProcName = string - name of process

For exception windows proximity sensor will be disabled if this one window is active.
All criterias are optional. For example create only one value ProcName="Explorer.exe" for disabling proximity lock when Resco Explorer is active.

Proximity sensor activated only in portrait mode.

Original Post:
http://forum.xda-developers.com/showthread.php?t=624206

Working on TP2!

stas333 02-28-2010 05:31 PM

Re: [APP] Proximity Sensor for Screen Off
 
interesting

twe90kid 02-28-2010 06:23 PM

Re: [APP] Proximity Sensor for Screen Off
 
so technically, anything that covers the sensor will turn off the phone. this means that you need to press the power button to turn back on the phone?

one80oneday 02-28-2010 06:36 PM

Re: [APP] Proximity Sensor for Screen Off
 
Quote:

Originally Posted by twe90kid (Post 1597865)
so technically, anything that covers the sensor will turn off the phone. this means that you need to press the power button to turn back on the phone?

You are correct but you can press any hardware key to turn the screen back on. I am hoping someone can tweak this for more options (lock phone, more like in call, etc...) but its a great start!

lipidfats 02-28-2010 06:37 PM

Re: [APP] Proximity Sensor for Screen Off
 
wouldn't this be a huge battery killer? at least while the screen is on...

one80oneday 02-28-2010 07:24 PM

Re: [APP] Proximity Sensor for Screen Off
 
Quote:

Originally Posted by lipidfats (Post 1597895)
wouldn't this be a huge battery killer? at least while the screen is on...

Haven't tested it very long but so far haven't noticed a difference.

Kushiel 03-01-2010 12:16 AM

Re: [APP] Proximity Sensor for Screen Off
 
Pretty cool, thanks! However, if the screen turns on again after the phone is in a pocket or case, the app isn't turning the screen off again. Can you modify the app so it checks the proximity when the screen turns back on as well?

Easy test: 1. put your finger over the proximity sensor and the screen turns off. 2. Without taking your finger away, turn the screen back on. 3. It will come on and stay on as long as your finger is there. 4. Take your finger off and the place it back over the sensor and the screen will turn off again. If possible, it would be great if the screen shut off again during #3.

P.S. My screen seems to turn itself back on every minute when the HTC Sense clock animation runs. I'm using Mighty Mike's WAR rom.


All times are GMT -4. The time now is 07:25 AM.

Powered by vBulletin® ©2000 - 2024, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0