PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2

Notices



Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-28-2010, 04:22 PM
one80oneday's Avatar
Halfway to VIP Status
Offline
Pocket PC: Vintercept™
Carrier: Sprint SERO500 & Virgin Mobile
Location: http://tiny.cc/FollowNick
 
Join Date: Apr 2008
Posts: 721
Reputation: 1685
one80oneday is halfway to VIP status based on repone80oneday is halfway to VIP status based on repone80oneday is halfway to VIP status based on repone80oneday is halfway to VIP status based on repone80oneday is halfway to VIP status based on repone80oneday is halfway to VIP status based on repone80oneday is halfway to VIP status based on repone80oneday is halfway to VIP status based on repone80oneday is halfway to VIP status based on repone80oneday is halfway to VIP status based on repone80oneday is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via Yahoo to one80oneday
[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!
Attached Files
File Type: cab ProximityScreenOff-0.2.CAB (79.5 KB, 44 views) Click for barcode!
__________________

Last edited by one80oneday; 02-28-2010 at 04:48 PM.
Reply With Quote
This post has been thanked 5 times.
  #2 (permalink)  
Old 02-28-2010, 04:31 PM
stas333's Avatar
Regular 'Geeker
Offline
Pocket PC: Evo 4G
Carrier: Sprint
 
Join Date: Jan 2009
Posts: 341
Reputation: 195
stas333 is keeping up the good workstas333 is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [APP] Proximity Sensor for Screen Off

interesting
Reply With Quote
This post has been thanked 1 times.
  #3 (permalink)  
Old 02-28-2010, 05:23 PM
twe90kid's Avatar
HTC = TAIWAN! =)
Offline
Pocket PC: HTC Touch Pro2
Carrier: Sprint
Location: Bay
 
Join Date: Jan 2008
Posts: 1,858
Reputation: 1330
twe90kid is halfway to VIP status based on reptwe90kid is halfway to VIP status based on reptwe90kid is halfway to VIP status based on reptwe90kid is halfway to VIP status based on reptwe90kid is halfway to VIP status based on reptwe90kid is halfway to VIP status based on reptwe90kid is halfway to VIP status based on reptwe90kid is halfway to VIP status based on reptwe90kid is halfway to VIP status based on reptwe90kid is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
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)
Reply With Quote
  #4 (permalink)  
Old 02-28-2010, 05:36 PM
one80oneday's Avatar
Halfway to VIP Status
Offline
Pocket PC: Vintercept™
Carrier: Sprint SERO500 & Virgin Mobile
Threadstarter
Location: http://tiny.cc/FollowNick
 
Join Date: Apr 2008
Posts: 721
Reputation: 1685
one80oneday is halfway to VIP status based on repone80oneday is halfway to VIP status based on repone80oneday is halfway to VIP status based on repone80oneday is halfway to VIP status based on repone80oneday is halfway to VIP status based on repone80oneday is halfway to VIP status based on repone80oneday is halfway to VIP status based on repone80oneday is halfway to VIP status based on repone80oneday is halfway to VIP status based on repone80oneday is halfway to VIP status based on repone80oneday is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via Yahoo to one80oneday
Re: [APP] Proximity Sensor for Screen Off

Quote:
Originally Posted by twe90kid View Post
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!
Reply With Quote
  #5 (permalink)  
Old 02-28-2010, 05:37 PM
lipidfats's Avatar
VIP Member
Offline
Pocket PC: PRO2/EVO4G
Carrier: SprinT
 
Join Date: Sep 2007
Posts: 1,474
Reputation: 2100
lipidfats is a VIPlipidfats is a VIPlipidfats is a VIPlipidfats is a VIPlipidfats is a VIPlipidfats is a VIPlipidfats is a VIPlipidfats is a VIPlipidfats is a VIPlipidfats is a VIPlipidfats is a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
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
Reply With Quote
  #6 (permalink)  
Old 02-28-2010, 06:24 PM
one80oneday's Avatar
Halfway to VIP Status
Offline
Pocket PC: Vintercept™
Carrier: Sprint SERO500 & Virgin Mobile
Threadstarter
Location: http://tiny.cc/FollowNick
 
Join Date: Apr 2008
Posts: 721
Reputation: 1685
one80oneday is halfway to VIP status based on repone80oneday is halfway to VIP status based on repone80oneday is halfway to VIP status based on repone80oneday is halfway to VIP status based on repone80oneday is halfway to VIP status based on repone80oneday is halfway to VIP status based on repone80oneday is halfway to VIP status based on repone80oneday is halfway to VIP status based on repone80oneday is halfway to VIP status based on repone80oneday is halfway to VIP status based on repone80oneday is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via Yahoo to one80oneday
Re: [APP] Proximity Sensor for Screen Off

Quote:
Originally Posted by lipidfats View Post
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.
Reply With Quote
  #7 (permalink)  
Old 02-28-2010, 11:16 PM
Kushiel's Avatar
Lurker
Offline
Pocket PC: HTC Incredible
Carrier: VZW
 
Join Date: May 2008
Posts: 12
Reputation: 95
Kushiel is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
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; 02-28-2010 at 11:32 PM. Reason: Added additional info
Reply With Quote
Reply

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 10:09 PM.


Powered by vBulletin® ©2000 - 2019, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com