5,596,235 Members 35,948 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Proximity Sensor Problem

Tip us?
 
natak22
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 6
Join Date: Nov 2011
Default [Q] Proximity Sensor Problem

First of all, sory for my english!
i am facing a problem with my galaxy advance proximity sensor, it does not work while in a call it does not shut my screen off. In the *#0*# menu at sensor tab at proximity it says : PROXIMITY : 1 when nothing is in the sensors way, and not turn the scrren green how it should do. Anyone have a clue about this ?
I find that note3 and S4 have this problem, and can recalibrate with ADB ussing this command:

# echo 0 > /sys/devices/virtual/sensors/proximity_sensor/prox_cal
# echo 1 > /sys/devices/virtual/sensors/proximity_sensor/prox_cal

But in our phone, Prox_cal dont exist! I use italy 4.1.2 official firmware... Any idea?
 
shut_down
Old
#2  
shut_down's Avatar
Senior Member
Thanks Meter 2756
Posts: 6,372
Join Date: Sep 2010
Location: Belgrade
Quote:
Originally Posted by natak22 View Post
First of all, sory for my english!
i am facing a problem with my galaxy advance proximity sensor, it does not work while in a call it does not shut my screen off. In the *#0*# menu at sensor tab at proximity it says : PROXIMITY : 1 when nothing is in the sensors way, and not turn the scrren green how it should do. Anyone have a clue about this ?
I find that note3 and S4 have this problem, and can recalibrate with ADB ussing this command:

# echo 0 > /sys/devices/virtual/sensors/proximity_sensor/prox_cal
# echo 1 > /sys/devices/virtual/sensors/proximity_sensor/prox_cal

But in our phone, Prox_cal dont exist! I use italy 4.1.2 official firmware... Any idea?
I do not know the answer, but that command for Note3 and S4 is probably for those phones, maybe we do not have that files in those folders, maybe it is by different name.
 
natak22
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 6
Join Date: Nov 2011
Quote:
Originally Posted by shut_down View Post
I do not know the answer, but that command for Note3 and S4 is probably for those phones, maybe we do not have that files in those folders, maybe it is by different name.
hi, thanks for answer! the files are:
in /sys/class/sensors/proximity_sensor/:
adc
state
uevent
/power:
autosuspend_delay_
control
runtime_active_time
runtime_status
runtime_suspend_ti

any idea?
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes