hi can you explain how did it using terminal emulator. i installed it from play store, then am not able to follow., thanks
hi can you explain how did it using terminal emulator. i installed it from play store, then am not able to follow., thanks
I changed my kernel and again the proximity sensor gone crazy, and again the solution works. Thanks again man!Here is my experience with proximity sensor, and finally got it working back with manual recalibration. So sharing here with you if any one having same issue.
Symptoms : Weired behavior of proximity sensor, I had issue like screen was not turning On after call ends. Air call accept not working
Test : Dial *#0*#
Now this will open up menu, select sensor from there and putting hand near proximity sensor screen should turn green and vibrate. I have had that, but when moving hand away from proximity sensor it was not turning back to normal stat. So once proximity sensor gets activated, it was remaining On always.
Suggestion from net : There wa plenty of cases I have seen having same issue on note3. there was different suggestion like turning auto brightness off / removing Ext SD card was worked for other but not worked on my case. Also someone asked to blow compressed air in earpiece to clean sensor, that helped but just for few minutes only.
Solution that was worked for me.
First thing this setting files remains in EFS folder, so if you have EFS backup, you can try restoring it. In my case I had old EFS backup (MJ1) and have ROM MK2, and later I realized, there is some file difference in both version. (samsung have again screwed EFS, Thanks )
So finally I need to manually recalibrate proximity sensor and that worked fine and since couple of hrs using it without issue.
Requirements :
-Adb access and rooted device.
You should have rooted device, also make sure USB debugging is ON
Connect device to PC and run adb shell
Type following command
thenCode:cd /sys/devices/virtual/sensors/proximity_sensor/
You will get some value(blank value), note that value. In my case it was 85.Code:cat state #blank value
Now enter this command to get actual configuration value
you will get some value, note that value too. In my case it was 46,166,126Code:cat prox_cal
Now make total of blank value and actual value(first part) , e.g. in my case it was 85+46 (red above) = 131
Now you need to find HEX value for 131. Get from here OR Here
So in my case it was (HEX value for 131) 83
Now you need to write this value in prox_cal file in EFS folder. For this you need,
Type this with adb
Grant supersu permission from device if ask.Code:su
then
here 83 is my value, you have to replace with your.Code:echo -en $'\x83' > /efs/prox_cal
then
Code:sync
Now last step you needs to change permission. here is three steps for that.
Reboot device and check proximity sensor is working fine.Code:chown system:system /efs/prox_cal chmod 644 /efs/prox_cal sync
GoodLuck !
Referred too many threads on XDa and google, main credit goes to @greaty for clear instruction.
The system cannot find the path specified msg when i enter the command echo 0 > /sys/devices/virtual/sensors/proximity_sensor/prox_cal
---------- Post added at 04:51 PM ---------- Previous post was at 04:35 PM ----------
826613756,826613876,826613836 value when i type cat prox_cal can you tell me which value is i choose for calculate ?
My sensor is not covered my proximity gyroscope light sensor and all other sensor value goes 0 when i checked using *#0*# after root my whole sensors stop working and giving me error process system isn't responding.You're an angel dr. ketan! Thank you very much. Fixed my proximity sensor using your TUT. I really Am very thankful.
---------- Post added at 12:46 PM ---------- Previous post was at 12:37 PM ----------
Try using the minimum value shown in the sensor test when your sensor isn't convered, mine is (221, 223, 2**), I used the 221 as my hex and guess what my proximity sensor is now 100% working. I do have figures of (1004, 1004, 1004) everytime the sensor is convered. Hope this'll help you dude. Good luck.
PS: I did not use the Hex Converter for I do get the same result. Just use the minimum value.
My sensor is not covered my proximity gyroscope light sensor and all other sensor value goes 0 when i checked using *#0*# after root my whole sensors stop working and giving me error process system isn't responding.
So, after flashing a lollipop ROM on my N9005, my proximity sensor stopped working.
Strangely enough, even with root access, terminal commands are forbidden to me.
But ES File Explorer wasn't...
So I opened the files on sys/devices as OP told, noted and add the numbers, did the HEX thing, created a new file on efs folder, edited it with my HEX number and set permissions using the same app, on properties options...
Bottom line... Thanks OP for this fix (proximity sensor fails can be very annoying), and it can be done without adb terminal, just using a root explorer (in my case ES Explorer).
Thanks a lot. It worked.Here is my experience with proximity sensor, and finally got it working back with manual recalibration. So sharing here with you if any one having same issue.
Symptoms : Weired behavior of proximity sensor, I had issue like screen was not turning On after call ends. Air call accept not working
Test : Dial *#0*#
Now this will open up menu, select sensor from there and putting hand near proximity sensor screen should turn green and vibrate. I have had that, but when moving hand away from proximity sensor it was not turning back to normal stat. So once proximity sensor gets activated, it was remaining On always.
Suggestion from net : There wa plenty of cases I have seen having same issue on note3. there was different suggestion like turning auto brightness off / removing Ext SD card was worked for other but not worked on my case. Also someone asked to blow compressed air in earpiece to clean sensor, that helped but just for few minutes only.
Solution that was worked for me.
First thing this setting files remains in EFS folder, so if you have EFS backup, you can try restoring it. In my case I had old EFS backup (MJ1) and have ROM MK2, and later I realized, there is some file difference in both version. (samsung have again screwed EFS, Thanks )
So finally I need to manually recalibrate proximity sensor and that worked fine and since couple of hrs using it without issue.
Requirements :
-Adb access and rooted device.
You should have rooted device, also make sure USB debugging is ON
Connect device to PC and run adb shell
Type following command
thenCode:cd /sys/devices/virtual/sensors/proximity_sensor/
You will get some value(blank value), note that value. In my case it was 85.Code:cat state #blank value
Now enter this command to get actual configuration value
you will get some value, note that value too. In my case it was 46,166,126Code:cat prox_cal
Now make total of blank value and actual value(first part) , e.g. in my case it was 85+46 (red above) = 131
Now you need to find HEX value for 131. Get from here OR Here
So in my case it was (HEX value for 131) 83
Now you need to write this value in prox_cal file in EFS folder. For this you need,
Type this with adb
Grant supersu permission from device if ask.Code:su
then
here 83 is my value, you have to replace with your.Code:echo -en $'\x83' > /efs/prox_cal
then
Code:sync
Now last step you needs to change permission. here is three steps for that.
Reboot device and check proximity sensor is working fine.Code:chown system:system /efs/prox_cal chmod 644 /efs/prox_cal sync
GoodLuck !
Referred too many threads on XDa and google, main credit goes to @greaty for clear instruction.
cd /sys/devices/virtual/sensors/proximity_sensor/
cat state #blank value
cat prox_cal
su
echo -en $'\x83' > /efs/prox_cal
sync
chown system:system /efs/prox_cal
chmod 644 /efs/prox_cal
sync
as per instruction and don't forget to do it with Supreuser (root access)