Originally Posted by Perseus71
Try a CM 11 Stable (Don't go for latest nightly but the last stable) and recalibrate your Sensors. Make a CLEAN install no restoring apps or data. Also do you happen to have any Kernel tweaks of any sort ?
Last but not least, try a single light tap on Power button. That will bring the screen back.
Got it working, had to manually recalibrate the proximity sensor with terminal emulator. Thanks for the help guys
I am not able to post links yet, but here is the method used for recalibration if anyone needs it (credit to Viraj Kshatriya of androidlegend.com):
1. Enable USB Debugging
2. Root Access
3. Terminal Emulator
All commands will be done in terminal emulator as Root:
1. Enter superuser mode
2. Obtain offset value
cat /sys/devices/virtual/sensors/proximity_sensor/prox_cal <enter>
This will return a few numbers, the first one is your offset value
3. Obtain normal value
cat /sys/devices/virtual/sensors/proximity_sensor/state <enter>
This will return one number, this is your normal value
4. Modify /efs/prox_cal
Take your offset value, and add it with your normal value
Convert sum of these to hexadecimal
echo -en $ '\x**' > /efs/prox_cal (** being your hexadecimal number from above step) <enter>
chown system:system /efs/prox_cal <enter>
chmod 644 /efs/prox_cal <enter>
5. Wait for phone to reboot and you should be good to go!!!