Fix/Re-calibration for Proximity Sensor/Miscellaneous fixes

rumibd

Member
Jan 9, 2011
49
7
0
37
Bangladesh
100 % working

Stock rom + this method = 100% successss:laugh:

but after reboot recalibration is gone. need to do the process again.
 
Last edited:

xcxa23

Senior Member
Oct 10, 2010
688
247
0
Its weird that the setting does not stick for you guys.. mine sticked and working great.. but im using Perseus kernel.. last time using other kernel, got problem..
 

lionsmatara

Senior Member
Sep 4, 2011
575
121
0
32
Matara
Wow.. it work for me. Thank you so much.... but... when I restart my mobile.... again I have to do it. .. any solution please. Thanks.

Sent from my GT-N7100 using XDA Premium 4 mobile app
 

xcxa23

Senior Member
Oct 10, 2010
688
247
0
well, i no longer using note 2 but i updated to ditto rom and the sensor still working fine so i guess the method sticks
 

xcxa23

Senior Member
Oct 10, 2010
688
247
0
Any one can make it like a script, that run automatically on mobile start up??

Sent from my GT-N7100 using XDA Premium 4 mobile app
please make nandroid backup..just in case anything goes wrong
for those wanted to run as script (i haven try as i no longer own note 2)
*create a file, copy the syntax below and put it in extSdCard, use script manager to run as SU and at Boot

#!/system/bin/sh
echo 0 > /sys/class/sensors/proximity_sensor/prox_cal
echo 1 > /sys/class/sensors/proximity_sensor/prox_cal
 
Last edited:
  • Like
Reactions: lionsmatara

viraj6990

Member
Dec 22, 2011
24
3
0
Pune
www.androidlegend.com
the first thing i notice after updated to the latest firmware, dme6 or dmf2 is either efs corrupted or in my case is the proximity sensor not working well.

during in-call, the screen off but when move away from face, the screen would remain off.
so i poke around in the system file and found some solution after few days of testing
and now its work very well

the only method works for me is re-calibration via terminal/adb shell
u need to type 'su' without the quotation mark and then follow by the code
Code:
echo 0 > /sys/class/sensors/proximity_sensor/prox_cal
by echoing it 0, it force the sensor to reset

Code:
echo 1 > /sys/class/sensors/proximity_sensor/prox_cal
by echoing to 1, its actually force the sensor to re-calibrate

my guess is, the calibration value are stored in efs so if there are chances for it to corrupted, there's small chance that the sensor goes haywire, well it happen to me. so i hoping this helps some user that facing proximity sensor.
*ps : okay, so i did some experiment and found that for it to recalibrate properly, it is recommend to do it under a bright environment
So, i decided to put in solution/fixes for those problem that occur on GT-N7100(Galaxy Note II International) that i cant find the solution.
the solution is based on my experience so i DID manage to fix it

**update : another method which i found online, forgotten from where, give a hard blow on the earpiece. i remember saw some user (not from xda) posted that this helps the problem

as reported from user, only working in SAMSUNG stock rom


for those having problem for the fix to stick


for those wanted to run as script (i haven try as i no longer own note 2)
*create a file, copy the syntax below and put it in extSdCard, use script manager to run as SU and at Boot



1. After flashing a ROM, you booted it and when you long press the home button, suddenly the system ui force close, but you DID FLASH the rom ACCORDINGLY to the OP's instruction ;
@xcxa23 you're a life saver man....Thank you button pressed:good:
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone