Disable proximity sensor? - Galaxy Note 3 Q&A, Help & Troubleshooting

Hey guys,
everytime I use the skype app with my headphone the proximity sensor turns the screen black, when I cover it accidentally.
Is there any way, to turn the sensor off? I also don't need it in the dialer app.
I'm using cm12, so the modified skype app with the future, to turn off the proximity sensor doesn't work. x.x
I hope someone have a solution.^^
Thanks in advance.
Edit: Btw. Tasker does have this option, but it only works on 4.2 and bellow...
Sent from my SM-N9005 using XDA Free mobile app

I don't know about disabling it altogether, but you might be able to adjust its' thresholds enough to fit your needs. I don't know exactly where the files controlling that are, but they'll be somewhere in framework. In framework-res/res/values/integers there's "config_proximityCheckTimeout" that's set to a quarter of a second by default...maybe start with that?

Related

[Q] Can the proximity sensor be used to turn off wifi

I was using the smart cover for my Google Nexus 10 for sometime and wondering if the feature can turn off my screen, are there available applications which allow me to program me to do other things like turn off wifi after sometime if cover is closed to conserve battery and back on when the cover if opened. Thanks to anyone with suggestions
That's fairly advanced programming, you'll probably need a custom ROM to be able to do that have a search around on some of the ROM threads and ask the developers if they could help you out
Sent from my Nexus 10 using XDA Premium HD app
roysam123 said:
I was using the smart cover for my Google Nexus 10 for sometime and wondering if the feature can turn off my screen, are there available applications which allow me to program me to do other things like turn off wifi after sometime if cover is closed to conserve battery and back on when the cover if opened. Thanks to anyone with suggestions
Click to expand...
Click to collapse
I'm pretty sure you can use Tasker for that.
Edit: Never mind, it looks like proximity sensor is not supported yet by Tasker on the Nexus 10.
I would imagine it should be fairly easy to write a program that can do this. I know that I use an emulator for Game Boy Advance that has options to use the proximity sensor for controls (havent used it though), so if something like that is able to read data from the sensor then anyone should be able to. And that app doesnt even require root. I would think though that to put the tablet to sleep would require root access to the command. The one thing I dont know about would be waking the tablet up. I would imagine that the proximity sensor would be disabled when the tablet is in deep sleep, so it may not be able to be used to wake up the tablet. And using an app to always keep the sensor awake may prevent the tablet from ever going into deep sleep.
I think the Nexus 10 does NOT have a proximity sensor...
Arcano said:
I think the Nexus 10 does NOT have a proximity sensor...
Click to expand...
Click to collapse
Hmmm, looks like you're right. I downloaded sensor readout app from the play store and it's not registering a proximity sensor.
vogonpoetlaureate said:
Hmmm, looks like you're right. I downloaded sensor readout app from the play store and it's not registering a proximity sensor.
Click to expand...
Click to collapse
I think the smart cover used the magnetic field for the wake and sleep function instead of the proximity sensor. It was my mistake in assuming it was a proximity sensor.
So I'm guessing you just need an app to turn off WiFi when the device is put to sleep? Try this, it worked wonders for me:
http://forum.xda-developers.com/showthread.php?t=1801284
Sent from my Nexus 10 using xda app-developers app
you can simply set the wifi sleep policy to "Always" which will turn off your wifi when you turn off the screen
Arcano said:
I think the Nexus 10 does NOT have a proximity sensor...
Click to expand...
Click to collapse
Can anyone confirm that? Because on Google I get lots of hits with the specs for the Nexus 10 including the proximity sensor.
I just want to use Tap Tap App.
ArrowHood said:
Can anyone confirm that? Because on Google I get lots of hits with the specs for the Nexus 10 including the proximity sensor.
I just want to use Tap Tap App.
Click to expand...
Click to collapse
See for yourself:
https://play.google.com/store/devices/details?id=nexus_10_16gb
Straight from the the play store...
SENSORS
Microphone
Accelerometer
Compass
Ambient light
Gyroscope
Barometer
GPS
No prox sensor...

[Q] Disabling magnetic proximity 'S View' sensor

Hi,
Just wondering if anybody knows if there are any ROMs available which allow you to disable the magnetic proximity sensor, just below the volume down rocker on the S4?
I work in an aluminium smelter and in production areas, the magnetic fields are very high due to the high DC current (240kA) used in the smelting process. What this means is that my S4 is unusable as the magnetic field holds the 'S View' sensor in its closed position as though an S case is closed. i.e. the phone only displays 'S View' mode rendering it useless in production areas.
Thanks
Paul
relli10 said:
Hi,
Just wondering if anybody knows if there are any ROMs available which allow you to disable the magnetic proximity sensor, just below the volume down rocker on the S4?
I work in an aluminium smelter and in production areas, the magnetic fields are very high due to the high DC current (240kA) used in the smelting process. What this means is that my S4 is unusable as the magnetic field holds the 'S View' sensor in its closed position as though an S case is closed. i.e. the phone only displays 'S View' mode rendering it useless in production areas.
Thanks
Paul
Click to expand...
Click to collapse
You can turn this off in settings>My Device>Accessory>S View Cover Automatic Unlock
yabanize said:
You can turn this off in settings>My Device>Accessory>S View Cover Automatic Unlock
Click to expand...
Click to collapse
I've tried this, but it doesn't disable the S View mode. Try yourself with a fridge magnet.
Use Elixir from the Play Store.
The S View cover does not use magnetic sensor. It uses proximity sensor.
| Mobile Message
Dr.Engineer said:
The S View cover does not use magnetic sensor. It uses proximity sensor.
| Mobile Message
Click to expand...
Click to collapse
You are wrong. It uses magnetic sensor only.
danum said:
Use Elixir from the Play Store.
Click to expand...
Click to collapse
cool_sid007 said:
You are wrong. It uses magnetic sensor only.
Click to expand...
Click to collapse
Did elixir work?
I to am trying to get that magnet disabled.
At work so I can't try elixir.
There are actually 2magnets.
One by the volume and the other is by the sensors above the screen.
Thanks.
dtr145r said:
Did elixir work?
I to am trying to get that magnet disabled.
At work so I can't try elixir.
There are actually 2magnets.
One by the volume and the other is by the sensors above the screen.
Thanks.
Click to expand...
Click to collapse
If you're willing to install Xposed I can make a quick module to disable S-View. However some apps like the phone app might still respond to it as they handle it themselves rather than using the framework. That shouldn't be too annoying though.
Edit: btw this is better suited as a kernel patch to disable the sensor rather than the S-View screen. That might slightly lower consumption and would work better, but for warranty reasons I can see why a kernel patch would be annoying.
Sent from my GT-I9500 using xda app-developers app
MohammadAG said:
If you're willing to install Xposed I can make a quick module to disable S-View. However some apps like the phone app might still respond to it as they handle it themselves rather than using the framework. That shouldn't be too annoying though.
Edit: btw this is better suited as a kernel patch to disable the sensor rather than the S-View screen. That might slightly lower consumption and would work better, but for warranty reasons I can see why a kernel patch would be annoying.
Sent from my GT-I9500 using xda app-developers app
Click to expand...
Click to collapse
Sure I 'll try it out let me know what you need
Sent from my SPH-L720 using XDA Premium 4 mobile app
Can I ask the opposite question lol!
Is there a way to turn a standard wallet case in to an S-View by installing a magnet somewhere on the flap or something? Is it possible to make it work?
Aitch said:
Can I ask the opposite question lol!
Is there a way to turn a standard wallet case in to an S-View by installing a magnet somewhere on the flap or something? Is it possible to make it work?
Click to expand...
Click to collapse
Yes. Get a hold of a magnet, it has to be reasonabley strong, I found that a fridge magnet was not strong enough, and hold it close to the volume down button and move it about a bit and find the optimum position, I actually find the magnet flat against the back or front near vol. Down works best, just be careful of screen.
Sent from my GT-I9505 using xda app-developers app
relli10 said:
Hi,
Just wondering if anybody knows if there are any ROMs available which allow you to disable the magnetic proximity sensor, just below the volume down rocker on the S4?
I work in an aluminium smelter and in production areas, the magnetic fields are very high due to the high DC current (240kA) used in the smelting process. What this means is that my S4 is unusable as the magnetic field holds the 'S View' sensor in its closed position as though an S case is closed. i.e. the phone only displays 'S View' mode rendering it useless in production areas.
Thanks
Paul
Click to expand...
Click to collapse
dtr145r said:
Sure I 'll try it out let me know what you need
Sent from my SPH-L720 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Install Xposed from http://forum.xda-developers.com/showthread.php?t=1574401
Install my module http://mohammadag.xceleo.org/public/Android/Xposed/DisableSView.apk
It's as close as you can get without disabling the sensor. I didn't hook into the phone so that might still show the S-View window, but that's no biggie. Also, the Smart Stay icon disappears, but hey, that can be a plus
Please report back if this works for you so I can make a thread for it.
MohammadAG said:
Install Xposed from http://forum.xda-developers.com/showthread.php?t=1574401
Install my module http://mohammadag.xceleo.org/public/Android/Xposed/DisableSView.apk
It's as close as you can get without disabling the sensor. I didn't hook into the phone so that might still show the S-View window, but that's no biggie. Also, the Smart Stay icon disappears, but hey, that can be a plus
Please report back if this works for you so I can make a thread for it.
Click to expand...
Click to collapse
ok.
getting everything installed now.
im a little worried about it working, im on CM so its not going to show the sview window at all.
ill let you know in a few minutes
---------- Post added at 09:13 PM ---------- Previous post was at 09:08 PM ----------
MohammadAG said:
Install Xposed from http://forum.xda-developers.com/showthread.php?t=1574401
Install my module http://mohammadag.xceleo.org/public/Android/Xposed/DisableSView.apk
It's as close as you can get without disabling the sensor. I didn't hook into the phone so that might still show the S-View window, but that's no biggie. Also, the Smart Stay icon disappears, but hey, that can be a plus
Please report back if this works for you so I can make a thread for it.
Click to expand...
Click to collapse
nope its not working.
pm me your email address and ill send you some log cats.
im pretty sure that sensor needs to be disabled. its causing the actual proximity sensor to be disabled which is why its causing me problems.
dtr145r said:
ok.
getting everything installed now.
im a little worried about it working, im on CM so its not going to show the sview window at all.
ill let you know in a few minutes
---------- Post added at 09:13 PM ---------- Previous post was at 09:08 PM ----------
nope its not working.
pm me your email address and ill send you some log cats.
im pretty sure that sensor needs to be disabled. its causing the actual proximity sensor to be disabled which is why its causing me problems.
Click to expand...
Click to collapse
What exactly do you want to do? CM doesn't have S-View so this shouldn't be needed.
Sent from my Samsung Galaxy S4 (i9500)
MohammadAG said:
What exactly do you want to do? CM doesn't have S-View so this shouldn't be needed.
Sent from my Samsung Galaxy S4 (i9500)
Click to expand...
Click to collapse
i bought an s View cover for my phone.
im using cm
i downloaded an app from the play store that mock sview because obviously cm doesnt have it.
the app used to proximity cover to determine if the cover is open or closed.
the app works flawlessly when i use my finger to cover the proximity sensor.
when i use the sview cover it doesnt work.
the sview cover some how disables the proximity sensor. i know this because i have other apps that use the proximity sensor and they dont work either when i use that cover...
dtr145r said:
i bought an s View cover for my phone.
im using cm
i downloaded an app from the play store that mock sview because obviously cm doesnt have it.
the app used to proximity cover to determine if the cover is open or closed.
the app works flawlessly when i use my finger to cover the proximity sensor.
when i use the sview cover it doesnt work.
the sview cover some how disables the proximity sensor. i know this because i have other apps that use the proximity sensor and they dont work either when i use that cover...
Click to expand...
Click to collapse
Oh, then your problem is different from the OP's. I suggest contacting the devs so they monitor the magnet rather than the proximity sensor.
My module simply disables S-View on stock TW ROMs.
Sent from my Samsung Galaxy S4 (i9500)
feedback to the module
MohammadAG said:
Install Xposed from http://forum.xda-developers.com/showthread.php?t=1574401
Install my module http://mohammadag.xceleoc.org/public/Android/Xposed/DisableSView.apk
It's as close as you can get without disabling the sensor. I didn't hook into the phone so that might still show the S-View window, but that's no biggie. Also, the Smart Stay icon disappears, but hey, that can be a plus
Please report back if this works for you so I can make a thread for it.
Click to expand...
Click to collapse
hi! I also have this strong magnetic field work area problem.i found this topic and tried to install your module.Thank you very much because its working.the s-view window has been disabled.But the problem is the touchscreen is still disabled or not functioning.Is there a solution to this?THANKS!!
MohammadAG said:
Install Xposed from http://forum.xda-developers.com/showthread.php?t=1574401
Install my module http://mohammadag.xceleo.org/public/Android/Xposed/DisableSView.apk
It's as close as you can get without disabling the sensor. I didn't hook into the phone so that might still show the S-View window, but that's no biggie. Also, the Smart Stay icon disappears, but hey, that can be a plus
Please report back if this works for you so I can make a thread for it.
Click to expand...
Click to collapse
Thank you so much, this seems to have solved my issue of my S4 always flashing the S View Cover display.
3ddown said:
hi! I also have this strong magnetic field work area problem.i found this topic and tried to install your module.Thank you very much because its working.the s-view window has been disabled.But the problem is the touchscreen is still disabled or not functioning.Is there a solution to this?THANKS!!
Click to expand...
Click to collapse
Hi all !!
Thank you for the great forum!!
I installed the module and the S-view is not shown, but the touch screen is disabled.
I use a magnetic car holder and every time I hang up the phone to it, the S-lock the screen view!
I don't know if it's possible, but it could be a great thing to change the phone's behavior when the magnetic sensor detects a magnetic field, for example, you can choose to put the phone in car mode.
Thank you very much
---------------------------------------------------------------------------------------------------------------------------------
Samsung Galaxy S4 mini DUOS GT-I9192 - Stock ROM - Android 4.2.2 - I9192UBUAMH2
uzzos77 said:
Hi all !!
Thank you for the great forum!!
I installed the module and the S-view is not shown, but the touch screen is disabled.
I use a magnetic car holder and every time I hang up the phone to it, the S-lock the screen view!
I don't know if it's possible, but it could be a great thing to change the phone's behavior when the magnetic sensor detects a magnetic field, for example, you can choose to put the phone in car mode.
Thank you very much
---------------------------------------------------------------------------------------------------------------------------------
Samsung Galaxy S4 mini DUOS GT-I9192 - Stock ROM - Android 4.2.2 - I9192UBUAMH2
Click to expand...
Click to collapse
You ever figured out anything on this? I got a magnetic car holder too and it's kinda annoying with the S-View popping up.
It render S-Voice Drive useless.

Touch Control interfering with proximity sensor during call

A quick Google search didn't yield any results, so I bring my issue to you.
It seems that when I have touch control enabled, and I remove the phone from my face during a call, the screen does not come back on unless I touch the screen to wake it up. I know it's touch control doing this, because when I disable it, the sensor works fine. Just wondering what causes this and if there was a fix short of disabling touch control completely.
Sent from my Nexus 4 using xda app-developers app

Disabling proximity sensor during phone calls

Is there a way I can disable or manually set the proximity sensor easily? It has quit functioning and as a result my screen is black during phone calls. It would be nice to use a number pad every once in awhile...
Thanks!
Edit: please reply in other thread if you know an answer. It was here first!
http://forum.xda-developers.com/showthread.php?t=2558878
Sent from my Nexus 4 using xda app-developers app

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".

Categories

Resources