Ambient sensor - HTC One X

Is there any way to calibrate the light sensor? It works when under direct light from a strong lightsource.
Sometimes when im getting calls, it just get stuck, and keep locking the screen.
And it never works other then under a lamp, for example.
If its not possible, can i turn it off permanently?

you are confusing Ambient light sensor with proximity sensor. (they are both built into the same unit)
They are both located approximately 1cm left of the htc-logo-right-under-the-earpiece
Ambient light sensor is responsible for autobrightness.
Proximity sensor is responsible for checking if anything is close to the earpiece(your ears during calls)
proximity sensor turns on an extremely dull-red light(infra-red) which may not be visible to some people (you can see it clearly through another phone camera)
About your first problem you can simply look in the market for an Autobrightness app and turn off system autobrightness(you can choose what brightness at what sensor reading)
About your second problem it seems its a bug, probably in most cases i've seen in this forum caused by Viber app (or any other data-calling apps), either try uninstalling those apps or choose in their settings not to control normal phone calls and proximity sensor.
Give feedback if it works

O and yeah, this have been "working" with venomrom, simply pressing power button, to turn screen on, mostly,
But now when i installed CM10, I simply cant turn screen on, by pressing the power button, so i have to turn off the device.

There are 2 different sensors that you're talking about. Ambient light sensor and proximity sensor. The proximity sensor turns off the screen completely when you're in a call and it senses your head up against the phone. The ambient light sensor will only chance the screen brightness. You can tweak values for the screen brightness but not that I'm aware for the proximity sensor (turning the screen off completely).
---------- Post added at 03:08 AM ---------- Previous post was at 03:06 AM ----------
That "screen of death" problem is only with the latest builds of CM10 as far as i know. If you go back to a beta / sense ROM you should stop getting these. Nightlies will always have these kind of bugs.

Alright, what im meant is the Proximity sensor. This happend after my phone got a new screen from repairment. (Dont wanna sent it back, way to slow)
When i start a phonecall, the screen goes off, and during that call i cant get the screen back on. Have to longpress the power button, to reboot the device
And now the device is completely fresh installed with CM10

I had the same problem after a repair. Thought it was just a bad install but the problem was persistent. Even on other Roms. It was a hw problem. Hopefully for you its not that.
Sent from my HTC One X using xda app-developers app

Related

energy rom's bug?screen light off when calling

I flash energy's rom,it's good.but screen light off when calling makes me crazy.However I press the power button,the screen does not light on.every way i can do (regedit,change light sensor) does not work.
so please ,anybody knows?
You're saying that no matter what you do, the screen will not light up at all during a phone call once the proximity sensor turns turns the screen off?
yeah,you are right,but some rom can light up during a phone call,others can not.I'm crying for this
I've used Energy ROMS, and they were bullet proof, ran perfect, did everything they were supposed to do, like turn the screen off when I help the phone to my ear or had an object within proximity of the sensor, and the screen relit whenever I pulled the phone from my ear or moved an object away from the sensor...if you're saying the screen stays dark and you cant turn it on even with nothing blocking the sensor, then I recommend posting that issue in the Energy ROM thread as there could be a solution...if you're saying the proximity sensor works normally and you'd prefer to deactivate it, I searched around for that for you and didn't find a resolution...you can, however, if the sensor works properly...cover it up all the time (perhaps a small piece of black tape or something)...you'll have to hit the power button one time each time the phone takes or makes a call but the screen will stay lit til you turn it off again, even during a call
thank you Gt247. thank you so much.I think I found the way to resolve my screen's problem
I read a bunch where people were looking for a way to disable the proximity sensor...perhaps if that's what you've done, you could post the solution here in the event those peple are still looking
I have tried some apps to disabled my proximity sensor,but those all do not work,I think it's my phone's hardware problem,I have already decided to open my phone to fix it.
so before I fix this fool sensor ,any knows which app can test the proximity sensor?
just a app to test whether my proximity sensor work normally, any clue?
usomething said:
I have tried some apps to disabled my proximity sensor,but those all do not work,I think it's my phone's hardware problem,I have already decided to open my phone to fix it.
so before I fix this fool sensor ,any knows which app can test the proximity sensor?
just a app to test whether my proximity sensor work normally, any clue?
Click to expand...
Click to collapse
You don't need any app to test the proximity sensor , just turn on your screen , and cover the sensor with your finger . If your proximity sensor works normally , screen will be off . When you remove your finger in seconds , the screen will be turned on again .
I think you can disable the proximity sensor simply by removing the shortcut in the "startup" folder , and restart .
If I misunderstood your words , ignore me pls ~
thanks pcgg.I have tested my proximity sensor,it seems not notice my finger,the screen always on.
I have not found the proximity sensor shortcut in my startup folder,here is the file list in my startup folder:
DeviceLockXT.lnk
LockDevice.lnk
SpbMobileShell.lnk
so could you tell me which lnk is the proximity sensor?I can't find the file about what you say by the name
It seems that there is not priximity sensor app in your phone ....
While there is an app called "Rhodium setting tool" in mine , and it has a option under the menu "phone" named "Light Sensor" . If I turn it on , screen will auto turn off during a call .
Maybe you can try that ?
Well , I must say that I did misunderstood your words ... I thought you were complaining an app called "Proximity Sensor" . I found it in the "Jackos" ROM ... Sorry for misleading you .
You can try that app "Rhodium setting tool" . If it can not work , I will have no idea about it .
thanks pcgg.
I have already try the light sensor,I have tried many apps those can control the light sensor,but those don't work at all,at last I get a conclusion that is proximity sensor has a higher priority than the light sensor,proximity sensor can decide whether the screen can turn itself on or off.
my rom now is seeM_ZA's simplicity rom 21916,I'm now ready to flash jackos'r rom.whether it works ,I will tell you the result later
Any of the two, i suspect the first:
- you probably have some dirt inside your phone, at top left corner where the digitizer has a semi transparent glass for the proximity sensor (you hardly see it without disassembling screen)
- the proximity sensor is KO, you have to replace flex to cure it (about 35$ on eBay)
Once i replaced the digitizer on a TP2 and a little drop of glue went near the window of proximity sensor, it didn't work at all till i disassembled all again, cleared the the glue around the window letting again enough light to enter the sensor.

[CM7.1] Proximity sensor stuck at 0.0000 cm

Hi,
as measured by Z-DeviceTest, the proximity sensor on my Desire is stuck at 0.000 cm in all lighting conditions (including a very bright torch right on top of it).
At first I suspected this was the known problem with dust settling on the sensor, but I've blown and sucked (teh-eh) with everything I have, from every angle, and the sensor is still stuck at that value.
The problem shows up both in CM7 and with the stock firmware.
I have to assume the sensor is broken.
I'm looking for ways to disable the proximity sensor, and in particular to stop it from locking the screen during calls. Naturally, since the sensor is stuck at 0.0000 cm, any time a call is initiated the screen locks up, preventing me from ending the call, dialing tones and so on.
Alternatively, I'd be happy with a way to override the screen lock via hardware buttons. The power\unlock button doesn't work
Inserting a headset during a call does unlock the screen, but naturally this is not a satisfying solution (for example, I can't use this method to make calls while driving, using the speaker).
Solutions tried with no positive effect:
- editing build.prop with "ro.proximity.delay=0"
- using trackball\volume button wake
- using screebl, screen off to control automatic screen locks
Thank you for your time.
Anyone have any pointers?
Is it really hopeless?
Are you root? If so have you considered flashing a rom with the option to disable the proximity sensor? (for example miui-au has that option)
Yes, I have a rooted device. I didn't know miui had that options, I'll check it out; thank you!

Proximity sensor red faint red light always on now

Proximity sensor red faint light always on now , randomly turned on not sure why....
I have no motion things enabled
I tried turning off proximity sensor for phone
Ive rebooted several times
Ive turned off auto brightness
Im running the stock s3 rom rooted.
Anyone have any ideas how i can fix this?
Hmm.. My quick research of this makes me think you have a rogue app, a sticky setting or a defective sensor.
Let's be sure we're looking at the right thing. Your faint red light is just to the left of the front camera lens, correct? If so, then it's a definite indication that you're proximity sensor is on and constantly taking a reading.
Is it always on, from power on to power off? Or does it turn on once the phone has booted up? Does it stay on long after the screen shuts off during idle?
This sensor is used by motion features and talking functions. Triple check that you don't have 'smart stay' turned on, or one of the other super cool gs3 features enabled. I'd consider turning them all on manually, rebooting and then turning them all off followed by another reboot.
Lastly, take a look at your apps. Any kind of app that involves motion or talking (Voxer, Skype, certain games etc) can activate the proximity sensor and keep it on. A lot of those apps start on boot and never go away. Close them one at a time, or consider uninstalling suspect apps temporarily.
As a hardware test you can install Elixer2 from the play store (for free). Its sensors section allows you to turn the proximity sensor on and off, as well as test the near and far readings. If all else has failed, it might be nice to know that at the very least, your sensor can be turned off.
Report back with results from everything and we'll go from there.
Sent from my SGS3 i747m (Bell) on CM10 using TapaTalk2
Well i was using Viber, when i turned it off manually, the red sensor light went off. So it must be ab application that is keeping that sensor on all the time. Smart stay does not need proximity sensor and enabling or disabling it causes no change to sensors. Hope this will help ya
Sent from Galaxy Class Android using Tapatalk 2
Thank you so much for the awesome response. I didn't find any other similar responses on the Internet other then " oh that's just the ir sensor don't worry about it". I too have viber and I believe that was the app causing the issue because of the way it integrates itself with the phone, can't be certain because so many apps updated as of late but it is gone now thankfully.
I get this when I`m in a dark room. The sensor will turn on. The only way to correct it is to restart the phone.
Plausible Solution
I don't know if this works 100% of the time, but it HAS worked for me. Go to your Viber application, menu, and then EXIT the app. Viber seems to be the culprit, so if you find exiting the app manually every time bothersome, you might be better off uninstalling the thing. Click the Thanks button if it helps =p
In pocket detection on?
Sent from my DROID BIONIC using xda app-developers app
Disable Proximity Sensor
I´m trying to disable my proximity sensor in GS3. I tried with Hardware Disabler and doesn´t work, and the Elixir2 can´t disable the sensors.
Does anyone know another app to disable the proximity sensor?
Garouto said:
I´m trying to disable my proximity sensor in GS3. I tried with Hardware Disabler and doesn´t work, and the Elixir2 can´t disable the sensors.
Does anyone know another app to disable the proximity sensor?
Click to expand...
Click to collapse
x2. bump

dark screen when have phone call

Hi guys
Since one day , my screen turns dark when having phone call or receiving phone call.
I can't type the keyboard and press the speaker button, which are inconvenient.
I have updated fw to fw_capricorn_miui_MI5S_V9.6.1.0.NAGCNFD_857fde8b41_7.0.zip
I have this issue on different roms including lineage 14 , lineage15, RR,and pixel experience .
Do anyone also have the issue and do anyone know how to solve it.?
My phone drop to ground once which cause screen crack. I am not sure whether this is the root cause.
Many thanks
The phone has on the front a proximity sensor, which is basically a small light sensor that checks if the phone is near the head or not. If it's near the head, it turns the screen of, so that you don't press any buttons while holding the phone to your ear.
I think either your sensor is broken or the crack always brings light to the sensor.
patoberli said:
The phone has on the front a proximity sensor, which is basically a small light sensor that checks if the phone is near the head or not. If it's near the head, it turns the screen of, so that you don't press any buttons while holding the phone to your ear.
I think either your sensor is broken or the crack always brings light to the sensor.
Click to expand...
Click to collapse
Could I disable this function?
Always disable light sensor or disable when have phone call
I had the same problem I thought the sensor was broken (you can test it with sensors test https://play.google.com/store/apps/details?id=asd.vector.sensor ). But it was ok, it turns out it was firmware related. When I downgraded my firmware the proximity sensor was working again...
Good Luck

Ambient Display problem.

So here is the thing,
Yesterday before going to sleep, tap to ambient display was working without a problem. Today the tap to ambient wakeup doesn't work at all. D2W was always turned off. I didn't install anything and my device is not rooted as well. What could be the problem?
EDIT : Found the solution on OP forums. :laugh:
For anyone facing the same problem.
HERE'S THE FIX:
CULPRIT: Proximity Sensor.
LOCATION: Just below the Front Camera. It you Flash a bright LED light you would see 2 small sensors on the screen it self.
HOW TO: Whenever your Ambient Display stops working-
1. Just turn off the display by pressing the power button once.
2. Now take a bright LED light preferably use another smartphone's LED Flashlight.
3. Just bring the light close to the proximity sensor, the turn on the display by pressing the power button then turn it off. Repeat this 2-3 times.
You will notice that the double tap to wake and raise to wake feature start working again.
Well mine did 3 out of 3 times.
It's basically the issue of the proximity sensor that need recalibration.
I hope someone from the OnePlus team is reading this and does the needful to fix this issue once and for all.
Till then keep trying my LED flashlight method to reactivate the Ambient Display.

Categories

Resources