|
||||
[APP] Proximity Sensor for Screen Off
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! Last edited by one80oneday; 02-28-2010 at 05:48 PM. |
This post has been thanked 5 times. |
|
||||
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?
__________________
Sprint Fair and Flex 500mins - unlimited; text, data, N&W@6pm (perks) - Sprint Pick 3, Unl Incoming Mins ROMS: Vin. Pluto. (M2.5), Mighty (M2.5), Energy (M2.5) |
|
||||
Re: [APP] Proximity Sensor for Screen Off
wouldn't this be a huge battery killer? at least while the screen is on...
__________________
Mogul->Diamond->TouchPro->Pro2->EVO 4G-> Q(';')-O
|
|
||||
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. Last edited by Kushiel; 03-01-2010 at 12:32 AM. Reason: Added additional info |
|
|
|