View Single Post
  #4 (permalink)  
Old 10-19-2010, 09:15 AM
mwalt2's Avatar
mwalt2
VIP Member
Offline
 
Join Date: Apr 2007
Posts: 1,759
Reputation: 5415
mwalt2 is a trusted member of the communitymwalt2 is a trusted member of the communitymwalt2 is a trusted member of the communitymwalt2 is a trusted member of the communitymwalt2 is a trusted member of the communitymwalt2 is a trusted member of the communitymwalt2 is a trusted member of the communitymwalt2 is a trusted member of the communitymwalt2 is a trusted member of the communitymwalt2 is a trusted member of the communitymwalt2 is a trusted member of the community
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Screen shutting off during calls not functioning after MightyRom patch

It should work as long as you are using an HTC PhoneCanvas (unless mike left out some dependencies, which would mean you could just flash a better ROM). You can find Psensorstatus and change it to 1 in the registry (see below). The proximity sensor will then be on all of the time though and it resets to 0 every soft reset. When you build the ROM right or use a stock ROM, it changes to 1 during a phone call and shuts off when you hang up.

HKLM\System\State\Phone
PSensorStatus=1

I also wrote a mortscript to enable it for non-htc phonecanvas's, but the mortscript runs all the time. I'm not sure what effects it would have on battery life or if it would just be less of a drain to leave the psensor on all of the time. I stopped using it when I couldn't find a way to get it to only activate during a phone call and shut off when the call ended. I'm sure it could be done if one knew how to write a program, but I don't think mortscript can do it. If you use the mortscript, you need to make sure you have mortscript installed first.

xda-developers - View Single Post - How-To : disable/remove HTC customizations
Reply With Quote