yashsingh1/xdaforums huggingface dataset:
[HTC One X] drivenby:
Re: [ROM][Jan 22] Jellybean 4.2.1 for Endeavoru AOSP Build [BT Audio fixed] [ANY HBOO

I don't have a pc atm so I did it with terminal emulator.

u0_a160@android:/ $ adb shell

* daemon not running. starting it now on port 5038 *

* daemon started successfully *

error: device not found

1|u0_a160@android:/ $ logcat | grep Wrote

I/Endeavoru PowerHAL( 564): Wrote 475000 to /sys/module/cpu_tegra/parameters/cpu_user_cap

I/Endeavoru PowerHAL( 564): Wrote 2 to /sys/devices/system/cpu/cpufreq/interactive/boost_factor

I/Endeavoru PowerHAL( 564): Wrote 1200 to /sys/kernel/tegra_cap/core_cap_level

I/Endeavoru PowerHAL( 564): Wrote 1 to /sys/kernel/tegra_cap/core_cap_state

I/Endeavoru PowerHAL( 564): Wrote 250000 to /sys/devices/system/cpu/cpufreq/interactive/max_boost

I/Endeavoru PowerHAL( 564): Wrote 95 to /sys/devices/system/cpu/cpufreq/interactive/go_maxspeed_load

I/Endeavoru PowerHAL( 564): Wrote 1500000 to /sys/module/cpu_tegra/parameters/cpu_user_cap

I/Endeavoru PowerHAL( 564): Wrote 0 to /sys/devices/system/cpu/cpufreq/interactive/boost_factor

I/Endeavoru PowerHAL( 564): Wrote 1300 to /sys/kernel/tegra_cap/core_cap_level

I/Endeavoru PowerHAL( 564): Wrote 1 to /sys/kernel/tegra_cap/core_cap_state

I/Endeavoru PowerHAL( 564): Wrote 0 to /sys/devices/system/cpu/cpufreq/interactive/max_boost

I/Endeavoru PowerHAL( 564): Wrote 85 to /sys/devices/system/cpu/cpufreq/interactive/go_maxspeed_load

I/Endeavoru PowerHAL( 564): Wrote 475000 to /sys/module/cpu_tegra/parameters/cpu_user_cap

I/Endeavoru PowerHAL( 564): Wrote 2 to /sys/devices/system/cpu/cpufreq/interactive/boost_factor

I/Endeavoru PowerHAL( 564): Wrote 1200 to /sys/kernel/tegra_cap/core_cap_level

I/Endeavoru PowerHAL( 564): Wrote 1 to /sys/kernel/tegra_cap/core_cap_state

I/Endeavoru PowerHAL( 564): Wrote 250000 to /sys/devices/system/cpu/cpufreq/interactive/max_boost

I/Endeavoru PowerHAL( 564): Wrote 95 to /sys/devices/system/cpu/cpufreq/interactive/go_maxspeed_load

I/Endeavoru PowerHAL( 564): Wrote 1500000 to /sys/module/cpu_tegra/parameters/cpu_user_cap

I/Endeavoru PowerHAL( 564): Wrote 0 to /sys/devices/system/cpu/cpufreq/interactive/boost_factor

I/Endeavoru PowerHAL( 564): Wrote 1300 to /sys/kernel/tegra_cap/core_cap_level

I/Endeavoru PowerHAL( 564): Wrote 1 to /sys/kernel/tegra_cap/core_cap_state

I/Endeavoru PowerHAL( 564): Wrote 0 to /sys/devices/system/cpu/cpufreq/interactive/max_boost

I/Endeavoru PowerHAL( 564): Wrote 85 to /sys/devices/system/cpu/cpufreq/interactive/go_maxspeed_load
[HTC One X] drziddo:
Google Now and Google Maps drain like hell.

Try unistalling that and you will see.

I can't understand why this 2 apps drain battery as they do.

Is rom related?
[HTC One X] Zulake:
Jus tried flashing RC12, coming from a Sense ROM.

Did a full wipe through TWRP 2.4.4.0

Flashed the boot.img, flashed ROM, flashed gapps, and booted the system.

However, after it was done optimising the apps, the X logo came back, then it said once again it was starting apps, the X logo came again, starting apps, X logo, etc.

What did I do wrong here? :confused:
[HTC One X] drivenby:
Re: [ROM][Jan 22] Jellybean 4.2.1 for Endeavoru AOSP Build [BT Audio fixed] [ANY HBOO

Why not fastboot erase cache?
[HTC One X] Zulake:
Forgot to mention, but did that aswell.

//Did the whole stuff again through CWM recovery instead of TWRP, fixed! Silly and dumb me. :o
[HTC One X] ZrC:
TWRP isn't at 2.4.4.0
[HTC One X] seadersn:
AW: [ROM][Jan 22] Jellybean 4.2.1 for Endeavoru AOSP Build [BT Audio fixed] [ANY HBOO

yeah, but you know, what he meant :D
[HTC One X] pabx:
Just had a look at your screenshot and realized that the file is only readable by root. That won't work: The file needs to be world readable.
[HTC One X] pabx:
Format /system and /data from recovery and flash again (boot.img + rc12 + gapps)

If it still doesn't work: post 'adb logcat' output
[HTC One X] herrvorragend23:
pabx: there is still one pull request regarding the camera hdr stuff, can you include it?

https://github.com/adrian-bl-hox-jb/android_packages_apps_Camera/pulls
[HTC One X] pabx:
Done - thanks for the notice (i tend to miss pull requests as the adrian-bl-hox-jb account is registered to some junk-email account :) )
[HTC One X] jaffry:
Apostrophe, Question Marks, etc in file names

When I try to copy over a folder/file with an aprostophe <'> or a slash </> or a question mark <?> (e.g "2012 - Don't Think"), Android File Transfer (I'm on a Mac) freezes up and tells me to reconnect my device. Is this some weird MTP limitation?

When I finally figured a way to copy my music folders (via an FTP server on my phone), the Music app (and Google Music) doesn't even recognize the folders and entire albums don't show up. Argh.

Is this windows-friendly filename thing a 4.2.x bug/feature/limitation? (This happened even when I tried ICJ 4.2.1).

This ROM is the lean, mean Jelly Bean I always wanted. But the filename weirdness is making me sad. :(
[HTC One X] Brac20:
Will I need to give it that time every time I use GPS?

Someone sent me a PM and said they are having the same issue.

I found I was having the exact same problem on ICJ AOKP ROM.

On Sense based ROM it gets a lock after just a few seconds.

Is slow GPS lock a known issue for AOSP based ROMs then? I just ask because it says GPS is working in the OP but there are obviously issues.

Thanks
[HTC One X] drivenby:
Re: [ROM][Jan 22] Jellybean 4.2.1 for Endeavoru AOSP Build [BT Audio fixed] [ANY HBOO

So is it something I did or a rom related issue?
[HTC One X] bassmadrigal:
Apostrophes should be fine, but the other two you used are reserved symbols that should not be used within file/folder names. Normally, most OSs won't let you name a file with those in it (macs recognize the </> as what separates files and folder names within a path, and the <?> is used as a wildcard in the terminal kinda like the <*> but for only one character). Windows won't even let you name files with that, but with linux/mac it will let you if you know how to get around it, but it really isn't a good idea. Android apps probably have no way to work with files that go against the standard naming structures of an OS.

I really have no idea why you would have an issue with apostrophes...
[HTC One X] drivenby:
Re: [ROM][Jan 22] Jellybean 4.2.1 for Endeavoru AOSP Build [BT Audio fixed] [ANY HBOO

P

The first time took me quite a bit of time. Like 20 minutes. After that it usually takes me like a minute.

Edit: its not as accurate or fast as with the stock rom.
[HTC One X] boe323:
Add this line to the build.prop, ro.ril.def.agps.mode=1, or 2, try them both, get fasterfix from market and set it to your country.
[HTC One X] Brac20:
Thanks I might just give that a go.

I've never played with the build.prop before so I'll do some reading before I mess with that.
[HTC One X] boe323:
Also download gps status, and go to tools and reset the gps data, backout and reopen gps stats, wait for a lock, everything should be as good a the stock after that, mine is, its even quicker than my onex+ sometimes.
[HTC One X] Alex240188:
Re: [ROM][Jan 22] Jellybean 4.2.1 for Endeavoru AOSP Build [BT Audio fixed] [ANY HBOO

I don't know why your GPS fixes take so long.

Have you used faster fix to change your nntp server to your local region

First fix 1min

Subsequent fixes < 10 seconds
[HTC One X] toka1232010:
Weird noise?

Well, if it is some kind of well known feature don't laugh at me, but whole day I was hearing strange sounds coming from my one x. When I arrived home I discovered, that when my credit card (touch & pay) touches my phone it beeps, but does nothing, just weird sound..? Screen has to be on, just slide your credit card on the back of your phone.

May be it does on other ROMs too but I discovered it on RC12

What the hell?!
[HTC One X] seadersn:
turn off NFC in settings / more ...
[HTC One X] pabx:
So looks like NFC is working: Never really tested it myself ;)
[HTC One X] h0er:
Oh, NFC is working as it should, I use it all the time.
[HTC One X] toka1232010:
I knew that you didn't knew, that's why I posted it, so that you could knew that it works!
[HTC One X] drivenby:
Re: [ROM][Jan 22] Jellybean 4.2.1 for Endeavoru AOSP Build [BT Audio fixed] [ANY HBOO

Watch apple add nfc to the iphone and fan boys everywhere calling it "innovation"
[HTC One X] boe323:
this rom as really grown on me, my onex+ comes back soon and I don't think ill be using it when it does, I cant unlock it, I need the warranty for onex+ intact. Would be nice if you had some sort of ota support Pabx, like rom manager or goo manager, is there any plans for this in the near future?. Oh yeah, got playstation mobile back, theres a patch in these forums to make it work, brilliant, I can play lemmings again lol.
[HTC One X] pabx:
No: An OTA upgrade can not flash boot.img - so kernel updates would be impossible.
[HTC One X] boe323:
Yep, ok, just wondered.
[HTC One X] wheal:
Yes I did today. Result = Bootloop

Anyway great ROM.
[HTC One X] prabu33:
hi all, after I install rom, data on the sdcard is not detected, but when in cwm there?? said to be at 0 /. how to restore it?? thanks
[HTC One X] seadersn:
AW: [ROM][Jan 22] Jellybean 4.2.1 for Endeavoru AOSP Build [BT Audio fixed] [ANY HBOO

a little bit reading doesn't harm: it's written in first post ;)
[HTC One X] wheal:
Can someone confirm working ncx kernel?
[HTC One X] pabx:
You should probably ask the author of the ncx kernel: If you get a bootloop there is probably something wrong with the kernel.

But what would you gain from the NCX kernel? The included kernel is stable and some people even reported that the battery life is much better than with the NCX kernel.
[HTC One X] wheal:
I dont have tested yet. I do over the weekend. Thx for the info. :laugh:
[HTC One X] Schmoldt:
Sorry for the question, but i have problems with the scrolling on this Rom.

Anybody else.?

Or how can I fix it.?
[HTC One X] boe323:
Scrolling issues are 4.2.1 related, its not down to a specific rom, you just have to swipe a little slower, don't catch the edges of the screen because that will make it spring the opposite way, do fuller swipes also, sometimes having the charger in makes it worse, if it does just replug the charger, I think its project butter, they tweaked it and broke it lol. Ive found this rom to be one of the better ones for scrolling to be honest.
[HTC One X] hyakuman:
Scrolling issues? I haven't experienced any at all. No jumpiness, no issues with short or long swipes, or swiping beyond the screen edges.

Sounds more like a hardware issue than a software one here.
[HTC One X] bassmadrigal:
I've noticed on both my HOX (before it died) and N4 that if you are scrolling a really long page, if you try and fling it hard and fast to cover a large amount of space it doesn't work as well as it did in 4.1 and prior. That is the only scrolling issue I've noticed.
[HTC One X] boe323:
That's because this rom seems to be one of the better ones, stock sense was the worse for what I described, not hardware related at all, my hox+ stock is the same.

---------- Post added at 04:55 PM ---------- Previous post was at 04:37 PM ----------

I think the ncx kernel includes performance options and undervolt options, am I right?.
[HTC One X] drivenby:
Re: [ROM][Jan 22] Jellybean 4.2.1 for Endeavoru AOSP Build [BT Audio fixed] [ANY HBOO

You can under volt with icj/ncx
[HTC One X] boe323:
I changed my language from UK to US because I hate that gay voice on googlenow, but its done something to the phone,supersu wont give any permissions at startup, everything keeps force closing and lags like a *****.
[HTC One X] andril:
Looks amazing and well worth a try - flashing now - did notice the keyboard does not swap
[HTC One X] teemo:
Re: [ROM][Jan 22] Jellybean 4.2.1 for Endeavoru AOSP Build [BT Audio fixed] [ANY HBOO

Could you be more specific?

Everything i have tried is smooth, even fast scrolling large web sites.

Too much stuff running in background could interrupt your scrolling.
[HTC One X] boe323:
Im sure theres an issue with the supersu update, my phones like a piece of crap now I changed the language, changing back makes the phone go even crapper and supersu stops working.
[HTC One X] Schmoldt:
I had only too much stuff running in background. ;D
[HTC One X] -Zork-:
Re: [ROM][Jan 22] Jellybean 4.2.1 for Endeavoru AOSP Build [BT Audio fixed] [ANY HBOO

I hope to take a possibility to add wake up with volume keys next release of kernel. Tried and very smooth rom

Enviado desde mi HTC One X usando Tapatalk 2
[HTC One X] Miha_149:
test antutu = ???
[HTC One X] ssj3hulk:
Does this improve performance in games (expesially Gameloft games like Dark Knight Rises and NOVA 3) ?
[HTC One X] Segnale007:
Re: [ROM][Jan 22] Jellybean 4.2.1 for Endeavoru AOSP Build [BT Audio fixed] [ANY HBOO

Can anyone tell me how's like the battery drain compared with stock JB kernel for instance?

Overall performances?

Is it true camera loses quality with AOSP roms compared to stock?

Thanks
[HTC One X] sabret00the:
Re: [ROM][Jan 22] Jellybean 4.2.1 for Endeavoru AOSP Build [BT Audio fixed] [ANY HBOO

Slightly worse on average, though some people are managing to last a couple days.

Magnificent by all accounts.

Yes, the drivers are proprietary, so it's a given. You'll also be without a real burst shot. That said, in recent builds the camera has become much more fully featured.
[HTC One X] ultrawires:
No MTP

Since r11, I noticed that my win8-PC does not detect the phone through MTP, also adb does not detect any device (is this right?).

But everything works nicely in recovery mode, mounting usb storage and have access to my folders.

Am I missing something with the MTP?

Update: [To log how I'd resolved this]

1. A mistype in the above, I am using Windows 7 Home Premium.

2. Mostly figured it to be a Windows device driver issue. Device was auto-detected in bootloader and recovery modes with fastboot and adb drivers "installed" under win7 respectively. But Windows just could not recognise the device and the driver installation will fail (exclamation mark under Control Panel - Device Manager).

3. After some flashing and reboot gymnastics, selecting Portable Devices - HTC MTP driver and Windows7 correctly installed and identifies the HTC One X device.
[HTC One X] m2geek:
That's what you get for using homophobic slang :P
[HTC One X] teemo:
Re: [ROM][Jan 22] Jellybean 4.2.1 for Endeavoru AOSP Build [BT Audio fixed] [ANY HBOO

Working fine with win7 or linux. Can you see it, by browsing manually in win8 (don't know if that is an option in win8, as I have never used it), it should show as HTC device or similar.
[HTC One X] m2geek:
Works perfectly fine for me and I run Win8..
[HTC One X] Miha_149:
ROM is very fast, but why antutu gives less than official, when in fact much faster?
[HTC One X] mrberni:
[ROM][Jan 22] Jellybean 4.2.1 for Endeavoru AOSP Build [BT Audio fixed] [ANY HBOOT]

Because bechmarks sucks and official htc rom checks for running benchmark app and allocates all cpu power to it.
[HTC One X] Miha_149:
And tell the kernel with overclocking ... please

---------- Post added at 10:37 PM ---------- Previous post was at 10:32 PM ----------

but with this firmware you can not do it or not?
[HTC One X] bassmadrigal:
It is a way to cheat. You aren't going to see that performance normally, because it won't do that for just any app.

Benchmarks really are pointless. Run the same one three times and you will get 3 different results...
[HTC One X] Miha_149:
http://xdaforums.com/showthread.php?t=1647993

which of the kernel?

---------- Post added at 12:16 AM ---------- Previous post was at 12:10 AM ----------

There is an overclocked kernel for this? More than 1.5 GHz?
[HTC One X] pabx:
RC13 is now up - you must (as ALWAYS) flash boot.img

Use the included kernel - flashing a different untested kernel will not make your phone better.
[HTC One X] witteswa:
Great rom, fun to build it yourself as well.

Because it is very vanilla it is an excellent starting point to try implementing your own mods.

Currently I am trying to implement the CM Quiet Hours into this rom. Fore some reason I cannot get the settings menu working correctly but sooner or later I will manage :eek:

Thanks for the great work pabx :good:
[HTC One X] bassmadrigal:
You always need to reflash gapps on this ROM. CyanogenMod will back them up and restore them when you update, but that is not included with AOSP, so that means it isn't included in this ROM.
[HTC One X] drivenby:
Re: [ROM][Feb 2] Jellybean 4.2.1 for Endeavoru AOSP Build [BT Audio fixed] [ANY HBOOT

Keep up the fantastic work Pabx! Thank you
[HTC One X] rlmaers:
It seems as if recent apps load much slower compared to tbaldens CM10 (JB 4.1). More specifically it seems as if the tiles load after another, starting with the most recent and ending with the least recent such that it updates upwards. @pabx Is there some way to make it update the tiles faster, or even simultaneously?
[HTC One X] ilamaan:
I'm thinking of trying this ROM out. Is this stable for daily usage? Is there any problems with signal drop, call issues or messaging? Thanks!
[HTC One X] Miha_149:
You can return to the sense clock widget on your desktop?
[HTC One X] mattman83:
This is not a sense rom.

M.
[HTC One X] ridderr:
Soft reboot

Hi, just had a soft reboot (still running RC9 - will update today)

Maybe the logfile contains some valuable information. I think it's related with something in Facebook.
[HTC One X] bogdanpop74:
Battery mod

Dumb question: How to Install battery mod for this rom:confused:

Now using a battery widget

Thank`s!
[HTC One X] rlmaers:
FYI: I've also tested it with tbalden's newest build (CM10.1 JB 4.2), and it's way faster there compared to your build.
[HTC One X] pabx:
Thats because my build does not constantly pre-cache the 'recently used apps' screenshots.
[HTC One X] Miha_149:
In X + it can be done in performance? After all, it is the Mrs. Tegra 3 costs, but the overclocked!
[HTC One X] drziddo:
Can you please link me to that cm10.1 build?

Thanks.
[HTC One X] ozgreg:
Top Tip for Facebook, turn off your GPS.. Facebook APP and Android (Location Services) have a long long crash & burn history together..
[HTC One X] teemo:
Are you serious?
[HTC One X] krish_kc89:
Re: [ROM][Feb 2] Jellybean 4.2.1 for Endeavoru AOSP Build [BT Audio fixed] [ANY HBOOT

All smooth n fast...thanks for Rom

sent on earth from 1x

---------- Post added at 04:11 PM ---------- Previous post was at 04:11 PM ----------

Check official cm thread in original development

sent on earth from 1x
[HTC One X] drziddo:
Yes, but you are not serious writing that and not sending the link :P

Thanks.
[HTC One X] drivenby:
Re: [ROM][Feb 2] Jellybean 4.2.1 for Endeavoru AOSP Build [BT Audio fixed] [ANY HBOOT

dear Christ at least try searching for Igor

http://xdaforums.com/showthread.php?t=1786696
[HTC One X] teemo:
#1. Move the cursor (an arrow) to the text above "Are you serious?"

#2. The cursor will change to a hand (pointing finger).

#3. Press the left mouse button down and release again. This will bring you to a new page.

#4. On the new page, look for "[ROM][official]HTC One X -CyanogenMod10(4.1) Weeklies| CM-10.1(4.2) alpha 1 [feb-03]"

#5. Click the headline (same as #3.)

:p
[HTC One X] drziddo:
Sorry for that, but few days ago I had a (well, he) fight with a cm user and you know those guys can show their ego sometimes...

I was directed to the wiki and I read there that there is no support in cm10.1 for hox.

So, I was a bit skeptical when I read 10.1 official...

BTW: Loving this thread.
[HTC One X] pabx:
Thats because the *official* CM10.1 (= hosted on get.cm) is not yet out: tbalden is still fixing up stuff.
[HTC One X] drziddo:
Anyway, I am staying here, loving the build, very stable, good battery life.

Thanks again @pabx
[HTC One X] Flyinace2000:
on RC12 and have had a few soft reboots while using facebook. Is there a log file that i can post somewhere to help people debug? (I am currently upgrading to RC13)
[HTC One X] drivenby:
Re: [ROM][Feb 2] Jellybean 4.2.1 for Endeavoru AOSP Build [BT Audio fixed] [ANY HBOOT

try running it with GPS off . There was a bug with facebook and GPS in some other roms
[HTC One X] m2geek:
For some reason totally out of the blue my phone is horribly slow, refusing to load widgets and hanging when trying to simply open Settings - was running fine this morning >.<
[HTC One X] lahcim13:
I have RC12 already installed, can i flash RC13 without loose my settings and apps?
[HTC One X] teemo:
Re: [ROM][Feb 2] Jellybean 4.2.1 for Endeavoru AOSP Build [BT Audio fixed] [ANY HBOOT

Yes, I just did and have no problems.
[HTC One X] m2geek:
Re: [ROM][Feb 2] Jellybean 4.2.1 for Endeavoru AOSP Build [BT Audio fixed] [ANY HBOOT

Tried doing a restore from back up and that didn't fix it, so have since done a full wipe :-\
[HTC One X] pabx:
You probably installed some crap software: Run 'top' to see what is using up all your CPU and/or RAM.
[HTC One X] m2geek:
Re: [ROM][Feb 2] Jellybean 4.2.1 for Endeavoru AOSP Build [BT Audio fixed] [ANY HBOOT

Hmm I'm not sure, i'm usually very careful about what apps I install. I actively avoid crapps. Although I think it may have been caused by HD Widgets.

Since wiping and starting afresh it's running fine but I am gonna leave hd widgets off until I've backed up again and slept so I'm working with a clear mind :)

Only other thing I can think of is double twist - as I copied a big wad of music to my phone before things hit the fan.
[HTC One X] glazzi:
Using RC12 since Friday, first custom in my HOX (why does it always happen that after flashing a new version is released)

Anyway, good battery life, about 4,5% per hour. However my most persistent wakelock is *sync*_com.android.contacts_Account... does it really need to keep syncing contacts all the time?

Thanks a lot pabx for the work...
[HTC One X] josdehaes:
I wish I could say the same... Battery life for me is a lot worse than with HTC rom (exact same set of apps). Android OS is keeping the device awake for 3h since this morning 11:00 (now it's 16:00)... Also maps is using a lot of power (26%), while I haven't even opened it today.

Now I've disabled BT and location to see if this improves things...
[HTC One X] maxwen:
Well thats a known issue with google maps
[HTC One X] teemo:
Re: [ROM][Feb 2] Jellybean 4.2.1 for Endeavoru AOSP Build [BT Audio fixed] [ANY HBOOT

I have read about slow down before.

Not sure if this is still an issue, take a look:

http://xdaforums.com/showthread.php?p=28702032

This was the first thread I found, there are other.
[HTC One X] josdehaes:
Well, I didn't have this with ARHD ;)
[HTC One X] pabx:
Uuuuhmm.. let me guess: ARHD is not Android 4.2 based?
[HTC One X] Alex93917:
+1 ! Very good ROM ! :P
[HTC One X] glazzi:
Battery life with HTC ROM was better, however I expect get16 hours of moderate use with this one, which is enough to go through the day.

Regarding Maps using power, this is because GoogleNow constantly polling for location. If you disable "Setting>Location Access> Wi-Fi & Mobile Network Location", you will see this wakelock reduced. However will lose some functionality from GoogleNow .
[HTC One X] ManicStreetPreacher:
Re: [ROM][Feb 2] Jellybean 4.2.1 for Endeavoru AOSP Build [BT Audio fixed] [ANY HBOOT

Guys, hint, disable hotword detection in GoogleNow/Voice. Battery drain gone.
[HTC One X] boe323:
Damn, ive been so busy setting up windows 8, that theres been an update out since 2nd, lol, still not finished, just thought id pop in while im downloading something, cant wait to install the update, if its anything like the others then it will be awesome, windows 8 is so damn messy, takes days to get it right.
[HTC One X] pierreammoun:
Sensor Not working?

Hello Guys

Great ROM (RC13).

I have a small problem: when in a call it seems that the Proximity sensor is not working since the phone does not get locked...

so it starts clicking and going to options when my face is too close to the screen..

Any fix for it ?

Thanks..