[Q] Enabling proximity sensor on CM etc. - G2 Q&A, Help & Troubleshooting

When Im on cm11 or any other aosp rom my phone wakes up in pocket and sometimes even dials numbers. Everything is okay on stock based roms. Is there any fix to enable (proximity?) sensor while on cm? Without it its useless for me

Anyone? :crying:

AddictedToPlaying said:
When Im on cm11 or any other aosp rom my phone wakes up in pocket and sometimes even dials numbers. Everything is okay on stock based roms. Is there any fix to enable (proximity?) sensor while on cm? Without it its useless for me
Click to expand...
Click to collapse
yeah.... AOKP supports it but it's a device specific flag, which means it's not in our builds as we have no active maintainer..
I use Tasker for it.

ouch
Can You tell me more about using tasker to do this? I really like to set CM as my daily rom

up

AddictedToPlaying said:
ouch
Can You tell me more about using tasker to do this? I really like to set CM as my daily rom
Click to expand...
Click to collapse
Sure, profile context is proximity close, screen on. Task is System Lock. Easy.

I think it's partially working beacouse when i cover sensor while screen is on it locks immediately but i can still unlock phone when i cover sensor

AddictedToPlaying said:
I think it's partially working beacouse when i cover sensor while screen is on it locks immediately but i can still unlock phone when i cover sensor
Click to expand...
Click to collapse
Dunno, works for me. In fact it often annoys me to be covering the sensor and tap to wake and it goes immediately back asleep.

Topic is still actual

Any news in this topic?

Related

[Q] Disable Proximity Sensor

Hi,
is there an option for android-HD2s to disable the proximity sensor? I'm sick of the behavior of my device that the screen doesn't turn on again after making a phone call, taking out battery isn't a very useful option...
I already tried the Recalibrator for the sensor (originally for DesireHD), it worked for a few days but now again i've got the problem...
Therefore i'd rather have the screen turned on during the phone call, than having a blocked phone after the call..,
Do you know a solution?
pcmanuser said:
Hi,
is there an option for android-HD2s to disable the proximity sensor? I'm sick of the behavior of my device that the screen doesn't turn on again after making a phone call, taking out battery isn't a very useful option...
I already tried the Recalibrator for the sensor (originally for DesireHD), it worked for a few days but now again i've got the problem...
Therefore i'd rather have the screen turned on during the phone call, than having a blocked phone after the call..,
Do you know a solution?
Click to expand...
Click to collapse
hi, I guess you are using Desire HD rom. If is so I fully understand you. Those build s avery big and laggy. After trying many,many rom s Iwent to this one>http://forum.xda-developers.com/showthread.php?t=931126
The screen turns on , everything work s fine. And it is crazy fast. Believe me, you will love android after this.
the best DHD Rom is Core Droid, in 1.3 the sensor was good, but in the actual 1.4 its bad again, try it when the next version is out. its very fast and nice skinned, also always good updates like the controls widget in the notifications bar.
Are we talking about the rom for hd2??is there anyone who can help us on the same problem?
I do this that way http://forum.xda-developers.com/showpost.php?p=16008095&postcount=4

[Q] Disable Proximity in call?

My proximity sensor is dead. Stuck in WinMo 6.5 and Android. Is there a way I can disable it and have the in call settings use the gyro instead? Or maybe not blank the screen at all?
Thanks!
Using: [JUN10]b AmeriCanAndroid AOSP HD2 GB234 CM71|bkup2sdext234 [KERNEL:AmCanAndroid r610]
http://forum.xda-developers.com/showthread.php?t=957652
I found a way to wake the screen back up without yanking the battery. I can give it USB power and it will wake. Still sucks but is better than reboot.
Anyone know how to kill prox?
TY
Same here, very anoying.
When headphone is plugged in i dont have any problems.
I had the same problem, so I got libsensors source from HyperDroid, commented out lines that do proximity sensor initialization and got sensors.leo.so that shows to phone that there are no proximity sensor.
There are 3 identical files in the attachment - simply copy them over into /system/lib/hw on the device.
But, actually, repairing sensor would be better solution...
PROBLEM SOLVED INSTALLING MIUI, OPTION TO COMPLETLY DISABLE THE PROXIMITY SENSOR.
TY galnetmiui
http://www.galnetmiui.co.uk/content...elcome-to-galnetmiui-twooey!/msg3602/#msg3602
brascodanny said:
PROBLEM SOLVED INSTALLING MIUI, OPTION TO COMPLETLY DISABLE THE PROXIMITY SENSOR.
TY galnetmiui
http://www.galnetmiui.co.uk/content...elcome-to-galnetmiui-twooey!/msg3602/#msg3602
Click to expand...
Click to collapse
That's what I've been doing. I sent it in to get the prox fixed and they shipped it back still broke.

[Q] Proximity Sensor Fails

Just wanna ask if there is any temporary fix to the proximity sensor of nexus 4.
During calls the screen doesn't turn off when placed close to the face.
I didn't get the chance to test it on stock 4.2 because when i turned my phone on it updated first to 4.2.1. Ever since then it has had proximity sensor not working during calls.
And i have never had any screen protectors on the screen.
Tried many custom ROMS as well but no difference at all.
Sent from my Nexus 4 using xda premium
how about kernals could be a bug in franco.
return it to 100% stock make sure its still doing it under those conditions then if it is contact Google and ask for an RMA this is probably your best course of action. if it has been like this since you pulled it out of the box then contact google right now and tell them the proxmity sensor is clearly broken
I have this issue too, but I'm on CM. Not sure if it's CM being a problem. Can someone on STOCK comment?
BTW as for screen protectors, unless you have a giant bubble or crap on your protector or underneath in the adhesive layer, the proximity sensor should perform fine. Before you blame my screen protector, I downloaded a proximity sensor app to show the readout. The screen protector with no cutout is fine. It's not optimal to have one like that, but the proximity sensor works fine.
isnt there a proximity senor app which lets you test it on the market?
dmo580 said:
I have this issue too, but I'm on CM. Not sure if it's CM being a problem. Can someone on STOCK comment?
Click to expand...
Click to collapse
Using stock. No issues on the sensor. Turns off on calls and turns on when I remove from the face. Have a spigen protector on with a cutout for it
Sent from my Nexus 4 using Tapatalk 2
dmo580 said:
I have this issue too, but I'm on CM. Not sure if it's CM being a problem. Can someone on STOCK comment?
BTW as for screen protectors, unless you have a giant bubble or crap on your protector or underneath in the adhesive layer, the proximity sensor should perform fine. Before you blame my screen protector, I downloaded a proximity sensor app to show the readout. The screen protector with no cutout is fine. It's not optimal to have one like that, but the proximity sensor works fine.
Click to expand...
Click to collapse
I was on stock 2 weeks ago when I started noticing it.
I am on cm now as well and its very much messed up.
Sent from my Nexus 4 using xda premium
bobola said:
isnt there a proximity senor app which lets you test it on the market?
Click to expand...
Click to collapse
There is.
I've installed and tested.
According to the app results, The proximity sensor seems to know when my hand is on it and when its off it. The value changes from 1.0 to 2.0
It just won't work on phone calls.
Sent from my Nexus 4 using xda premium
noobdeagle said:
how about kernals could be a bug in franco.
return it to 100% stock make sure its still doing it under those conditions then if it is contact Google and ask for an RMA this is probably your best course of action. if it has been like this since you pulled it out of the box then contact google right now and tell them the proxmity sensor is clearly broken
Click to expand...
Click to collapse
It doesn't seem to be a hardware issue.
Sensor tests were made and the proximity sensor picks up when my thumb is placed on it.
Problem is on phone calls alone. Right from stock ROM to CM, PA, Xylon, AOKP, almost all of the ROMs.
Sent from my Nexus 4 using xda premium
slimldj said:
It doesn't seem to be a hardware issue.
Sensor tests were made and the proximity sensor picks up when my thumb is placed on it.
Problem is on phone calls alone. Right from stock ROM to CM, PA, Xylon, AOKP, almost all of the ROMs.
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Mine is stock and during calls it usually goes to my settings menu and changes my clock setting. When I get off the phone, screen is blank and I hit power button to end call. Still annoying at times when the clock changes.
any luck with finding a fix for the proximity sensor? Mine never works when I'm in a phone call. I have to either wait for the call to end or reset the phone by holding the power button to end the call.
feedmylittletroll said:
any luck with finding a fix for the proximity sensor? Mine never works when I'm in a phone call. I have to either wait for the call to end or reset the phone by holding the power button to end the call.
Click to expand...
Click to collapse
I think it's a bug and not a hardware issue. Perhaps one of the other reason for having a new factory image soon.
Sent from my Nexus 4 using xda premium
feedmylittletroll said:
any luck with finding a fix for the proximity sensor? Mine never works when I'm in a phone call. I have to either wait for the call to end or reset the phone by holding the power button to end the call.
Click to expand...
Click to collapse
I'm suffering this same problem too, hope they fix it soon..
slimldj said:
I think it's a bug and not a hardware issue. Perhaps one of the other reason for having a new factory image soon.
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Yes I think the fact that the app testing showed the sensor working so it points to software. Something is missing when the phone is in a call its not connecting to turn off. I thing Jellybean was flawed in many ways. My drop down brightness slider doesn't work for me nor auto brightness its OK for me cause I don't use either but still makes me mad.
Using Tapatalk 2
meetoo
Same problem here. Nexus 4. Stock Android 4.2.1. No screen protector installed.
While I'm in a call - the proximity sensor seems to work, as the screen goes dark... but at the end of the call when removing the phone away from my face, the screen does not come back on - making it impossible to hang up on the call (unless the caller on the other end hangs up first). It also makes it difficult to impossible to switch to and from speakerphone in the middle of a call.
Pushing the power button when this happens doesn't wake the screen either... sometimes it flashes but then goes black again. It doesn't happen on every call... maybe 75% of the time it does happen though. I've installed the proximity sensor app and it seems to recognize "covered" and "uncovered" states correctly when I cover the sensor at the top left corner of the phone while not in a call... so I'm thinking this is actually a software issue with the sensor and not a hardware issue. Drives me nuts though.
I've set "accessibility settings" to have the power button hang up calls as a temporary workaround... we'll see how that works.
treaty said:
Same problem here. Nexus 4. Stock Android 4.2.1. No screen protector installed.
While I'm in a call - the proximity sensor seems to work, as the screen goes dark... but at the end of the call when removing the phone away from my face, the screen does not come back on - making it impossible to hang up on the call (unless the caller on the other end hangs up first). It also makes it difficult to impossible to switch to and from speakerphone in the middle of a call.
Pushing the power button when this happens doesn't wake the screen either... sometimes it flashes but then goes black again. It doesn't happen on every call... maybe 75% of the time it does happen though. I've installed the proximity sensor app and it seems to recognize "covered" and "uncovered" states correctly when I cover the sensor at the top left corner of the phone while not in a call... so I'm thinking this is actually a software issue with the sensor and not a hardware issue. Drives me nuts though.
I've set "accessibility settings" to have the power button hang up calls as a temporary workaround... we'll see how that works.
Click to expand...
Click to collapse
Having the exact same issue here too on stock ROM.
Good idea on the accessibility settings! Will work until/if they fix it..
Also no screen protector.
I had the opposite problem to this where my screen would stay off during a call and I have to force restart to regain control.
Turns out it was the rubbish screen protector causing the issue. This was quickly fixed by cutting the screen protector so that the sensor was uncovered.
Dav_prime said:
I had the opposite problem to this where my screen would stay off during a call and I have to force restart to regain control.
Turns out it was the rubbish screen protector causing the issue. This was quickly fixed by cutting the screen protector so that the sensor was uncovered.
Click to expand...
Click to collapse
It was the same fix for mine when I first got my bse it worked fine for about a week but then over time it got worse. It was the screen protector just that lil bit worth of it wear caused enough blockage of the sensor. I got some new bse's and they now have a cutout for the proximity sensor and are screen optimized.
Sent from my Nexus 4 using Xparent Blue Tapatalk 2
use Proximity Actions by Novum Inceptum in playstore
rat99 said:
use Proximity Actions by Novum Inceptum in playstore
Click to expand...
Click to collapse
That won't fix anything.

Turning phone over to mute?

Had this phone for about 5 days so far, and coming from an old HTC one X I'm amazed by the battery life! And generally really liking the phone, however..........
I cannot seem to find how to mute the phone's alerts by turning the phone over onto it's screen. i.e. in a meeting or restaurant, phone begins to ring... and I can just flip it quickly over to shut it up and know that it won't ring again whilst turned over.
I know I'm probably being stunningly dim, but any hints?
alex.mc said:
Had this phone for about 5 days so far, and coming from an old HTC one X I'm amazed by the battery life! And generally really liking the phone, however..........
I cannot seem to find how to mute the phone's alerts by turning the phone over onto it's screen. i.e. in a meeting or restaurant, phone begins to ring... and I can just flip it quickly over to shut it up and know that it won't ring again whilst turned over.
I know I'm probably being stunningly dim, but any hints?
Click to expand...
Click to collapse
I guess this isn't supported on x play.
alex.mc said:
Had this phone for about 5 days so far, and coming from an old HTC one X I'm amazed by the battery life! And generally really liking the phone, however..........
I cannot seem to find how to mute the phone's alerts by turning the phone over onto it's screen. i.e. in a meeting or restaurant, phone begins to ring... and I can just flip it quickly over to shut it up and know that it won't ring again whilst turned over.
I know I'm probably being stunningly dim, but any hints?
Click to expand...
Click to collapse
That's a handy feature to have... Someone should work on that.
abhish3k9 said:
That's a handy feature to have... Someone should work on that.
Click to expand...
Click to collapse
It's kernel related I think. You can tell the developers about it on kernel related thread.
K.khiladi said:
It's kernel related I think. You can tell the developers about it on kernel related thread.
Click to expand...
Click to collapse
I don't think so. I think, it's just using the proximity sensor to mute the device while receiving a call. An app for non-rooted phones will do. Though, it can be embedded in custom ROMs.
abhish3k9 said:
I don't think so. I think, it's just using the proximity sensor to mute the device while receiving a call. An app for non-rooted phones will do. Though, it can be embedded in custom ROMs.
Click to expand...
Click to collapse
Nope it isn't that easy that just an app would enable it. X play has notification led also but requires custom kernel to support it.
K.khiladi said:
Nope it isn't that easy that just an app would enable it. X play has notification led also but requires custom kernel to support it.
Click to expand...
Click to collapse
I might be wrong, but, enabling the notification LED i.e letting power into it or establishing a connection to it (hardware level) is different than using a (already working) sensor. The feature mentioned in this thread is just a cleaver use of sensors.
abhish3k9 said:
I might be wrong, but, enabling the notification LED i.e letting power into it or establishing a connection to it (hardware level) is different than using a (already working) sensor. The feature mentioned in this thread is just a cleaver use of sensors.
Click to expand...
Click to collapse
The sensors are working correctly but for that particular trick to work there has to be support from software level and that comes from kernel support. I haven't heard of any app that initiates this flip to mute thing. I could also be wrong. I ain't a developer but just reading stuffs everywhere.
You don't need special kernel support for this.
Any app (if you grant the permission) can mute the phone by setting RINGER_MODE_SILENT via Android Audiomanager.
http://developer.android.com/reference/android/media/AudioManager.html
And any app can choose to be notified on sensor data changes of a specific sensor (e.g. proximity semsor) if it registers a listener for this sensor.
http://developer.android.com/reference/android/hardware/SensorManager.html
If you combine both and put it as background service you have an app that mutes the phone based on sensor input. E.g. if proximity sensor if covered. Quite easy.
Though for flip to mute proximity sensor alone probably doesn't help as the sensor is a also covered if the phone is in your pocket. I guess gyroscope would be best, which X Play doesn't have...
But maybe you can detect the flip motion also via clever combination of magnetometer and accelerometer data?
But I would be very surprised if there were no apps in Google Play which offer flip to mute functionality
u42671 said:
You don't need special kernel support for this.
Any app (if you grant the permission) can mute the phone by setting RINGER_MODE_SILENT via Android Audiomanager.
http://developer.android.com/reference/android/media/AudioManager.html
And any app can choose to be notified on sensor data changes of a specific sensor (e.g. proximity semsor) if it registers a listener for this sensor.
http://developer.android.com/reference/android/hardware/SensorManager.html
If you combine both and put it as background service you have an app that mutes the phone based on sensor input. E.g. if proximity sensor if covered. Quite easy.
Though for flip to mute proximity sensor alone probably doesn't help as the sensor is a also covered if the phone is in your pocket. I guess gyroscope would be best, which X Play doesn't have...
But maybe you can detect the flip motion also via clever combination of magnetometer and accelerometer data?
But I would be very surprised if there were no apps in Google Play which offer flip to mute functionality
Click to expand...
Click to collapse
Thanks for correction and I haven't heard of any app with that feature.
I haven't seen a standalone app for this (but then I haven't really looked too hard) but if you have xposed installed you can use GravityBox which has "Flip action while ringing" under the "Phone Tweaks" section. Options are:
Do nothing (default)
Mute ringer
Dismiss call
The flip action is defined as "device is flipped face down while ringing".

Screen won't turn on when calling i9505, help

Hi,
i've always the pb of proximity sonsor or somthing in that field when i'm installing a custom rom of android 6.0, 7.0 or 7.1 such as (OptimizedCM-14.1-20161121-BETA1-AROMA, JDCTeam_jdc_jflte-7.1-20161117-BETA, MK60.1-jfltexx-201605070057-NIGHTLY)
so when i make a call, via messenger or my sim dialer, the screen turns off and won't turn on if i push power or home buttons.
so, what's the solution of this pb i'm suffering from, from a long time...
Does the phone work properly on a stock ROM? Did you try disabling the proximity sensor or disabling the screen-off function?
audit13 said:
Does the phone work properly on a stock ROM? Did you try disabling the proximity sensor or disabling the screen-off function?
Click to expand...
Click to collapse
Yes, i'm now on 5.0.1 (stock rom) it works fine
how can i disable the proximity sonsor or the screen-off function?
This sure looks as a problem with the proximity sensor, the s4 is known for accumulating dust and grease on top of it. Open your phone with a small Phillips tool, remove it and clean it. It will work as new.
Don't think it's a hardware problem since the sensor works properly on a stock ROM.
Sorry, I no longer have an s4 and I don't remember how to disable the proximity sensor in a custom or stock ROM.

Categories

Resources