yashsingh1/xdaforums huggingface dataset:
[Desire HD Themes and Apps] leppie:
If it says near, make your values higher.

In a bad case, keep your finger over the sensor, and then increase the low threshold till it changes.

Then work from the settings there.
[Desire HD Themes and Apps] Stuclint:
Awesome!

This is my favorite app to date! I couldn't use any Cyanogen mod because of this issue. (My device was not waking up after the first phone call) Everything else worked fine.

Now I can use my phone as a phone too!

Would recommend to any O2 Germany DHD user having similar issues. :D
[Desire HD Themes and Apps] Pwoap:
Yep i'm O2 Germany DHD user too and had this issue.

This is really a life-saver app, thanks!

You are awesome, leppie!
[Desire HD Themes and Apps] coolacrille:
I didn't even have a problem with my sensor, but I tuned it a little bit anyway. Awesome. THANK YOU
[Desire HD Themes and Apps] burkow:
Thanks man! Helped me a lot!

Burkow
[Desire HD Themes and Apps] winwintoto1234:
I had this sensor problem and did make enquiry in other thread but can't find anysolution.

However, (don't konw since when) it works without any problem now.

Guess I should subscribe this thread just in case I need it in future (hopefully not).:D

Thanks leppie!

5 stars rated.
[Desire HD Themes and Apps] leppie:
Thanks for all the complements.

Added a link to the public source code repository on github.com for those interested.
[Desire HD Themes and Apps] boxer39:
Hi!

hi!! does anyone know about this app but for the HTC HD mini?

thanks!!!
[Desire HD Themes and Apps] leppie:
Sorry, that is a Windows Mobile phone. Can't help with that :(
[Desire HD Themes and Apps] Moskiller:
Thank you guy!! Finally!! Great work :D
[Desire HD Themes and Apps] madindehead:
Ace app! Even though I'm on stock, I sometimes get problems with my screen coming on during a call, and my accidentally muting the call. This should help me fix it, by fixing the threshold distance!

Awesome, thanks :)
[Desire HD Themes and Apps] boxer39:
it's ok, this thing is killing me!! I just didn't find a buyer yet, but i'm definitly changing it for the desire HD! the best one!!

thanks!!! :)
[Desire HD Themes and Apps] polarbearmc:
T-Mobile G2

hey

will this work on the T-Mobile G2 (Desire Z). If so I will be SOOO grateful to you and I probably will actually buy you a beer. My girlfriend and I both have G2's and the proximity sensor is the only problem with these phones.

Dave
[Desire HD Themes and Apps] djuri147:
hi,

i have both sensor problems! every second time my phone turns off the screen while phoning but not on again or somtimes the sreen is still on while phoneing

with the app i can set the sensor but still not working during a call

can someone help me?

sry for my bad english
[Desire HD Themes and Apps] cmlow0:
Thank you. Will try it on my Desire HD later ;)
[Desire HD Themes and Apps] leppie:
Ask Lee to make that file writeable for everyone. The permissions need to be 0666.

Edit:

If you want a temp solution. Do the following from ADB or the shell:

chmod 666 /sys/devices/virtual/optical_sensors/proximity/ps_kadc
[Desire HD Themes and Apps] fvs:
Did it via root explorer. Working now at leedroids kernel!
[Desire HD Themes and Apps] Dabarr:
Thank you guys!!! It works flawless now!!! Finally, everything is perfect :)

Used root explorer as well!
[Desire HD Themes and Apps] mohammedmazher:
Mazher

Hi friend

i have a htc hd2 phone and i was suffering with this problem when i installed Android nand rom on my htc hd2. and i used this application in order to over come this problem. its working properly but only the thing is i have recalibrate this every time when i reboot my phone.do you have any solution for this. and at the same time i would be very happy if u can provide this application for ginger bread
[Desire HD Themes and Apps] Hemulen:
Mine dosent even work I think.

No matter how I set it up it always shows "far".
[Desire HD Themes and Apps] Dabarr:
Try to lower the high treshhold values! It needs some time to find your configuration... Also, do it in the dark... My first settings worked fine at daytime but didn't fit to the nighttime...

My settings are 13 for low and 14 for high treshhold, but every device is different... I read that someone is using 7 - 9 and it works fine for him!
[Desire HD Themes and Apps] Maharbert:
Hello,

I have the same problem but I have a regular HTC Desire, I installed Oxygen 2.3 based Rom, After i install the app, i get an error: "ps_kadc file not found" followed by "java.io.FileNotFoundException:/sys/devices etc..."

Is that the same permissions problem or does it not work for my phone/rom?

Thanks a million!
[Desire HD Themes and Apps] leppie:
New release. First post updated.
[Desire HD Themes and Apps] Dabarr:
Ok, I am having one problem here.... After I realized a much higher battery drain that usually i checked the battery usage stats and proximity recalibrator is draining around 20-30 % of the battery... :(

Any solutions for that?

or is there any other way to set the low and high treshhold values manually? Edit a file or something !? Don't get me wrong, I am very thankful for this program, but the drain is not acceptable :(
[Desire HD Themes and Apps] leppie:
That is not possible. The app adjust the value on startup and does absolutely nothing more.

Edit: What ROM are you using?
[Desire HD Themes and Apps] fvs:
Lee added the patch to his 3.1.6 kernel. It's working!
[Desire HD Themes and Apps] lns00mnia:
is there way to change proximity settings for hd2? phone sleeps after call until i put it under some light source..
[Desire HD Themes and Apps] leppie:
No, this is only for the Desire HD. No other phones are supported.
[Desire HD Themes and Apps] Frostyeo:
Any ARHD users here?! Does this work on 5.1. 10? How do I ally the patch and will it affect the kernel already in mike's rom?
[Desire HD Themes and Apps] PiCaRd3591701:
Thanks!

Thank you Sir Leppie!

I was growing tired of manually switching of the screen before every call.

I need to sort out a paypal account as I owe you and Lee (from LeeDroid) some beers. Actually, a case each! :D
[Desire HD Themes and Apps] LeeDroid:
Latest LeeDrOiD kernels include support for the recalibrator ;)

Sent from my LeeDrOID loaded Desire HD
[Desire HD Themes and Apps] LeeDroid:
It's in the latest builds matey ;)

Sent from my LeeDrOID loaded Desire HD
[Desire HD Themes and Apps] winwintoto1234:
Can someone point to me which version of Proximity Recalibrator works on LeeDroid 3.2.1 please?

Thanks!

EDIT: I've tried out myself. Thanks.
[Desire HD Themes and Apps] Beamen1:
If I open Recalibrator after a reboot I get the error:

Error when writing to ps_kadc

java.io.FileNotFoundsException: /sys/devices/virtual/optical_sensors/proximity/ps_kadc (Permission denied)....

I am using Revolution HD 5.1.7 with LeeDrOiD-Ace-GB-V3.1.6-KERNEL-2.6.35.13-CFS.zip

I tried to set all permissions in root explorer, but that didn't help. Any ideas?

Doesn't look like it.
[Desire HD Themes and Apps] iphonoid:
Dude, whats your paypal account I want to buy you a beer my dhd was really annoying without this running it would keep turning on whilst I was on the phone and hanging up on the person!
[Desire HD Themes and Apps] iphonoid:
And to those who are having problems with lee update to latest version for both the app and rom (and check you've got kernel that works with this) and all is well:)
[Desire HD Themes and Apps] Beamen1:
I am using "DHD Proximity Recalibrator-1.6.apk" + LeeDrOiD-Ace-GB-V3.1.6-KERNEL-2.6.35.13-CFS.zip

Still getting the same error.

I can edit the settings fine, and the sensor works perfectly, but after a reboot I get the error that I posted on the last page.
[Desire HD Themes and Apps] fvs:
I am using the latest leedroid kernel and prox. App, and all works well!
[Desire HD Themes and Apps] iphonoid:
what rom are you running though?
[Desire HD Themes and Apps] leppie:
Not taking donations anymore, due to silly government policy with PayPal :(

Here is what I got from them:
[Desire HD Themes and Apps] Beamen1:
Revolution 5.1.7
[Desire HD Themes and Apps] iphonoid:
Has the author of revolution included patch in his rom? leppie have you got an app on the android market then?
[Desire HD Themes and Apps] Beamen1:
I think you need the kernel (which I have), not the ROM. Someone correct me if I'm wrong.
[Desire HD Themes and Apps] iphonoid:
hmm well that was me hazerding a guess maybe it's because you need to do a wipe of your current rom (I updated so wiped when upgrading from 3.2 to 3.2.1 leedroid) and put new version of proximity sensor and it worked a treat.
[Desire HD Themes and Apps] Beamen1:
It worked after flashing Revolution 5.1.11 and LeeDroid 3.1.6 kernel :D

Thanks for your help :)
[Desire HD Themes and Apps] Prodelin:
This app is still not working with LeeDroid latest from 25th June, tried it tonight and it crashes as soon as you reboot the phone.

Version 1.6 will just error out a huge file with errors when starting the application, version 1.5 is not working at all because it complains about error writing to the kadc file, but i have changed the permisson but it defaults back after reboot and changes the permissions to default.

Something is not working good here....
[Desire HD Themes and Apps] leppie:
I dont understand what you mean. Where do you see this 'huge' file? What is the content of it?

Have you tried uninstalling the app completely and re-install it?
[Desire HD Themes and Apps] Beamen1:
I am having problems again.

I have to re-adjust my values every reboot. I have to open the program 2x times. First time I get a error (same error as before). The 2nd time, the values are set as a default and I have to readjust.

It seems Superuser is not getting root access granted before the program is fully opened resulting in permission denied when the program is trying to set the values in ps_kadc.

EDIT: I did a FULL wipe, then Revolution 5.1.11 install, reboot, and Lee Kernel 3.1.8 CFS and I am still getting this problem.
[Desire HD Themes and Apps] Hharry100:
would it be possible to get this working on a hd2, as i and many other have the issue of the screen going to sleep when a call is initiated and the only way to wake the screen is to shine bright light on the sensor your help is appreciated
[Desire HD Themes and Apps] The PyroPath:
You know what the really weird thing is? Is that I have to apply different settings/values in froyo then in gingerbread:confused: but it works non the less! tnx!

too early, settings don't stick after a reboot...:(
[Desire HD Themes and Apps] rashidshahzad:
can i use this for htc desire?
[Desire HD Themes and Apps] Loverblush:
HTC hd2

rom - TyphooN CyanogenMod 7 Nightly v3.4.1

ps_kadc not found ((((((((
[Desire HD Themes and Apps] leppie:
No.

No.

No.

Please read the thread.
[Desire HD Themes and Apps] :
Does not work with leedriod 3.2.1 and miui1.6.17 (freshly sqeezed) , please update or any workaround ?
[Desire HD Themes and Apps] svscorp:
Hello!

In default ROM i have a same problem an i try your APK.

I've got an error: "ps_polling_ignore not found"

use 1.6 ver
[Desire HD Themes and Apps] digitallion:
Hello, Used Your recalibrator, it works flawlessly. The only thing is, that it drains battery incredibly fast. Android battery stats indicate that Proximity sensor recalibrator uses about 33% of the battery. :( I'm using Your app version 1.6, on Cyanogenmod 7.1.0 RC1
[Desire HD Themes and Apps] leppie:
I have no idea why that happens :(

I am running CM too (same version) and such effects.

All I can suggest is to remove my app completely, and re-install.

Let me know if that helps.

Edit:

I have never even seen my app under the battery stats. And in fact the app does nothing, except set 2 settings on boot, then nothing more.
[Desire HD Themes and Apps] digitallion:
Will try, thanks for the tip. The only thing I'd like to ask, is there any possibility to write shell script, and and put it to a .bash_profile or smthg, so it will pass correct values at boottime? (I presume that Android is almost linux :) )
[Desire HD Themes and Apps] leppie:
You can do that, but it will have to be a manual job. Anywhere in the boots scripts should be ok.

It will require 2 steps:

1. Disable polling

2. Update the calibration

Look at the source code for my app to see what values you need to pass.
[Desire HD Themes and Apps] digitallion:
Reinstalled application, seems like everything is working now :)
[Desire HD Themes and Apps] Beamen1:
leppie, any suggestions on the error I am getting each time I open your app after a reboot? The values don't stick :(
[Desire HD Themes and Apps] fknshwow:
this app may be a problem with battery. it runs in the background and shows as using the most battery
[Desire HD Themes and Apps] leppie:
So far the solution is to uninstall and re-install the app.

Like said in previous replies, the app does almost nothing. Just one action per boot.
[Desire HD Themes and Apps] leppie:
You should not need Superuser on a custom kernel.

Ask Lee to fix the permissions in that kernel for ps_kadc.
[Desire HD Themes and Apps] AABG1981:
Thanks for the APP

'm new at all this, i tried having my carrier company help me with this issue and here is the solution right in front of me now i just have a question for you guys............

After i intalled the app it tell me that it cant find -ps_polling_ignore (kernel not supported) i know that there is an attachement there to fix this issue now....HOW DO I ATTACH THIS FILE TO THE APK FILE???

thanks again and great work fixing all this issues
[Desire HD Themes and Apps] paco68:
LG P500

Dear "leppie" I have LG Optimus One, with latest Gingerbread 2.3.3

The proximity sensor settings is mest up !

http://xdaforums.com/showthread.php?t=1179607

Can you help with a compatible version ?

Right now 1.6 version not working:

Thanks.
[Desire HD Themes and Apps] cyber_pete:
I tried version 1.4 on CoreDroid 7.1 (Sense 3.0) but kept getting a large error when trying to adjust the settings.Any idea what I can do to get this working? My sensor is really screwed up. Thanks.
[Desire HD Themes and Apps] olaivo:
I tried to paste the polling_ignore in the ps map in root, but when I say paste it just doesnt paste :S So annoying!
[Desire HD Themes and Apps] azza1001:
Hi, leppie!

Just found new HTC dev site released (htcdev-dot-com/devcenter/downloads -----sorry, I can't post urls------------)

Is it kernel source code from HTC for Gingerbread you need to adopt your nice app for GB ROMs? If so, would you please try?
[Desire HD Themes and Apps] abZorber:
Hi! Thanks for the great work. Is it possible to make Recalibrator not to start on the boot? May be make some script in init.d which would change proximity values everytime telephone boots?
[Desire HD Themes and Apps] Beamen1:
The program does this already!

It sets your values in after every reboot. It works with Revolution 5.2.4 ->
[Desire HD Themes and Apps] gigis50:
Doesn't work on my stock Gingerbread 2.3.3 Desire HD...Kernel not supported or something like that :). would be very useful if it works
[Desire HD Themes and Apps] CarbonFiber51:
Doesn't work anymore and latest nightlies.

This app was a life saver for me, please fix it back!!!

Sent from my Desire HD
[Desire HD Themes and Apps] tzinux:
Speaker on

Does anyone else has the problem with the speaker coming on when making or receiving a call?
[Desire HD Themes and Apps] bengal92:
Proximity sensor broken?

Hey Leppie,

I've been using your tool since Android Revolution is compliant (2.5.4 if I do remember well), and it restored my proximity sensor. Everything worked well !!

But since a few days, it does not work ... again.

I'm now on Android Revolution 5.2.6, so there should be no problem. I've tried to uninstall and reinstall your tool.

But the problem is that whichever values I set, proximity sensors stays at "far".

I've also tried the tool "proximity sensor" from the market. It says my sensor detects something always at 9.0 cm ... which is the highest value.

My question is: could it be that my sensor is physically broken??

Or ssomething else?

You know how I could try to repair that or to detect if it's really hardware related?

Thanks for the tool and your time !!
[Desire HD Themes and Apps] Roonboy:
Works like a charm on Rcmix 234 v2.6.. :) Really enoying when my sensor didn't work before.. Thank you for this great app! Now is my DHD fully working again! ;P
[Desire HD Themes and Apps] greczko:
I have the same error, can enyone answer what to do now? Android 2.2.1, stock PL Orange kernel 2.6.32.21 compilation 1.84 :eek:
[Desire HD Themes and Apps] shantu:
Thanks a lot for this app...changing too many ROMs somehow wonked my phons sensor :)
[Desire HD Themes and Apps] Dreamcatch:
Dies anyone know of a similar application for the sensation? (stock, unrooted with latest gingerbread ) thanks
[Desire HD Themes and Apps] thermskin:
Thanx

Works great!

Best regards,

T.
[Desire HD Themes and Apps] joe9002:
nice thanks
[Desire HD Themes and Apps] Life Engineer:
OP, guys I need a bit of help here!

My sensor works: when i'm on call it turns off but the problem is that when it is maybe 1cm away from my ear it turns on!!!

On my other phone (HD2) it stays off until it's away about 10cm from my ear!

And i want something like that, coz any little movement in the phone on my ear and it turns on again!!!

Which values i can use?! :confused:

I tried many values but never been able to find the right combination!!:(

Any help please?! :o
[Desire HD Themes and Apps] kingpin1234:
"ps_kdac file not found"

Recently I flashed a Gingerbread 2.3.5 version (android.hd2roms.com/details/?r=143[/url]) on my Device HTC HD2.

-> Kernel-Version 2.6.32.15_tytung_r11-g343845b.

So far so good, but only the old problem I have with the proximity sensor.

Black screen during call)

I downloaded the latest version of the recalibrator but I get everytime the following error:

Can anybody help me?
[Desire HD Themes and Apps] arminvandyk:
need some help guys.....how to use this app.....what shud be my threshold values...i have read the op and a lot of pages....bt cant get this app to work...m using arhd 6.1
[Desire HD Themes and Apps] K12:
Incredible S | Revolution HD 1.1.7

Hi there guys!

I installed v1.6 of your app and am getting this error: "ps_polling_ignore not found". I'm using an Incredible S running Revolution HD 1.1.7.

The problem I'm currently facing is that, when the call starts, the screen goes blank but when I move it near my ear, it lights up again.

Could you also post a link as to how to apply that patch to the kernel?

I'm not using CM, so does that mean I don't have to apply the patch you provided?

Thanks.
[Desire HD Themes and Apps] response20:
Request help with Proximity Sensor Recalibrator 1.6

I installed the app Proximity Sensor Recalibrator 1.6 on HTC DHD and also restarted the phone. When i tap on Proximity Recalibrator it pops an error

-----------------------------

"Kernel not supported"

-ps_polling_ignore not found

-----------------------------

I also copied ps_polling_ignore.diff.txt on my memory card, but still same error.

Please help....
[Desire HD Themes and Apps] sambaeallegria:
Now my sensor is working. Great job man!
[Desire HD Themes and Apps] urs_marcel27:
How to use ps_polling_ignore.diff.txt file??

i have same issue like @responce
[Desire HD Themes and Apps] Scusy:
u made my day! Thanks a lot!!!
[Desire HD Themes and Apps] khrislee:
:( same as life engineer

any help please....
[Desire HD Themes and Apps] blueazure:
excellent,,

works like a charm ,,

fixed my sensor problem :)
[Desire HD Themes and Apps] Richard Fantom:
Windows Phone 7.5

Leppie, I hope you don't mind but I have linked to this thread on the Windows Phone 7 Dev Idea Pool - http://xdaforums.com/showthread.php?p=18556934#post18556934

I'm hoping someone may develop a similar App that would help Mozart 7 users.
[Desire HD Themes and Apps] Napkins:
Thanks for an awsome job! Really hated the awful stock calibration, accidently hung up my phone calls against my cheek!
[Desire HD Themes and Apps] richie1888:
anyone else just getting far all the time regardless of what you do ?
[Desire HD Themes and Apps] ikondric:
hey everyone, i find out where is the problem with DHD proximity sensor. its not the factory calibration but the dust! i have take apart my dhd and cleand up the dust. now its working great.
[Desire HD Themes and Apps] Frazzy:
wil this work on with the latest MIUI rom?
[Desire HD Themes and Apps] monksorlo:
Kernel not supported, can someone please help?
[Desire HD Themes and Apps] no_johnr:
Finally looks like my sensor is responding (at least in the app). Thanks.
[Desire HD Themes and Apps] AdrianM:
That is true. Just blow in the sensor, that will clean the dust and the sensor will work again without any calibration.
[Desire HD Themes and Apps] Dreamcatch:
Sounds almost too easy to be true ;-)

Where exactly is the sensor located?
[Desire HD Themes and Apps] AdrianM:
:D
[Desire HD Themes and Apps] versionist:
GPS Problem

{Deleted - Wrong thread}
[Desire HD Themes and Apps] sulaweyo:
Thx a lot leppie

My girlfriends DHD started to make troubles with the proximity sensor and ofc it was my fault as i flashed CM7 ;)

Now the sensor works fine and i'm safe :D
[Desire HD Themes and Apps] SAPPH1RE:
I always use this app to calibrate my proximity sensor, as my default value was too high. Now i'm using ICS and it seems the value would not stick after reboot, had to manually set the value after each reboot. Is there any way to make it stick? A script perhaps? TIA.
[Desire HD Themes and Apps] Beamen1:
The kernel needs to support it. It worked with Revolution before, but not any more. I have talked to Mike about it and he was going to look into it.
[Desire HD Themes and Apps] XroM:
Add, please, to supported kernels kernel from klquicksall
[Desire HD Themes and Apps] leppie:
Looking at the source, it is already supported.

Have you tried it?
[Desire HD Themes and Apps] dakillah:
Hello leppie,

The app is working with kernel from klquicksall but the Android Revolution HD 6.3.1 is with special kernel from klquicksall and the app is not working correctly. After each reboot you must recalibrate the sensor.
[Desire HD Themes and Apps] XroM:
Yes, it work with this kernel:
[Desire HD Themes and Apps] maatsby:
I've thanked your most recent post, the OP is too old to 'thanks'

Very useful app, fixed my phone right up. good stuff! thanks!
[Desire HD Themes and Apps] borc_seba:
Hi,

since i had the same Trouble with my HTC Desire, i decided to Test your App.

Unfortunately i always get the same Error Message ( ps_kadc not found)

I Downloaded the Root Explorer to search for the Folder /sys/devices/virtual/optical_sensors , but the Folder does not exist.

I use CyanogenMod 7 nightly build 260

regards

Sebbo
[Desire HD Themes and Apps] Lostie:
but i have some problems when start it on. (attachment)

installed:

ARHD 6.3.1

kernel from klquicksall

Can someone help?
[Desire HD Themes and Apps] aamadorj:
I'm also having this "Error when writing to ps_kadc" but I found a workaround: I run DHD Proximity Sensor Recalibrator a second time, right after the error message appeared, and this second time it works fine (but it shows initial values that are totally misconfigured).

I don't know what causes the error message at the first run. I just know it works the second time and all the times after that. I'm using Virtuous Affinity 1.48.0 on my HTC Inspire 4G. Kernel is Unity version 10 from m-deejay, I think.

I hope this trick works for you.
[Desire HD Themes and Apps] Lostie:
It's working. After reboot there are a notification, that sensor recalibrateb. But it does not work. After I started it manualy I have error but it working. Recalibrating manualy and have no problems.

What can be wrong in autostart?
[Desire HD Themes and Apps] -Vulture-:
As far as i know this is an access rights problem caused by the kernel itself. I had this problem with an older version of arhd too, it was solved with a kernel update. Its not the fault of the proximity recalibrator.
[Desire HD Themes and Apps] Lostie:
I have 2.6.35.14 rcmix3d v11 kernel.

Sensor is working but after dubble starting.

Is there some fix for such bug?
[Desire HD Themes and Apps] vigneshraaj:
Thanks! Helped me a lot!